Save the TeX cursor in native shipout order
This commit is contained in:
1 parent
555a029505
commit
413939911f
12 files changed
+173
-28
No files matched your search
@@ -2152,6 +2152,10 @@ impl Executor {
|
||||
self.reads.insert(Dependency::PdfRandomState);
|
||||
Ok(self.state.random_seed())
|
||||
}
|
||||
Meaning::Primitive(p @ (Primitive::Pdflastxpos | Primitive::Pdflastypos)) => {
|
||||
self.reads.insert(Dependency::PdfLastPosition);
|
||||
Ok(self.state.pdf_last_position[usize::from(p == Primitive::Pdflastypos)])
|
||||
}
|
||||
Meaning::Primitive(Primitive::Pdflastlink) => {
|
||||
self.reads.insert(Dependency::PdfObjects);
|
||||
Ok(self
|
||||
@@ -2824,6 +2828,9 @@ impl Executor {
|
||||
OutputOperation::PdfLink(_) => {
|
||||
return self.fail("PDF link operation requires a positioned shipout");
|
||||
}
|
||||
OutputOperation::PdfSavePosition => {
|
||||
return self.fail("PDF position requires a positioned shipout");
|
||||
}
|
||||
OutputOperation::PdfSave
|
||||
| OutputOperation::PdfSetMatrix(_)
|
||||
| OutputOperation::PdfRestore
|
||||
|
||||
Reference in new issue
Block a user