Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TikZ: baseline attribute in tikzpicture #2462

Open
c-minz opened this issue Dec 29, 2024 · 1 comment · May be fixed by #2477
Open

TikZ: baseline attribute in tikzpicture #2462

c-minz opened this issue Dec 29, 2024 · 1 comment · May be fixed by #2477

Comments

@c-minz
Copy link

c-minz commented Dec 29, 2024

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

@dginev dginev added the bug label Dec 30, 2024
@dginev dginev added this to the LaTeXML-0.9.1 milestone Dec 30, 2024
@dginev
Copy link
Collaborator

dginev commented Dec 30, 2024

Thank you for the report! Just adding a note that I can reproduce the issue as stated.

@xworld21 xworld21 linked a pull request Jan 6, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants