Science Forums

## Recommended Posts

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:

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

Feel free to use this thread for practice!

Mercedes Benzene

##### Share on other sites

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. :thumbs_up

##### Share on other sites

Ahhh. Thank you very much Infinite. :rolleyes:

##### Share on other sites
• 1 month later...

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

##### Share on other sites

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.

##### Share on other sites
• 11 months later...

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.

##### Share on other sites

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)

##### Share on other sites

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 ;)

##### Share on other sites

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]

##### Share on other sites

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

A Note On: Delicious chemical updates.

MB

##### Share on other sites
• 8 months later...

really usefull for me, thanks a lot.

##### Share on other sites
• 2 years later...

##### Share on other sites
• 8 years later...
On 4/5/2008 at 2:29 AM, alexander said:

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.

hi

you are talking about package for latex. i think you can get all the details on google.

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.