pub struct Project {Show 13 fields
pub macros: HashMap<String, Macro>,
pub theorems: HashMap<String, Theorem>,
pub labels: HashMap<String, String>,
pub starts: HashMap<PathBuf, Counters>,
pub after: HashMap<PathBuf, Counters>,
pub citations: HashMap<String, String>,
pub setup: Vec<String>,
pub references: HashMap<String, String>,
pub style: String,
pub cited: Vec<String>,
pub bibliographies: Vec<PathBuf>,
pub graphicspath: Vec<String>,
pub pictures: Vec<PathBuf>,
}Expand description
A paper as LaTeX sees it: what’s defined and how things number, across all its files.
Fields§
§macros: HashMap<String, Macro>§theorems: HashMap<String, Theorem>§labels: HashMap<String, String>What each label will print as.
starts: HashMap<PathBuf, Counters>Numbering as each file starts.
after: HashMap<PathBuf, Counters>Numbering as each file ends, so the file that \\inputs it numbers on from there.
citations: HashMap<String, String>What each citation key shows as: author and year.
setup: Vec<String>The paper’s own packages and commands, which a piece built alone still needs.
references: HashMap<String, String>Each .bib entry as its reference reads: authors, year and title.
style: StringThe \\bibliographystyle, which says how references are numbered.
cited: Vec<String>The keys the paper cites, in the order it first cites them.
bibliographies: Vec<PathBuf>The .bib files the paper names with \\bibliography or \\addbibresource.
graphicspath: Vec<String>The folders \graphicspath names, as written.
pictures: Vec<PathBuf>Where \includegraphics looks, as LaTeX does: the root’s folder, wherever the file
naming the picture is, then each \graphicspath folder. Empty for an unsaved file.
Implementations§
Source§impl Project
impl Project
Sourcepub fn theorem(&self, name: &str) -> Option<Theorem>
pub fn theorem(&self, name: &str) -> Option<Theorem>
The theorem-like environment called name, declared or a familiar one.
Sourcepub fn expand(&self, source: &str) -> String
pub fn expand(&self, source: &str) -> String
Expands the paper’s commands in a formula, so the engine sees what they mean.
Trait Implementations§
impl Eq for Project
impl StructuralPartialEq for Project
Auto Trait Implementations§
impl Forget for Project
impl Freeze for Project
impl Move for Project
impl RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl UnsafeUnpin for Project
impl UnwindSafe for Project
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more