[LyX/master] Workaround for \cprotect with LuaTeX/TeX fonts

Juergen Spitzmueller <[email protected]>
Newsgroups gmane.editors.lyx.cvs
Message-ID <[email protected]>
commit 71b6293e7fba1f1bebb7fc407caf04977fff9eaf
Author: Juergen Spitzmueller <[email protected]>
Date:   Mon Mar 16 08:29:55 2026 +0100

    Workaround for \cprotect with LuaTeX/TeX fonts
---
 lib/doc/ru/UserGuide.lyx | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/doc/ru/UserGuide.lyx b/lib/doc/ru/UserGuide.lyx
index da53b30b6c..2e3afcaa74 100644
--- a/lib/doc/ru/UserGuide.lyx
+++ b/lib/doc/ru/UserGuide.lyx
@@ -73,6 +73,10 @@
   \DeclareUnicodeCharacter{3008}{\ensuremath{\langle}}
   \DeclareUnicodeCharacter{3009}{\ensuremath{\rangle}}
 }{
+  \iftutex
+     % Needed for LuaTeX/TeX fonts with \cprotect
+     \def\T2A{}
+  \fi
 }
 \ifdefined\DeclareUnicodeCharacter\else
   % convert \cyr... and \CYR... to Unicode
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.