How do you use other latex packages. I am trying to draw chemical diagrams with chemfig
I’m also interested in this. I find that many symbols are unavailable without usepackage, for example, the harpoon notation used for vectors: LaTeX harpoon vector symbol | Scientific Computing | SciVision
+1 — importing latex packages would add so many possibilities. For example, there are tons of great music notation tools in latex, and this would make logseq much better for recording musical/songwriting ideas
Old thread, but I just found it per chance today when answering another question. Fully agree that easily importing LaTeX packages would be ideal.
@codekiln the harpoon vector is available. See here: Supported Functions · KaTeX
I’d love to see this as well! Taking chemistry notes without the ability to use chemfig is driving me crazy.
I want the same feature. And Actually Logseq is the first Markdown-based note application that uses $\KaTeX$ to display the math block.
(And another question, how can I create a new topic on this website? I have a trouble finding the button.)
You can use chemfig, but you need to import it yourself. If you are interested in trying, this is one easy way to do it:
-
import the
mhchemKaTeX extension, by editingconfig.edn:custom-js-url "https://cdn.jsdelivr.net/npm/katex@0.16.22/dist/contrib/mhchem.min.js"
A bit off-topic, but based on your question there was no other choice. Maybe @moderators can spin it off into an own topic.
For me, the New Topic button is available on the home page (discuss.logseq.com) at the top right, when logged in:
mchem is useful but it doesn’t offer the capacity I’m looking for. chemfig is for drawing the structures of molecules themselves. I read up a bit and apparently it’s not as simple to implement because it uses tikz. It looks like I’ll have to wait a bit until Katex adds support for that
You are completely right. I have moved on to a different career and got the two completely turned around in my head. My comment was pretty dumb.
I see you found the right thread in the KaTex github and even posted there. Hope you get it someday.
