From 6d15bdee882fd372c766c5d194dddb3273945040 Mon Sep 17 00:00:00 2001 From: Erwan Normand Date: Fri, 28 Jun 2024 00:49:55 +0200 Subject: [PATCH] Group ref commands --- utils/commands.tex | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/utils/commands.tex b/utils/commands.tex index ac16289..c94ac04 100644 --- a/utils/commands.tex +++ b/utils/commands.tex @@ -19,8 +19,6 @@ %% Citations and references \newcommand{\citeauthorcite}[1]{\citeauthor*{#1}~\cite{#1}} -\newcommand{\secref}[1]{Sec.~\ref{sec:#1}} - %% Figures % example: \fig[1]{universe}{The Universe}[Short title for list of figures] @@ -43,9 +41,6 @@ \end{figure*}% } -\newcommand{\figref}[1]{Fig.~\ref{fig:#1}} - - %% Sub-figures % example: % \begin{subfigs}{label}{Title}[Short title for list of figures] @@ -114,8 +109,6 @@ %% Maths -\renewcommand{\eqref}[1]{Eq.~\ref{eq:#1}} - \newcommand{\measure}[3]{$\mathrm{#1} = \qty{#2}{#3}$} \newcommand{\chisqr}[3]{$\chi^2(#1, N=#2) = #3$} @@ -168,6 +161,13 @@ } +%% 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}} + + %% Structure \newcommand{\chapterstartoc}[1]{\chapter*{#1}\addcontentsline{toc}{chapter}{#1}} \newcommand{\chapterstarbookmark}[1]{\pdfbookmark[chapter]{#1}{#1}\chapter*{#1}} @@ -213,7 +213,9 @@ \newcommand{\tabrow}[1]{#1 \\ \hline} -\newcommand{\tabref}[1]{Table~\ref{tab:#1}} + +%% Other +\newcommand{\hline}{\par\noindent\rule{\textwidth}{0.4pt}} % Horizontal line %% User studies