os << "\\fcolorbox{" << params_.framecolor << "}{" << params_.backgroundcolor << "}";
else {
if (!cprotect.empty() && contains(runparams.active_chars, '^')) {
- // cprotect relies on ^ being ignored
- os << "\\begingroup\\catcode`\\^=9";
+ // cprotect relies on ^ being on catcode 7
+ os << "\\begingroup\\catcode`\\^=7";
needendgroup = true;
}
os << cprotect << "\\fbox";
// commands, but we do not provide this information yet.
if (hasCProtectContent(runparams.moving_arg)) {
if (contains(runparams.active_chars, '^')) {
- // cprotect relies on ^ being ignored
- os << "\\begingroup\\catcode`\\^=9";
+ // cprotect relies on ^ being on catcode 7
+ os << "\\begingroup\\catcode`\\^=7";
needendgroup = true;
}
os << "\\cprotect";
case LATEX_COMMAND:
if (par.needsCProtection(runparams.moving_arg)) {
if (contains(runparams.active_chars, '^'))
- // cprotect relies on ^ being ignored
- os << "\\begingroup\\catcode`\\^=9";
+ // cprotect relies on ^ being on catcode 7
+ os << "\\begingroup\\catcode`\\^=7";
os << "\\cprotect";
}
os << '\\' << from_ascii(style.latexname());