Miscellaneous minor improvements.
This commit is contained in:
@@ -32,16 +32,25 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
\definecolor{WarningBoxBGColor}{RGB}{255, 221, 118}
|
\definecolor{WarningBoxBGColor}{RGB}{255, 221, 118}
|
||||||
\definecolor{WarningBoxFGColor}{RGB}{255, 192, 0}
|
\definecolor{WarningBoxFGColor}{RGB}{255, 150, 0}
|
||||||
|
|
||||||
\newcommand{\boxedcolor}[3][white]{
|
\RequirePackage{PrimeTeX/packages/Layout}
|
||||||
\fcolorbox{black}{#2}{\textcolor{#1}{#3}}
|
|
||||||
|
\newcommand{\boxedcolor}[3][white]{%
|
||||||
|
\providelength[\fboxsep]{\fboxsepdefault}%
|
||||||
|
\setlength{\fboxsep}{2pt}%
|
||||||
|
\fcolorbox{black}{#2}{\textcolor{#1}{#3}}%
|
||||||
|
\setlength{\fboxsep}{\fboxsepdefault}%
|
||||||
}
|
}
|
||||||
|
|
||||||
\newcommand{\warningbox}[2][\textwidth]{
|
\providelength[12.3599pt]{\warningboxsizeoffset}
|
||||||
\fcolorbox{WarningBoxFGColor}{WarningBoxBGColor}{
|
\newcommand{\warningbox}[2][\textwidth - \warningboxsizeoffset]{%
|
||||||
\begin{minipage}{#1}
|
\noindent%
|
||||||
#2
|
\fcolorbox{WarningBoxFGColor}{WarningBoxBGColor}{%
|
||||||
\end{minipage}
|
\noindent%
|
||||||
}
|
\begin{minipage}{#1}%
|
||||||
|
\raggedbottom%
|
||||||
|
#2%
|
||||||
|
\end{minipage}%
|
||||||
|
}%
|
||||||
}
|
}
|
||||||
@@ -75,31 +75,54 @@
|
|||||||
}%
|
}%
|
||||||
}
|
}
|
||||||
|
|
||||||
\newlength{\twinfigwidth}
|
\RequirePackage{tabularray}
|
||||||
\setlength{\twinfigwidth}{\textwidth / 2 + \bigfloatoverhang}
|
|
||||||
|
\providelength[3pt]{\twinfigspace}
|
||||||
|
\providelength[
|
||||||
|
\textwidth / 2 + \bigfloatoverhang - \twinfigspace
|
||||||
|
]{\twinfigwidth}
|
||||||
|
|
||||||
\newcommand{\twinfig}[7][\bigfloatoverhang]{%
|
\newcommand{\twinfig}[7][\bigfloatoverhang]{%
|
||||||
\bigfloat[#1]{figure}{htp}{%begin{table}[htp]%
|
\bigfloat[#1]{figure}{htp}{%
|
||||||
\begin{tabular}{*{2}{p{\twinfigwidth}}}%\begin{tblr}{Q[l,m]Q[l,m]}%
|
\begin{tblr}{%
|
||||||
\vfill%
|
colspec = {%
|
||||||
|
*{2}{%
|
||||||
|
Q[%
|
||||||
|
c,%
|
||||||
|
m,%
|
||||||
|
wd=\twinfigwidth,%
|
||||||
|
]%
|
||||||
|
}%
|
||||||
|
},%
|
||||||
|
vborder{1,Z} = {
|
||||||
|
leftspace = 0pt,%
|
||||||
|
rightspace = 0pt,%
|
||||||
|
},%
|
||||||
|
vborder{2} = {%
|
||||||
|
leftspace = \twinfigspace,%
|
||||||
|
rightspace = \twinfigspace,%
|
||||||
|
},%
|
||||||
|
}%
|
||||||
|
\vfill
|
||||||
\captionsetup{type=figure}%
|
\captionsetup{type=figure}%
|
||||||
\includegraphics[%
|
\includegraphics[%
|
||||||
keepaspectratio,width=\twinfigwidth%
|
keepaspectratio,width=\twinfigwidth%
|
||||||
]{#2}%
|
]{#2}%
|
||||||
\captionof{figure}{#4}%
|
\captionof{figure}{#4}%
|
||||||
\label{fig:#3}%
|
\label{fig:#3}
|
||||||
\vfill%
|
\vfill%
|
||||||
&%
|
&%
|
||||||
\vfill%
|
\vfill
|
||||||
\captionsetup{type=figure}%
|
\captionsetup{type=figure}%
|
||||||
\includegraphics[%
|
\includegraphics[%
|
||||||
keepaspectratio,width=\twinfigwidth%
|
keepaspectratio,width=\twinfigwidth%
|
||||||
]{#5}%
|
]{#5}%
|
||||||
\captionof{figure}{#7}%
|
\captionof{figure}{#7}%
|
||||||
\label{fig:#6}%
|
\label{fig:#6}
|
||||||
\vfill%
|
\vfill%
|
||||||
\end{tabular}%\end{tblr}%
|
\\%
|
||||||
}%\end{table}%
|
\end{tblr}%
|
||||||
|
}%
|
||||||
}
|
}
|
||||||
|
|
||||||
\newcommand{\wrapfig}[6][0in]{%
|
\newcommand{\wrapfig}[6][0in]{%
|
||||||
|
|||||||
@@ -4,6 +4,16 @@
|
|||||||
% Suppress warning about \showhyphens being changed.
|
% Suppress warning about \showhyphens being changed.
|
||||||
\let\CheckCommand\providecommand
|
\let\CheckCommand\providecommand
|
||||||
|
|
||||||
|
%\usepackage{ifmtarg}
|
||||||
|
|
||||||
|
\providecommand{\providelength}[2][0pt]{%
|
||||||
|
\ifdeflength{#2}{% It is already defined!
|
||||||
|
}{% Not defined, so define it!
|
||||||
|
\newlength{#2}%
|
||||||
|
}%
|
||||||
|
\setlength{#2}{#1}%
|
||||||
|
}
|
||||||
|
|
||||||
\RequirePackage{microtype}
|
\RequirePackage{microtype}
|
||||||
|
|
||||||
% Page Layout
|
% Page Layout
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
%\UseTblrLibrary{varwidth}
|
%\UseTblrLibrary{varwidth}
|
||||||
|
|
||||||
\DeclareTblrTemplate{note-tag}{default}{\textsuperscript{\InsertTblrNoteTag}}
|
\DeclareTblrTemplate{note-tag}{default}{\textsuperscript{\InsertTblrNoteTag}}
|
||||||
|
\DeclareTblrTemplate{remark-tag}{default}{\strong{\InsertTblrRemarkTag}}
|
||||||
|
|
||||||
\NewTblrEnviron{tblrBoxout}
|
\NewTblrEnviron{tblrBoxout}
|
||||||
\SetTblrInner[tblrBoxout]{
|
\SetTblrInner[tblrBoxout]{
|
||||||
|
|||||||
Reference in New Issue
Block a user