\write a rimska cisla ve versalkach
Z. Wagner
wagner at beba.cesnet.cz
Thu Jun 25 18:35:50 CEST 1998
Dobry den,
po mnoha neuspesnych pokusech zadam o radu chytrejsi (La)TeXisty. Mam v
knize kapitoly cislovany rimsky s pouzitim
\def\thechapter{\Roman{chapter}}
Nyni potrebuji nazvy kapitol vcetne rimskych cisel pomoci \write zapsat do
souboru, ktery bude zpracovavan jinym programem. Bohuzel \Roman obsahuje
\uppercase, coz je primitiv a pri \write se tudiz neexpanduje. V souboru
pak nemam V, ale \uppercase{v}. Chtel jsem to obejit pomoci
\MakeUppercase, ale nepodarilo se.
Aby me pochopili i plainisti neznali LaTeXu, mam nekde
\newcount\c at chapter
\global\c at chapter=5
a provedu \write\somefile{\thechapter}
Potrebuji nadefinovat \thechapter tak, aby ve vystupnim souboru bylo V,
nikoliv konstrukce s \uppercase. Pripominam, ze kapitol je hodne, takze
reseni s \ifcase se mi nelibi.
Predem velice dekuji.
Zdenek Wagner
E. Hala Laboratory of Thermodynamics,
Institute of Chemical Process Fundamentals
of the Academy of Sciences of the Czech Republic
e-mail:wagner at mbox.cesnet.cz or wagner at icpf.cas.cz
Local editor of the Bulletin of the Czech and Slovak TeX Users Group,
member of the CSTUG board
e-mail:Zdenek.Wagner at cstug.cz or bulletin at cstug.cz or zpravodaj at cstug.cz
see also http://www.icpf.cas.cz/wagner/
http://www.cstug.cz/
More information about the csTeX
mailing list