Adds a latex_command argument to bypass pdflatex

This commit is contained in:
Dandaedre 2026-01-13 17:44:29 +01:00
parent 5279365511
commit 697facab40
2 changed files with 5 additions and 1 deletions

View File

@ -121,4 +121,8 @@ pub struct MakeConfig {
/// Activate shell escape
#[arg(short, long)]
pub shell_escape: bool,
/// The pdflatex command
#[arg(short, long, default_value_t = String::from("pdflatex"))]
pub latex_command: String,
}

View File

@ -78,7 +78,7 @@ async fn launch_subprocess(
args: &MakeConfig,
rebuild_target: BuilderParseResult,
) -> Result<Status> {
let mut cmd = Command::new("pdflatex");
let mut cmd = Command::new(&args.latex_command);
let mut status = Status::zero();
let started = Instant::now();