-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When we run the “no-op” output routine, we run `\unvbox255` to retain all of the page's “visible” contents, and `\holdinginserts=1` to retain any inserts. This _almost_ ensures that the no-op output routine has zero side effects, but one problem remains: mark nodes. Whenever the output routine is ran, LuaTeX unconditionally processes any mark nodes and moves their contents into `\topmark`, `\firstmark`, and `\botmark`. This is a problem since if we run the no-op output routine in the middle of a page, on the next “real” output routine, the `\XXXmark` registers will give incorrect values. To fix this, inside `buildpage_filter`, we hide any mark nodes inside new “user-defined whatsit” nodes, then in `pre_output_filter`, we move the mark nodes back out onto the main vertical list. Fixes #44.
- Loading branch information
1 parent
0a5daae
commit 0c06807
Showing
1 changed file
with
84 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters