~mdw
/
sod
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ea92e7
)
doc/sod.sty: Add macro for table column heads.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 30 Aug 2015 09:58:38 +0000
(10:58 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 20 Sep 2015 09:36:13 +0000
(10:36 +0100)
Somewhat unpleasant.
doc/sod.sty
patch
|
blob
|
blame
|
history
diff --git
a/doc/sod.sty
b/doc/sod.sty
index
2894feb
..
54d8c53
100644
(file)
--- a/
doc/sod.sty
+++ b/
doc/sod.sty
@@
-41,6
+41,16
@@
\let\implies\Rightarrow
\let\epsilon\varepsilon
+%% A table heading cell. Clone and hack \multicolumn.
+\def\thd{\omit\@ifnextchar[\thd@{\thd@[l]}}
+\def\thd@[#1]#2{%
+ \begingroup
+ \tab@multicol \tab@initread \let\tab@looped\tab@err@multi
+ \tab@preamble{}\def\tab@midtext{\bfseries#2}\tab@readpreamble{#1}%
+ \the\tab@preamble
+ \endgroup \ignorespaces
+}
+
%% Unix manpage references.
\def\man#1#2{\textbf{#1}(#2)}