Rename the crate, binary, core crate, font families, env vars, and internal commands from texcraft/tex-engine to texrra. Serve the separately versioned texrra-web frontend from TEXRRA_WEB_DIR, ../web, or ./web instead of embedding index.html. Add starred section heading support and an arXiv template conformance fixture.
17 lines
397 B
Rust
17 lines
397 B
Rust
use std::path::PathBuf;
|
|
|
|
/// Where a TeX source location originated.
|
|
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
|
|
pub enum SourceOrigin {
|
|
File(PathBuf),
|
|
Terminal,
|
|
}
|
|
|
|
/// A one-based source position owned independently of a runtime adapter.
|
|
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
|
|
pub struct SourceLocation {
|
|
pub origin: SourceOrigin,
|
|
pub line: usize,
|
|
pub column: usize,
|
|
}
|