[LyX/master] + es/Letter standard class (from Dan)
Dan
d3vf4n at tutanota.com
Sun Sep 24 17:59:58 UTC 2023
24 de set. de 2023, 10:47 per udifoglle at gmail.com:
>> > On Sun, Sep 24, 2023 at 01:48:17AM +0200, Dan wrote:
>> >
>> >> I provide a better workaround for this problem: custom command to set the language in Document > Settings... > Language.
>> >> The command is
>> >> \usepackage[spanish,es-noquoting]{babel}
>> >> which sets the document's language to Spanish and disables the shorthands < and >; and for some reason seems to work ^^'.
>>
>
> Yes, I've noticed this option exists, the problem is not just with Letter
> document class.
>
I could not reproduce the problem in "article" or "book" document classes, but it does arise in these classes (test LaTeX document attached)
- paper
- Koma-Script variants: scrartcl, scrbook, scrreport.
Also, the problem only shows when using either < or >, not ". Note that ~ is considered obsolete since version 4 (although activated), and is deactivated by default in version 5 of babel-spanish.
So it might be a problem in the babel-spanish package after all. And therefore I thank you for taking the time to report it :).
> The problem that babel-spanish activates '<' and '>'
> at the beginning of the document (unless the es-noquoting option
> is passed or the macro \deactivatequoting is issued before that), so using
>
> \addto\shorthandsspanish{\spanishdeactivate{<>}}
>
> I've made a bug report at babel-spanish,
> and I'm waiting for a reply from Javier.
>
The last activity in that repository was two years ago... I am unsure whether he still watches that. I can try to reach him through http://www.cervantex.es/. Also, to see if anyone there has experienced this problem with babel-spanish, as there is a mailing list for users of (La)TeX in Spanish.
> adding to the preamble the line \deactivatequoting is the best way to go.
>
That is another option, with the plus that the user can turn it on/off at will.
That line alone in the preamble will not work, the language package must be added as well, like this
\usepackage[spanish]{babel}
\deactivatequoting
because LyX puts the preamble code BEFORE the language-package inclusion.
Daniel.
--
Enviat amb Tutanota.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: babel-spanish-test.tex
Type: text/x-tex
Size: 833 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20230924/ac59fdf1/attachment.tex>
More information about the lyx-devel
mailing list