On 2015-10-05, PhilipPirrip wrote:

> Why is LyX now adding this to every document, regardless of the class 
> and latex font encoding used and even in empty documents:

> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
> \DeclareRobustCommand{\cyrtext}{%
>    \fontencoding{T2A}\selectfont\def\encodingdefault{T2A}}
> \DeclareRobustCommand{\textcyr}[1]{\leavevmode{\cyrtext #1}}

I cannot tell why even on an empty document, but I can tell the intended
behaviour:

\cyrtext and \textcyr definitions are copied from Babel language definition
files for Russian (and other Cyrillic writing languages). They are required
to typeset Cyrillic letters under 8-bit TeX (but not with Xe/LuateX and
non-TeX-fonts).

LyX should/must insert them, if the document 

a) contains Cyrillic letters and
b) does not load a "Cyrillic" Babel language file.

Until now, only condition a) is implemented. 

Condition b) is topic of a bug report, search for textcyr or textgreek in
the LyX-Bugs.

I cannot tell what went wrong so that even an empty file has the
definitions. It would help to get more info on the dependency of this
misbehaviour on document settings.

> I think such interventions should be kept minimal.

True (although under normal circumstanceds the effect is limited to spurious
code in the preamble without further file loading etc.)

Günter

Reply via email to