Skip to main content
October 2, 2013
Question

Displaying a particular counter number in Running header

  • October 2, 2013
  • 1 reply
  • 651 views

I am working on a book that uses section numbers within each chapter and also uses an outline format. For example, in Chapter One, I have:

I. Introduction

A. §1.1 Preliminary Matters

The paragraphs are autonumbered with more than one counter, a letter or number from the outline, along with the section number.

I have a running header at the top of the page. I want this header to display the section number only, but not to display the outline letters.

Right now, my headers look like this: [A. §1.1]

I want my headers instead to look like this: [§1.1]

I also need to use cross references that will display as "§1.1" rather than as "A. 1.1"

Is there a way to create a variable that will omit the first counter and other text and only display the counters I want?

This topic has been closed for replies.

1 reply

Bob_Niland
Community Expert
Community Expert
October 3, 2013

I can immediately think of hackish ways to do this, similar to one suggestion in:

initial caps in H/F variables

However, there may be more elegant methods, but they may rely on the answers to 2 questions:

  1. How do you want these headings to appear in TOC?
  2. Are you rendering distinct Released (no outline) and Authoring (with outline) editions of the document?
October 3, 2013

I want the headings to appear in outline form in the TOC. There will be only one version of the document, but it will be in both print and PDF form. The PDF bookmarks need to read the way they do in the document, in outline form.

The work-around solution I'm using now is to create an invisible paragraph underneath each section. The autonumbering on the invisible paragpraph matches the counters I need for the running header and for cross-references. The autonumbering in the main text matches what I need in each chapter, in the PDF bookmarks, and in the TOC.

Arnis Gubins
Inspiring
October 3, 2013

You could always try using two paratags in a run-in condition, with only the "A" counter in the first paratag and the "§1.1"  in the second. Set the "Next Pgf Tag" in the "A" counter to be the partag with the section counter and just hit the Enter to get the next one, where you can enter the section content. That way you can target either one, or both, with the cross-refs, running headers or TOCs as required.