summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/psfragx/psfragx.m
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-05-07 22:49:34 +0000
committerKarl Berry <karl@freefriends.org>2012-05-07 22:49:34 +0000
commit00594439f07c4918772b72ae22786fb762b93f37 (patch)
tree353a0b80b614cb8c21a4fd9e2793400229ac556b /Master/texmf-dist/doc/latex/psfragx/psfragx.m
parent442cbc456148fe4adcdfeb54e0f381b2e95a4ad1 (diff)
psfragx 1.1 (7may12)
git-svn-id: svn://tug.org/texlive/trunk@26243 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/psfragx/psfragx.m')
-rw-r--r--Master/texmf-dist/doc/latex/psfragx/psfragx.m30
1 files changed, 30 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/psfragx/psfragx.m b/Master/texmf-dist/doc/latex/psfragx/psfragx.m
index c61488279a2..5c051b953b5 100644
--- a/Master/texmf-dist/doc/latex/psfragx/psfragx.m
+++ b/Master/texmf-dist/doc/latex/psfragx/psfragx.m
@@ -1,3 +1,28 @@
+%% psfragx.m [2012/05/02 v0.4 Pascal Kockaert]
+%%
+%% function psfragx(TeXname,EPSname,Outname)
+%% nargin=1 -> EPSname=TeXname
+%% nargin=2 -> Outname=EPSname
+%%
+%% Interleaves lines of TeXname.tex and EPSname.eps
+%% so that all the lines of EPSname.eps are copied in Outname.tex and
+%% lines from TeXname.tex starting with
+%% \psfrag
+%% and
+%% %<pfx>
+%% are written in Outname.eps, as a comment following the
+%% %%BoundigBox
+%% line.
+
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%%
+%% This file is currently maintained by Pascal Kockaert
function psfragx(TeXname,EPSname,Outname)
TMPname='psfragx_tmp';
@@ -12,6 +37,11 @@ TeXName=([TeXname,'.tex']);
EPSName=([EPSname,'.eps']);
OutName=([Outname,'.eps']);
+%% Uncomment for debugging purposes
+%% eval(['ls ',TeXName])
+%% eval(['ls ',EPSName])
+%% eval(['ls ',OutName])
+
BeginInput ='%%BoundingBox:';
BeginPSFRAG='%<pfx>\pfxbegin[1.0]{laprint}%';
EndPSFRAG ='%<pfx>\pfxend';