![如何使用 texi2dvi 运行 latex 生成 PDF?](https://linux22.com/image/241647/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%20texi2dvi%20%E8%BF%90%E8%A1%8C%20latex%20%E7%94%9F%E6%88%90%20PDF%EF%BC%9F.png)
我使用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
。