arXiv / arXiv/html_feedback

xstring IfStrEq, etc. don't format correctly

Open
#3,222 1 comment 0 reactions 0 assignees View on GitHub
latexml needs-latex-package
Dominant language
No language data
Stars
42
Forks
40
PR merge metrics
No merged PRs in 30d

Description

### Description

Using IfStrEq within a tcolorbox environment, I see \IfStrEq included literally. Also, the box content is missing (but this may be a separate issue).

setup:
```
\usepackage[most]{tcolorbox}
\newtcblisting{colorlisting}[3]{
beforeafter skip=0pt,
colback=#1,
colframe=#1,
coltitle=black,
title=\IfStrEq{#2}{}{}{\small\circled{#1}{#2}},
boxrule=0pt,
arc=0pt, % No rounded corners
top=0pt,
bottom=0pt,
left=0pt,
right=0pt,
listing only,
listing options={
basicstyle=\listingfont,
keywordstyle=\bfseries\color{blue},
#3
}
}
```

use:
```
\begin{figure}
\begin{colorlisting}{green!15}{1}{}
yada yada yada yada...
\end{colorlisting}
\begin{colorlisting}{red!15}{2}{}
yada yada yada yada...
\end{colorlisting}
\end{figure}

```

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

Image

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

Choose One

### Internal issue ID

9cd007d5-b7c2-415b-9e4c-5d0cfa930a13

### Paper URL

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

### Browser

Chrome/132.0.0.0

### Device Type

Desktop

Contributor guide

Open the contributing guide

Research direction

Start with the reproduction in the issue and the linked paper URL, focusing on the colorlisting environment and its use of \IfStrEq. Compare the rendered HTML with the source to determine why the macro appears literally and why the box content is missing. Done means the conditional title and listing content render as intended.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.