Thanks for the tip. I added those lines into my document. Now, the document
seems to compile fine, but in between I get a bunch of errors of the
following type:

{{{

! Missing control sequence inserted.

<inserted text>

\inaccessible

<to be read again>

{

<argument> ...ntroduction: \guillemotleft {}\def {

ngerman}\foreignlanguage {...


...

Please don't say `\def cs{...}', say `\def\cs{...}'.

I've inserted an inaccessible control sequence so that your

definition will be completed without mixing me up too badly.

}}}


Am I missing something else in my preamble, or can I just safely ignore
this warning?

On Sat, Jun 17, 2017 at 4:22 AM, LyX Ticket Tracker <t...@lyx.org> wrote:

> #10685: Wrong language switches with no lang package and non-empty
> lang_end_command
> -----------------------------+-------------------------
>  Reporter:  ExecutorElassus  |       Owner:  lasgouttes
>      Type:  defect           |      Status:  fixed
>  Priority:  normal           |   Milestone:  2.2.4
> Component:  general          |     Version:  2.2.3
>  Severity:  normal           |  Resolution:
>  Keywords:  patch            |
> -----------------------------+-------------------------
>
> Comment (by forenr):
>
>  You are missing the following line from comment:33
>  {{{
>  \setotherlanguage[variant=german,spelling=new,
> babelshorthands=true]{german}
>  }}}
>  while the following two were in your polyglossiabreaker2.lyx but not in
>  polyglossiabreaker2.3.tex
>  {{{
>  \newenvironment{ngerman}{\begin{german}}{\end{german}}
>  \newenvironment{american}{\begin{english}[variant=
> american]}{\end{english}}
>  }}}
>
>  After adding these 3 lines to the preamble of polyglossiabreaker2.3.tex I
>  was able to successfully compile it with xelatex.
>
> --
> Ticket URL: <http://www.lyx.org/trac/ticket/10685#comment:37>
> The LyX Project <http://www.lyx.org/>
> LyX -- The Document Processor
>

Reply via email to