arXiv / arXiv/html_feedback

External tikz figure in standalone class not parsing

Open
#2,918 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
42
Forks
40
PR merge metrics
No merged PRs in 30d

Description

### Description

To keep my main file clean, I use external standalone files for my tikz figures, which don't seem to parse correctly. This may be related to #2917.

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

Main file:
```tex
\input{fig-E1}
```
`fig-E1.tex` file:
```tex
\documentclass[tikz]{standalone}
\begin{document}
\begin{figure}[h]\label{fig:E1}
\begin{equation}\label{eq:E1}
\begin{tikzcd}[column sep=small, row sep=tiny]
...
\end{tikzcd}
\end{equation}
\end{document}
```
Result:
![image](https://github.com/user-attachments/assets/aee8b229-8579-4f0a-8fb0-845d7be07a67)
(Note that the rest of the article is cut out)

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

Figures

### Internal issue ID

0d4da525-2ea0-4203-9d65-85c10280e856

### Paper URL

https://services.arxiv.org/html/submission/6098529/view

### Browser

Chrome/129.0.0.0

### Device Type

Desktop

Contributor guide

Open the contributing guide

Research direction

Reproduce the report using the shown main file and the external fig-E1.tex standalone TikZ document, then inspect how the rendered figure differs from the expected article output. Done means external standalone TikZ figures are parsed and displayed without cutting out the rest of the article.

Written by the indexing model from the issue text.

Assessment

Tech stack
latex
Domain
web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.