Math custom symbol messes up line breaks
- Dominant language
- No language data
- Stars
- 42
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
### Description
When defining a custom character (short arrow), the line breaking is messed up.
### (Optional:) Please add any files, screenshots, or other information here.
Custom symbol code
```latex
\newcommand{\veryshortarrow}[1][3pt]{\mathrel{%
\hbox{\rule[\dimexpr\fontdimen22\textfont2-.2pt\relax]{#1}{.4pt}}%
\mkern-4mu\hbox{\usefont{U}{lasy}{m}{n}\symbol{41}}}}
\newcommand{\fromto}[2]{\mbox{#1\,$\veryshortarrow$\,#2}}
```
### (Required) What is this issue most closely related to? Select one.
Other
### Internal issue ID
4f14e962-e82d-4fd8-9882-e01544b3b7ca
### Paper URL
https://arxiv.org/abs/2312.06275v3
### Browser
Chrome/123.0.0.0
### Device Type
Desktop
Contributor guide
Research direction
Reproduce the issue from the paper URL in Chrome using the supplied LaTeX definitions for \veryshortarrow and \fromto. Compare the rendered line breaks around the custom math symbol with the expected layout; done means the symbol no longer disrupts line breaking.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- latex
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100