quarto-dev / quarto-dev/quarto-cli

Having a section with underlined text together with unnumber operator gives error

Open
#6,962 8 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.