Jump to content
Science Forums

Chemistry LaTeX Package: Please Read


Mercedes Benzene

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:

 

http://hypography.com/forums/physics-mathematics/12086-latex-update-read-before-posting.html?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

Link to comment
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

Link to comment
Share on other sites

  • 1 month later...
  • 11 months later...

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)

Link to comment
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 ;)

Link to comment
Share on other sites

  • 8 months later...
  • 2 years later...
  • 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.

Link to comment
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

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

Loading...
×
×
  • Create New...