obsidian-tikzjax icon indicating copy to clipboard operation
obsidian-tikzjax copied to clipboard

Cannot add forest package to tikzjax

Open keriefie opened this issue 4 months ago • 0 comments

Attempting to add the forest package to the obsidian tikzjax plugin. However, I can't seem to. I have added the necessary files and built the necessary tikzjax.js file and added it to the obsidian-tikzjax build. However in obsidian it causes this error. It seems that it comes from the forest package requiring l3packages xparse which requires expl3 which seems to require L3 resources. I assume this is an issue with TikzJax just not including the L3 features.

TikZJax: Rendering input:
d1f8dae9-a3c7-4119-995b-7e892fc83cb8:1 \usepackage{forest}
\begin{document}
\begin{forest}
[VP
[DP]
[V’
[V]
[DP]
]
]
\end{forest}
\end{document}
VM198:1 This is e-TeX, Version 3.14159265-2.6 (preloaded format=latex 2022.5.1)
VM198:1 **entering extended mode
VM198:1 (input.tex
VM198:1 LaTeX2e <2020-02-02> patch level 2
VM198:1 ("forest.sty" (tikzlibraryshapes.code.tex (tikzlibraryshapes.geometric.code.tex
VM198:1 (pgflibraryshapes.geometric.code.tex)) (tikzlibraryshapes.misc.code.tex
VM198:1 (pgflibraryshapes.misc.code.tex)) (tikzlibraryshapes.symbols.code.tex
VM198:1 (pgflibraryshapes.symbols.code.tex)) (tikzlibraryshapes.arrows.code.tex
VM198:1 (pgflibraryshapes.arrows.code.tex)) (tikzlibraryshapes.callouts.code.tex
VM198:1 (pgflibraryshapes.callouts.code.tex)) (tikzlibraryshapes.multipart.code.tex
VM198:1 (pgflibraryshapes.multipart.code.tex))) (tikzlibraryfit.code.tex)
VM198:1 (tikzlibrarycalc.code.tex) (pgflibraryintersections.code.tex
VM198:1 (pgflibraryfpu.code.tex)) ("pgfopts.sty") ("etoolbox.sty") ("elocalloc.sty")
VM198:1 ("environ.sty" ("trimspaces.sty")) ("xparse.sty" ("expl3.sty" (expl3-code.tex
VM198:1 ! Package expl3 Error: Required primitives not found.
VM198:1 See the expl3 package documentation for explanation.
VM198:1 Type  H <return>  for immediate help.
VM198:1  ...                                      
VM198:1                                           
VM198:1 l.214 \next
VM198:1            
VM198:1 ? Type <return> to proceed, S to scroll future error messages,
VM198:1 R to run without stopping, Q to run quietly,
VM198:1 I to insert something, E to edit your file,
VM198:1 1 or ... or 9 to ignore the next 1 to 9 tokens of input,
VM198:1 H for help, X to quit.
VM198:1 ? 
VM198:1 ! Emergency stop.
VM198:1  ...                                      
VM198:1                                           
VM198:1 l.214 \next
VM198:1            
VM198:1 Error: Could not find file input.dvi
    at Rq (blob:app://obsidian.md/d1f8dae9-a3c7-4119-995b-7e892fc83cb8:1:466943)
    at texify (blob:app://obsidian.md/d1f8dae9-a3c7-4119-995b-7e892fc83cb8:1:7404951)
img-not-found.png:1     Failed to load resource: net::ERR_FILE_NOT_FOUND

I found a similar issue on: https://github.com/ktraunmueller/Compositor/issues/130 and: https://comp.text.tex.narkive.com/ty9w1qHz/problems-with-expl3

I am aware that this repo is somewhat dormant, but I still wanted to put this here just in case someone can find a fix. I would like to be able to use forest (without rewriting it).

keriefie avatar Oct 23 '24 13:10 keriefie