Corrections

This commit is contained in:
2024-10-13 00:23:15 +02:00
parent ae2535debf
commit 13662fa735
23 changed files with 142 additions and 110 deletions

View File

@@ -12,7 +12,8 @@
\usepackage{bookmark} % Manage bookmarks
\usepackage{import} % Allow relative paths
\usepackage{pdfpages} % Include PDFs
\usepackage{rotating} % Landscape images and tables
\usepackage{pdflscape} % Landscape pages
\usepackage{afterpage} % Execute command after the next page break
% Formatting
\usepackage[autostyle]{csquotes} % For quotes

View File

@@ -35,13 +35,12 @@
\end{figure}%
}
\RenewDocumentCommand{\figwide}{O{1} O{htbp} m m O{}}{% #1 = width, #2 = position, #3 = filename, #4 = caption, #5 = additional caption
\begin{sidewaysfigure}[#2]
\centering%
\includegraphics[width=#1\linewidth]{#3}%
\caption[#4]{#4#5}%
\label{fig:#3}%
\end{sidewaysfigure}%
\RenewDocumentCommand{\figwide}{O{1} m m O{}}{% #1 = width, #2 = filename, #3 = caption, #4 = additional caption
\afterpage{%
\begin{landscape}%
\fig[#1][p]{#2}{#3}[#4]%
\end{landscape}%
}%
}
% example:
@@ -119,13 +118,12 @@
\end{table}%
}
\RenewDocumentEnvironment{tabwide}{O{htbp} m m O{}}{% #1 = position, #2 = label, #3 = title, #4 = additional caption
\begin{sidewaystable}[#1]%
\centering%
\caption[#3]{#3#4}%
\label{tab:#2}%
}{%
\end{sidewaystable}%
\RenewDocumentEnvironment{tabwide}{m m O{}}{% #1 = label, #2 = title, #3 = additional caption
\begin{landscape}
\begin{tab}[p]{#1}{#2}[#3]%
}{%
\end{tab}%
\end{landscape}%
}
% Local table of contents