fix: render-temml

This commit is contained in:
2026-02-26 14:42:39 -07:00
parent 5c92dc153c
commit 18350f6600
4 changed files with 24 additions and 3 deletions

View File

@@ -34,13 +34,13 @@ function do_command (cmd) {
return null return null
} }
} catch (e) { } catch (e) {
console.error (e)
return {type: "error", error: e} return {type: "error", error: e}
} }
} }
function main () { function main () {
const options = commandLineArgs (cli_spec) const options = commandLineArgs (cli_spec)
console.error (options)
macros = load_preambles (options.preamble) macros = load_preambles (options.preamble)
const decoder = new DecoderStream () const decoder = new DecoderStream ()
const encoder = new EncoderStream () const encoder = new EncoderStream ()

View File

@@ -18,7 +18,7 @@
"/home/msyds/org/20250512144715-natural_transformation_category_theory.org" "/home/msyds/org/20250512144715-natural_transformation_category_theory.org"
#_ #_
"/home/msyds/org/20251021155921-path_action.org" "/home/msyds/org/20251021155921-path_action.org"
"/tmp/t.org") "test/net/deertopia/doerg/tex-test.org")
(defn- force-create-sym-link [path target] (defn- force-create-sym-link [path target]
(fs/delete-if-exists path) (fs/delete-if-exists path)

View File

@@ -212,7 +212,7 @@
(if (re-matches #"(?s)\\begin\{.+?}(.*?)\\end\{.+?}" s) (if (re-matches #"(?s)\\begin\{.+?}(.*?)\\end\{.+?}" s)
(render-temml-display s) (render-temml-display s)
(if-let [[_ inner] (re-matches #"(?s)\\\((.*)\\\)" s)] (if-let [[_ inner] (re-matches #"(?s)\\\((.*)\\\)" s)]
(render-temml-inline s) (render-temml-inline inner)
(throw (ex-info "weird" {:snippet s})))))) (throw (ex-info "weird" {:snippet s}))))))
;; hackky.... ;; hackky....

View File

@@ -0,0 +1,21 @@
#+title: aghhh
#+latex_header: \usepackage{ifxetex}
- blah blah prose prose prose \(c = \sqrt{x^2 + y^2}\), alal.
- this thing is \(x\)
- another thing \(y\)
- this thing is also \(x\) and uses the same svg
- ifxetex: \(\ifxetex alalala\fi \)
balahahahahahaj
\begin{align*}
x &= y
\\ &= zzz.
\end{align*}
awawawa
cool ass tbale
\begin{tabular}{|c|c|c|}
blah & glah & zlah
\\ abdwa & www &dj
\end{tabular}