我在 main.tex 中使用了\input
s。我收到以下错误/警告,但我很难找到第 1061 行,因为它在\input
文件中。我真的很想找到它。现在,我使用 Gedit,但有时也使用 Geany,但我没有找到任何与调试相关的内容;我认为 IDE 一定是解决方案,但不确定是哪一个;也许是一些 KDE 产品
(\end occurred inside a group at level 1)
### simple group (level 1) entered at line 1061 ({)
### bottom level
(see the transcript file for additional information)
Output written on main.pdf (14 pages).
没有帮助的事情
xelatex -file-line-error
因为\input
用过- ...
操作系统:Debian 8.5
窗口管理器:Gnome 3.14
TeXLive:2016
执行引擎:XeLaTeX
答案1
我无法猜测您问题中提到的 KDE 指的是什么(为什么 KDE 会包含 TeX 调试器?),但读取日志不需要任何特殊工具,并且显然与您的操作系统无关。
添加
\tracingonline1\tracinggroups1
这样就可以追踪群体
如果你的主文件是
\documentclass{article}
\begin{document}
\tracingonline1\tracinggroups1
aaa
\input{\jobname a}
\input{\jobname b}
bbb
\end{document}
与maina.tex
{
并且mainb.tex
bbbb
然后日志和终端将显示
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./main.tex
LaTeX2e <2016/03/31> patch level 3
Babel <3.9r> and hyphenation patterns for 83 language(s) loaded.
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/size10.clo)) (./main.aux)
(./maina.tex{entering simple group (level 1) at line 2}
) (./mainb.tex){entering output group (level 2) at line 15}
{entering vbox group (level 3) at line 15}
{leaving vbox group (level 3) entered at line 15}
{entering semi simple group (level 3) at line 15}
{entering vbox group (level 4) at line 15}
{entering hbox group (level 5) at line 15}
{leaving hbox group (level 5) entered at line 15}
{entering vbox group (level 5) at line 15}
{entering vbox group (level 6) at line 15}
{entering adjusted hbox group (level 7) at line 15}
{leaving adjusted hbox group (level 7) entered at line 15}
{leaving vbox group (level 6) entered at line 15}
{entering adjusted hbox group (level 6) at line 15}
{leaving adjusted hbox group (level 6) entered at line 15}
{leaving vbox group (level 5) entered at line 15}
{leaving vbox group (level 4) entered at line 15}
[1{/usr/local/texlive/2016/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]{leavi
ng semi simple group (level 3) entered at line 15}
{entering semi simple group (level 3) at line 15}
{leaving semi simple group (level 3) entered at line 15}
{entering semi simple group (level 3) at line 15}
{leaving semi simple group (level 3) entered at line 15}
{leaving output group (level 2) entered at line 15}
{entering vbox group (level 2) at line 15}
{leaving vbox group (level 2) entered at line 15}
{entering output group (level 2) at line 15}
{entering semi simple group (level 3) at line 15}
{leaving semi simple group (level 3) entered at line 15}
{leaving output group (level 2) entered at line 15}
{entering semi simple group (level 2) at line 15}
(./main.aux){leaving semi simple group (level 2) entered at line 15}
{entering output group (level 2) at line 15}
{entering vbox group (level 3) at line 15}
{leaving vbox group (level 3) entered at line 15}
{leaving output group (level 2) entered at line 15}
)
(\end occurred inside a group at level 1)
### simple group (level 1) entered at line 2 ({)
### bottom level</usr/local/texlive/2016/texmf-dist/fonts/type1/public/amsfonts
/cm/cmr10.pfb>
Output written on main.pdf (1 page, 9993 bytes).
Transcript written on main.log.
错误消息告诉您问题是一个简单组,位于{
第一级(未嵌套在另一个组中),因此您可以忽略除第一级简单组之外的所有组跟踪。
只需快速扫描匹配“进入”和“离开”对的轨迹,就会发现没有匹配“离开”的“进入”是
(./maina.tex{entering simple group (level 1) at line 2}
所以你看,不匹配的{
是在maina.tex