texmf-dist/doc/latex/circuit-macros/examples/testpdf.tex
raw| 1 | % testpdf.tex |
| 2 | % To test circuit files using pdflatex |
| 3 | % 1. Use m4 and dpic -p to create test.tex as usual |
| 4 | % 2. Type ps4pdf.sh testpdf |
| 5 | % See http://www.tug.org/TUGboat/Articles/tb22-4/tb72voss4pdf.pdf |
| 6 | % |
| 7 | \documentclass[11pt]{article} |
| 8 | \usepackage{ps4pdf} |
| 9 | \usepackage{siunitx} |
| 10 | \PSforPDF{ \usepackage{pstricks} } |
| 11 | |
| 12 | \pagestyle{empty} \thispagestyle{empty} |
| 13 | \begin{document} |
| 14 | \PSforPDF{ \input{test.tex} } |
| 15 | \end{document} |