透過 TexStudio 和 CLI 運行相同的命令會產生不同的“stdout”

透過 TexStudio 和 CLI 運行相同的命令會產生不同的“stdout”

pdflatex.exe -synctex=1 -shell-escape -interaction=nonstopmode "document".tex我正在運行命令紡織工作室命令列介面。在 TexStudio 中,設定處於活動狀態以顯示所有內容,stdout除非它被重定向到/dev/null.

編輯:

命令提示字元日誌

TexStudio日誌

我的文件中有一個錯誤導致 Latex 引擎無限期地運行而不停止。但是,在stdoutWindows 的命令提示字元中,我看到導致此行為的錯誤這大大方便了故障排除過程。為什麼此訊息在 TexStudio 中不顯示?正如我之前提到的,我在這兩種情況下運行了完全相同的命令。這微量元素以及相應stdoutfrom 的最後幾行紡織工作室是:

(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為什麼會出現這種情況?

相關內容