Skip to content
Snippets Groups Projects
Commit 4c8df6f8 authored by Malin Freeborn's avatar Malin Freeborn
Browse files

make \sidepic universal

parent aaae074d
Branches
Tags
No related merge requests found
......@@ -218,30 +218,25 @@ bookmarks=true]%
\newcommand{\pic}[1]{
\noindent%
\IfFileExists{images/#1.jpg}{%
\includegraphics[width=\linewidth]{images/#1}
\IfFileExists{images/#1.svg}{%
\includegraphics[width=\linewidth]{images/#1.svg}
}{%
\noindent\includesvg[width=\linewidth]{images/#1}
\noindent\includesvg[width=\linewidth]{images/#1.jpg}
}
}
\newcommand{\sidepic}[2][5]{
\newcommand{\sidepic}[3][5]{
\needspace{2cm}\begin{wrapfigure}{R}{.#1\linewidth}
\noindent\includesvg[width=\linewidth]{images/#2}
\end{wrapfigure}
}
\newcommand{\sidejpg}[3][5]{
\iftoggle{verbose}{
\needspace{12em}%
\begin{wrapfigure}{R}{.#1\linewidth}
\noindent\includegraphics[width=\linewidth]{images/#2}
#3
\noindent%
\IfFileExists{images/#2.svg}{%
\includesvg[width=\linewidth]{images/#2.svg}
}{
\includesvg[width=\linewidth]{images/#2.jpg}
}
#3
\end{wrapfigure}
}
\noindent
}
\newcommand{\toppic}[2]{
\iftoggle{verbose}{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment