Execute native PDF device extensions in math lists

This commit is contained in:
gloamxun committed 2026-11-21 03:40:31 +08:00
1 parent d1ddf4bfeb
commit 278b1f35e2
5 files changed
+78 -36

No files matched your search

@@ -546,11 +546,7 @@ impl Executor {
)?,
Vcenter => self.box_command(*p, boxes::Destination::Append, token.span, files)?,
Hbox | Vbox | Vtop | Box | Copy | Setbox | Wd | Ht | Dp | Lastbox | Raise
| Lower | Vsplit | Mark | Marks | Vadjust | Insert | Shipout | Openout
| Closeout | Write | Pdfcolorstack | Pdfsave | Pdfsetmatrix | Pdfrestore | Pdfcatalog | Pdfoutline
| Pdfglyphtounicode | Pdffontattr | Pdfnobuiltintounicode
| Pdfrunninglinkoff | Pdfrunninglinkon
| Pdfinterwordspaceon | Pdfinterwordspaceoff | Pdffakespace | Pdfspacefont
| Lower | Vsplit | Mark | Marks | Vadjust | Insert | Shipout
| Ignorespaces | Unskip | Unkern | Unpenalty => {
return Ok(false);
}
@@ -791,9 +787,10 @@ impl Executor {
| Scriptscriptfont | Endlinechar | Newlinechar | Escapechar | Globaldefs | Time
| Day | Month | Year | BeginGroup | EndGroup | Relax | Message | Errmessage
| Endinput | Showbox | Show | Showthe | Discretionary | DiscretionaryHyphen
| Parshape | Partokenname | Pdfliteral => {
| Parshape | Partokenname => {
return Ok(false);
}
_ if self.execute_output_extension(*p, token, files)? => {}
_ => return self.fail(format!("unsupported native math primitive: {p:?}")),
},
Meaning::Count(_)