chiark / gitweb /
doc/sod.sty: Typeset code upright, even if surrounding text is italic.
[sod] / doc / sod.sty
index d6a8a65e1c814e411ad259c73e14c0d17f04793c..1f653c940a18f325822a48eb3939bca47a54d5da 100644 (file)
@@ -62,7 +62,7 @@
 \let\syntright\empty
 
 %% Literal code is in sans face.
-\let\codeface\sffamily
+\def\codeface{\upshape\sffamily}
 \DeclareRobustCommand\code[1]{%
   \ifmmode\hbox\else\leavevmode\fi%
   {\normalfont\codeface\/#1\/}%
@@ -79,7 +79,7 @@
 \atdef <#1>{\synt{#1}\@scripts}
 \atdef "#1"{\lit*{#1}\@scripts}
 \atdef `#1'{\lit{#1}\@scripts}
-\atdef |#1|{\textsf{#1}\@scripts}
+\atdef |#1|{\lit*{#1}\@scripts}
 
 %% A handy abbreviation; `\\' itself is too good to steal.
 \atdef \\{\textbackslash}