这是我的 Plain Tex 文件(示例取自手册)
\input tikz.tex
\baselineskip=12pt
\hsize=6.3truein
\vsize=8.7truein
We are working on
\tikzpicture
\draw (-1.5,0) -- (1.5,0);
\draw (0,-1.5) -- (0,1.5);
\endtikzpicture.
\bye
这是我尝试使用 tex 进行编译时的日志(pdftex 运行良好)
This is TeX, Version 3.14159265 (TeX Live 2020/Debian) (preloaded format=tex 2020.10.11) 24 OCT 2020 22:32
**2020_10_19_tikz.tex
(./2020_10_19_tikz.tex
(/usr/share/texlive/texmf-dist/tex/plain/pgf/frontendlayer/tikz.tex
(/usr/share/texlive/texmf-dist/tex/plain/pgf/basiclayer/pgf.tex
(/usr/share/texlive/texmf-dist/tex/plain/pgf/utilities/pgfrcs.tex
(/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.tex
\pgfutil@everybye=\toks12
\pgfutil@tempdima=\dimen16
\pgfutil@tempdimb=\dimen17
! Undefined control sequence.
\pgfutil@IfUndefined #1->\ifcsname
#1\endcsname \expandafter \pgfutil@second...
l.849 \pgfutil@IfUndefined{directlua}
{%
? X
No pages of output.
答案1
\ifcsname
是原始 TeX 中不可用的扩展命令,因此etex
如果您想要 dvi 或pdftex
PDF,请使用该命令。
终端输出的开始应该是这样的
$ etex file
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020) (preloaded format=etex)
restricted \write18 enabled.
entering extended mode
(./file.tex
(/usr/local/texlive/2020/texmf-dist/tex/plain/pgf/frontendlayer/tikz.tex
注意进入扩展模式