pub struct TexEngine { /* private fields */ }
Implementations§
source§impl TexEngine
impl TexEngine
pub fn new() -> TexEngine
pub fn halt_on_error_mode(&mut self, halt_on_error: bool) -> &mut Self
sourcepub fn initex_mode(&mut self, initex: bool) -> &mut Self
pub fn initex_mode(&mut self, initex: bool) -> &mut Self
Configure the engine to run in “initex” mode, in which it generates a “format” file that serializes the engine state rather than a PDF document.
sourcepub fn synctex(&mut self, synctex_enabled: bool) -> &mut Self
pub fn synctex(&mut self, synctex_enabled: bool) -> &mut Self
Configure the engine to produce SyncTeX data.
sourcepub fn semantic_pagination(&mut self, enabled: bool) -> &mut Self
pub fn semantic_pagination(&mut self, enabled: bool) -> &mut Self
Configure the engine to use “semantic pagination”.
In this mode, the TeX page builder is not run, and top-level boxes are output vertically as they are created. The output file format changes from XDV to SPX (which is admittedly quite similar). “Page breaks” can be inserted explicitly in the document, but they only have semantic (organizational) meaning, rather than affecting the document rendering.
This is an essential component of the HTML output process.