Export native TeX shipouts as binary DVI
This commit is contained in:
1 parent
34325317d2
commit
d9edc6c6e7
10 files changed
+459
-14
No files matched your search
+5
-5
@@ -30,7 +30,7 @@ fn run() -> Result<(), String> {
|
||||
let mut args = env::args().skip(1);
|
||||
let Some(command) = args.next() else {
|
||||
return Err(
|
||||
"usage: texrra serve [input.tex] [port] | texrra native [--job] [--initex] [--etex] [--dump-format | --load-format FILE] [--step-limit N] [--input-profile tex8bit|unicode|xetex] [--texmf-root DIR] [--input-policy tex|project] [--project-snapshot FILE] [--generated-initial JSON | --observe-generated-initial] [--resource-manifest JSON] [--layout-manifest JSON] [--failure-manifest JSON] input.tex [output.pdf]".into(),
|
||||
"usage: texrra serve [input.tex] [port] | texrra native [--job] [--initex] [--etex] [--dump-format | --load-format FILE] [--step-limit N] [--input-profile tex8bit|unicode|xetex] [--texmf-root DIR] [--input-policy tex|project] [--project-snapshot FILE] [--generated-initial JSON | --observe-generated-initial] [--resource-manifest JSON] [--layout-manifest JSON] [--failure-manifest JSON] input.tex [output.pdf|output.dvi]".into(),
|
||||
);
|
||||
};
|
||||
if command == "native" {
|
||||
@@ -146,9 +146,9 @@ fn run() -> Result<(), String> {
|
||||
.map(PathBuf::from)
|
||||
.unwrap_or_else(|| input.with_extension(if dump_format { "tfx" } else { "pdf" }));
|
||||
if args.next().is_some() {
|
||||
return Err("usage: texrra native [--job] [--initex] [--etex] [--dump-format | --load-format FILE] [--step-limit N] [--input-profile tex8bit|unicode|xetex] [--texmf-root DIR] [--input-policy tex|project] [--project-snapshot FILE] [--generated-initial JSON | --observe-generated-initial] [--resource-manifest JSON] [--layout-manifest JSON] [--failure-manifest JSON] input.tex [output.pdf]".into());
|
||||
return Err("usage: texrra native [--job] [--initex] [--etex] [--dump-format | --load-format FILE] [--step-limit N] [--input-profile tex8bit|unicode|xetex] [--texmf-root DIR] [--input-policy tex|project] [--project-snapshot FILE] [--generated-initial JSON | --observe-generated-initial] [--resource-manifest JSON] [--layout-manifest JSON] [--failure-manifest JSON] input.tex [output.pdf|output.dvi]".into());
|
||||
}
|
||||
let diagnostic = native_pdf(
|
||||
let diagnostic = native_compile(
|
||||
&input,
|
||||
&output,
|
||||
initex,
|
||||
@@ -229,9 +229,9 @@ fn run() -> Result<(), String> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Strict native bootstrap entry: typed execution -> Route-D lists -> PDF.
|
||||
/// Execute original TeX input through the native artifact pipeline.
|
||||
/// CLI adapter; the library owns compilation, export and publication.
|
||||
fn native_pdf(
|
||||
fn native_compile(
|
||||
input: &Path,
|
||||
output: &Path,
|
||||
initex: bool,
|
||||
|
||||
Reference in new issue
Block a user