artisticat1 / obsidian-tikzjax

Render LaTeX and TikZ diagrams in your notes
MIT License
395 stars 23 forks source link

Add support for 'patterns' library #59

Open ShahriarKh opened 6 months ago

ShahriarKh commented 6 months ago

It seems like that the patterns library isn't supported. Here's an example (from https://pgfplots.net/filling-pattern-bar-plot/):

%\documentclass[tikz,border=10pt]{standalone}%
\usepackage{pgfplots}
\usetikzlibrary{patterns}

\begin{document}
\begin{tikzpicture}
\begin{axis}[ybar, samples=10, enlarge y limits=upper, ymin=0]
\addplot +[
    black,
    fill=yellow,
    postaction={
        pattern=north east lines
    }
]{rnd};
\end{axis}
\end{tikzpicture}
\end{document}

The same code in Obsidian results in this: image

apetresc commented 4 months ago

I would put a bounty on this if I could.

thecodechemist99 commented 3 months ago

This seems to be a rendering issue, at least the library files are included in the source code.