My chapter and appendix titles use the same H1 style which includes a {chapnum} and I set the output numbering/lettering in the TOC properties. When I generate a PDF the title lettering (Appendix A, etc.) and table numbering (Table A-1, etc.) all come out just fine.
The issue is with cross-refs. I have one xref for chapters:
Chapter {chapnum}, {i}{paratext}{/i}
And one for appendices:
Appendix {chapnum}, {i}{paratext}{/i}
When I output a PDF they both come out like this:
Chapter 1, Working with blah
Appendix 1, Working with blah
There's likely a very simple thing I'm overlooking, but I must have a bad case of Friday brain cramps. What am I doing wrong?
Thanks!
Appendix letters not showing up in cross-reference
-
ddiemetric
- Propeller Head
- Posts: 59
- Joined: Mon Nov 24, 2008 12:31 pm
- Location: Is it Spring yet?
Re: Appendix letters not showing up in cross-reference
Use {paranumonly} instead of {chapnum} in the xref.
I wasn't aware you could use chapnum in a xref, it isn't actually listed in the autonumber dialog.
I wasn't aware you could use chapnum in a xref, it isn't actually listed in the autonumber dialog.
-
ddiemetric
- Propeller Head
- Posts: 59
- Joined: Mon Nov 24, 2008 12:31 pm
- Location: Is it Spring yet?
Re: Appendix letters not showing up in cross-reference
Thanks very much. Appreciate the help.
Actually, chapnum doesn't work. It was coming up as chapter 1 for chapter 5.
Thanks again.
Actually, chapnum doesn't work. It was coming up as chapter 1 for chapter 5.
Thanks again.
-
Nita Beck
- Senior Propellus Maximus
- Posts: 3672
- Joined: Thu Feb 02, 2006 9:57 am
- Location: Pittsford, NY
Re: Appendix letters not showing up in cross-reference
In case any of this is helpful, here's how I do appendix letters and get the xrefs to show letters not numbers.
Stylesheet: I have separate h1 styles:
I also have a variety of xref styles to serve different uses:
In the TOC for the first appendix book, I have these TOC properties set up:
-- On Printed Output tab, "Break Type" = Chapter Break
-- On AutoNumbers tab, Chapter Number uses "Reset to" = 1 and "Format" = ALPHA (A, B, C)
For the subsequent appendix books, the Chapter Number uses "Increment number".
Hope something here helps.
Stylesheet: I have separate h1 styles:
Code: Select all
h1.Appendix
{
mc-auto-number-format: 'Appendix {chapnum}. ';
}
h1.Chapter
{
mc-auto-number-format: 'Chapter {chapnum}. ';
}
Code: Select all
MadCap|xref.appendixLetterAndTitle
{
mc-format: '{paranumonly}, {quote}{paratext}{quote}';
}
MadCap|xref.appendixLetterOnly
{
mc-format: '{paranumonly}';
}
MadCap|xref.chapterNumberAndTitle
{
mc-format: '{paranumonly}, {quote}{paratext}{quote}';
}
MadCap|xref.chapterNumberOnly
{
mc-format: '{paratext}';
}
-- On Printed Output tab, "Break Type" = Chapter Break
-- On AutoNumbers tab, Chapter Number uses "Reset to" = 1 and "Format" = ALPHA (A, B, C)
For the subsequent appendix books, the Chapter Number uses "Increment number".
Hope something here helps.
Nita

RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
-
ddiemetric
- Propeller Head
- Posts: 59
- Joined: Mon Nov 24, 2008 12:31 pm
- Location: Is it Spring yet?
Re: Appendix letters not showing up in cross-reference
Thanks, Nita. The paranum solution worked for me.
D.
D.