Re: [gentoo-user] Problems with LyX and xetex-2021
On domenica 11 luglio 2021 15:01:07 CEST Nils Freydank wrote: > Hi Stefano, > > I couldn't reproduce your error with xelatex at all. I took your example/MWE > and just executed "xelatex test.tex" and it generated me a single page PDF. > > A quick and dirty idea: Move ~/.texlive (e.g. to ~/.texlive-bak) and let > texlive regenerate files there. > > In my worldfile I have app-text/texlive, dev-tex/biber and dev-tex/latexmk, > everything else are just deps. > > Interestingly it works even with USE="-xetex" for texlive which in turn has > only the following USE flags enabled: > "X extra graphics luatex metapost music png pstricks science truetype" > > Hope that helps you, > Nils Thanks for the answer. I tried removing the .texlive directory, but nothing changed. However, on my laptop it worked correctly even with texlive-2021, which is strange because its configuration is very similar to that of my desktop PC (where it doesn't work). The list of texlive-related packages is the same in both machines, so I can't really understand what's going on. However, in the meanwhile, I found a workaround for the issue with LyX: enabling the "Use non-TeX fonts (via XeTeX/LuaTeX)" document setting makes it work even on the desktop PC (when I wrote the original mail, I had masked texlive-2021 on my laptop to have a system where LyX worked correctly; after discovering this workaround, I felt safe in upgrading it; I didn't think about testing this problem there). I had reported this issue on the LyX bug tracker and they answered me this issue would be fixed in a future release. Stefano
Re: [gentoo-user] Problems with LyX and xetex-2021
Hi Stefano, I couldn't reproduce your error with xelatex at all. I took your example/MWE and just executed "xelatex test.tex" and it generated me a single page PDF. A quick and dirty idea: Move ~/.texlive (e.g. to ~/.texlive-bak) and let texlive regenerate files there. In my worldfile I have app-text/texlive, dev-tex/biber and dev-tex/latexmk, everything else are just deps. Interestingly it works even with USE="-xetex" for texlive which in turn has only the following USE flags enabled: "X extra graphics luatex metapost music png pstricks science truetype" Hope that helps you, Nils Am Sonntag, den 16.05.2021 um 19:58:32 Uhr +0200 schrieb Stefano Crocco : > Hello to everyone, > since upgrading my ~arch system to TeXLive-2021 I'm having problems using > XeLaTeX to compile LyX documents. Has someone else experienced this issue? > I'd > like to file a bug report about it, but before doing so I'd like to be sure > that there isn't something wrong with my system. > > Below you'll find the details of my problem. > > Thanks in advance > > Stefano > > DETAILS > > When I use LyX to create a PDF using XeLaTeX from the attached test.lyx file > (using the default LaTeX (XeTeX) -> PDF (XeTeX) converter), I get an error > dialog with the following text: > > The external program > xelatex > finished with an error. It is recommended you fix the cause of the external > program's error (check the logs). > > As far as I can see, the log (attached as log_from_lyx) don't mention any > error, except for the generic (at least to my eyes) line > "Error 256 (driver return code) generating output;" > near the end. > > Trying to obtain a better error message, I exported the LyX file as a XeLaTeX > file using the File/Export LaTeX (xetex) menu entry and run xelatex on it. Of > course, it failed, but this time the log (in the log_from_xelatex attachment) > contains a more meaningful message: > "xdvipdfmx:fatal: Cannot proceed without .vf or "physical" font for PDF > output..." > > Unfortunately, I'm not expert enough in the inner works of (xe)latex to > understand this message. I tried searching google for it but didn't find > anything useful. However, looking at the tex file generated by LyX (the > test.tex attachment), I noticed the line > > \usepackage[T1]{fontenc} > > which seemed strange to me, as I thought that the fontenc package shouldn't > be > used with XeLaTeX. Indeed, after commenting this line, xelatex successfully > created the correct PDF. > > This problem has almost certainly been caused by switching texlive and the > related packages from 2020 to 2021, since on another computer where I masked > the 2021 version of app-text/texlive-core, app-text/texlive and all packages > in category dev-texlive, everything works correctly. > This is XeTeX, Version 3.141592653-2.6-0.93 (TeX Live 2021 Gentoo Linux) > (preloaded format=xelatex 2021.5.8) 16 MAY 2021 19:29 > entering extended mode > restricted \write18 enabled. > %&-line parsing enabled. > **test.tex > (./test.tex > LaTeX2e <2020-10-01> patch level 4 > L3 programming layer <2021-02-18> > (/usr/share/texmf-dist/tex/latex/base/article.cls > Document Class: article 2020/04/10 v1.4m Standard LaTeX document class > (/usr/share/texmf-dist/tex/latex/base/size10.clo > File: size10.clo 2020/04/10 v1.4m Standard LaTeX file (size option) > ) > \c@part=\count175 > \c@section=\count176 > \c@subsection=\count177 > \c@subsubsection=\count178 > \c@paragraph=\count179 > \c@subparagraph=\count180 > \c@figure=\count181 > \c@table=\count182 > \abovecaptionskip=\skip47 > \belowcaptionskip=\skip48 > \bibindent=\dimen138 > ) (/usr/share/texmf-dist/tex/latex/base/fontenc.sty > Package: fontenc 2020/08/10 v2.0s Standard LaTeX package > LaTeX Font Info:Trying to load font information for T1+lmr on input line > 11 > 2. > (/usr/share/texmf-dist/tex/latex/lm/t1lmr.fd > File: t1lmr.fd 2009/10/30 v1.6 Font defs for Latin Modern > )) (/usr/share/texmf-dist/tex/latex/geometry/geometry.sty > Package: geometry 2020/01/02 v5.9 Page Geometry > (/usr/share/texmf-dist/tex/latex/graphics/keyval.sty > Package: keyval 2014/10/28 v1.15 key=value parser (DPC) > \KV@toks@=\toks15 > ) (/usr/share/texmf-dist/tex/generic/iftex/ifvtex.sty > Package: ifvtex 2019/10/25 v1.7 ifvtex legacy package. Use iftex instead. > (/usr/share/texmf-dist/tex/generic/iftex/iftex.sty > Package: iftex 2020/03/06 v1.0d TeX engine tests > )) > \Gm@cnth=\count183 > \Gm@cntv=\count184 > \c@Gm@tempcnt=\count185 > \Gm@bindingoffset=\dimen139 > \Gm@wd@mp=\dimen140 > \Gm@odd@mp=\dimen141 > \Gm@even@mp=\dimen142 > \Gm@layoutwidth=\dimen143 > \Gm@layoutheight=\dimen144 > \Gm@layouthoffset=\dimen145 > \Gm@layoutvoffset=\dimen146 > \Gm@dimlist=\toks16 > ) (/usr/share/texmf-dist/tex/latex/setspace/setspace.sty > Package: setspace 2011/12/19 v6.7a set line spacing > ) (/usr/share/texmf-dist/tex/generic/babel/babel.sty > Package: babel 2021/03/03 3.55 The Babel package > (/usr/share/texmf-dist/tex/
[gentoo-user] Problems with LyX and xetex-2021
Hello to everyone, since upgrading my ~arch system to TeXLive-2021 I'm having problems using XeLaTeX to compile LyX documents. Has someone else experienced this issue? I'd like to file a bug report about it, but before doing so I'd like to be sure that there isn't something wrong with my system. Below you'll find the details of my problem. Thanks in advance Stefano DETAILS When I use LyX to create a PDF using XeLaTeX from the attached test.lyx file (using the default LaTeX (XeTeX) -> PDF (XeTeX) converter), I get an error dialog with the following text: The external program xelatex finished with an error. It is recommended you fix the cause of the external program's error (check the logs). As far as I can see, the log (attached as log_from_lyx) don't mention any error, except for the generic (at least to my eyes) line "Error 256 (driver return code) generating output;" near the end. Trying to obtain a better error message, I exported the LyX file as a XeLaTeX file using the File/Export LaTeX (xetex) menu entry and run xelatex on it. Of course, it failed, but this time the log (in the log_from_xelatex attachment) contains a more meaningful message: "xdvipdfmx:fatal: Cannot proceed without .vf or "physical" font for PDF output..." Unfortunately, I'm not expert enough in the inner works of (xe)latex to understand this message. I tried searching google for it but didn't find anything useful. However, looking at the tex file generated by LyX (the test.tex attachment), I noticed the line \usepackage[T1]{fontenc} which seemed strange to me, as I thought that the fontenc package shouldn't be used with XeLaTeX. Indeed, after commenting this line, xelatex successfully created the correct PDF. This problem has almost certainly been caused by switching texlive and the related packages from 2020 to 2021, since on another computer where I masked the 2021 version of app-text/texlive-core, app-text/texlive and all packages in category dev-texlive, everything works correctly. test.lyx Description: application/lyx %% LyX 2.3.6.1 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[twoside,italian]{article} \usepackage[T1]{fontenc} \usepackage[a4paper]{geometry} \geometry{verbose,tmargin=2cm,bmargin=2cm,lmargin=2cm,rmargin=2cm} \usepackage{setspace} \setstretch{1.3} \usepackage{babel} \begin{document} TEST \end{document} This is XeTeX, Version 3.141592653-2.6-0.93 (TeX Live 2021 Gentoo Linux) (preloaded format=xelatex 2021.5.8) 16 MAY 2021 19:29 entering extended mode restricted \write18 enabled. %&-line parsing enabled. **test.tex (./test.tex LaTeX2e <2020-10-01> patch level 4 L3 programming layer <2021-02-18> (/usr/share/texmf-dist/tex/latex/base/article.cls Document Class: article 2020/04/10 v1.4m Standard LaTeX document class (/usr/share/texmf-dist/tex/latex/base/size10.clo File: size10.clo 2020/04/10 v1.4m Standard LaTeX file (size option) ) \c@part=\count175 \c@section=\count176 \c@subsection=\count177 \c@subsubsection=\count178 \c@paragraph=\count179 \c@subparagraph=\count180 \c@figure=\count181 \c@table=\count182 \abovecaptionskip=\skip47 \belowcaptionskip=\skip48 \bibindent=\dimen138 ) (/usr/share/texmf-dist/tex/latex/base/fontenc.sty Package: fontenc 2020/08/10 v2.0s Standard LaTeX package LaTeX Font Info:Trying to load font information for T1+lmr on input line 11 2. (/usr/share/texmf-dist/tex/latex/lm/t1lmr.fd File: t1lmr.fd 2009/10/30 v1.6 Font defs for Latin Modern )) (/usr/share/texmf-dist/tex/latex/geometry/geometry.sty Package: geometry 2020/01/02 v5.9 Page Geometry (/usr/share/texmf-dist/tex/latex/graphics/keyval.sty Package: keyval 2014/10/28 v1.15 key=value parser (DPC) \KV@toks@=\toks15 ) (/usr/share/texmf-dist/tex/generic/iftex/ifvtex.sty Package: ifvtex 2019/10/25 v1.7 ifvtex legacy package. Use iftex instead. (/usr/share/texmf-dist/tex/generic/iftex/iftex.sty Package: iftex 2020/03/06 v1.0d TeX engine tests )) \Gm@cnth=\count183 \Gm@cntv=\count184 \c@Gm@tempcnt=\count185 \Gm@bindingoffset=\dimen139 \Gm@wd@mp=\dimen140 \Gm@odd@mp=\dimen141 \Gm@even@mp=\dimen142 \Gm@layoutwidth=\dimen143 \Gm@layoutheight=\dimen144 \Gm@layouthoffset=\dimen145 \Gm@layoutvoffset=\dimen146 \Gm@dimlist=\toks16 ) (/usr/share/texmf-dist/tex/latex/setspace/setspace.sty Package: setspace 2011/12/19 v6.7a set line spacing ) (/usr/share/texmf-dist/tex/generic/babel/babel.sty Package: babel 2021/03/03 3.55 The Babel package (/usr/share/texmf-dist/tex/generic/babel/babel.def File: babel.def 2021/03/03 3.55 Babel common definitions \babel@savecnt=\count186 \U@D=\dimen147 \l@babelnohyphens=\language10 (/usr/share/texmf-dist/tex/generic/babel/xebabel.def (/usr/share/texmf-dist/tex /generic/babel/txtbabel.def)) \bbl@readstream=\read2 ) \bbl@dirlevel=\count187 (/usr/share/texmf-dist/tex/generic/babel-italian/italian.ldf Language: italian 2020/05/21 v.1.4.04 Italian support for the babel system \it@lettering=\count