操作系统(环境)

操作系统(环境)

操作系统(环境)

TeX 3.141592653 (TeX Live 2023/Arch Linux)
kpathsea version 6.3.5
Copyright 2023 D.E. Knuth.

MWE(最小工作示例)

为了重现此错误,最小工作示例(main.tex)如下:

\documentclass{book}
\usepackage{tikz}
\usetikzlibrary{external}
\tikzexternalize[prefix=tikzdata/]

\usepackage{biblatex}
\usepackage{indextools}
\makeindex[title=Test Title, columns=3]

% \usepackage{tikz}
% \usetikzlibrary{external}
% \tikzexternalize[prefix=tikzdata/]

\begin{document}
\begin{tikzpicture}
    \draw (0,0) -- (1,1);
\end{tikzpicture}
\end{document}

并在父目录中创建文件夹tikzdata,初始目录树为

.
├── main.tex
└── tikzdata

设置好环境后,我们来重现一下错误。

问题描述

当同时加载indextools和使用 tikz 库时,编译使用命令externalmain.tex

pdflatex --shel-escape main.tex

我是否将tikz相关代码放在之前或之后indextools

它将通过以下错误消息:

(/usr/share/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrary
topaths.code.tex)))
Writing index file main.idx

(/usr/share/texmf-dist/tex/latex/pgf/frontendlayer/libraries/tikzlibraryexterna
l.code.tex
(/usr/share/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzexterna
lshared.code.tex))
No file main.aux.
*geometry* driver: auto-detecting
*geometry* detected driver: pdftex
(/usr/share/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (/usr/share/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty
(/usr/share/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))
(/usr/share/texmf-dist/tex/latex/biblatex/lbx/english.lbx)
No file main.bbl.
===== 'mode=convert with system call': Invoking 'pdflatex -halt-on-error -inter
action=batchmode -jobname "tikzdatamain-figure0" "\def\tikzexternalrealjob{main
}\input{main}"' ========

! Package tikz Error: Sorry, the system call 'pdflatex -halt-on-error -interact
ion=batchmode -jobname "tikzdatamain-figure0" "\def\tikzexternalrealjob{main}\i
nput{main}"' did NOT result in a usable output file 'tikzdatamain-figure0' (exp
ected one of .pdf:.jpg:.jpeg:.png:). Please verify that you have enabled system
 calls. For pdflatex, this is 'pdflatex -shell-escape'. Sometimes it is also na
med 'write 18' or something like that. Or maybe the command simply failed? Erro
r messages can be found in 'tikzdatamain-figure0.log'. If you continue now, I'l
l try to typeset the picture.

See the tikz package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.12 \end{tikzpicture}
                      
? 

我的努力

我看过indextools文档,只是看到indextools与类冲突memoir,但没有提到这个错误。indextools是一个很棒的包,但我该如何解决这个问题?谢谢!

相关内容