Miscellaneous minor improvements.

This commit is contained in:
2025-08-08 17:17:39 -05:00
parent 287c8fde8a
commit e897930bb9
5 changed files with 63 additions and 20 deletions

View File

@@ -75,31 +75,54 @@
}%
}
\newlength{\twinfigwidth}
\setlength{\twinfigwidth}{\textwidth / 2 + \bigfloatoverhang}
\RequirePackage{tabularray}
\providelength[3pt]{\twinfigspace}
\providelength[
\textwidth / 2 + \bigfloatoverhang - \twinfigspace
]{\twinfigwidth}
\newcommand{\twinfig}[7][\bigfloatoverhang]{%
\bigfloat[#1]{figure}{htp}{%begin{table}[htp]%
\begin{tabular}{*{2}{p{\twinfigwidth}}}%\begin{tblr}{Q[l,m]Q[l,m]}%
\vfill%
\bigfloat[#1]{figure}{htp}{%
\begin{tblr}{%
colspec = {%
*{2}{%
Q[%
c,%
m,%
wd=\twinfigwidth,%
]%
}%
},%
vborder{1,Z} = {
leftspace = 0pt,%
rightspace = 0pt,%
},%
vborder{2} = {%
leftspace = \twinfigspace,%
rightspace = \twinfigspace,%
},%
}%
\vfill
\captionsetup{type=figure}%
\includegraphics[%
keepaspectratio,width=\twinfigwidth%
]{#2}%
\captionof{figure}{#4}%
\label{fig:#3}%
\label{fig:#3}
\vfill%
&%
\vfill%
\vfill
\captionsetup{type=figure}%
\includegraphics[%
keepaspectratio,width=\twinfigwidth%
]{#5}%
\captionof{figure}{#7}%
\label{fig:#6}%
\label{fig:#6}
\vfill%
\end{tabular}%\end{tblr}%
}%\end{table}%
\\%
\end{tblr}%
}%
}
\newcommand{\wrapfig}[6][0in]{%