Render native XeTeX PNG, JPEG and BMP graphics
This commit is contained in:
1 parent
794c2f9b2c
commit
2bd6e19519
22 files changed
+821
-120
No files matched your search
@@ -5,7 +5,7 @@ use crate::pdf_device::{PdfDriver, PdfGraphics, PdfLiteralMode, PdfMatrix};
|
||||
impl Executor {
|
||||
pub(super) fn scan_special(
|
||||
&mut self,
|
||||
span: Span,
|
||||
token: &Token,
|
||||
files: &mut impl SourceProvider,
|
||||
) -> Result<(), Error> {
|
||||
let shipout = self.keyword("shipout", files)?;
|
||||
@@ -15,8 +15,12 @@ impl Executor {
|
||||
self.scan_expanded_group(files)?
|
||||
};
|
||||
self.defer_output(OutputNode {
|
||||
operation: OutputOperation::Special { shipout, tokens },
|
||||
span,
|
||||
operation: OutputOperation::Special {
|
||||
shipout,
|
||||
tokens,
|
||||
origin: Some(token.into()),
|
||||
},
|
||||
span: token.span,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -28,7 +32,7 @@ impl Executor {
|
||||
) -> Result<ShipoutSpecial, Error> {
|
||||
self.current = node.span;
|
||||
self.tick()?;
|
||||
let OutputOperation::Special { shipout, tokens } = &node.operation else {
|
||||
let OutputOperation::Special { shipout, tokens, .. } = &node.operation else {
|
||||
unreachable!()
|
||||
};
|
||||
let expanded;
|
||||
|
||||
Reference in new issue
Block a user