以下のコードだと私が「図1」としたい図が「図3」となってしまい、以後「図2」が「図1」、「図3」が「図2」とずれてしまいます。どのように直せば良いでしょうか。
\documentclass{jsarticle}
\usepackage{emathCap}
\usepackage{emathMw}
\begin{document}
\setlength\unitlength{10mm}
\begin{mawarikomi}{5cm}{
\begin{picture}(0,0)(0,0)
\put(0,0){\dashbox{0.2}(4,4){本当はこいつが図2}}
\end{picture}
\fgcaption{}\label{fg2}
\begin{picture}(0,5)(0,0)
\put(0,0){\dashbox{0.2}(4,4){本当はこいつが図3}}
\end{picture}
\fgcaption{}\label{fg3}
}
\begin{picture}(5,5)(0,0)
\put(0,0){\dashbox{0.2}(4,4){本当はこいつが図1}}
\end{picture}
\fgcaption{}\label{fg1}
\end{mawarikomi}
\end{document}
こんなことしないでしょうが...
\documentclass{jsarticle}
\usepackage{emathCap}
\usepackage{emathMw}
\makeatletter
\def\zurasu#1{\advance \c@figure by #1}
\makeatother
\begin{document}
\setlength\unitlength{10mm}
\begin{mawarikomi}{5cm}{
\begin{picture}(0,0)(0,0)
\put(0,0){\dashbox{0.2}(4,4){本当はこいつが図2}}
\end{picture}
\zurasu1
\fgcaption{}\label{fg2}
\begin{picture}(0,5)(0,0)
\put(0,0){\dashbox{0.2}(4,4){本当はこいつが図3}}
\end{picture}
\fgcaption{}\label{fg3}
}
\begin{picture}(5,5)(0,0)
\put(0,0){\dashbox{0.2}(4,4){本当はこいつが図1}}
\end{picture}
\zurasu-3
\fgcaption{}\label{fg1}
\end{mawarikomi}
\zurasu2
\end{document}
\documentclass{jsarticle}
\usepackage{emathCap}
\usepackage{emathMw}
\makeatletter
\def\zurasu#1{\advance \c@figure by #1}
\makeatother
\begin{document}
\setlength\unitlength{10mm}
\begin{mawarikomi}{5cm}{
\begin{picture}(0,0)(0,0)
\put(0,0){\dashbox{0.2}(4,4){本当はこいつが図2}}
\end{picture}
\zurasu1
\fgcaption{}\label{fg2}
\begin{picture}(0,5)(0,0)
\put(0,0){\dashbox{0.2}(4,4){本当はこいつが図3}}
\end{picture}
\fgcaption{}\label{fg3}
}
\begin{picture}(5,5)(0,0)
\put(0,0){\dashbox{0.2}(4,4){本当はこいつが図1}}
\end{picture}
\zurasu-3
\fgcaption{}\label{fg1}
\end{mawarikomi}
\zurasu2
\end{document}