External tikz figure in standalone class not parsing
- 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:

(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
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