]> mj.ucw.cz Git - ucwmac.git/blobdiff - ucw-ofs.tex
ucw-ref: Fixed bug in \pageid
[ucwmac.git] / ucw-ofs.tex
index e430f1094d028f1f767f7c4f06209934c2dbaa1e..5fae70d599b971cb4f8498099c45c61a55f46e9b 100644 (file)
@@ -2,9 +2,12 @@
 % Written by Martin Mares <mj@ucw.cz> in 2010 and placed into public domain
 % -------------------------------------------------------------------------
 
+\ucwdefmodule{ofs}
+
 \ifx\OFSversion\undefined
 \input ofs.tex
 % \detailfontmessages
+\nofontmessages
 \fi
 
 % We extend OFS's default CM family by several fonts: cmb, cmcsc
@@ -94,3 +97,7 @@
        \loadbbm
 }
 \def\twelvepoint{\settextsize{12}}
+
+% Re-define \tt, so that it works in both text and math mode
+\loadmathfam\ttfam[/cmtt\fotenc]
+\def\tt{\ifmmode\fam\ttfam\else\setfonts[CMTypewriter/]\fi}