Psani jednotek a chem. vzorcu

Stanislav Labik Stanislav.Labik at vscht.cz
Mon Dec 2 12:27:08 CET 1996


Tomas Rylek doporucil nasledujici upravu fontu:

> \documentstyle[11pt,czech]{article}
>
> \makeatletter
> \def\@chmf#1#2{\@for\@munit:=#2\do{\expandafter\@@chmf\@munit(#1)}}
> \def\@@chmf#1=#2(#3){\expandafter\font\csname#1mi\endcsname=#3#2}
>
> \def\setmathfont#1{\@chmf{#1}{fiv=5,six=6,sev=7,egt=8,nin=9,ten=10,%
> elv=10\@halfmag,twl=12,frtn=10\@magscale2,svtn=10\@magscale3,%
> twnty=10\@magscale4,twfv=10\@magscale5}\unboldmath}
>
> \def\mathrm{\setmathfont{cmr}\mathcode`.="302E\relax}
> \def\mathmi{\setmathfont{cmmi}\mathcode`.="303A\relax}
>
> \begin{document}
> \mathrm Tohle jsou chemicke vzorce: $H_2SO_4+2.Na=Na_2SO_4+H_2$.
>
> \mathmi A tohle je matematika: $3.e^{i\pi}+3=0$.
> \end{document}
>
Vse perfektne funguje pouze pro LaTeX209 pro novy LaTeX2e zustava vse
vsude kurziva. Pravdepodobne se tam pouziva jine pojmenovani
mathematickych fontu.

Nevite, co s tim ?


Stanislav Labik

Department of Physical Chemistry | E-mail: labik at vscht.cz
Institute of Chemical Technology | Phone: (422)24354093
Technicka 5                      | Fax:   (422)24310273
Prague 6                         |
166 28                           |




More information about the csTeX mailing list