Skip to content

Commit

Permalink
test: Add #556 example
Browse files Browse the repository at this point in the history
Exporting a tikz diagram using dvisvgm
  • Loading branch information
kaushalmodi committed Feb 16, 2022
1 parent 3f827aa commit facef66
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/site/content-org/all-posts.org
Expand Up @@ -3912,6 +3912,15 @@ C = W\log_{2} (1+\mathrm{SNR})
Referencing to equation labels does not work when {{{latex}}}
equations are exported as images.
#+end_note
*** tikz
{{{oxhugoissue(565)}}}

#+latex_header: \usepackage{tikz}
#+latex_header: \usepackage{pgfplots}

\begin{equation*}\begin{tikzpicture}
\draw[gray, thick] (-1,1) -- (1,-1);
\end{tikzpicture}\end{equation*}
** Equations exported to PNG (dvipng) :dont_export_during_make_test:dvipng:
:PROPERTIES:
:EXPORT_FILE_NAME: equations-exported-to-png
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions test/site/content/posts/equations-exported-to-svg.md
Expand Up @@ -30,3 +30,17 @@ Referencing to equation labels does not work when <span class="latex">L<sup>a</s
equations are exported as images.

</div>


## tikz {#tikz}

`ox-hugo` Issue #[565](https://github.com/kaushalmodi/ox-hugo/issues/565)


<div class="equation-container">
<span class="equation">
<img src="/ltximg/all-posts_883cc123fe80ef810c1787b4c684be98b48dae22.svg" alt="\begin{equation*}\begin{tikzpicture}
\draw[gray, thick] (-1,1) -- (1,-1);
\end{tikzpicture}\end{equation*}" class="org-svg" />
</span>
</div>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit facef66

Please sign in to comment.