Table of contents with numbered appendices A1, A2
SandrineH
-
m@rina Posted messages 27233 Registration date Status Modérateur Last intervention -
m@rina Posted messages 27233 Registration date Status Modérateur Last intervention -
Hello,
Could you please let me know if it is possible to automatically insert a letter in front of a page number in part of the table of contents?
For example, for the appendices here:
Title 1 .............................................1
Title 2 .............................................3
Appendix 1 Blablabla ....................... A1
Appendix 2 Blablabla ....................... A5
I found a little hack by manually inserting the letter before the page number, which works if we only update the page numbers but fails when updating the whole table, including titles.
Do you have a solution to propose? I am open to anything, even macros if there are no other solutions.
Thank you in advance,
Best regards,
Could you please let me know if it is possible to automatically insert a letter in front of a page number in part of the table of contents?
For example, for the appendices here:
Title 1 .............................................1
Title 2 .............................................3
Appendix 1 Blablabla ....................... A1
Appendix 2 Blablabla ....................... A5
I found a little hack by manually inserting the letter before the page number, which works if we only update the page numbers but fails when updating the whole table, including titles.
Do you have a solution to propose? I am open to anything, even macros if there are no other solutions.
Thank you in advance,
Best regards,
1 réponse
Hello,
So it is possible with a few small adjustments.
In the table of contents, we can reference a numbering defined by a SEQ field.
I explain how to do it here:
https://faqword.com/index.php/word/130-references/873-comment-ajouter-un-numero-avant-les-pages-d-une-table-des-matieres
Since you need a letter and not a number, you will need to add an alphabetical switch to the SEQ field. And contrary to what I explain on this page, you will not be able to use the \h switch, which does not work with this additional switch. So, your field will look like this:
{ SEQ toto \* ALPHABETIC \r 1}
And to make it invisible, you will have to apply a hidden format to it.
For your table of contents, you will actually need to insert two: one for the main part and the other for the appendices.
This depends on the styles used. If they are not the same levels for the appendices, you can just indicate the level. Otherwise, I provide a solution here:
https://faqword.com/index.php/word/130-references/238-une-table-par-chapitre
For the appendices table, you will refer back to the explanation given in my first link.
And one last thing: the A will be separated from the page number by a hyphen. You can put something else, but you cannot leave it blank.
m@rina
So it is possible with a few small adjustments.
In the table of contents, we can reference a numbering defined by a SEQ field.
I explain how to do it here:
https://faqword.com/index.php/word/130-references/873-comment-ajouter-un-numero-avant-les-pages-d-une-table-des-matieres
Since you need a letter and not a number, you will need to add an alphabetical switch to the SEQ field. And contrary to what I explain on this page, you will not be able to use the \h switch, which does not work with this additional switch. So, your field will look like this:
{ SEQ toto \* ALPHABETIC \r 1}
And to make it invisible, you will have to apply a hidden format to it.
For your table of contents, you will actually need to insert two: one for the main part and the other for the appendices.
This depends on the styles used. If they are not the same levels for the appendices, you can just indicate the level. Otherwise, I provide a solution here:
https://faqword.com/index.php/word/130-references/238-une-table-par-chapitre
For the appendices table, you will refer back to the explanation given in my first link.
And one last thing: the A will be separated from the page number by a hyphen. You can put something else, but you cannot leave it blank.
m@rina