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

Fixed misaligned bubble labels #66

Merged

Conversation

Circuitous
Copy link

Summary

This is a fix for the \bubble{} command used in the infographics2 template.

When the bubble command in infographic2 is called with content that does not extrude at the bottom (like "asdf" as opposed to "qypj"), the label node is at a different height. This is due to tikz calculating node distance to the closes point of the object.

Reproduction

To prevent misalignment due to distance calculation in tikz, add a phantom character to the non-uniform element (text). In this case a \vphantom{|} adds an invisible character with the height of | and no width. This should keep distances equal, even if the label is moved to the bottom of the bubble.

@jankapunkt jankapunkt merged commit c5ef059 into jankapunkt:master Aug 22, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants