summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/auto-pst-pdf/example.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/auto-pst-pdf/example.tex
Initial commit
Diffstat (limited to 'macros/latex/contrib/auto-pst-pdf/example.tex')
-rw-r--r--macros/latex/contrib/auto-pst-pdf/example.tex21
1 files changed, 21 insertions, 0 deletions
diff --git a/macros/latex/contrib/auto-pst-pdf/example.tex b/macros/latex/contrib/auto-pst-pdf/example.tex
new file mode 100644
index 0000000000..b7639e851c
--- /dev/null
+++ b/macros/latex/contrib/auto-pst-pdf/example.tex
@@ -0,0 +1,21 @@
+\documentclass{article}
+\usepackage{psfrag}
+\usepackage[
+ latex={-interaction=nonstopmode},
+ crop=off,runs=2
+ ]{auto-pst-pdf}
+\begin{document}
+
+\section{External file}
+psfrag example with replacements defined in example-psfrag.tex:\par
+\fbox{\psfragfig{example}}
+
+\section{Override}
+the same example with a psfrag override (bottom left):\par
+\fbox{\psfragfig{example}[\psfrag{[Mp]}{$N_Q*$}]}
+
+\section{Cross reference}\label{sec:cross}
+the same example with a cross-reference in the label:\par
+\fbox{\psfragfig{example}[\psfrag{[Mp]}{\S\ref{sec:cross}}]}
+
+\end{document}