Limit the nopassthurchars case in beamer to URL

and also generally extend to classes that provide hyperref
This commit is contained in:
Juergen Spitzmueller 2024-05-20 08:26:03 +02:00
parent 2d86b88124
commit 6ef18c3583
2 changed files with 4 additions and 4 deletions

View File

@ -554,7 +554,6 @@ Style Frame
Example,Examples,Fact,Lemma,Proof,Theorem,LyX-Code
EndAutoNests
NeedCProtect -1
NoPassThruChars "%#"
End
Style PlainFrame
@ -578,7 +577,6 @@ Style FragileFrame
PresetArg "fragile"
EndArgument
NeedCProtect 0
NoPassThruChars ""
End
Style AgainFrame

View File

@ -1882,7 +1882,8 @@ Buffer::ExportStatus Buffer::writeLaTeXSource(otexstream & os,
// This is only set once per document (in master)
if (!runparams.is_child) {
runparams.use_polyglossia = features.usePolyglossia();
runparams.use_hyperref = features.isRequired("hyperref");
runparams.use_hyperref = features.isRequired("hyperref")
|| features.isProvided("hyperref");
runparams.use_CJK = features.mustProvide("CJK");
}
LYXERR(Debug::OUTFILE, " Buffer validation done.");
@ -4208,7 +4209,8 @@ unique_ptr<TexRow> Buffer::getSourceCode(odocstream & os, string const & format,
validate(features);
runparams.use_polyglossia = features.usePolyglossia();
runparams.use_babel = features.useBabel();
runparams.use_hyperref = features.isRequired("hyperref");
runparams.use_hyperref = features.isRequired("hyperref")
|| features.isProvided("hyperref");
// latex or literate
otexstream ots(os);
// output above