通过 TexStudio 和 CLI 运行相同的命令会产生不同的“stdout”

通过 TexStudio 和 CLI 运行相同的命令会产生不同的“stdout”

pdflatex.exe -synctex=1 -shell-escape -interaction=nonstopmode "document".tex我正在运行命令纺织工作室命令行界面。在 TexStudio 中,设置有效,显示所有内容stdout,除非重定向到/dev/null

编辑

命令提示符日志

TexStudio 日志

我的文档中有一个错误,导致 Latex 引擎无限期运行而不会停止。但是,在stdoutWindows 的命令提示符中,我看到了导致此行为的错误这极大地方便了故障排除过程。为什么 TexStudio 中没有显示此消息?正如我之前提到的,我在两种情况下都运行了完全相同的命令。平均能量损失stdout以及相应的最后几行纺织工作室是:

(c:/texlive/2016/texmf-dist/tex/latex/hyperref/nameref.sty
(c:/texlive/2016/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
(./document.out) (./document.out)

No file document.bbl.
(./_minted-document/default-pyg-prefix.pygstyle)
ABD: EveryShipout initializing macros

(c:/texlive/2016/texmf-dist/tex/latex/amsfonts/umsa.fd)
(c:/texlive/2016/texmf-dist/tex/latex/microtype/mt-msa.cfg)
(c:/texlive/2016/texmf-dist/tex/latex/amsfonts/umsb.fd)
(c:/texlive/2016/texmf-dist/tex/latex/microtype/mt-msb.cfg)
(c:/texlive/2016/texmf-dist/tex/latex/esint/uesint.fd)

而最后几行stdout来自DOS 命令提示符在 Windows 上是:

(c:/texlive/2016/texmf-dist/tex/latex/amsfonts/umsa.fd)
(c:/texlive/2016/texmf-dist/tex/latex/microtype/mt-msa.cfg)
(c:/texlive/2016/texmf-dist/tex/latex/amsfonts/umsb.fd)
(c:/texlive/2016/texmf-dist/tex/latex/microtype/mt-msb.cfg)
(c:/texlive/2016/texmf-dist/tex/latex/esint/uesint.fd)
! Missing \endcsname inserted.
<to be read again>
                   \l__xparse_processor_int
l.36            \tikzmath{\ang = 45;}
                            ;
! Missing \endcsname inserted.
<to be read again>
                   \l__xparse_processor_int
l.36            \tikzmath{\ang = 45;}
                            ;

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! siunitx error: "invalid-number"
!
! Invalid numerical input '='.
!
! See the siunitx documentation for further information.
!
! For immediate help type H <return>.
!...............................................

l.36            \tikzmath{\ang = 45;}
                            ;

实际的错误消息仅在第二种情况下显示,并且更具解释性。可以看出,版本TexStudio似乎是命令提示符的截断版本stdout。为什么会出现这种情况?我怎样才能让它们两者相同?

相关内容