#!/usr/bin/perl ###################################################################### # $Id: fragmaster.pl,v 1.3 2006/09/26 08:59:30 tvogel Exp $ # # fragmaster.pl # creates EPS and PDF graphics from source EPS and control files # with \psfrag commands # # Copyright (C) 2004 Tilman Vogel (dot at dot) # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # IMPORTANT: ALLOW DVIPS TO MAKE _PORTRAIT_ PS WITH WIDTH > HEIGHT # BY ADDING # # @ custom 0pt 0pt # # TO YOUR /usr/share/texmf/dvips/config/config.pdf # IF THIS ENTRY IS MISSING, DVIPS WILL GUESS ORIENTATION FROM # WIDTH / HEIGHT RATIO. THIS STILL CAN HAPPEN IN CASE YOUR INPUT EPS # MATCHES A STANDARD PAPER SIZE! # # Source files: # _fm.eps # a source EPS file # _fm # a control file containing \psfrag commands and optionally # special comments: # % fmclass: # use instead of "article" # % fmclassopt: # use as class options instead of "12pt" # % head: # % # % end head # causes to be put into the preamble # % fmopt: