Skip to main content

Synctex

Struct Synctex 

Source
pub struct Synctex {
    pub option: Option<i32>,
    pub files: Vec<Vec<u8>>,
    pub dir: Option<PathBuf>,
    /* private fields */
}
Expand description

The SyncTeX state of a run.

Fields§

§option: Option<i32>

The -synctex value given on the command line: 0 forbids SyncTeX, a negative value asks for an uncompressed file.

§files: Vec<Vec<u8>>

The Input: names of the files read, by tag minus one.

§dir: Option<PathBuf>

The directory the file goes to (the PDF’s), if not the output directory.

Implementations§

Source§

impl Synctex

Source

pub fn end_run(&mut self, h: i32, v: i32)

Ends a run of glyphs at h: an x record.

Source

pub fn glyph(&mut self)

A glyph.

Source

pub fn box_open( &mut self, hlist: bool, f: Fields, h: i32, v: i32, size: [i32; 3], )

A box with contents opens at (h, v): its reference point for an hbox, its top left corner for a vbox.

Source

pub fn box_close(&mut self, hlist: bool, f: Fields, h: i32, v: i32)

The box opened last closes; (h, v) is where its contents end: the end of the baseline of an hbox, the bottom left corner of a vbox.

Source

pub fn void_box( &mut self, hlist: bool, f: Fields, h: i32, v: i32, size: [i32; 3], )

An empty box.

Source

pub fn glue(&mut self, f: Fields, h: i32, v: i32)

Glue ending at h.

Source

pub fn rule(&mut self, f: Fields, h: i32, v: i32, size: [i32; 3])

A rule ending at h, with its dimensions as stored.

Source

pub fn math(&mut self, f: Fields, h: i32, v: i32)

A math node at h.

Source

pub fn kern(&mut self, f: Fields, w: i32)

A kern of width w.

Observed: kerns without fields (those TeX makes; copies get the current ones) are not recorded. Another kern is recorded, at the position recorded last (not where the kern is), if something was recorded in its box before and its fields differ from those of the last record; it is then preceded by the last kern not recorded, if no other record came in between. A kern not recorded waits: a following empty box, or math node with other fields, writes it too; glue, rules and boxes drop it. Either way, the kern’s fields become the context of the following x records.

Trait Implementations§

Source§

impl Default for Synctex

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.