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
This is amazing!
Glad that you like it..
Hindi font me grep setting kaam nohi aa raha hai sir, any solution?
Details bataiye aur font kaun sa hai? Aap kya achieve karna chah rahe hain grep se?
@@techgalaxy100 sir hindi unicode font ka grep Code kya hai jisse sare hindi fonts indentify ho jaaye
@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.
@@techgalaxy100 e.g. FOUR C BODY, MANGAL HINDI FONT, (हिंदी के पैराग्राफ में ब्रैकेट के मध्य में बोल्ड हिंदी फॉण्ट करना हो तब )
@@Graphicode99 Try this code:
(?
I want math typing in Adobe CC
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.
thanks alot
You're welcome brother
wonderful
Many thanks
This is very informative, but this is not enough for this topic
Thanks for watching!!