Indesign Tutorial : How to type Chemical Formulas in InDesign using Grep Styles

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ก.ย. 2024
  • Indesign Tutorial : How to type Chemical Formulas in InDesign using Grep Styles
    In this video I have showed how to type chemical formulas in InDesign using Grep Styles.
    First we have to create to Character Styles Down and UP.
    Down character style is for valences and UP character style is for charges.
    To shift down the valences it will look for maximum two digits and apply Down character style only if the target digits have before it a small a-z or a capital A-Z
    To shift up the charges of the elements it will look for open parentheses which is denoted by \( in the code. Then it will check for zero or more occurrence of digits which is denoted by \d*. It will then look for a plus or a minus sign which is denoted by (\+|\-) and finally it looks for a closing parentheses denoted by \) in the code.
    This is how the full code looks like:
    \(\d*(\-|\+)\)
    Please note that the symbol | means OR in regular expression code. Also please note that parentheses (), Plus(+) and Minus (-) signs have special meaning in regular expression codes so it cannot be used just like that. It needs to be escaped by \ that is why opening and closing parentheses and plus and minus sign his \ symbol before it.
    Sample Formulas
    ===============
    Na
    H2O
    C6H12O6
    C2H6O
    CasO4
    NO3(-)
    CO3(2-)
    HSO4(-)
    HCO3(-)
    Sn(2+)
    I hope you liked the video.
    Thanks for watching

ความคิดเห็น • 17

  • @sajidr9297
    @sajidr9297 3 ปีที่แล้ว +1

    This is amazing!

  • @Graphicode99
    @Graphicode99 3 หลายเดือนก่อน +1

    Hindi font me grep setting kaam nohi aa raha hai sir, any solution?

    • @techgalaxy100
      @techgalaxy100  3 หลายเดือนก่อน

      Details bataiye aur font kaun sa hai? Aap kya achieve karna chah rahe hain grep se?

    • @Graphicode99
      @Graphicode99 3 หลายเดือนก่อน +1

      @@techgalaxy100 sir hindi unicode font ka grep Code kya hai jisse sare hindi fonts indentify ho jaaye

    • @techgalaxy100
      @techgalaxy100  3 หลายเดือนก่อน

      @supreme-court-bilingual font ka koi alag code nahi hota hai. Kya aap unicode font use kar rahe hain? Mujhe font ka naam bataiye. Also tell me aap grep se kya kaam lena chah rahe hain so that i can help you hetter. Mere fb group me question bhi post kar sakte hain.

    • @Graphicode99
      @Graphicode99 3 หลายเดือนก่อน

      ​@@techgalaxy100 e.g. FOUR C BODY, MANGAL HINDI FONT, (हिंदी के पैराग्राफ में ब्रैकेट के मध्य में बोल्ड हिंदी फॉण्ट करना हो तब )

    • @techgalaxy100
      @techgalaxy100  3 หลายเดือนก่อน

      @@Graphicode99 Try this code:
      (?

  • @dtp2dps667
    @dtp2dps667 9 หลายเดือนก่อน +1

    I want math typing in Adobe CC

    • @techgalaxy100
      @techgalaxy100  9 หลายเดือนก่อน

      Thanks for watching. Algebra equations GREP code is given in my videos. Look in my channel. More videos to come on Fractions and Algebra equations, Chemical Equations soon.

  • @user-ki6vh6bl6f
    @user-ki6vh6bl6f 2 ปีที่แล้ว +1

    thanks alot

  • @SyedFidaAliShah
    @SyedFidaAliShah 2 ปีที่แล้ว +1

    wonderful

  • @graphicpoint6056
    @graphicpoint6056 2 ปีที่แล้ว +1

    This is very informative, but this is not enough for this topic