Add \figwide, \tabwide
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
\usepackage{bookmark} % Manage bookmarks
|
\usepackage{bookmark} % Manage bookmarks
|
||||||
\usepackage{import} % Allow relative paths
|
\usepackage{import} % Allow relative paths
|
||||||
\usepackage{pdfpages} % Include PDFs
|
\usepackage{pdfpages} % Include PDFs
|
||||||
|
\usepackage{rotating} % Landscape images and tables
|
||||||
|
|
||||||
% Formatting
|
% Formatting
|
||||||
\usepackage[autostyle]{csquotes} % For quotes
|
\usepackage[autostyle]{csquotes} % For quotes
|
||||||
|
|||||||
@@ -51,6 +51,15 @@
|
|||||||
\end{figure}%
|
\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[#5]{#4#5}%
|
||||||
|
\label{fig:#3}%
|
||||||
|
\end{sidewaysfigure}%
|
||||||
|
}
|
||||||
|
|
||||||
% example:
|
% example:
|
||||||
% \begin{subfigs}{label}{Fig title}[Subfig titles]
|
% \begin{subfigs}{label}{Fig title}[Subfig titles]
|
||||||
% \subfig{subfig1}%
|
% \subfig{subfig1}%
|
||||||
@@ -93,6 +102,7 @@
|
|||||||
labelfont={sf,bf,up}, % sans-serif, bold, upright
|
labelfont={sf,bf,up}, % sans-serif, bold, upright
|
||||||
}
|
}
|
||||||
|
|
||||||
|
% Tables
|
||||||
\RenewDocumentEnvironment{tab}{O{htbp} m m O{}}{% #1 = position, #2 = label, #3 = title, #4 = additional caption
|
\RenewDocumentEnvironment{tab}{O{htbp} m m O{}}{% #1 = position, #2 = label, #3 = title, #4 = additional caption
|
||||||
\begin{table}[#1]%
|
\begin{table}[#1]%
|
||||||
\centering%
|
\centering%
|
||||||
@@ -101,3 +111,12 @@
|
|||||||
}{%
|
}{%
|
||||||
\end{table}%
|
\end{table}%
|
||||||
}
|
}
|
||||||
|
|
||||||
|
\RenewDocumentEnvironment{tabwide}{O{htbp} m m O{}}{% #1 = position, #2 = label, #3 = title, #4 = additional caption
|
||||||
|
\begin{sidewaystable}[#1]%
|
||||||
|
\centering%
|
||||||
|
\caption{#3#4}%
|
||||||
|
\label{tab:#2}%
|
||||||
|
}{%
|
||||||
|
\end{sidewaystable}%
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user