每当我尝试使用 TexStudio 编译任何 TeX 文档时,都会收到此错误:
该命令已扩展至 11 级。是否要继续扩展“txs:///pre-compile | txs:///conditionally-recompile-bibliography”?
如果我按“确定”,则会一次又一次地收到相同的错误,错误号码也不同,依此类推。如果我按“取消”,则可以退出此消息。
我该如何解决这个烦人的问题?
我想在不删除所有配置的情况下解决它(因为我有一些 knitr 和双向导航选项)。
我猜这与我的配置有关。
重新安装程序并不能解决问题。
这是 texstudio.ini 的内容,其中删除了一些不重要的行。
[General]
IniMode=true
[texmaker]
NotifyShortcutChange=false
Tools\Commands\latex="\"C:/texlive/2016/bin/win32/latex.exe\" -src -interaction=nonstopmode %.tex"
Tools\Commands\pdflatex="\"C:/texlive/2016/bin/win32/pdflatex.exe\" -synctex=1 -interaction=nonstopmode %.tex"
Tools\Commands\xelatex="\"C:/texlive/2016/bin/win32/xelatex.exe\" -synctex=1 -interaction=nonstopmode %.tex"
Tools\Commands\lualatex="lualatex.exe -synctex=1 -interaction=nonstopmode %.tex"
Tools\Commands\view-dvi=C:\\WINDOWS\\system32\\OpenWith.exe \"?am.dvi\"
Tools\Commands\view-ps=\"C:\\Program Files (x86)\\Adobe\\Acrobat DC\\Acrobat\\AcroDist.exe\" \"?am.ps\"
Tools\Commands\view-pdf-external=\"C:\\Program Files (x86)\\Adobe\\Acrobat DC\\Acrobat\\Acrobat.exe\" \"?am.pdf\"
Tools\Commands\dvips=\"C:/texlive/2016/bin/win32/dvips.exe\" -o %.ps %.dvi
Tools\Commands\dvipng=\"C:/texlive/2016/bin/win32/dvipng.exe\" -T tight -D 120 %.dvi
Tools\Commands\ps2pdf=\"C:/texlive/2016/bin/win32/ps2pdf.exe\" %.ps
Tools\Commands\dvipdf=\"C:/texlive/2016/bin/win32/dvipdfm.exe\" %.dvi
Tools\Commands\bibtex=\"C:/texlive/2016/bin/win32/bibtex.exe\" %
Tools\Commands\bibtex8=\"C:/texlive/2016/bin/win32/bibtex8.exe %
Tools\Commands\biber=\"C:/texlive/2016/bin/win32/biber.exe %
Tools\Commands\makeindex=\"C:/texlive/2016/bin/win32/makeindex.exe %.idx
Tools\Commands\texindy=\"C:/texlive/2016/bin/win32/texindy.exe %.idx
Tools\Commands\makeglossaries=\"C:/texlive/2016/bin/win32/makeglossaries.exe %
Tools\Commands\metapost="\"C:/texlive/2016/bin/win32/mpost.exe -interaction=nonstopmode ?me)"
Tools\Commands\asy=\"C:/texlive/2016/bin/win32/asy.exe ?m*.asy
Tools\Commands\gs=\"C:\\texlive\\2016\\bin\\win32\\rungs.exe\" \"?am.ps\"
Tools\Commands\latexmk="\"C:/texlive/2016/bin/win32/latexmk -pdf -silent -latexoption=\"-synctex=1\" %"
Tools\Commands\quick=txs:///compile | txs:///view
Tools\Commands\compile=txs:///pdflatex
Tools\Commands\view=txs:///view-pdf
Tools\Commands\view-pdf=txs:///view-pdf-internal --embedded
Tools\Commands\bibliography=txs:///bibtex8
Tools\Commands\index=txs:///makeindex
Tools\Commands\glossary=txs:///makeglossaries
Tools\Commands\ps-chain=txs:///latex | txs:///dvips | txs:///view-ps
Tools\Commands\dvi-chain=txs:///latex | txs:///view-dvi
Tools\Commands\pdf-chain=txs:///pdflatex | txs:///view-pdf
Tools\Commands\dvi-pdf-chain=txs:///latex | txs:///dvipdf | txs:///view-pdf
Tools\Commands\dvi-ps-pdf-chain=txs:///latex | txs:///dvips | txs:///ps2pdf | txs:///view-pdf
Tools\Commands\asy-dvi-chain=txs:///latex | txs:///asy | txs:///latex | txs:///view-dvi
Tools\Commands\asy-pdf-chain=txs:///pdflatex | txs:///asy | txs:///pdflatex | txs:///view-pdf
Tools\Commands\pre-compile=" txs:///pre-compile | txs:///conditionally-recompile-bibliography"
Tools\Commands\internal-pre-compile=txs:///pre-compile | txs:///conditionally-recompile-bibliography
Tools\Commands\recompile-bibliography=txs:///compile | txs:///bibliography | txs:///compile
Tools\Commands\svn=
Tools\Commands\svnadmin=
Startup\CheckLatexConfiguration=true
ToolBar\CentralVisible=true
StructureView\ShowLinenumbers=false
StructureView\Indentation=-1
StructureView\IndentIncludes=false
Structure\ShowElementsInComments=false
Structure\MarkStructureElementsBeyondEnd=true
Structure\MarkStructureElementsInAppendix=true
StructureView\ReferenceCommandsInContextMenu=\\ref
Files\New%20File%20Encoding=UTF-8
Files\AutoDetectEncodingFromChars=true
Files\AutoDetectEncodingFromLatex=true
Files\Remember%20File%20Filter=true
Files\Recent%20Files%20Highlighting=@Variant(\0\0\0\x7f\0\0\0\x10StringStringMap\0\0\0\0\0)
Files\RestoreSession=true
Files\Last%20Document=C:/temp/pr.tex
Files\Parse%20BibTeX=true
Bibliography\BibFileEncoding=UTF-8
Files\Bib%20Paths=
Files\Image%20Paths=
Session\StoreRelativePaths=true
Tools\Insert%20Unicode%20From%20SymbolGrid=false
Dialogs\Last%20Hard%20Wrap%20Column=80
Dialogs\Last%20Hard%20Wrap%20Smart%20Scope%20Selection=false
Dialogs\Last%20Hard%20Wrap%20Join%20Lines=false
Tools\SingleViewerInstance=false
Tools\Show%20Messages%20When%20Compiling=true
Tools\Show%20Stdout=1
Tools\Automatic%20Rerun%20Times=5
Tools\ReplaceEnvironmentVariables=true
Tools\SupportShellStyleLiteralQuotes=true
Tools\Log%20Paths=
Tools\PDF%20Paths=
Tools\Auto%20Checkin%20after%20Save%20level=0
Tools\SVN%20Undo=false
Tools\SVN%20KeywordSubstitution=false
Tools\SVN%20Search%20Path%20Depth=2
GUI\Style=false
GUI\Texmaker%20Palette=false
GUI\Use%20System%20Theme=true
Interface\Config%20Show%20Advanced%20Options=true
Interface\Config%20Riddled=true
Interface\New%20Left%20Panel%20Layout=true
Interface\MRU%20Document%20Chooser=false
Interface\Language=en
LogView\WarnIfFileSizeLargerMB=2
Tools\User%20Class=@Invalid()
Tools\User%20Paper=@Invalid()
Tools\User%20Encoding=@Invalid()
Tools\User%20Options=@Invalid()
Tools\Quick%20Mode=-2
Tools\Max%20Expanding%20Nesting%20Deep=10
Tools\Dvi2Png%20Mode=0
Files\Save%20Files%20Before%20Compiling=2
Preview\Remove%20Beamer%20Class=true
Preview\Precompile%20Preamble=true
Tools\Automatic%20Rerun%20Commands=latex|pdflatex|xelatex|lualatex|compile
User\ToolNames=@Invalid()
User\Tools=@Invalid()
Tools\Display%20Names=:knitr
Tools\User%20Order=knitr
Tools\Preview%20Compile%20Time%20Out=15000
Tools\Had%20Successful%20Process%20Start=true
Files\Default%20File%20Filter=TeX files (*.tex *.bib *.sty *.cls *.mp *.dtx *.cfg *.ins *.ltx *.tikz *.pdf_tex)
PDFSplitter=0.56104824300178679
Tools\Kind\LaTeX=latex, pdflatex, xelatex, lualatex, latexmk, compile
Tools\Kind\Rerunnable=latex, pdflatex, xelatex, lualatex
Tools\Kind\Pdf=pdflatex, xelatex, lualatex, latexmk, dvipdf, ps2pdf
Tools\Kind\Stdout=bibtex, biber, bibtex8, bibliography
Tools\Kind\Viewer=view-pdf, view-ps, view-dvi, view-pdf-internal, view-pdf-external, view
Crash%20Handler%20Type=1
qttwp\userwidth=700
qttwp\compil=1
qttwp\tocdepth=2
qttwp\startindex=1
qttwp\navigation=1
qttwp\noindex=false
qttwp\title=
qttwp\address=
qttwp\browser=\"C:/Program Files/Internet Explorer/IEXPLORE.EXE\"
qttwp\contentname=\\contentsname
qttwp\align=center
qttwp\lastdir=C:/Users/banana
qttwp\dviopt=" -Ppk -V"
Tools\After%20BibTeX%20Change=tmx://latex && tmx://bibtex && tmx://latex
User\New%20Key%20Replacements%20Created=true
customCommands=@Invalid()
Symbols\Quantity=@Variant(\0\0\0\b\0\0\0\0)
Symbols\Favorite%20IDs=@Invalid()
Symbols\hiddenlists=
Tools\Commands\knitr=R -e \"knitr::knit2pdf('%.Rnw')\" | txs:///pdflatex | txs:///view-pdf-internal
PD:最后我决定删除配置文件。看来可以了。现在预编译字段是空的。
答案1
正如@Ulrike Fischer 在评论中所说,Tools\Commands\pre-compile
调用自身。这会导致无限循环。删除或修改条目precompile
将解决此问题。