~mdw
/
sod
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d2f1db7
)
doc/sod.sty: Hoist `\@ifnextchar@preserve' further up.
author
Mark Wooding
<mdw@distorted.org.uk>
Mon, 5 Aug 2019 15:13:13 +0000
(16:13 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Mon, 5 Aug 2019 15:13:13 +0000
(16:13 +0100)
doc/sod.sty
patch
|
blob
|
blame
|
history
diff --git
a/doc/sod.sty
b/doc/sod.sty
index
531fce0
..
3560c62
100644
(file)
--- a/
doc/sod.sty
+++ b/
doc/sod.sty
@@
-116,6
+116,14
@@
\expandafter\@firstoftwo\expandafter\@scripts%
\else\@tempa\expandafter\@scripts\fi}
\expandafter\@firstoftwo\expandafter\@scripts%
\else\@tempa\expandafter\@scripts\fi}
+%% Lookahead without eating spaces.
+\def\@ifnextchar@preserve#1#2#3{%
+ \let\want@= #1\def\@tempa{#2}\def\@tempb{#3}%
+ \futurelet\nch@\@ifnch@p%
+}
+\def\@ifnch@p{%
+ \ifx\want@\nch@\expandafter\@tempa\else\expandafter\@tempb\fi}
+
%% Extra syntax for Lisp templates. These produce the maths-font versions of
%% characters, which should contrast well against the sans face used for
%% literals.
%% Extra syntax for Lisp templates. These produce the maths-font versions of
%% characters, which should contrast well against the sans face used for
%% literals.
@@
-363,13
+371,6
@@
}
\def\desc@end{\endlist\after@desc\global\let\after@desc\saved@after@desc}
}
\def\desc@end{\endlist\after@desc\global\let\after@desc\saved@after@desc}
-\def\@ifnextchar@preserve#1#2#3{%
- \let\want@= #1\def\@tempa{#2}\def\@tempb{#3}%
- \futurelet\nch@\@ifnch@p%
-}
-\def\@ifnch@p{%
- \ifx\want@\nch@\expandafter\@tempa\else\expandafter\@tempb\fi}
-
\@namedef{describe*}#1{\desc@begin{#1}}
\expandafter\let\csname enddescribe*\endcsname\desc@end
\def\describe{\parse@dhd\desc@}
\@namedef{describe*}#1{\desc@begin{#1}}
\expandafter\let\csname enddescribe*\endcsname\desc@end
\def\describe{\parse@dhd\desc@}