From 96c2fc9fad96ffeeffcf3a3cfab6e3be59a5afab Mon Sep 17 00:00:00 2001 From: Emanuel Duss Date: Fri, 29 Dec 2023 20:08:23 +0100 Subject: [PATCH] Added file-write using LaTeX --- _gtfobins/latex.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/_gtfobins/latex.md b/_gtfobins/latex.md index 17919a0..30e2f8e 100644 --- a/_gtfobins/latex.md +++ b/_gtfobins/latex.md @@ -8,6 +8,9 @@ functions: code: | latex '\documentclass{article}\usepackage{verbatim}\begin{document}\verbatiminput{file_to_read}\end{document}' strings article.dvi + file-write: + - code: | + latex '\documentclass{article}\begin{document}\immediate\openout\tempfile=file_to_write\immediate\write\tempfile{content_to_write}\end{document}' sudo: - description: The read file will be part of the output. code: |