LyX loads *varioref* automatically

Andreas Plihal via lyx-users <[email protected]> Thu, 23 Jul 2026 11:34:02 +0000
Newsgroups gmane.editors.lyx.general
Message-ID <trinity-1fe6350a-ead2-45de-a769-23a3159bfc71-1784806441964@trinity-msg-rest-gmx-gmx-live-76b4d8d698-lzthg>
--===============5889637298498574096==
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<html><body><div style=3D"font-family: 'verdana'; font-size: 12px; color: #=
000;">
<p class=3D"PDq2pG_selectionAnchorContainer" data-start=3D"1331" data-end=
=3D"1351">Dear LyX developers,</p>
<p data-start=3D"1356" data-end=3D"1437">I ran into an interaction between=
 the current versions of <code data-start=3D"1414" data-end=3D"1421">babel<=
/code> and <code data-start=3D"1426" data-end=3D"1436">varioref</code>=2E</=
p>
<p data-start=3D"1442" data-end=3D"1546">The LaTeX developers confirmed th=
at this is a known issue (#2112) and suggested the temporary workaround</p>
<div class=3D"relative w-full mt-4 mb-1">
<div class=3D"">
<div class=3D"contents">
<div class=3D"border border-token-border-light border-radius-3xl corner-su=
perellipse/1=2E1 rounded-3xl">
<div class=3D"relative h-full w-full border-radius-3xl bg-(--code-block-su=
rface) corner-superellipse/1=2E1 overflow-clip rounded-3xl [--code-block-su=
rface:var(--bg-elevated-secondary)] dark:[--code-block-surface:var(--compos=
er-surface-primary)] lxnfua_clipPathFallback">
<div class=3D"pointer-events-none absolute inset-x-4 top-12 bottom-4">
<div class=3D"pointer-events-none sticky z-40 shrink-0 z-1!">
<div class=3D"sticky bg-token-border-light">&nbsp;</div>
</div>
</div>
<div class=3D"relative">
<div class=3D"h-full min-h-0 min-w-0">
<div class=3D"h-full min-h-0 min-w-0">
<div class=3D"">
<div class=3D"relative">
<div class=3D"">
<div class=3D"relative z-0 flex max-w-full">
<div id=3D"code-block-viewer" class=3D"q9tKkq_viewer cm-editor z-10 light:=
cm-light dark:cm-light flex h-full w-full flex-col items-stretch =CD=BCd =
=CD=BCr" dir=3D"ltr">
<div class=3D"cm-scroller">
<pre class=3D"cm-content q9tKkq_readonly m-0"><code>\providecommand\extras=
english{}</code></pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class=3D"">
<div class=3D"">&nbsp;</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p data-start=3D"1604" data-end=3D"1630">before loading <code data-start=
=3D"1619" data-end=3D"1629">varioref</code>=2E</p>
<p data-start=3D"1635" data-end=3D"1682">This works perfectly in normal La=
TeX documents=2E</p>
<p data-start=3D"1687" data-end=3D"1736">However, in LyX the exported <cod=
e data-start=3D"1716" data-end=3D"1722">=2Etex</code> file contains</p>
<div class=3D"relative w-full mt-4 mb-1">
<div class=3D"">
<div class=3D"contents">
<div class=3D"border border-token-border-light border-radius-3xl corner-su=
perellipse/1=2E1 rounded-3xl">
<div class=3D"relative h-full w-full border-radius-3xl bg-(--code-block-su=
rface) corner-superellipse/1=2E1 overflow-clip rounded-3xl [--code-block-su=
rface:var(--bg-elevated-secondary)] dark:[--code-block-surface:var(--compos=
er-surface-primary)] lxnfua_clipPathFallback">
<div class=3D"pointer-events-none absolute inset-x-4 top-12 bottom-4">
<div class=3D"pointer-events-none sticky z-40 shrink-0 z-1!">
<div class=3D"sticky bg-token-border-light">&nbsp;</div>
</div>
</div>
<div class=3D"relative">
<div class=3D"h-full min-h-0 min-w-0">
<div class=3D"h-full min-h-0 min-w-0">
<div class=3D"">
<div class=3D"relative">
<div class=3D"">
<div class=3D"relative z-0 flex max-w-full">
<div id=3D"code-block-viewer" class=3D"q9tKkq_viewer cm-editor z-10 light:=
cm-light dark:cm-light flex h-full w-full flex-col items-stretch =CD=BCd =
=CD=BCr" dir=3D"ltr">
<div class=3D"cm-scroller">
<pre class=3D"cm-content q9tKkq_readonly m-0"><code>\usepackage{varioref}<=
/code></pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class=3D"">
<div class=3D"">&nbsp;</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p data-start=3D"1784" data-end=3D"1860">before the user preamble, so the =
workaround cannot be inserted early enough=2E</p>
<p data-start=3D"1865" data-end=3D"2006">I also noticed that my document d=
oes <strong data-start=3D"1902" data-end=3D"1909">not</strong> explicitly r=
equest <code data-start=3D"1929" data-end=3D"1939">varioref</code> (<code d=
ata-start=3D"1941" data-end=3D"1958">\use_refstyle 0</code>, <code data-sta=
rt=3D"1960" data-end=3D"1982">\use_formatted_ref 0</code>, no <code data-st=
art=3D"1987" data-end=3D"1993">vref</code> references)=2E</p>
<p data-start=3D"2011" data-end=3D"2075">Is there a reason why LyX still e=
xports <code data-start=3D"2051" data-end=3D"2074">\usepackage{varioref}</c=
ode>?</p>
<p data-start=3D"2080" data-end=3D"2169">Is there a recommended way to inj=
ect code before automatically generated package loading?</p>
<p data-start=3D"2080" data-end=3D"2169"><span style=3D"background-color: =
#ffffff;">&nbsp;</span></p>
<p data-start=3D"2080" data-end=3D"2169"><span style=3D"background-color: =
#ffffff;">I'm working with</span></p>
<p class=3D"MsoNormal">LuaLaTeX</p>
<p class=3D"MsoNormal">LyX 2=2E4=2E4</p>
<p class=3D"MsoNormal">MiKTeX 26=2E5</p>
<p class=3D"MsoNormal">&nbsp;</p>
<p class=3D"MsoNormal">LG Andreas</p>
</div></body></html>

--===============5889637298498574096==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-- 
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users

--===============5889637298498574096==--