X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/888d5e58c8cff289ff56a9282608c153b402191c..02840f3dba856d042fe27a0adfb0367346447cda:/doc/sod.sty diff --git a/doc/sod.sty b/doc/sod.sty index d6a8a65..f1ba880 100644 --- a/doc/sod.sty +++ b/doc/sod.sty @@ -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} @@ -152,6 +152,7 @@ \def\@progcr@ii#1{\csname @progcr@#1\endcsname\ignorespaces} \@namedef{@progcr@+}{\prog@@cr[\medskipamount]} \@namedef{@progcr@-}{\prog@@cr*[\jot]} +\def\macsl{\`\textbackslash\hskip\leftmargin} %% Put a chunk of text in a box. \newenvironment{boxy}[1][\q@]{%