我的 Win10 机器上安装了全新更新的 MikTeX 2.9 (64 位)。我将其与 eclipse neon (Neon.3 Release (4.6.3)) 和 texlipse (1.5.0) 插件一起使用。我安装了 PDF4Eclipse 1.1.0。
编辑:使用 TeXnicCenter 和相同的 MikTeX Distribution 可以正常工作。所以我认为问题出在 eclipse 或 texlipse 插件上。
建筑的设置如下:
Output: pdf
builder: xelatex.exe
build parameter: -synctex=1 -interaction=nonstopmode --src-specials "%input"
每次我想构建我的 latex 项目时都会失败。eclipse 中的控制台显示:
running: D:\Programme\MiKTeX\miktex\bin\x64\xelatex.exe -synctex=1 -interaction=nonstopmode --src-specials GenerateRP.tex
xelatex.exe> This is XeTeX, Version 3.14159265-2.6-0.99998 (MiKTeX 2.9.6400 64-bit)
xelatex.exe> entering extended mode
xelatex.exe> (GenerateRP.tex
xelatex.exe> LaTeX2e <2017-04-15>
xelatex.exe> Babel <3.14> and hyphenation patterns for 76 language(s) loaded.
xelatex.exe> (../sources/main.tex (../sources/template.tex
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\base\article.cls
xelatex.exe> Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\base\size12.clo))
xelatex.exe> (D:\Programme\MiKTeX\tex\generic\babel\babel.sty
xelatex.exe> (D:\Programme\MiKTeX\tex\generic\babel\switch.def)
xelatex.exe> *************************************
xelatex.exe> * Local config file bblopts.cfg used
xelatex.exe> *
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\arabi\bblopts.cfg)
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\babel-german\ngerman.ldf
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\babel-german\ngermanb.ldf
xelatex.exe> (D:\Programme\MiKTeX\tex\generic\babel\babel.def
xelatex.exe> (D:\Programme\MiKTeX\tex\generic\babel\switch.def)
xelatex.exe> (D:\Programme\MiKTeX\tex\generic\babel\xebabel.def)))))
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\etoolbox\etoolbox.sty)
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\geometry\geometry.sty
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\graphics\keyval.sty)
xelatex.exe> (D:\Programme\MiKTeX\tex\generic\oberdiek\ifpdf.sty)
xelatex.exe> (D:\Programme\MiKTeX\tex\generic\oberdiek\ifvtex.sty)
xelatex.exe> (D:\Programme\MiKTeX\tex\generic\ifxetex\ifxetex.sty)
xelatex.exe> (D:\Programme\MiKTeX\tex\xelatex\xetexconfig\geometry.cfg))
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\tools\tabularx.sty
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\tools\array.sty))
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\ltablex\ltablex.sty
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\tools\longtable.sty))
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\fancybox\fancybox.sty
xelatex.exe> Style option: `fancybox' v1.4 <2010/05/15> (tvz)
xelatex.exe> ) (D:\Programme\MiKTeX\tex\latex\graphics\graphicx.sty
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\graphics\graphics.sty
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\graphics\trig.sty)
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\graphics-cfg\graphics.cfg)
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\graphics-def\xetex.def)))
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\float\float.sty)
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\tocbibind\tocbibind.sty
xelatex.exe>
xelatex.exe> Package tocbibind Note: Using section or other style headings.
xelatex.exe>
xelatex.exe> ) (D:\Programme\MiKTeX\tex\latex\xcolor\xcolor.sty
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\graphics-cfg\color.cfg)
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\colortbl\colortbl.sty))
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\fancyhdr\fancyhdr.sty)
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\caption\caption.sty
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\caption\caption3.sty)
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\caption\ltcaption.sty))
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\base\fontenc.sty
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\base\t1enc.def)
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\lm\t1lmr.fd))
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\xltxtra\xltxtra.sty
xelatex.exe> (D:\Programme\MiKTeX\tex\generic\oberdiek\ifluatex.sty)
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\fontspec\fontspec.sty
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\l3kernel\expl3.sty
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\l3kernel\expl3-code.tex)
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\l3kernel\l3xdvipdfmx.def))
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\l3packages\xparse\xparse.sty)
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\fontspec\fontspec-xetex.sty
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\base\fontenc.sty
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\base\tuenc.def))
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\fontspec\fontspec.cfg)))
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\realscripts\realscripts.sty)
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\metalogo\metalogo.sty))
xelatex.exe> (D:\Programme\MiKTeX\tex\xelatex\xunicode\xunicode.sty
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\tipa\t3enc.def))
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\microtype\microtype.sty
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\microtype\microtype-xetex.def)
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\microtype\microtype.cfg))
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\polyglossia\polyglossia.sty
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\makecmds\makecmds.sty)
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\xkeyval\xkeyval.sty
xelatex.exe> (D:\Programme\MiKTeX\tex\generic\xkeyval\xkeyval.tex
xelatex.exe> (D:\Programme\MiKTeX\tex\generic\xkeyval\xkvutils.tex))))
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\polyglossia\gloss-german.ldf)
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\ulem\ulem.sty)
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\setspace\setspace.sty)(../sources/trennung.tex)
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\hyperref\hyperref.sty
xelatex.exe> (D:\Programme\MiKTeX\tex\generic\oberdiek\hobsub-hyperref.sty
xelatex.exe> (D:\Programme\MiKTeX\tex\generic\oberdiek\hobsub-generic.sty))
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\oberdiek\auxhook.sty)
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\oberdiek\kvoptions.sty)
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\hyperref\pd1enc.def)
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\00miktex\hyperref.cfg)
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\url\url.sty))
xelatex.exe>
xelatex.exe> Package hyperref Message: Driver (autodetected): hxetex.
xelatex.exe>
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\hyperref\hxetex.def
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\hyperref\puenc.def)
xelatex.exe> (D:\Programme\MiKTeX\tex\generic\oberdiek\stringenc.sty)
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\oberdiek\rerunfilecheck.sty))) (GenerateRP.aux)
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\tipa\t3cmr.fd)
xelatex.exe> *geometry* detected driver: pdftex
xelatex.exe> *geometry* verbose mode - [ preamble ] result:
xelatex.exe> * driver: pdftex
xelatex.exe> * paper: a4paper
xelatex.exe> * layout: <same size as paper>
xelatex.exe> * layoutoffset:(h,v)=(0.0pt,0.0pt)
xelatex.exe> * modes:
xelatex.exe> * h-part:(L,W,R)=(71.13188pt, 441.01773pt, 85.35826pt)
xelatex.exe> * v-part:(T,H,B)=(71.13188pt, 702.78308pt, 71.13188pt)
xelatex.exe> * \paperwidth=597.50787pt
xelatex.exe> * \paperheight=845.04684pt
xelatex.exe> * \textwidth=441.01773pt
xelatex.exe> * \textheight=702.78308pt
xelatex.exe> * \oddsidemargin=-1.1381pt
xelatex.exe> * \evensidemargin=-1.1381pt
xelatex.exe> * \topmargin=-38.1381pt
xelatex.exe> * \headheight=23.0pt
xelatex.exe> * \headsep=25.0pt
xelatex.exe> * \topskip=12.0pt
xelatex.exe> * \footskip=30.0pt
xelatex.exe> * \marginparwidth=35.0pt
xelatex.exe> * \marginparsep=10.0pt
xelatex.exe> * \columnsep=10.0pt
xelatex.exe> * \skip\footins=10.8pt plus 4.0pt minus 2.0pt
xelatex.exe> * \hoffset=0.0pt
xelatex.exe> * \voffset=0.0pt
xelatex.exe> * \mag=1000
xelatex.exe> * \@twocolumnfalse
xelatex.exe> * \@twosidefalse
xelatex.exe> * \@mparswitchfalse
xelatex.exe> * \@reversemarginfalse
xelatex.exe> * (1in=72.27pt=25.4mm, 1cm=28.453pt)
xelatex.exe>
xelatex.exe> (D:\Programme\MiKTeX\tex\latex\hyperref\nameref.sty
xelatex.exe> (D:\Programme\MiKTeX\tex\generic\oberdiek\gettitlestring.sty)) (GenerateRP.out)
xelatex.exe> (GenerateRP.out)
xelatex.exe>
xelatex.exe>
xelatex.exe> Package hyperref Warning: Rerun to get /PageLabels entry.
xelatex.exe>
xelatex.exe> Sorry, but D:\Programme\MiKTeX\miktex\bin\x64\xelatex.exe did not succeed.
xelatex.exe>
xelatex.exe> The log file hopefully contains the information to get MiKTeX going again:
xelatex.exe>
xelatex.exe> C:/Users/ppfuetzenreuter/AppData/Local/MiKTeX/2.9/miktex/log/xelatex.log
xelatex.exe>
xelatex.exe> You may want to visit the MiKTeX project page, if you need help.
提到的日志文件显示:
ERROR xelatex.core - MiKTeX encountered an internal error.
ERROR xelatex.core - Data:
ERROR xelatex.core - Source: libraries\miktex\texandfriends\include\miktex\texandfriends\StringHandlerImpl.h:47
FATAL xelatex - MiKTeX encountered an internal error.
FATAL xelatex - Info:
FATAL xelatex - Source: libraries\miktex\texandfriends\include\miktex\texandfriends\StringHandlerImpl.h
FATAL xelatex - Line: 47
INFO xelatex - finishing with exit code 1
INFO xelatex - starting with command line: D:\Programme\MiKTeX\miktex\bin\x64\xelatex.exe -synctex=1 -interaction=nonstopmode --src-specials template.tex
INFO xelatex - allowing known shell commands
INFO xelatex - enabling input (output) from (to) processes
INFO xelatex - finishing with exit code 1
有谁知道如何解决这一问题?
编辑:使用以下示例重现了该问题:
\documentclass{article}
\begin{document}
\section{Title}
\subsection{Subtitle}
Plain text.
\subsection{Another subtitle}
More plain text.
\end{document}
答案1
比较了 TeXnicCenter 和 eclipse 的构建过程后,更改构建参数得到了解决方案:
只需改变:
-synctex=1 -interaction=nonstopmode --src-specials "%input"
到:
-interaction=nonstopmode %input