Hence this approach is equivalent to: $ xelatex file.tex # called one or more times to produce file.pdf Note that, today, xelatex first generates an xdv stream and internally pipes it to xdvipdfmx to produce a PDF file. In this approach, xelatex is used to generate the PDF file directly, without generating an intermediate output file. $ latexmk -pdflatex='xelatex %O %S' -pdf file.tex $ xdvipdfmx file.xdv # called only once in the endĪ second option is to set pdflatex as follows along with turning on the -pdf option: # %O is a substitution for options and %S is for source file Hence the -xelatex option is equivalent to: $ xelatex -no-pdf file.tex # called one or more times to produce file.xdv In latexmk, $xelatex_default_switches is set to -no-pdf (line 395) to have xelatex produce an xdv file instead of the default PDF file. Then, xdvipdfmx is called to convert the xdv file to a pdf file. Valid options are latex,pdflatex,xelatex,lualatex and usern. With the -xelatex option, or the -pdfxe option, the tex file is first typeset to an xdv ( extended DVI) file. Before using TeXstudio, you should configure the editor and latex related commands. Option 1: -xelatex $ latexmk -xelatex file.tex In version: 4.65 (18 June 2019), there is a difference between using the -xelatex option and setting -pdflatex as suggested by one of the comments. I appreciate any insight you may be able to provide. I've also looked at rubber, but it doesn't seem to work either. There doesn't appear bo be any logical mechanism for selecting a tex program from the command line, and it's not clear from the source how one would do this, either. Latexmk describes its commands as follows: $ latexmk -commands xelatex job The first line of my tex file is (as suggested by this post): % !TEX TS-program = xelatexmkĪnd I've tried others (e.g. * XeTeX is required to compile this document. LaTeX "/usr/local/bin/uplatex" -synctex=1 -interaction=nonstopmode %.tex "/Library/TeX/texbin/uplatex" -synctex=1 -interaction=nonstopmode %.tex PdfLaTeX "/usr/local/bin/pdflatex" -synctex=1 -interaction=nonstopmode %.tex "/Library/TeX/texbin/pdflatex" -synctex=1 -interaction=nonstopmode %.tex XeLaTeX "/usr/local/bin/xelatex" -synctex=1 -interaction=nonstopmode %.tex "/Library/TeX/texbin/xelatex" -synctex=1 -interaction=nonstopmode %.tex LuaLaTeX "/usr/local/bin/lualatex" -synctex=1 -interaction=nonstopmode %.tex "/Library/TeX/texbin/lualatex" -synctex=1 -interaction=nonstopmode %.tex 外部PDFビューア "/Applications/Skim.app/Contents/SharedSupport/displayline" "?am.pdf" "?c:am.tex" DviPs ruby -e "cmd='/usr/local/bin/dvips -Ppdf -z -f '+0x22.chr+'?am.dvi'+0x22.chr+' '+0x7c.chr+' '+'convbkmk -u'+' '+0x3e.chr+' '+0x22.chr+'?am.ps'+0x22.chr system(cmd)" ruby -e "cmd='/Library/TeX/texbin/dvips -Ppdf -z -f '+0x22.chr+'?am.dvi'+0x22.chr+' '+0x7c.chr+' '+'convbkmk -u'+' '+0x3e.chr+' '+0x22.chr+'?am.ps'+0x22.chr system(cmd)" DviPng "/usr/local/bin/dvipng" -T tight -D 120 %.dvi "/Library/TeX/texbin/dvipng" -T tight -D 120 %.dvi Ps2Pdf "/usr/local/bin/ps2pdf" %.ps DviPdf "/usr/local/bin/dvipdfmx" %.dvi "/Library/TeX/texbin/dvipdfmx" %.dvi BibTeX "/usr/local/bin/upbibtex" % "/Library/TeX/texbin/upbibtex" % BibTex 8ビット "/usr/local/bin/bibtex8" % "/Library/TeX/texbin/bibtex8" % Biber "/usr/local/bin/biber" -bblencoding=utf8 -u -U -output_safechars % "/Library/TeX/texbin/biber" -bblencoding=utf8 -u -U -output_safechars % Makeindex "/usr/local/bin/upmendex" %.idx "/Library/TeX/texbin/upmendex" %.idx Texindy "/usr/local/bin/texindy" %.idx "/Library/TeX/texbin/texindy" %.idx Makeglossary makeglossaries Metapost "/usr/local/bin/upmpost" -interaction=nonstopmode % "/Library/TeX/texbin/upmpost" -interaction=nonstopmode % Asymptote "/usr/local/bin/asy" %.asy "/Library/TeX/texbin/asy" %.How can one compile a XeLaTeX tex document using latexmk on Mac OS X?Īt present I am running latexmk job.tex and getting an error: ! Biber のコマンドを biber から biber -bblencoding=utf8 -u -U -output_safechars に変更します..
0 Comments
Leave a Reply. |