LaTeXML icon indicating copy to clipboard operation
LaTeXML copied to clipboard

TikZ: baseline attribute in tikzpicture

Open c-minz opened this issue 11 months ago • 1 comments

In LaTeX, it is possible to shift an inline tikpicture with the keyword baseline either by an absolute value or by specifying a coordinate point (as in the example below). It seems that this feature is not supported in LaTeXML.

Here is a minimal example:

\documentclass{article}
\usepackage{tikz}

\begin{document}
Text before
\begin{tikzpicture}[baseline=(baseline point)]
	\coordinate (baseline point) at (0, -1em);
	\draw (0, 0) circle[radius=2em];
\end{tikzpicture}
text after
\end{document}

Crop from the PDF file, pdflatex output: image

Crop from the HTML file, latexmlc output: image

c-minz avatar Dec 29 '24 23:12 c-minz