Adds a latex_command argument to bypass pdflatex #63
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue