使用 llncs.sty documentclass 时,tikzexternalize 不会生成 PDF

使用 llncs.sty documentclass 时,tikzexternalize 不会生成 PDF

我正在使用 llncs documentclass 进行编写,并且想要将我的 tikz 图形外部化。这确实是不起作用的组合;我可以在不进行外部化的情况下在 llncs 中顺利编写,并且当使用例如 article documentclass 时,我可以顺利将我的 tikz 图形外部化。

我在 Linux 中的主目录下安装了 texlive 2014,并且在 ~/texlive/2014/texmf-dist/tex/latex/lncs 下安装了 llncs 文档类。

作为示例代码,请考虑以下最小示例:

\documentclass[11pt,a4paper]{llncs}
\usepackage{tikz}
\usetikzlibrary{external}
\tikzexternalize[prefix=tikzcache/]
\begin{document}
\begin{tikzpicture}
\draw (0,0) grid (3,3);
\end{tikzpicture}
\end{document}

当我查看生成的日志文件(例如 document-figure0.log)时,它看起来如下所示:

This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian) (format=pdflatex 2014.8.15)  6 OCT 2014 10:49
entering extended mode
 \write18 enabled.
 %&-line parsing enabled.
**\def\tikzexternalrealjob{document}\input{document}
(./document.tex

! LaTeX Error: File `llncs.cls' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: cls)

Enter file name: 
! Emergency stop.
<read *> 

l.2 ^^M

Here is how much of TeX's memory you used:
 13 strings out of 495028
 267 string characters out of 6181497
 45944 words of memory out of 5000000
 3319 multiletter control sequences out of 15000+600000
 3640 words of font info for 14 fonts, out of 8000000 for 9000
 14 hyphenation exceptions out of 8191
 11i,0n,7p,88b,8s stack positions out of 5000i,500n,10000p,200000b,80000s

!  ==> Fatal error occurred, no output PDF file produced!

相关内容