git subrepo pull (merge) utils

subrepo:
  subdir:   "utils"
  merged:   "8efe944"
upstream:
  origin:   "https://gitlab.inria.fr/whar/packages/latex-utils"
  branch:   "main"
  commit:   "8efe944"
git-subrepo:
  version:  "0.4.6"
  origin:   "???"
  commit:   "???"
This commit is contained in:
2024-08-13 10:11:31 +02:00
parent d28555ffcb
commit d3eb89b9f5
2 changed files with 10 additions and 11 deletions

View File

@@ -1,5 +1,4 @@
%% Packages required
\usepackage[export]{adjustbox} % For valign in subfigs
\usepackage[caption=false]{subfig} % Good looking subfigs
@@ -62,11 +61,11 @@
\end{figure*}%
}
\NewDocumentCommand{\subfig}{O{0.2} O{b} m o}{% #1 = width, #2 = valign, #3 = filename, #4 = caption
\IfValueTF{#4}{%
\subfloat[#4\label{fig:#3}]{\includegraphics[width=#1\linewidth,valign=#2]{#3}}%
\NewDocumentCommand{\subfig}{O{0.2} m o}{% #1 = width, #2 = filename, #3 = caption
\IfValueTF{#3}{%
\subfloat[#3\label{fig:#2}]{\includegraphics[width=#1\linewidth]{#2}}%
}{%
\subfloat{\includegraphics[width=#1\linewidth,valign=#2]{#3}}%
\subfloat{\includegraphics[width=#1\linewidth]{#2}}%
}%
\hfill%
}
@@ -158,10 +157,10 @@
%% References
\renewcommand{\eqref}[1]{Eq.~\ref{\labelprefix:eq:#1}}
\newcommand{\figref}[1]{Fig.~\ref{\labelprefix:fig:#1}}
\newcommand{\secref}[1]{Sec.~\ref{\labelprefix:sec:#1}}
\newcommand{\tabref}[1]{Table~\ref{\labelprefix:tab:#1}}
\renewcommand{\eqref}[1]{Eq.~\ref{eq:#1}}
\newcommand{\figref}[1]{Fig.~\ref{fig:#1}}
\newcommand{\secref}[1]{Sec.~\ref{sec:#1}}
\newcommand{\tabref}[1]{Table~\ref{tab:#1}}
%% Structure