Skip to main content

with_pretended_load

Function with_pretended_load 

Source
pub fn with_pretended_load<R>(file: &str, read: impl FnOnce() -> R) -> R
Expand description

Run read with file marked loaded in the current group, its record and \ver@<file>, where it is not loaded and not recorded (a recorded load the document unmarked keeps its record): cleveref’s binding reads cleveref.sty as if amsmath were loaded (Perl cleveref.sty.ltxml:23-27).