Refine table formatting.
This commit is contained in:
@@ -41,16 +41,12 @@
|
|||||||
\colorlet{boxedcoloroutline}{black}
|
\colorlet{boxedcoloroutline}{black}
|
||||||
|
|
||||||
\NewDocumentCommand{\boxedcolor}{O{\rule{0pt}{1ex}\rule{1ex}{0pt}} m m}{%
|
\NewDocumentCommand{\boxedcolor}{O{\rule{0pt}{1ex}\rule{1ex}{0pt}} m m}{%
|
||||||
\providelength[\fboxsep]{\fboxsepdefault}%
|
{ % Temporarily set fboxrule and fboxsep.
|
||||||
\providelength[\fboxrule]{\fboxruledefault}%
|
|
||||||
%
|
|
||||||
\setlength{\fboxsep}{1pt}%
|
|
||||||
\setlength{\fboxrule}{0.2pt}%
|
\setlength{\fboxrule}{0.2pt}%
|
||||||
|
\setlength{\fboxsep}{1pt}%
|
||||||
%
|
%
|
||||||
\fcolorbox{boxedcoloroutline}{#2}{\color{#3}\strut{}#1}%
|
\fcolorbox{boxedcoloroutline}{#2}{\color{#3}\strut{}#1}%
|
||||||
%
|
}%
|
||||||
\setlength{\fboxsep}{\fboxsepdefault}%
|
|
||||||
\setlength{\fboxrule}{\fboxruledefault}%
|
|
||||||
}
|
}
|
||||||
|
|
||||||
\providelength[12.3599pt]{\warningboxsizeoffset}
|
\providelength[12.3599pt]{\warningboxsizeoffset}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
\let\CheckCommand\providecommand
|
\let\CheckCommand\providecommand
|
||||||
% Suppress "Underfull \hbox" infos.
|
% Suppress "Underfull \hbox" infos.
|
||||||
\hbadness=10000
|
\hbadness=10000
|
||||||
% Suppress small overfill infos.
|
% Suppress small overfull infos.
|
||||||
\hfuzz = 6.0pt
|
\hfuzz = 6.0pt
|
||||||
\vfuzz = 0.0pt
|
\vfuzz = 0.0pt
|
||||||
|
|
||||||
@@ -86,28 +86,27 @@
|
|||||||
\newlength{\bigfloatoverhang}
|
\newlength{\bigfloatoverhang}
|
||||||
\setlength{\bigfloatoverhang}{0.81in}
|
\setlength{\bigfloatoverhang}{0.81in}
|
||||||
|
|
||||||
\NewDocumentCommand{\bigfloat}{O{\bigfloatoverhang} m m +m}{%
|
\providecommand{\adjwidthtype}{}
|
||||||
\begin{#2}[#3]%
|
|
||||||
\ifthenelse{\boolean{isElectronic}}{%
|
\NewDocumentCommand{\bigfloat}{
|
||||||
% adjustwidth adjusts all pages the same.
|
O{\bigfloatoverhang} m m +m O{\bigfloatoffset}
|
||||||
\begin{adjustwidth}{-#1+\bigfloatoffset}{-#1-\bigfloatoffset}%
|
|
||||||
\begin{minipage}{#1 * 2 + \textwidth}%
|
|
||||||
\ifthenelse{\boolean{isDraft}}{%
|
|
||||||
\rule{\textwidth}{1pt}\zws%
|
|
||||||
}{}%
|
|
||||||
#4%
|
|
||||||
\end{minipage}%
|
|
||||||
\end{adjustwidth}%
|
|
||||||
}{%
|
}{%
|
||||||
% adjustwidth* accounts for twosided document.
|
\ifthenelse{\boolean{isElectronic}}{%
|
||||||
\begin{adjustwidth*}{-#1+\bigfloatoffset}{-#1-\bigfloatoffset}%
|
\bfloat{#1}{#2}{#3}{#4}{#5}{adjustwidth}%
|
||||||
|
}{%
|
||||||
|
\bfloat{#1}{#2}{#3}{#4}{#5}{adjustwidth*}%
|
||||||
|
}%
|
||||||
|
}
|
||||||
|
|
||||||
|
\NewDocumentCommand{\bfloat}{m m m +m m m}{
|
||||||
|
\begin{#2}[#3]%
|
||||||
|
\begin{#6}{-#1+#5}{-#1-#5}%
|
||||||
\begin{minipage}{#1 * 2 + \textwidth}%
|
\begin{minipage}{#1 * 2 + \textwidth}%
|
||||||
\ifthenelse{\boolean{isDraft}}{%
|
\ifthenelse{\boolean{isDraft}}{%
|
||||||
\rule{\textwidth}{1pt}\zws%
|
\rule{\textwidth}{1pt}\zws%
|
||||||
}{}%
|
}{}%
|
||||||
#4%
|
#4%
|
||||||
\end{minipage}%
|
\end{minipage}%
|
||||||
\end{adjustwidth*}%
|
\end{#6}%
|
||||||
}%
|
|
||||||
\end{#2}%
|
\end{#2}%
|
||||||
}
|
}
|
||||||
@@ -4,20 +4,30 @@
|
|||||||
% Table formatting.
|
% Table formatting.
|
||||||
\RequirePackage{tabularray}
|
\RequirePackage{tabularray}
|
||||||
|
|
||||||
% Enable putting a list in a tabularray
|
\UseTblrLibrary{siunitx}
|
||||||
%\UseTblrLibrary{varwidth}
|
|
||||||
|
|
||||||
\renewcommand{\TblrOverlap}[1]{#1}
|
\SetTblrInner{
|
||||||
|
rowhead = 1,
|
||||||
|
row{1} = {font=\bfseries},
|
||||||
|
hline{1,Z} = {0.6pt},
|
||||||
|
hline{2} = {0.4pt},
|
||||||
|
}
|
||||||
|
|
||||||
% \DeclareTblrTemplate{note-tag}{default}{
|
%\renewcommand{\TblrOverlap}[1]{#1}
|
||||||
% \textsuperscript{\textrm{\InsertTblrNoteTag}}
|
|
||||||
% }
|
|
||||||
%\DeclareTblrTemplate{note-sep}{default}{\space}
|
|
||||||
|
|
||||||
\DeclareTblrTemplate{remark-tag}{default}{
|
\DeclareTblrTemplate{remark-tag}{default}{
|
||||||
\strong{\InsertTblrRemarkTag}
|
\strong{\InsertTblrRemarkTag}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
\NewTblrEnviron{tblrBanded}
|
||||||
|
\SetTblrInner[tblrBanded]{
|
||||||
|
rowhead = 1,
|
||||||
|
row{odd} = {paleGray},
|
||||||
|
row{1} = {bg=pageColor, font=\bfseries},
|
||||||
|
hline{1,Z} = {0.6pt},
|
||||||
|
hline{2} = {0.4pt},
|
||||||
|
}
|
||||||
|
|
||||||
\NewTblrEnviron{tblrBoxout}
|
\NewTblrEnviron{tblrBoxout}
|
||||||
\SetTblrInner[tblrBoxout]{
|
\SetTblrInner[tblrBoxout]{
|
||||||
colspec = {Q[c,h]X[1,m]},
|
colspec = {Q[c,h]X[1,m]},
|
||||||
@@ -29,18 +39,6 @@
|
|||||||
columns = {PrimePaleBlue},
|
columns = {PrimePaleBlue},
|
||||||
}
|
}
|
||||||
|
|
||||||
\NewTblrEnviron{tblrBanded}
|
|
||||||
\SetTblrOuter[tblrBanded]{
|
|
||||||
tall,
|
|
||||||
}
|
|
||||||
\SetTblrInner[tblrBanded]{
|
|
||||||
rowhead = 1,
|
|
||||||
row{odd} = {paleGray},
|
|
||||||
row{1} = {bg=pageColor, font=\bfseries},
|
|
||||||
hline{1,Z} = {0.6pt},
|
|
||||||
hline{2} = {0.4pt},
|
|
||||||
}
|
|
||||||
|
|
||||||
\NewTblrTableCommand{\midtitle}[1][pageColor]{
|
\NewTblrTableCommand{\midtitle}[1][pageColor]{
|
||||||
\SetCell[c=2]{
|
\SetCell[c=2]{
|
||||||
c,
|
c,
|
||||||
|
|||||||
Reference in New Issue
Block a user