nameref and gettitlestring
Nobody has claimed this yet.
- Dominant language
- TeX
- Stars
- 205
- Forks
- 41
- PR merge metrics
- No merged PRs in 30d
Description
It would be a nice feature for nameref to optionally use the expansion method of gettitlestring without setting the corresponding package option globally. This request is actually motivated by this discussion: https://github.com/latex3/latex2e/issues/307
As soon as there are some user-defined commands which should be ignored for generating \@currentlabelname one has to use the expansion method of gettitlestring. Setting \GetTitleStringSetup{expand=true} globally is maybe error prone, although I do not have a particular case in mind.
Maybe using protected expansion at least in headings by default or via option would be good as well. See also https://github.com/ho-tex/gettitlestring/issues/2 and https://github.com/ho-tex/gettitlestring/issues/3 The expansion is already protected.
Contributor guide
No contributing guide indexed for this repository
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 by reading how nameref currently obtains and processes @currentlabelname, then compare that behavior with gettitlestring's expansion method. Review the linked latex2e and gettitlestring discussions to determine the intended opt-in interface and its interaction with existing package options. Done means the behavior and scope are agreed and covered by appropriate package tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- latex, tex
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100