chiark
/
gitweb
/
~mdw
/
sod
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a3e1423
)
doc/sod.sty: Typeset code upright, even if surrounding text is italic.
author
Mark Wooding
<mdw@distorted.org.uk>
Thu, 26 May 2016 08:26:09 +0000
(09:26 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sat, 22 Jul 2017 17:13:31 +0000
(18:13 +0100)
doc/sod.sty
patch
|
blob
|
blame
|
history
diff --git
a/doc/sod.sty
b/doc/sod.sty
index d6a8a65e1c814e411ad259c73e14c0d17f04793c..1f653c940a18f325822a48eb3939bca47a54d5da 100644
(file)
--- a/
doc/sod.sty
+++ b/
doc/sod.sty
@@
-62,7
+62,7
@@
\let\syntright\empty
%% Literal code is in sans face.
\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\/}%
\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>{\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}
%% A handy abbreviation; `\\' itself is too good to steal.
\atdef \\{\textbackslash}