<div dir="ltr"><div>Hi all,</div><div><br></div><div>I am trying to use <span class="" id=":ra.1" tabindex="-1" style="background:yellow"><span class="" id=":ra.1" tabindex="-1">Lyx</span></span> 2.1.3 to create a small document using <span class="" id=":ra.2" tabindex="-1" style="background:yellow"><span class="" id=":ra.2" tabindex="-1">galician</span></span> as language. I am using Arch Linux and <span class="" id=":ra.4" tabindex="-1" style="background:yellow"><span class="" id=":ra.3" tabindex="-1">texlive</span></span>-core 2015.37554-1. The generation of the <span class="" id=":ra.3" tabindex="-1" style="background:yellow"><span class="" id=":ra.4" tabindex="-1">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 class="" id=":ra.5" tabindex="-1" style="background:yellow"><span class="" id=":ra.5" tabindex="-1">usr</span></span>/share/<span class="" id=":ra.6" tabindex="-1" style="background:yellow"><span class="" id=":ra.6" tabindex="-1">texmf</span></span>-dist/<span class="" id=":ra.7" tabindex="-1" style="background:yellow"><span class="" id=":ra.7" tabindex="-1">tex</span></span>/latex/tools/<span class="" id=":ra.8" tabindex="-1" style="background:yellow"><span class="" id=":ra.8" tabindex="-1">varioref</span></span>.sty I noticed the following lines in the <span class="" id=":ra.9" tabindex="-1" style="background:yellow"><span class="" id=":ra.9" tabindex="-1">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 class="" id=":ra.10" tabindex="-1" style="background:yellow">assignment</span>. Based on this I replaced both "let"s by "def"s in the previously mentioned lines of the <span class="" id=":ra.10" tabindex="-1">galician</span> section and, after that, <span class="" id=":ra.11" tabindex="-1">Lyx</span> was able to generate the <span class="" id=":ra.12" tabindex="-1">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 class="" id=":ra.13" tabindex="-1">dtx</span>:</div><a href="http://ctan.space-pro.be/tex-archive/macros/latex/required/tools/varioref.dtx">http://<span class="" id=":ra.11" tabindex="-1" style="background:yellow"><span class="" id=":ra.14" tabindex="-1">ctan</span></span>.space-pro.be/<span class="" id=":ra.12" tabindex="-1" style="background:yellow"><span class="" id=":ra.15" tabindex="-1">tex</span></span>-archive/macros/latex/required/tools/<span class="" id=":ra.13" tabindex="-1" style="background:yellow"><span class="" id=":ra.16" tabindex="-1">varioref</span></span>.<span class="" id=":ra.14" tabindex="-1" style="background:yellow"><span class="" id=":ra.17" tabindex="-1">dtx</span></span></a><div><br></div><div>Please, let me know if you need any additional information.<br><div><span class="" tabindex="-1" style="background:yellow"><br></span></div><div><span class="" tabindex="-1" style="background:yellow">Regards,</span></div><div><span class="" tabindex="-1" style="background:yellow">Jacob</span></div></div></div>