mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
Amend a716fb96b5
This commit is contained in:
parent
227ce773bf
commit
af59551b1b
@ -1174,6 +1174,7 @@ void Paragraph::Private::latexInset(BufferParams const & bparams,
|
||||
&& !textinset->text().isMainText()
|
||||
&& inset->lyxCode() != BRANCH_CODE
|
||||
&& !runparams.no_cprotect
|
||||
&& !inset->getLayout().noCProtect()
|
||||
: false;
|
||||
unsigned int count2 = basefont.latexWriteStartChanges(os, bparams,
|
||||
rp, running_font,
|
||||
|
@ -500,7 +500,7 @@ void InsetText::latex(otexstream & os, OutputParams const & runparams) const
|
||||
// FIXME UNICODE
|
||||
// FIXME \protect should only be used for fragile
|
||||
// commands, but we do not provide this information yet.
|
||||
if (!runparams.no_cprotect && hasCProtectContent(runparams.moving_arg)) {
|
||||
if (!il.noCProtect() && !runparams.no_cprotect && hasCProtectContent(runparams.moving_arg)) {
|
||||
if (contains(runparams.active_chars, '^')) {
|
||||
// cprotect relies on ^ being on catcode 7
|
||||
os << "\\begingroup\\catcode`\\^=7";
|
||||
|
Loading…
Reference in New Issue
Block a user