How to give a section a custom number?

Hello,

Is it possible to change the number of just one section and have it use a custom number instead of whatever the section counter is equal to, and also have this number be shown correctly in the table of contents and whatever depends on this section’s number (eg. equation numbers etc…)?

Thanks!

You can try to set section-nr locally:

<\with|section-nr|5>
  
</with>

I haven’t checked the toc, but I think it should work.

2 Likes

Thank you! I found that the same could also be done by forcing a particular value on display-section using with (the difference being that section-nr requires a numerical value as it will attempt to increment it while display-section does not).