如何使用 texi2dvi 运行 latex 生成 PDF?

如何使用 texi2dvi 运行 latex 生成 PDF?

我使用xelatex而不是pdflatex来生成PDF,但现在我想使用texi2dvi来生成它们,但是每次都会显示如下错误:

texi2dvi(file="Letter__Oct11.tex",pdf=TRUE) failed
LaTeX errors:
! Fatal fontspec error: "not-pdftex"
! 
! 
! Requires XeTeX or LuaTeX to function!
! Requires XeTeX or LuaTeX to function!
! 
! 
! See the fontspec documentation for further information.
! See the fontspec documentation for further information.
! For immediate help type H <return>
! For immediate help type H <return>
|'''''''''''''''''''''''''''''''''''''''''''''''
| This is a fatal error: LaTeX will abort
|...............................................

答案1

texi2dvi查看LATEX环境变量的值;从 bash shell 中命令

LATEX=xelatex texi2dvi file.tex

用来xelatex排版file.tex

相关内容