0

I am using Word from Microsoft 365. Using the approach from this answer basically works, however, when I use my own templates for the headings it does not work anymore.

I get: 1.1 -> 1.2 -> 2.3 -> 2.4 -> 3.5

I want: 1.1 -> 1.2 > 2.1 -> 2.2 -> 3.1

The code I am using is {STYLEREF "Sample1" \n}.{SEQ eq \s "Sample1"} and the name of my template is named "Sample1". Besides, my headings, which are seperating the equations are all using this template. The strange thing is that styleref seems to be accepting "Sample1" but SEQ is not.

I know about \r but I want to use the same field all the time without the \r-exception for the first equation in each chapter.

Can someone help me out?

Slev1n
  • 3

1 Answers1

0

The \s switch only works with the Built-In Heading Styles.

Here is the online documentation for the Sequence Field. The built-in heading styles have special, almost magical, properties in Microsoft Word. Here is Word MVP Shauna Kelly's writing on reasons to use them. See #5 on Chapter numbering for Captions. Only the built in Heading Styles are available.

Note that when using the \s switch you refer to the level of the heading style rather than the name of the style. That is \s 7 for Heading 7, not \s Heading 7. The Built-In heading styles are the only ones like this.

You can modify the appearance of the built-in heading styles. To use automatic numbering with them, do not simply apply numbering. Instead, use the Define New Multi-Level List dialog as described in Shauna Kelly's page on Outline Numbering and Headings.

Once you have the heading style(s) set up, you can use the Replace function to change the style for all of your headings.