Re: \cyrtext and \textcyr in the preabmle
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
Re: \cyrtext and \textcyr in the preabmle
On 10/05/2015 03:10 AM, Guenter Milde wrote: 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. All default document settings, freshly compiled LyX version 2.2.0dev (October 1 2015), git commit 24ae2093 on Fedora linux 23 (although under normal circumstanceds the effect is limited to spurious code in the preamble without further file loading etc.) True, but still not good. Say I'm exporting to LaTeX a paper for submission to a journal, I'd definitely not want to have this code in there. The code is also added to old documents, I just tested it with classicthesis template.
Re: \cyrtext and \textcyr in the preabmle
Could you file a bug report? Thanks, Günter Just did, http://www.lyx.org/trac/ticket/9792 Thanks
Re: \cyrtext and \textcyr in the preabmle
On 2015-10-05, PhilipPirrip wrote: > On 10/05/2015 03:10 AM, Guenter Milde wrote: >> 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. > All default document settings, freshly compiled LyX version 2.2.0dev > (October 1 2015), git commit 24ae2093 on Fedora linux 23 >> (although under normal circumstanceds the effect is limited to spurious >> code in the preamble without further file loading etc.) > True, but still not good. Say I'm exporting to LaTeX a paper for > submission to a journal, I'd definitely not want to have this code in there. > The code is also added to old documents, I just tested it with > classicthesis template. Could you file a bug report? Thanks, Günter
\cyrtext and \textcyr in the preabmle
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 think such interventions should be kept minimal.