LyXCyrillic formatted text in mathmode

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
neGODnick
Posts: 35
Joined: Mon Jun 16, 2008 9:31 pm

Cyrillic formatted text in mathmode

Post by neGODnick »

Hi!

We have mathtext package to write russian in math mode. By default russian
letters are upright, but we can say:

Code: Select all

\DeclareSymbolFont{T2Aletters}{T2A}{cmr}{m}{it}
аnd make them italic (or slanted etc.). That is very important possibility, but in LyX it doesn't work! No effect! I think, the occasion is in LyX code, which
programm adds into document:

Code: Select all

\DeclareRobustCommand{\lyxmathsym}[1]{\ifmmode\begingroup\def\b@ld{bold}
  \def\rmorbf##1{\ifx\math@version\b@ld\textbf{##1}\else\textrm{##1}\fi}
  \mathchoice{\hbox{\rmorbf{#1}}}{\hbox{\rmorbf{#1}}}
  {\hbox{\smaller[2]\rmorbf{#1}}}{\hbox{\smaller[3]\rmorbf{#1}}}
  \endgroup\else#1\fi}
but I don't know, how to resolve this problem. Russian text in formulae LyX writes as

Code: Select all

$\lyxmathsym{«Эптнц»}$
Could anybody help me to fix it?

Best regards, neGODnick

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

neGODnick
Posts: 35
Joined: Mon Jun 16, 2008 9:31 pm

Re: Cyrillic formatted text in mathmode

Post by neGODnick »

Post Reply