Code: Select all
\begin{figure}
\input{figure1.tex}
\end{figure}
\begin{figure}
\input{figure2.tex}
\end{figure}
Code: Select all
\begin{tikzpicture}
%%% .... tikz code ....
\node [options] at (position) {
\parbox{\linewidth}{
\captionsetup{font={large}}
\caption{\label{fig:fig1}Figure caption}
}};
\end{tikzpicture}
In the generated document both images have the same number though (e.g. both images are shown as "Figure 4.5")
If I modify the original code to
Code: Select all
\begin{figure}
\input{figure1.tex}
\stepcounter{figure}
\end{figure}
\begin{figure}
\input{figure2.tex}
\stepcounter{figure}
\end{figure}
Does
\input
do something strange with counters? How can I fix this so that both of the inputted images have distinct numbers?See this question for more context on the tikzpictures