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:
57bcf70
)
doc/sod.sty: Make the `->' operator look like its component characters.
author
Mark Wooding
<mdw@distorted.org.uk>
Sat, 7 May 2016 11:49:24 +0000
(12:49 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 29 May 2016 13:40:39 +0000
(14:40 +0100)
Using an actual arrow is pretty, but it's not C.
doc/sod.sty
patch
|
blob
|
blame
|
history
diff --git
a/doc/sod.sty
b/doc/sod.sty
index 916d95ebedab531f85a3fa6c7d39748f0f0541fe..9fffa17d73b4fed33fe38f384c0eb599bf22acdd 100644
(file)
--- a/
doc/sod.sty
+++ b/
doc/sod.sty
@@
-116,7
+116,7
@@
\atdef !{\m@maybe|\@scripts}
\def\returns{\m@maybe\longrightarrow\m@maybe@end\hspace{0.5em}\ignorespaces}
\atdef >{\leavevmode\unskip\hspace{0.5em}\returns}
-\atdef -#1{\if>#1
{\ensuremath\rightarrow}
\fi}
+\atdef -#1{\if>#1
\hbox{--\raisebox{.4pt}{>}}\penalty200\relax
\fi}
%% Comment setting.
\atdef ;#1\\{\normalfont\itshape;#1\\}