Gentoo Archives: gentoo-user

From: Nils Freydank <nils.freydank@××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Problems with LyX and xetex-2021
Date: Sun, 11 Jul 2021 13:01:18
Message-Id: 20210711130107.wgrbirisjsadyf7x@pygoscelis.ansernet
In Reply to: [gentoo-user] Problems with LyX and xetex-2021 by Stefano Crocco
1 Hi Stefano,
2
3 I couldn't reproduce your error with xelatex at all. I took your example/MWE
4 and just executed "xelatex test.tex" and it generated me a single page PDF.
5
6 A quick and dirty idea: Move ~/.texlive (e.g. to ~/.texlive-bak) and let texlive
7 regenerate files there.
8
9 In my worldfile I have app-text/texlive, dev-tex/biber and dev-tex/latexmk,
10 everything else are just deps.
11
12 Interestingly it works even with USE="-xetex" for texlive which in turn has only
13 the following USE flags enabled:
14 "X extra graphics luatex metapost music png pstricks science truetype"
15
16 Hope that helps you,
17 Nils
18
19 Am Sonntag, den 16.05.2021 um 19:58:32 Uhr +0200 schrieb Stefano Crocco <posta@×××××××××××××.it>:
20 > Hello to everyone,
21 > since upgrading my ~arch system to TeXLive-2021 I'm having problems using
22 > XeLaTeX to compile LyX documents. Has someone else experienced this issue? I'd
23 > like to file a bug report about it, but before doing so I'd like to be sure
24 > that there isn't something wrong with my system.
25 >
26 > Below you'll find the details of my problem.
27 >
28 > Thanks in advance
29 >
30 > Stefano
31 >
32 > DETAILS
33 >
34 > When I use LyX to create a PDF using XeLaTeX from the attached test.lyx file
35 > (using the default LaTeX (XeTeX) -> PDF (XeTeX) converter), I get an error
36 > dialog with the following text:
37 >
38 > The external program
39 > xelatex
40 > finished with an error. It is recommended you fix the cause of the external
41 > program's error (check the logs).
42 >
43 > As far as I can see, the log (attached as log_from_lyx) don't mention any
44 > error, except for the generic (at least to my eyes) line
45 > "Error 256 (driver return code) generating output;"
46 > near the end.
47 >
48 > Trying to obtain a better error message, I exported the LyX file as a XeLaTeX
49 > file using the File/Export LaTeX (xetex) menu entry and run xelatex on it. Of
50 > course, it failed, but this time the log (in the log_from_xelatex attachment)
51 > contains a more meaningful message:
52 > "xdvipdfmx:fatal: Cannot proceed without .vf or "physical" font for PDF
53 > output..."
54 >
55 > Unfortunately, I'm not expert enough in the inner works of (xe)latex to
56 > understand this message. I tried searching google for it but didn't find
57 > anything useful. However, looking at the tex file generated by LyX (the
58 > test.tex attachment), I noticed the line
59 >
60 > \usepackage[T1]{fontenc}
61 >
62 > which seemed strange to me, as I thought that the fontenc package shouldn't be
63 > used with XeLaTeX. Indeed, after commenting this line, xelatex successfully
64 > created the correct PDF.
65 >
66 > This problem has almost certainly been caused by switching texlive and the
67 > related packages from 2020 to 2021, since on another computer where I masked
68 > the 2021 version of app-text/texlive-core, app-text/texlive and all packages
69 > in category dev-texlive, everything works correctly.
70
71
72
73 > This is XeTeX, Version 3.141592653-2.6-0.999993 (TeX Live 2021 Gentoo Linux) (preloaded format=xelatex 2021.5.8) 16 MAY 2021 19:29
74 > entering extended mode
75 > restricted \write18 enabled.
76 > %&-line parsing enabled.
77 > **test.tex
78 > (./test.tex
79 > LaTeX2e <2020-10-01> patch level 4
80 > L3 programming layer <2021-02-18>
81 > (/usr/share/texmf-dist/tex/latex/base/article.cls
82 > Document Class: article 2020/04/10 v1.4m Standard LaTeX document class
83 > (/usr/share/texmf-dist/tex/latex/base/size10.clo
84 > File: size10.clo 2020/04/10 v1.4m Standard LaTeX file (size option)
85 > )
86 > \c@part=\count175
87 > \c@section=\count176
88 > \c@subsection=\count177
89 > \c@subsubsection=\count178
90 > \c@paragraph=\count179
91 > \c@subparagraph=\count180
92 > \c@figure=\count181
93 > \c@table=\count182
94 > \abovecaptionskip=\skip47
95 > \belowcaptionskip=\skip48
96 > \bibindent=\dimen138
97 > ) (/usr/share/texmf-dist/tex/latex/base/fontenc.sty
98 > Package: fontenc 2020/08/10 v2.0s Standard LaTeX package
99 > LaTeX Font Info: Trying to load font information for T1+lmr on input line 11
100 > 2.
101 > (/usr/share/texmf-dist/tex/latex/lm/t1lmr.fd
102 > File: t1lmr.fd 2009/10/30 v1.6 Font defs for Latin Modern
103 > )) (/usr/share/texmf-dist/tex/latex/geometry/geometry.sty
104 > Package: geometry 2020/01/02 v5.9 Page Geometry
105 > (/usr/share/texmf-dist/tex/latex/graphics/keyval.sty
106 > Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
107 > \KV@toks@=\toks15
108 > ) (/usr/share/texmf-dist/tex/generic/iftex/ifvtex.sty
109 > Package: ifvtex 2019/10/25 v1.7 ifvtex legacy package. Use iftex instead.
110 > (/usr/share/texmf-dist/tex/generic/iftex/iftex.sty
111 > Package: iftex 2020/03/06 v1.0d TeX engine tests
112 > ))
113 > \Gm@cnth=\count183
114 > \Gm@cntv=\count184
115 > \c@Gm@tempcnt=\count185
116 > \Gm@bindingoffset=\dimen139
117 > \Gm@wd@mp=\dimen140
118 > \Gm@odd@mp=\dimen141
119 > \Gm@even@mp=\dimen142
120 > \Gm@layoutwidth=\dimen143
121 > \Gm@layoutheight=\dimen144
122 > \Gm@layouthoffset=\dimen145
123 > \Gm@layoutvoffset=\dimen146
124 > \Gm@dimlist=\toks16
125 > ) (/usr/share/texmf-dist/tex/latex/setspace/setspace.sty
126 > Package: setspace 2011/12/19 v6.7a set line spacing
127 > ) (/usr/share/texmf-dist/tex/generic/babel/babel.sty
128 > Package: babel 2021/03/03 3.55 The Babel package
129 > (/usr/share/texmf-dist/tex/generic/babel/babel.def
130 > File: babel.def 2021/03/03 3.55 Babel common definitions
131 > \babel@savecnt=\count186
132 > \U@D=\dimen147
133 > \l@babelnohyphens=\language10
134 > (/usr/share/texmf-dist/tex/generic/babel/xebabel.def (/usr/share/texmf-dist/tex
135 > /generic/babel/txtbabel.def))
136 > \bbl@readstream=\read2
137 > )
138 > \bbl@dirlevel=\count187
139 > (/usr/share/texmf-dist/tex/generic/babel-italian/italian.ldf
140 > Language: italian 2020/05/21 v.1.4.04 Italian support for the babel system
141 > \it@lettering=\count188
142 > \it@doublequoteactive=\count189
143 > \it@ISOcompliance=\count190
144 > )) (/usr/share/texmf-dist/tex/latex/etoolbox/etoolbox.sty
145 > Package: etoolbox 2020/10/05 v2.5k e-TeX tools for LaTeX (JAW)
146 > \etb@tempcnta=\count191
147 > ) (/usr/share/texmf-dist/tex/latex/l3backend/l3backend-xetex.def
148 > File: l3backend-xetex.def 2021-03-18 L3 backend support: XeTeX
149 > (|extractbb --version)
150 > \c__kernel_sys_dvipdfmx_version_int=\count192
151 > \l__color_backend_stack_int=\count193
152 > \g__color_backend_stack_int=\count194
153 > \g__graphics_track_int=\count195
154 > \l__pdf_internal_box=\box47
155 > \g__pdf_backend_object_int=\count196
156 > \g__pdf_backend_annotation_int=\count197
157 > \g__pdf_backend_link_int=\count198
158 > )
159 > No file test.aux.
160 > \openout1 = `test.aux'.
161 >
162 > LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 12.
163 > LaTeX Font Info: ... okay on input line 12.
164 > LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 12.
165 > LaTeX Font Info: ... okay on input line 12.
166 > LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 12.
167 > LaTeX Font Info: ... okay on input line 12.
168 > LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 12.
169 > LaTeX Font Info: ... okay on input line 12.
170 > LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 12.
171 > LaTeX Font Info: Trying to load font information for TS1+cmr on input line 1
172 > 2.
173 > (/usr/share/texmf-dist/tex/latex/base/ts1cmr.fd
174 > File: ts1cmr.fd 2019/12/16 v2.5j Standard LaTeX font definitions
175 > )
176 > LaTeX Font Info: ... okay on input line 12.
177 > LaTeX Font Info: Checking defaults for TU/lmr/m/n on input line 12.
178 > LaTeX Font Info: ... okay on input line 12.
179 > LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 12.
180 > LaTeX Font Info: ... okay on input line 12.
181 > LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 12.
182 > LaTeX Font Info: ... okay on input line 12.
183 > *geometry* driver: auto-detecting
184 > *geometry* detected driver: xetex
185 >
186 > Package geometry Warning: The marginal notes overrun the paper.
187 > Add 75.0945pt and more to the right margin.
188 >
189 > *geometry* verbose mode - [ preamble ] result:
190 > * driver: xetex
191 > * paper: a4paper
192 > * layout: <same size as paper>
193 > * layoutoffset:(h,v)=(0.0pt,0.0pt)
194 > * modes: twoside
195 > * h-part:(L,W,R)=(56.9055pt, 483.69687pt, 56.9055pt)
196 > * v-part:(T,H,B)=(56.9055pt, 731.23584pt, 56.9055pt)
197 > * \paperwidth=597.50787pt
198 > * \paperheight=845.04684pt
199 > * \textwidth=483.69687pt
200 > * \textheight=731.23584pt
201 > * \oddsidemargin=-15.36449pt
202 > * \evensidemargin=-15.36449pt
203 > * \topmargin=-52.36449pt
204 > * \headheight=12.0pt
205 > * \headsep=25.0pt
206 > * \topskip=10.0pt
207 > * \footskip=30.0pt
208 > * \marginparwidth=121.0pt
209 > * \marginparsep=11.0pt
210 > * \columnsep=10.0pt
211 > * \skip\footins=9.0pt plus 4.0pt minus 2.0pt
212 > * \hoffset=0.0pt
213 > * \voffset=0.0pt
214 > * \mag=1000
215 > * \@twocolumnfalse
216 > * \@twosidetrue
217 > * \@mparswitchtrue
218 > * \@reversemarginfalse
219 > * (1in=72.27pt=25.4mm, 1cm=28.453pt)
220 >
221 > LaTeX Info: Redefining \it@ocap on input line 12.
222 > LaTeX Info: Redefining \it@ccap on input line 12.
223 > [1
224 >
225 > ] (./test.aux) )
226 > Here is how much of TeX's memory you used:
227 > 2404 strings out of 478834
228 > 34474 string characters out of 5864768
229 > 348542 words of memory out of 5000000
230 > 22320 multiletter control sequences out of 15000+600000
231 > 406428 words of font info for 29 fonts, out of 8000000 for 9000
232 > 36 hyphenation exceptions out of 8191
233 > 68i,4n,74p,239b,129s stack positions out of 5000i,500n,10000p,200000b,80000s
234 >
235 > Error 256 (driver return code) generating output;
236 > file test.pdf may not be valid.
237
238 > This is XeTeX, Version 3.141592653-2.6-0.999993 (TeX Live 2021 Gentoo Linux) (preloaded format=xelatex)
239 > restricted \write18 enabled.
240 > entering extended mode
241 > (./test.tex
242 > LaTeX2e <2020-10-01> patch level 4
243 > L3 programming layer <2021-02-18>
244 > (/usr/share/texmf-dist/tex/latex/base/article.cls
245 > Document Class: article 2020/04/10 v1.4m Standard LaTeX document class
246 > (/usr/share/texmf-dist/tex/latex/base/size10.clo))
247 > (/usr/share/texmf-dist/tex/latex/base/fontenc.sty
248 > (/usr/share/texmf-dist/tex/latex/lm/t1lmr.fd))
249 > (/usr/share/texmf-dist/tex/latex/geometry/geometry.sty
250 > (/usr/share/texmf-dist/tex/latex/graphics/keyval.sty)
251 > (/usr/share/texmf-dist/tex/generic/iftex/ifvtex.sty
252 > (/usr/share/texmf-dist/tex/generic/iftex/iftex.sty)))
253 > (/usr/share/texmf-dist/tex/latex/setspace/setspace.sty)
254 > (/usr/share/texmf-dist/tex/generic/babel/babel.sty
255 > (/usr/share/texmf-dist/tex/generic/babel/babel.def
256 > (/usr/share/texmf-dist/tex/generic/babel/xebabel.def
257 > (/usr/share/texmf-dist/tex/generic/babel/txtbabel.def)))
258 > (/usr/share/texmf-dist/tex/generic/babel-italian/italian.ldf))
259 > (/usr/share/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
260 > (/usr/share/texmf-dist/tex/latex/l3backend/l3backend-xetex.def
261 > (|extractbb --version))
262 > No file test.aux.
263 > (/usr/share/texmf-dist/tex/latex/base/ts1cmr.fd)
264 > *geometry* driver: auto-detecting
265 > *geometry* detected driver: xetex
266 >
267 > Package geometry Warning: The marginal notes overrun the paper.
268 > Add 75.0945pt and more to the right margin.
269 >
270 > *geometry* verbose mode - [ preamble ] result:
271 > * driver: xetex
272 > * paper: a4paper
273 > * layout: <same size as paper>
274 > * layoutoffset:(h,v)=(0.0pt,0.0pt)
275 > * modes: twoside
276 > * h-part:(L,W,R)=(56.9055pt, 483.69687pt, 56.9055pt)
277 > * v-part:(T,H,B)=(56.9055pt, 731.23584pt, 56.9055pt)
278 > * \paperwidth=597.50787pt
279 > * \paperheight=845.04684pt
280 > * \textwidth=483.69687pt
281 > * \textheight=731.23584pt
282 > * \oddsidemargin=-15.36449pt
283 > * \evensidemargin=-15.36449pt
284 > * \topmargin=-52.36449pt
285 > * \headheight=12.0pt
286 > * \headsep=25.0pt
287 > * \topskip=10.0pt
288 > * \footskip=30.0pt
289 > * \marginparwidth=121.0pt
290 > * \marginparsep=11.0pt
291 > * \columnsep=10.0pt
292 > * \skip\footins=9.0pt plus 4.0pt minus 2.0pt
293 > * \hoffset=0.0pt
294 > * \voffset=0.0pt
295 > * \mag=1000
296 > * \@twocolumnfalse
297 > * \@twosidetrue
298 > * \@mparswitchtrue
299 > * \@reversemarginfalse
300 > * (1in=72.27pt=25.4mm, 1cm=28.453pt)
301 >
302 > [1] (./test.aux)
303 > xdvipdfmx:fatal: Cannot proceed without .vf or "physical" font for PDF output...
304 >
305 > No output PDF file written.
306 > )
307 > Error 256 (driver return code) generating output;
308 > file test.pdf may not be valid.
309 > Transcript written on test.log.

Replies

Subject Author
Re: [gentoo-user] Problems with LyX and xetex-2021 Stefano Crocco <posta@×××××××××××××.it>