arXiv / arXiv/html_feedback

Rendering of Tikz

Open
#6,689 1 comment 0 reactions 0 assignees View on GitHub
bug latexml-oxide tikz
Dominant language
No language data
Stars
42
Forks
40
PR merge metrics
No merged PRs in 30d

Description

### Description

The figures in tikz do not always render correctly as compared those rendered via pdflatex. This is particularly prevalent in state-flow diagrams.

### (Optional:) Please add any files, screenshots, or other information here.

Image

The LaTeXML conversion appears to fail in the TikZ/PGF handling of relative node positioning, especially expressions using the positioning library syntax such as right=of dtrw, below=12mm of ck, below right=10mm and 18mm of ck, and right=18mm of $(fwd)!0.5!(bwd)$; the log shows repeated pgfparse errors on these of / distance-plus-node constructs, followed by uninitialized $result/$length warnings in pgfmath.code.tex.ltxml and fallback warnings about returning node centres rather than node-border points. The likely failure mode is that LaTeXML/ar5iv is either not loading or not fully supporting TikZ’s positioning grammar, possibly compounded by calc coordinates inside positioning expressions, so node coordinates collapse or default to centres, causing the overlapping boxes and misdrawn arrows seen in the HTML output, even though the same source renders correctly under pdflatex with native PGF/TikZ

### (Required) What is this issue most closely related to? Select one.

Figures

### Internal issue ID

9b747a7a-267d-4be0-b79d-f1708dc0f7f4

### Paper URL

https://arxiv.org/html/2606.09564v2

### Browser

Chrome/149.0.0.0

### Device Type

Desktop

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the HTML conversion for https://arxiv.org/html/2606.09564v2 and inspect the log entries for pgfparse, pgfmath.code.tex.ltxml, and positioning expressions such as right=of dtrw and below=12mm of ck. Compare the generated figures with the pdflatex output. Done means the relative-node and calc-coordinate TikZ expressions render without overlapping boxes, misdrawn arrows, or fallback node-centre warnings.

Written by the indexing model from the issue text.

Assessment

Tech stack
latex
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.