quarto-dev / quarto-dev/quarto-cli
Having a section with underlined text together with unnumber operator gives error
Open
Nobody has claimed this yet.
enhancement
latex
lint
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
Consider the following quarto document:
---
title: "Untitled"
format: pdf
toc: true
---
# some [underlined text]{.underline} {-}
It gives the following error:
updating tlmgr
updating existing packages
compilation failed- error
Use of \SOUL@n doesn't match its definition.
\SOUL@ulunderline #1->{\setbox \z@ \hbox {#1}
\dimen@ =\wd \z@ \dimen@i =\SOU...
l.159 ...{toc}{section}{some \ul{underlined text}}
see Untitled-1.log for more information.
If one removes {-} the error does not show up.
I am using quarto 1.4.376 version.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the minimal Quarto document in the issue and reproduce its PDF compilation with the underlined heading and {-} operator. Inspect the generated .tex around line 159 and the reported SOUL error; done means the document compiles successfully with both features present.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- latex, markdown
- Domain
- documentation
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100