summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/psfragx/example.pfx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/psfragx/example.pfx')
-rw-r--r--Master/texmf-dist/doc/latex/psfragx/example.pfx20
1 files changed, 20 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/psfragx/example.pfx b/Master/texmf-dist/doc/latex/psfragx/example.pfx
new file mode 100644
index 00000000000..312eaf750f3
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/psfragx/example.pfx
@@ -0,0 +1,20 @@
+\ignorespaces
+%% This is just a comment line
+
+%%% Default legends
+
+\psfrag{A}{$A_{\mbox{en}}$}
+\psfrag{B}[][][1][180]{B}
+
+%%% French variations of the legends
+
+\onlylanguage{french}
+\psfrag{A}{$A_{\mbox{fr}}$}
+\psfrag{B}[][][1][180]{\textcolor{red}{B}}
+\endonlylanguage
+
+%%% Alternative syntax.
+
+\iflanguage{french}
+ {\psfrag{W}{Titre}}
+ {\psfrag{W}{Title}}