From b62c59bebc6b0850ef92f9a3cc2fe592c55b16cc Mon Sep 17 00:00:00 2001
From: Zachary Sweger <zsweger@berkeley.edu>
Date: Wed, 2 Oct 2024 23:54:27 -0700
Subject: [PATCH] Update Snakefile with latex compilation

---
 benchmarks/your_benchmark/Snakefile | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/benchmarks/your_benchmark/Snakefile b/benchmarks/your_benchmark/Snakefile
index 083e49f0..e4fac35c 100644
--- a/benchmarks/your_benchmark/Snakefile
+++ b/benchmarks/your_benchmark/Snakefile
@@ -69,3 +69,18 @@ else
 fi
 root -l -b -q '{input.script}("{input.plots}")'
 """
+
+rule yourbench_compile_manual:
+    input:
+        tar=HTTPRemoteProvider().remote("https://github.com/tectonic-typesetting/tectonic/releases/download/tectonic%400.15.0/tectonic-0.15.0-x86_64-unknown-linux-musl.tar.gz"),
+        cls=workflow.source_path("bench.cls"),
+        tex=workflow.source_path("bench.tex"),
+    output:
+        temp("tectonic"),
+        cls_tmp=temp("bench.cls"),
+        pdf="results/bench.pdf",
+    shell: """
+tar zxf {input.tar}
+cp {input.cls} {output.cls_tmp} # copy to local directory
+./tectonic {input.tex} --outdir="$(dirname {output.pdf})"
+"""
-- 
GitLab