Placeholder math

Hello, this is my first new topic in the new forum! Cool!

I would like to use the <$n> placeholder to number my documents. However, I would like to use it in the form: <$n>+x, where x is a huge number of items numbered by hand. This way, I can continue on with consecutive numbering without having to go back and add <$n> by hand to the older documents. Is this possible?

I think the answer to this is still ‘No’. I would love to find out I am wrong. But there is no <$rst_1001>, just <$rst>, the ability to set to zero.

Thank you for your answer.

Hi jcarman,

I’ve recently had to learn how to use Counters myself within my own Scrivener-LaTeX project, so I’ve had to do some research on LaTeX Counters.

Scrivener supports LaTeX. If the ability to increment the placeholder feature is a dealbreaker, and you are willing to take the time to implement LaTeX in your project, LaTeX supports Counters (and so much more!).

For more information, you can start at the following links:

  1. LaTeX/Counters - Wikibooks, open books for an open world.
  2. 11. Counters
  3. Counters in LaTex – texblog
  4. Top (LaTeX2e unofficial reference manual (April 2021))

Two LaTeX Counter commands that might be of interest to you are:

\setcounter{‘counter’}{‘num’}
Sets the counter to num

\addtocounter{‘counter’}{‘num’}
Adds num to counter

HTH,
scrive
:thinking:

Again, thank you. I don’t think my last post went through.