Skip to content

Commit 6d02bed

Browse files
committed
Temp fix
1 parent b13870b commit 6d02bed

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/template.latex

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -229,19 +229,6 @@ $endif$
229229
\pretocmd{\figure}{\toggletrue{infigure}}{}{} % Set toggle when entering/exiting figure environments
230230
\apptocmd{\endfigure}{\togglefalse{infigure}}{}{}
231231

232-
\let\oldincludegraphics\includegraphics % Save the original includegraphics command
233-
234-
\renewcommand{\includegraphics}[2][]{ % Redefine includegraphics to check if it's already in a figure
235-
\iftoggle{infigure}{%
236-
\oldincludegraphics[#1]{#2}%
237-
}{%
238-
\begin{figure}
239-
\centering
240-
\oldincludegraphics[#1]{#2}
241-
\end{figure}%
242-
}%
243-
}
244-
245232
% Remove "Figure X." prefix from captions
246233
\usepackage{caption}
247234
\captionsetup[figure]{labelformat=empty}

0 commit comments

Comments
 (0)