Changes

Jump to navigation Jump to search
1,132 bytes added ,  17:21, 8 June 2020
m
no edit summary
The main difference with the official chemic module is that the <code>\modlecule</code> from this example uses the same font as the one in surrounding text, while the official module always uses roman font (which is probably the proper way if you're writing dozens of formulas). Hans's module is also more powerful (can do much more trickery than a simple conversion of subscripts and superscripts). See the manuals listed above.
 
Alternatively one can setup the <code>style</code> parameter used for chemical formulas manually:
 
<texcode>
\setupchemical[style=\bs]
</texcode>
== Chemical structures ==
[[Image:chemistry_example3.png]]
 An example of an amino acid: Histidine (Ace-His-Nme).The rest of the amino acids are shown in [http://tt4sci.wordpress.com/2009/08/05/drawing-organic-molecules-in-latex-ii-amino-acids/ TT4Sci]<texcode>\usepackage{color}\usepackage{m-pictex,m-ch-en} \definechemical[Categoryradical]{\chemical[SAVE,ONE,SB768,Z068][C,H,H]\chemical[MOV7,ONE,Z0][C]\chemical[MOV7,FIVE,ROT4,SB12345,EB42,Z1235,SR125,RZ125,RESTORE][N,C,N,C,H,H,H]}\startchemical[scale=big,size=big,left=2600,right=4200,bottom=2800,top=4500]\bottext{Histidine}\chemical[SIX,SB23]\chemical[PB:Z1,SAVE,radical,RESTORE,PE]\chemical[PB:Z2,ONE,SB37,Z03,PE][\SL{C^{\alpha}},H^{\alpha 1}]\chemical[PB:Z3,SIX,Z5,SB4,Z4,PE][N,H]{\color{blue}\chemical[PB:Z4,SIX,Z2,SB2,DB1,Z31,PE][C{\text{\tiny{-1}}},\SR{H_3C},O{\text{\tiny{-1}}}]}\chemical[SIX,MOV1,SB23]\chemical[PB:Z3,SIX,Z5,DB4,Z4,PE][C,O]{\color{red}\chemical[PB:Z2,SIX,Z4,SB34,Z53,PE][N{\text{\tiny{+1}}},H{\text{\tiny{+1}}},\SL{CH_3}]}\stopchemical</texcode> [[Image:Graphicshistidine.png]] [[Category:ChemistrySciences]]

Navigation menu