File tree Expand file tree Collapse file tree 2 files changed +1236
-0
lines changed Expand file tree Collapse file tree 2 files changed +1236
-0
lines changed Original file line number Diff line number Diff line change 658
658
{
659
659
\end {longlibtab2}
660
660
}
661
+
662
+ % usage: \begin{lib2dtab}{TITLE}{XREF}{HDR1}{HDR2}
663
+ % produces a table with one heading column followed by 2 data columns.
664
+ % used for 2D requirements tables, such as optional::operator= effects
665
+ % tables.
666
+ \newenvironment {lib2dtab2}[4]
667
+ {
668
+ % % no lines in the top-left cell, and leave a gap around the headers
669
+ % % FIXME: I tried to use hhline here, but it doesn't appear to support
670
+ % % the join between the leftmost top header and the topmost left header,
671
+ % % so we fake it with an empty row and column.
672
+ \newcommand {\topline }{\cline {3-4}}
673
+ \newcommand {\rowsep }{\cline {1-1}\cline {3-4}}
674
+ \newcommand {\capsep }{
675
+ \topline
676
+ \multicolumn {4}{c}{}\\ [-0.8\normalbaselineskip ]
677
+ \rowsep
678
+ }
679
+ \newcommand {\bottomline }{\rowsep }
680
+ \newcommand {\hdstyle }[1]{\textbf {##1 }}
681
+ \newcommand {\rowhdr }[1]{\hdstyle {##1}&}
682
+ \newcommand {\colhdr }[1]{\multicolumn {1}{|>{\centering }m{1.8in}|}{\hdstyle {##1}}}
683
+ % % FIXME: figure out a way to reuse floattable here
684
+ \begin {table }[htbp]
685
+ \caption {\label {#2 }#1}
686
+ \begin {center }
687
+ \begin {tabular }{|>{\centering }m{1.2in}|@{}p{0.2\normalbaselineskip }@{}|m{1.8in}|m{1.8in}|}
688
+ % % table header
689
+ \topline
690
+ \multicolumn {1}{c}{}&&\colhdr {#3}&\colhdr {#4}\\
691
+ \capsep
692
+ }
693
+ {
694
+ \bottomline
695
+ \end {tabular}
696
+ \end {center}
697
+ \end {table}
698
+ }
You can’t perform that action at this time.
0 commit comments