Open hyjz2018 opened 3 years ago
xelatex 3.14159265-2.6-0.999992 works here on macOS.
May not be related: Do the double quotation marks in \usepackage[outputdir="C:/Users/hy-jz/tmp/tex"]{minted}
necessary?
xelatex 3.14159265-2.6-0.999992 works here on macOS.
May not be related: Do the double quotation marks in
\usepackage[outputdir="C:/Users/hy-jz/tmp/tex"]{minted}
necessary?The output directory should be specified using an absolute path or a path relative to the document root directory. Paths should use forward slashes, even under Windows. Special characters must be escaped, while spaces require quoting and need the entire hdirectoryi to be wrapped in curly braces {}
from the manual
@hyjz2018 Try using \usepackage[outputdir=C:/Users/hy-jz/tmp/tex]{minted}
, without quotation marks. It looks like pdflatex
and xelatex
are handling file paths differently, and for some reason xelatex
can't process quotation marks. The manual will need to be updated unless there's a way to get things to work uniformly across TeX engines.
@hyjz2018 Try using
\usepackage[outputdir=C:/Users/hy-jz/tmp/tex]{minted}
, without quotation marks. It looks likepdflatex
andxelatex
are handling file paths differently, and for some reasonxelatex
can't process quotation marks. The manual will need to be updated unless there's a way to get things to work uniformly across TeX engines.
thanks for reply. yes it works without quotation marks.
This also affects LuaLaTeX
after changing the output-directory and outputdir cmd line is
xelatex -shell-escape -output-directory="C:/Users/hy-jz/tmp/tex" demo.tex
demo.tex is like
but demo.pdf shows duplicate snippets:
full logs:
while changing to
pdflatex -shell-escape -output-directory="C:/Users/hy-jz/tmp/tex" demo.tex
it gives correct result.xelatex on both windows and linux(Fedora) have the same problem.