[l2h] Problem with image positions

Nils Gundelach Nils@darktec.org
11 Aug 2002 02:43:31 +0200


Hi all,

i wrote a document with latex and ppchtex. ppchtex is great package for
writing texts with chemical structures.

latex2html doesn't support ppchtex style, so i put this in my
/etc/latex2html.conf:

&::process_commands_in_tex (<<_RAW_ARG_CMDS_);
chemie # {}
startchemie # <<\\stopchemie>>
_RAW_ARG_CMDS_

&::process_commands_in_tex (<<_RAW_ARG_CMDS_);
stellechemieein # [] 
_RAW_ARG_CMDS_

1;
#EOF

this is a typical ppchtex part:

\stellechemieein[groesse=klein,format=klein,breite=passend,hoehe=5500,oben=2000,unten=2000]
\hbox {
\startchemie
\chemie[ONE,DB1,SB46,Z1046][O,C,H_3C,H_3C]
\textunter{Aceton}
\stopchemie
\startchemie
\chemie[SPACE,GIVES,SPACE][+\ OH^-]
\stopchemie
\startchemie
\chemie[ONE,DB1,SB46,Z1046][O,C,H_3C,^-H_2C]
\textunter{Carbanion}
\stopchemie
\startchemie
\chemie[SPACE,PLUS,SPACE,CHEM][H_2O]
\stopchemie
}


I get an image for every \startchemie .. \stopchemie part and here is
the problem. The images have all a different height. This looks very
ugly in a browser because i can't center the images verticaly.

Is it possible to center the images ? The dvi file looks quite nice but
the html translation not :/ Maybe my definitions in /etc/latex2html.conf
are wrong.


Thanks for your time,
Nils
-- 
My Key "gpg --keyserver wwwkeys.eu.pgp.net --recv-key 45CD0073"
Fingerprint = F4D9 9274 6ED8 B227 A62A  33FA 0D2E 2414 45CD 0073
http://www.darktec.org /|\ darkbit@IRCNet on #irc.de #linux.de
Premature optimization is the root of all evil.  - D. Knuth