<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 22 September 2015 at 00:24, Mourelos Martínez Jacob <span dir="ltr"><<a href="mailto:jacob.mourelos@gmail.com" target="_blank">jacob.mourelos@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi all,</div><div><br></div><div>I am trying to use <span style="background:yellow"><span>Lyx</span></span> 2.1.3 to create a small document using <span style="background:yellow"><span>galician</span></span> as language. I am using Arch Linux and <span style="background:yellow"><span>texlive</span></span>-core 2015.37554-1. The generation of the <span style="background:yellow"><span>PDF</span></span> fails with the following error (from the log):</div><div><br></div><div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex" class="gmail_quote">! LaTeX Error: Missing \begin{document}.<br>See the LaTeX manual or LaTeX Companion for explanation.<br>Type H <return> for immediate help.<br> ...<br> l.25 \select@language{galician}<br>You're in trouble here. Try typing <return> to proceed.<br>If that doesn't work, type X <return> to quit.<br>! Extra }, or forgotten \endgroup.<br>\extrasgalician ...<b>xtbefore {na p\'axina anterior}</b><br> \def \reftextcurrent {nest...<br>l.25 \select@language{galician}</blockquote>
<p style="margin:0px"> </p>
<p style="margin:0px"> </p>
</div><div><br></div><div> Looking into /<span style="background:yellow"><span>usr</span></span>/share/<span style="background:yellow"><span>texmf</span></span>-dist/<span style="background:yellow"><span>tex</span></span>/latex/tools/<span style="background:yellow"><span>varioref</span></span>.sty I noticed the following lines in the <span style="background:yellow"><span>galician</span></span> section:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">\let\reftextafter {na p\'axina seguinte}%<br>\let\refte<b>xtbefore {na p\'axina anterior}</b>%</blockquote><div><br></div><div>I do not know any TeX, but I observed that for all the other languages either "def" is used instead of "let" for the equivalent lines or, if "let" is used, is assigned to a "def" <span style="background:yellow">assignment</span>. Based on this I replaced both "let"s by "def"s in the previously mentioned lines of the <span>galician</span> section and, after that, <span>Lyx</span> was able to generate the <span>PDF</span>.</div><div><br></div><div>It looks to me like a bug, but due to my limited knowledge I considered that others should evaluate it.</div><div> </div><div>The source to generate the sty file is this <span>dtx</span>:</div><a href="http://ctan.space-pro.be/tex-archive/macros/latex/required/tools/varioref.dtx" target="_blank">http://<span style="background:yellow"><span>ctan</span></span>.space-pro.be/<span style="background:yellow"><span>tex</span></span>-archive/macros/latex/required/tools/<span style="background:yellow"><span>varioref</span></span>.<span style="background:yellow"><span>dtx</span></span></a><div><br></div><div>Please, let me know if you need any additional information.<br><div><span style="background:yellow"><br></span></div><div><span style="background:yellow">Regards,</span></div><div><span style="background:yellow">Jacob</span></div></div></div>
</blockquote></div><br><br clear="all"><br><br></div><div class="gmail_extra">thanks, that's clearly a bug (and the correct fix) I'll pass it on to the right place.<br><br></div><div class="gmail_extra">David<br><br></div></div>