我使用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
。