11 replies to this topic

### #1 Mercedes Benzene

Mercedes Benzene

Student

• Moderators
• 2950 posts

Posted 28 February 2008 - 09:09 PM

When posting chemical equations, formulae, etc. the staff at Hypograhy suggest that you utilize our LaTeX chemistry package for your convenience, and for the consistency of the threads in the chemistry forum.

Use the ce tag:

[ce]C6H12O6[/ce]

Anything between those two will be translated with TeX.

The following examples of script will be rendered when in-between the tags:

C6H12O6 renders as [ce]C6H12O6[/ce]

CrO4^{-2} renders as [ce]CrO4^{-2}[/ce]

^{235}_{92}U renders as [ce]^{235}_{92}U[/ce]

Reaction arrows: [ce]->[/ce], [ce]<-[/ce], [ce]<=>[/ce] can be rendered with ->, <-, and <=> respectively.

These are the basics, but, the standard TeX commands may also be used within the [ce] tags. So please see our LaTeX thread here for more details:

http://hypography.co...highlight=latex

Also, as always, placing your curser over rendered LaTeX will reveal the original script.

Feel free to use this thread for practice!

Mercedes Benzene

### #2 InfiniteNow

InfiniteNow

Suspended

• Members
• 9148 posts

Posted 28 February 2008 - 09:28 PM

Nice job, MB!

For those who didn't catch the fact that MB put the end tags first in his example (since it would have rendered if he'd put them in the proper order), I have edited his quote to show exactly what he meant:

The following examples of script will be rendered when in-between the tags:

[ce]C6H12O6[/ce] renders as [ce]C6H12O6[/ce]

[ce]CrO4^{-2}[/ce] renders as [ce]CrO4^{-2}[/ce]

[ce]^{235}_{92}U[/ce] renders as [ce]^{235}_{92}U[/ce]

To MB: You can do what I did, showing the tags exactly as they're supposed to appear, by surrounding the [ce] tags in [noparse] tags.

### #3 Mercedes Benzene

Mercedes Benzene

Student

• Moderators
• 2950 posts

Posted 29 February 2008 - 05:10 AM

Ahhh. Thank you very much Infinite.

### #4 GeneralMotors

GeneralMotors

Thinking

• Members
• 13 posts

Posted 04 April 2008 - 11:22 AM

Is the latex package you use free? cause i might want to use that for my website

I currently use of Math latex, but don't have a chemistry based one

### #5 alexander

alexander

Dedicated Smart-ass

• Members
• 5722 posts

Posted 04 April 2008 - 02:59 PM

it's a package for latex, you know how you define packages to use in a general latex file, well, the chem package is just one of those packages... you can probably find it, it's called mhchem i believe.

### #6 gregdevid

gregdevid

Thinking

• Members
• 20 posts

Posted 17 March 2009 - 07:25 AM

Hi All,

Chemistry packages for using with the document typesetting system LaTeX. Includes packages for reactions, molecular formulae, R and S codes, chemistry journals, symmetry elements and even to draw chemical structures.

### #7 alexander

alexander

Dedicated Smart-ass

• Members
• 5722 posts

Posted 17 March 2009 - 09:06 AM

ok let me outline what the chemistry package here can do:
lets see simple stuff
amounts
[ce]{1/2NO3}[/ce]
isotopes
[ce]{^{227}_{90}Th+}[/ce]
symbols
[ce]{KCr(SO4)2*2.6H20}[/ce]
[ce]{RNO2^{-.}}[/ce]
[ce]{$\mu\hyphen$Cl}[/ce]
bonds
[ce]{A$\sbond$B$\dbond$C$\tbond$D}[/ce]
(note i just found a problem with the version of the package we are running, there will be an update to it, working on setting it up later on today, i will post when i figure it all out)

### #8 alexander

alexander

Dedicated Smart-ass

• Members
• 5722 posts

Posted 17 March 2009 - 01:34 PM

Version 3 is now on... there are some changes with bond (it now accepts values) also check these out (chemistry people may find it sexy )

lets see cool arrows with super and subscripts
[ce]CO2 + C ->[\alpha][\beta] 2CO[/ce]

This is a shortcut for calling ce with reaction arrows:
[ce]$A$ ->C[+H2O] $B$[/ce]

v now makes a down arrow
[ce]SO4^2- + Ba^2+ -> BaSO4 v[/ce]

[ce]Zn^2+
<=>[\ce{+ 2OH-}][\ce{+ 2H+}]
$\underset{\text{amphoteres Hydroxid}}{\ce{Zn(OH)2 v}}$
<=>C[+2OH-][{+ 2H+}]
$\underset{\text{Hydroxozikat}}{\cf{[Zn(OH)4]^2-}}$[/ce]

[ce]Hg^2+ ->[\ce{I-}]
$\underset{\mathrm{red}}{\ce{HgI2}}$
->C[I-]
$\underset{\mathrm{red}}{\ce{[Hg^{II}I4]^2-}}$[/ce]

[ce]$x\,$ Na(NH4)HPO4 ->[\Delta] (NaPO3)_{x} + $x\,$ NH3^ + $x\,$ H2O[/ce]

only restriction i found is inability to call math functions within sub or super scripts like this: (NaPO3)_{$x$}

one line stuff is mostly working... now i need to figure out alignment

### #9 alexander

alexander

Dedicated Smart-ass

• Members
• 5722 posts

Posted 17 March 2009 - 01:37 PM

oh and something to do with the dvi converter, it does not properly convert dashed lines in chem for some reasons, so things like \bond{~=} do not look quite right

[ce]A\bond{~=}B[/ce]

### #10 Mercedes Benzene

Mercedes Benzene

Student

• Moderators
• 2950 posts

Posted 18 March 2009 - 08:08 PM

Those are some VERY sexy changes indeed Alexander. I can't wait to start using them!

A Note On: Delicious chemical updates.
MB

### #11 tekayo

tekayo

Thinking

• Members
• 14 posts

Posted 02 December 2009 - 09:45 AM

really usefull for me, thanks a lot.

### #12 hardy5

hardy5

Thinking

• Members
• 10 posts

Posted 28 April 2012 - 01:32 AM