We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b13870b commit 6d02bedCopy full SHA for 6d02bed
src/template.latex
@@ -229,19 +229,6 @@ $endif$
229
\pretocmd{\figure}{\toggletrue{infigure}}{}{} % Set toggle when entering/exiting figure environments
230
\apptocmd{\endfigure}{\togglefalse{infigure}}{}{}
231
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
245
% Remove "Figure X." prefix from captions
246
\usepackage{caption}
247
\captionsetup[figure]{labelformat=empty}
0 commit comments