diff --git a/Dockerfile b/Dockerfile index 57ac84d9..8ed30541 100644 --- a/Dockerfile +++ b/Dockerfile @@ -79,6 +79,8 @@ RUN apk add --no-cache \ ruby-ffi \ ruby-mathematical \ ruby-rake \ + texlive \ + texmf-dist-latexextra \ ttf-liberation \ ttf-dejavu \ tzdata \ @@ -86,6 +88,9 @@ RUN apk add --no-cache \ which \ font-noto-cjk +RUN apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing \ + pdf2svg + ARG asciidoctor_confluence_version=0.0.2 ARG asciidoctor_diagram_version=2.3.1 ARG asciidoctor_epub3_version=2.1.3 diff --git a/tests/fixtures/sample-with-diagram.adoc b/tests/fixtures/sample-with-diagram.adoc index f69d8063..7e0ce68e 100644 --- a/tests/fixtures/sample-with-diagram.adoc +++ b/tests/fixtures/sample-with-diagram.adoc @@ -251,3 +251,18 @@ A31117013206375A .... Hello World! .... + +=== TikZ +https://tikz.net/ + +[tikz] +.... +\begin{tikzpicture} + +\draw (-2,0) -- (2,0); +\filldraw [gray] (0,0) circle (2pt); +\draw (-2,-2) .. controls (0,0) .. (2,-2); +\draw (-2,2) .. controls (-1,0) and (1,0) .. (2,2); + +\end{tikzpicture} +....