\begin{figure}
... some text
\caption{bla}
\label{foo} % only sometimes set
\end{figure}
into
\begin{fighere}{always a label}{the caption text}
... some text
\end{fighere}
I decided to take perl for the task. Ok, it took me some time to get into perl again after not having it used for years. But at the end the complete task took me 3 hours.
I am sure, doing it by hand, I would sit there the whole week. The pattern matching ability of perl and the associative arrays just make it a pleasure job.
No comments:
Post a Comment