artisticat1 / obsidian-tikzjax

Render LaTeX and TikZ diagrams in your notes
MIT License
356 stars 18 forks source link

Align image #26

Closed lostfiddler closed 9 months ago

lostfiddler commented 1 year ago

Just downloaded this plugin and I'm pretty new to latex, so I don't know if there's an obvious answer to this question. I'm trying to align the image generated from \begin{tikzpicture} to the left, not just nodes or equations but the whole image. I've searched on google but none of the results helped. Any response would be appreciated, thanks.

lostfiddler commented 1 year ago

Figured out a solution. Had to add a css snippet that removed the left margin from the svg block:

.markdown-rendered .block-language-tikz svg {
    margin-left: 0;
}