[pstricks] PSTricks Digest, Vol 201, Issue 5
Germain Boyer
germain.boyer at ac-toulouse.fr
Tue Nov 26 09:30:48 CET 2019
Hello Herbert,
I search on internet. I find
https://stackoverflow.com/questions/3124273/compile-xelatex-tex-file-with-latexmk/50526932#50526932
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.
Option 1: -xelatex
$ latexmk -xelatex file.tex
With the -xelatex option, or the -pdfxe option, the tex file is first
typeset to an xdv (extended DVI) file. Then, xdvipdfmx is called to
convert the xdv file to a pdf file.
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.
Hence the -xelatex option is equivalent to:
$ xelatex -no-pdf file.tex # called one or more times to produce file.xdv
$ xdvipdfmx file.xdv # called only once in the end
Option 2: -pdflatex=xelatex
A 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
$ latexmk -pdflatex='xelatex %O %S' -pdf file.tex
In this approach, xelatex is used to generate the PDF file directly,
without generating an intermediate output file. Note that, today, xelatex
first generates an xdv stream and internally pipes it to xdvipdfmx to
produce a PDF file.
Hence this approach is equivalent to:
$ xelatex file.tex # called one or more times to produce file.pdf
Updated 2019.08.31 from user36296's comment.
In the second option the intermediate file will be generated internally
and converted to pdf on every run. Therefore this option is slightly
slower than the first option where the conversion to pdf is only done once
in the end
---------------------------------------------------------------
I see the documentation of latexmk :
-xelatex
Use xelatex. That is, use xelatex to process the source file(s) to pdf. The
generation of dvi and
postscript files is turned off.
This option is equivalent to using the following set of options
-pdfxe -dvi- -ps-
[Note: Note that the method of implementation of this option, but not its
intended primary effect,
differ from some earlier versions of latexmk. Latexmk first uses xelatex to
make an .xdv file, and
does all the extra runs needed (including those of bibtex, etc). Only
after that does it make the pdf
file from the .xdv file, using xdvipdfmx. This procedure can result in
considerable savings in run
time, since the xdv-to-pdf conversion is quite time-consuming when large
graphics files are used
in the document.]
---------------------------------------------------------------
I run my file with TinyTex :
In console de sortie, i get this (i do copy and paste)
Latexmk: This is Latexmk, John Collins, 18 June 2019, version: 4.65.
Rule 'xelatex': The following rules & subrules became out-of-date:
'xelatex'
------------
Run number 1 of rule 'xelatex'
------------
------------
Running 'xelatex -no-pdf -synctex=1 -recorder "Test_TinyTex_xelatex.tex"'
------------
Latexmk: applying rule 'xelatex'...
This is XeTeX, Version 3.14159265-2.6-0.999991 (TeX Live 2019/W32TeX)
(preloaded format=xelatex)
restricted \write18 enabled.
entering extended mode
(./Test_TinyTex_xelatex.tex
LaTeX2e <2019-10-01> patch level 3
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/latex/base/article.cls
Document Class: article 2019/10/25 v1.4k Standard LaTeX document class
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/latex/base/size11.clo)
)
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/latex/lm/lmodern.sty
)
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/latex/geometry/geometr
y.sty
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/latex/graphics/keyval.
sty)
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/iftex/ifpdf.st
y
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/iftex/iftex.st
y))
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/iftex/ifvtex.s
ty)
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/iftex/ifxetex.
sty))
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/latex/pstricks/pstrick
s.sty
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/latex/tools/shellesc.s
ty)
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/latex/xcolor/xcolor.st
y
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/latex/graphics-cfg/col
or.cfg)
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/latex/graphics-def/xet
ex.def))
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/xkeyval/pst-xk
ey.tex
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/latex/xkeyval/xkeyval.
sty
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/xkeyval/xkeyva
l.tex
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/xkeyval/xkvuti
ls.tex))))
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pstricks/pstri
cks.tex
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pstricks/pst-f
p.tex `pst-fp' v0.05, 2010/01/17 (hv))
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/utilities/
pgfutil-common.tex
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/utilities/
pgfutil-common-lists.tex))
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/utilities/
pgfkeys.code.tex
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/utilities/
pgfkeysfiltered.code.tex))
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/utilities/
pgffor.code.tex
Loading pgffor.code.tex
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/math/pgfma
th.code.tex
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/math/pgfma
thcalc.code.tex
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/math/pgfma
thutil.code.tex)
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/math/pgfma
thparser.code.tex)
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/math/pgfma
thfunctions.code.tex
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/math/pgfma
thfunctions.basic.code.tex)
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/math/pgfma
thfunctions.trigonometric.code.tex)
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/math/pgfma
thfunctions.random.code.tex)
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/math/pgfma
thfunctions.comparison.code.tex)
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/math/pgfma
thfunctions.base.code.tex)
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/math/pgfma
thfunctions.round.code.tex)
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/math/pgfma
thfunctions.misc.code.tex)
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/math/pgfma
thfunctions.integerarithmetics.code.tex)))
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/math/pgfma
thfloat.code.tex)))
`PSTricks' v2.97 <2019/05/11> (tvz,hv)
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pstricks/pstri
cks.con))
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pstricks/pst-f
p.tex)
>>> Loading XeTeX special macros
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pstricks/pstri
cks-xetex.def))
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/babel/babel.st
y
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/babel/switch.d
ef)
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/babel-french/f
rench.ldf
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/babel/babel.de
f
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/babel/xebabel.
def
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/babel/txtbabel
.def)))))
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/latex/carlisle/scalefn
t.sty) (./Test_TinyTex_xelatex.aux)
*geometry* driver: auto-detecting
*geometry* detected driver: xetex
[1] (./Test_TinyTex_xelatex.aux) )
Output written on Test_TinyTex_xelatex.xdv (1 page, 2676 bytes).
SyncTeX written on Test_TinyTex_xelatex.synctex.gz.
Transcript written on Test_TinyTex_xelatex.log.
Latexmk: Log file says output to 'Test_TinyTex_xelatex.xdv'
Rule 'xelatex': File changes, etc:
Changed files, or newly in use since previous run(s):
'Test_TinyTex_xelatex.aux'
------------
Run number 2 of rule 'xelatex'
------------
------------
Running 'xelatex -no-pdf -synctex=1 -recorder "Test_TinyTex_xelatex.tex"'
------------
=== TeX engine is 'XeTeX'
Latexmk: applying rule 'xelatex'...
This is XeTeX, Version 3.14159265-2.6-0.999991 (TeX Live 2019/W32TeX)
(preloaded format=xelatex)
restricted \write18 enabled.
entering extended mode
(./Test_TinyTex_xelatex.tex
LaTeX2e <2019-10-01> patch level 3
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/latex/base/article.cls
Document Class: article 2019/10/25 v1.4k Standard LaTeX document class
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/latex/base/size11.clo)
)
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/latex/lm/lmodern.sty
)
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/latex/geometry/geometr
y.sty
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/latex/graphics/keyval.
sty)
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/iftex/ifpdf.st
y
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/iftex/iftex.st
y))
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/iftex/ifvtex.s
ty)
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/iftex/ifxetex.
sty))
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/latex/pstricks/pstrick
s.sty
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/latex/tools/shellesc.s
ty)
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/latex/xcolor/xcolor.st
y
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/latex/graphics-cfg/col
or.cfg)
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/latex/graphics-def/xet
ex.def))
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/xkeyval/pst-xk
ey.tex
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/latex/xkeyval/xkeyval.
sty
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/xkeyval/xkeyva
l.tex
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/xkeyval/xkvuti
ls.tex))))
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pstricks/pstri
cks.tex
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pstricks/pst-f
p.tex `pst-fp' v0.05, 2010/01/17 (hv))
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/utilities/
pgfutil-common.tex
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/utilities/
pgfutil-common-lists.tex))
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/utilities/
pgfkeys.code.tex
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/utilities/
pgfkeysfiltered.code.tex))
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/utilities/
pgffor.code.tex
Loading pgffor.code.tex
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/math/pgfma
th.code.tex
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/math/pgfma
thcalc.code.tex
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/math/pgfma
thutil.code.tex)
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/math/pgfma
thparser.code.tex)
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/math/pgfma
thfunctions.code.tex
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/math/pgfma
thfunctions.basic.code.tex)
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/math/pgfma
thfunctions.trigonometric.code.tex)
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/math/pgfma
thfunctions.random.code.tex)
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/math/pgfma
thfunctions.comparison.code.tex)
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/math/pgfma
thfunctions.base.code.tex)
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/math/pgfma
thfunctions.round.code.tex)
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/math/pgfma
thfunctions.misc.code.tex)
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/math/pgfma
thfunctions.integerarithmetics.code.tex)))
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pgf/math/pgfma
thfloat.code.tex)))
`PSTricks' v2.97 <2019/05/11> (tvz,hv)
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pstricks/pstri
cks.con))
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pstricks/pst-f
p.tex)
>>> Loading XeTeX special macros
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/pstricks/pstri
cks-xetex.def))
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/babel/babel.st
y
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/babel/switch.d
ef)
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/babel-french/f
rench.ldf
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/babel/babel.de
f
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/babel/xebabel.
def
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/generic/babel/txtbabel
.def)))))
(c:/Users/Germain/AppData/Roaming/TinyTeX/texmf-dist/tex/latex/carlisle/scalefn
t.sty) (./Test_TinyTex_xelatex.aux)
*geometry* driver: auto-detecting
*geometry* detected driver: xetex
[1] (./Test_TinyTex_xelatex.aux) )
Output written on Test_TinyTex_xelatex.xdv (1 page, 2676 bytes).
SyncTeX written on Test_TinyTex_xelatex.synctex.gz.
Transcript written on Test_TinyTex_xelatex.log.
Latexmk: Log file says output to 'Test_TinyTex_xelatex.xdv'
Rule 'xdvipdfmx': File changes, etc:
Changed files, or newly in use since previous run(s):
'Test_TinyTex_xelatex.xdv'
Rule(s) that have been run and require run of dependent rule:
'xelatex' which requires run of 'xdvipdfmx'
------------
Run number 1 of rule 'xdvipdfmx'
------------
------------
Running 'xdvipdfmx -o "Test_TinyTex_xelatex.pdf"
"Test_TinyTex_xelatex.xdv"'
------------
=== TeX engine is 'XeTeX'
Latexmk: applying rule 'xdvipdfmx'...
For rule 'xdvipdfmx', running '&do_viewfile( )' ...
Test_TinyTex_xelatex.xdv -> Test_TinyTex_xelatex.pdf
[1
xdvipdfmx:warning: Unknown token "load"
xdvipdfmx:warning: Interpreting PS code failed!!! Output might be broken!!!
xdvipdfmx:warning: Interpreting special command ps: (ps:) failed.
xdvipdfmx:warning: >> at page="1" position="(99.2126, 799.37)" (in PDF)
xdvipdfmx:warning: >> xxx "ps: /pssetRGBcolor /setrgbcolor load def
/pssetCMYKcolor /se..."
xdvipdfmx:warning: >> Reading special command stopped around >>def
/pssetCMYKcolor /setcmykcolor load def /pssetGraycolor /...<<
xdvipdfmx:warning: Unknown token "tx at Dict"
xdvipdfmx:warning: Interpreting PS code failed!!! Output might be broken!!!
xdvipdfmx:warning: Interpreting special command ps: (ps:) failed.
xdvipdfmx:warning: >> at page="1" position="(99.2126, 799.37)" (in PDF)
xdvipdfmx:warning: >> xxx "ps:tx at Dict begin gsave STV CP T /ps at rot 0 def
grestore end"
xdvipdfmx:warning: >> Reading special command stopped around >>begin gsave
STV CP T /ps at rot 0 def grestore end<<
xdvipdfmx:warning: Unknown token "tx at Dict"
xdvipdfmx:warning: Interpreting PS code failed!!! Output might be broken!!!
xdvipdfmx:warning: Interpreting special command ps: (ps:) failed.
xdvipdfmx:warning: >> at page="1" position="(99.2126, 799.37)" (in PDF)
xdvipdfmx:warning: >> xxx "ps:tx at Dict begin gsave STV CP T /ps at refangle 0.
def gresto..."
xdvipdfmx:warning: >> Reading special command stopped around >>begin gsave
STV CP T /ps at refangle 0. def grestore end<<
xdvipdfmx:warning: Unknown token "tx at Dict"
xdvipdfmx:warning: Interpreting PS code failed!!! Output might be broken!!!
xdvipdfmx:warning: Interpreting special command " (ps:) failed.
xdvipdfmx:warning: >> at page="1" position="(116.149, 761.313)" (in PDF)
xdvipdfmx:warning: >> xxx "" tx at Dict begin STP newpath 0.8 SLW 1 0 0
setrgbcolor [ 0..."
xdvipdfmx:warning: >> Reading special command stopped around >>begin STP
newpath 0.8 SLW 1 0 0 setrgbcolor [ 0.0 0.0 fa...<<
xdvipdfmx:warning: Unknown token "tx at Dict"
xdvipdfmx:warning: Interpreting PS code failed!!! Output might be broken!!!
xdvipdfmx:warning: Interpreting special command " (ps:) failed.
xdvipdfmx:warning: >> at page="1" position="(116.149, 747.764)" (in PDF)
xdvipdfmx:warning: >> xxx "" tx at Dict begin STP newpath /ArrowA { moveto }
def /ArrowB ..."
xdvipdfmx:warning: >> Reading special command stopped around >>begin STP
newpath /ArrowA { moveto } def /ArrowB { } def 2....<<
xdvipdfmx:warning: Unknown token "tx at Dict"
xdvipdfmx:warning: Interpreting PS code failed!!! Output might be broken!!!
xdvipdfmx:warning: Interpreting special command " (ps:) failed.
xdvipdfmx:warning: >> at page="1" position="(116.149, 734.214)" (in PDF)
xdvipdfmx:warning: >> xxx "" tx at Dict begin STP newpath /ArrowA { moveto }
def /ArrowB ..."
xdvipdfmx:warning: >> Reading special command stopped around >>begin STP
newpath /ArrowA { moveto } def /ArrowB { } def 2....<<
xdvipdfmx:warning: Unknown token "tx at Dict"
xdvipdfmx:warning: Interpreting PS code failed!!! Output might be broken!!!
xdvipdfmx:warning: Interpreting special command " (ps:) failed.
xdvipdfmx:warning: >> at page="1" position="(116.149, 720.665)" (in PDF)
xdvipdfmx:warning: >> xxx "" tx at Dict begin STP newpath /ArrowA { moveto }
def /ArrowB ..."
xdvipdfmx:warning: >> Reading special command stopped around >>begin STP
newpath /ArrowA { moveto } def /ArrowB { } def 2....<<
]
4197 bytes written
Latexmk: All targets () are up-to-date
---------------------------------------------------------------
Note that with MiKTeX Portable it works.
Note i use the same Texworks portable with TinyTex and MiKTex (of course i
change the path in my files texworks_tinytex.cmd and texworks_miktex.cmd).
The file texworks-setup.ini find the good paramètres and ressources.
Thanks for your answer.
Germain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/pstricks/attachments/20191126/cabfac8c/attachment-0001.html>
More information about the PSTricks
mailing list