Perl and its buffer (though)
Hi there...
I work with latex and use several figure files that I create with xfig so I have .fig files that need to be converted to .pstex and/or .pstex_t to be included. This is done with "fig2dev". Since I change the figures, I use a Makefile to reconvert them on-demand as needed. However, recently I've found myself creating and deleting several figures a lot, so to maintain the Makefile became not only tedious, but a source of mistakes. I decided to write a perl script to parse the latex file to find the figure inclusions and create the Makefile. So far, everything was ok. The remaining problem was that figures have to be magnified (size-changed), and this information is not in the latex file but depend on how they look: I choose the size manually in the Makefile. Therefore, I need the script first to parse the old Makefile to look for existing definitions and use them to write new ones. This also worked "ok": If I run Code:
tex2make document.tex Code:
tex2make document.tex > Makefile Do you have any idea about what could be happening here? Thank you very much in advance... |
I think we'll need the Perl src to figure(!) it out :)
|
Well, I was thinking that my explanation wasn't good at all...
Code:
#!/usr/bin/perl |
All times are GMT -5. The time now is 07:33 PM. |