Skip to main content
Erwin.Timmerman
Inspiring
November 12, 2019
Answered

RH2019: Chapter numbering, section references, and chapter name in header for PDF output

  • November 12, 2019
  • 15 replies
  • 1312 views

2nd try... the original message I posted was marked as spam for some reason. If you see this message twice I apologize.
 
RH14.0.9
 
I'm trying to create a pdf output that looks something like the first reply to this post.

 

I'm running into the following problems:

 

  • Chapter and section numbering in the body:
    I cannot get chapter numbering at all. I've tried a before: counter for <h1> in the pdf CSS but then all chapters are numbered '1' (one). I haven't even tried section numbering yet until that is resolved.

  • Applying an automatic <h1>, <h2>, <h3> etc. depending on the place in the TOC:
    All my topics (also the subsections have their own separate topics) start with <h1>. The generated TOC shows the correct indentation but the topics themselves stay at <h1> for each heading. I would have hoped this was generated automatically, but currently I fear my only option is to use one topic for every complete chapter, and apply the H1, H2 myself. Is that correct, or is there another way? 

  • If the chapter and section numbering can be resolved, would it be possibe to refer to them with a dynamically generated section number (see 12.3) in the body, or otherwise with a dynamically generated page number (see p. xx)?

  • Chapter name reference in the header: I have found a post for RH2015 that talks about a <<PD>> something which I suspect is a field. However, I cannot find anything about chapter names in the field dialog, just project-wide fields such as the project name, or otherwise the file title, but in that case using a separate TOC with numbered headings (as Peter suggests) wouldn't work (I think?); I would need to add the numbers to the file title which will probably make it show up in other places as well (would it?).


I could generate to Word to solve many of these problems, but then the numbered section references (see 12.3) would still need to be added manually afterwards, I think? Which is just not an option.


Any post scripting that could solve this, or any other solutions (or pointers to them) very much appreciated.

This topic has been closed for replies.
Correct answer Karin Albrecht

Hi Erwin,

as for the chapter name reference in the header: you could create a masterpage for your PDF output and use the variable "Title" in the header part. Then, in your PDF, the header shows the title of the current chapter (topic title).

Regarding your other issues, just an idea more based on my experience with previous RH versions: as Peter already said, I would recommend to use the Word output, because it offers a lot more control. In Word, you could then add the chapter numbering, create a styled TOC, use paragraph control to not have headers or images alone on a page etc. Depending on your wishes, this is quite a lot of work every time, but you could use the Dev tools in Word to record a macro with all the adjustments you are making. Then, after you have done your adjustments once, you will only have to run the macro and check the result.

Regards

Karin

15 replies

Peter Grainge
Community Expert
Community Expert
April 1, 2021

@Andrei5FCB I have hopefully answered your question in the other thread.

________________________________________________________
See www.grainge.org for free Authoring and RoboHelp Information

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
Peter Grainge
Community Expert
Community Expert
March 31, 2021

@Andrei5FCB Absolutely wrong. I suggest you start a new thread and state specifically the issue you are having. Include your version as shown in the help menu.

________________________________________________________
See www.grainge.org for free Authoring and RoboHelp Information

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
Participating Frequently
April 1, 2021

Actually, I have already had one. https://community.adobe.com/t5/robohelp/multilevel-header-numbering/m-p/11939300#M137199

I just would like to create a document with automatic header numbering. This task takes about 5 minutes in Word, but I would like to have the whole process in RH. 

Participating Frequently
March 31, 2021

I have the same problem with new 2020 RH. If I understand correctly RH can not work with multilevel header numbering correctly... 

Peter Grainge
Community Expert
Community Expert
January 28, 2020

You will need to email me for that. See the Contact page on my site.

 

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
Known Participant
January 28, 2020

Hi Peter,

I had the same question as Erwin wrt Chapter and Section numbering. You mentioned in this thread you had a sample project attached. I don't see the sample project in this thread. Can you please resend the attachment. Here is a screenshot of what I'm trying to achieve. I am able to get Heading Level 1. but in Heading level 2, I'm seeing either 1.1 or A.A etc. How do I get a heading level A.1?

 
Known Participant
January 28, 2020

For some reason my screenshot failed to appear in my post. Attaching it here once again.

Erwin.Timmerman
Inspiring
November 20, 2019

Karin, changing the locale decimal separator from comma to point indeed did the trick. I also tried replacing the dots in my CSS file to commas to see what that did. I can give you one advice for that route though: don't 🙂 

The reason why it doesn't work with Word might be because Word uses the local decimal separator in the font settings (and any other dialog) as well. So it wanted me to enter 11,5 points instead of 11.5 points. Could be that RH just puts the dot in the font setting as-is and Word then ignores the dot completely.

Legend
November 19, 2019

Peter, I have not reported this as a bug. I can, though. 

Erwin, I can confirm that the dots in the css do not affect PDF output, only Word and Libre Office. I don't know what the difference in processing is.

Erwin.Timmerman
Inspiring
November 19, 2019

My css does contain dots, and my system does use commas as decimal points, so I'll give that a try. However, the dots in my CSS transfer to my browser and the pdf generator just fine, so these don't seem to be affected by the locale setting, just the Word output.

Peter Grainge
Community Expert
Community Expert
November 19, 2019

Karin

 

Has that been reported or is it a general Windows issue?


www.grainge.org

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
Legend
November 19, 2019

Regarding the font size issue: Erwin, are you using German Locale settings on your computer? Then check your css for any font sizes like 24.0pt and change the . (dot) into , (comma) or simply remove it. Or, on your computer. go to 

System control – Region/Locales – Further settings

There, change the Decimal separator to ‘.’ (it should be , in your case) and change the symbol for number grouping to ‘,’ (should be . in your case)

This should resolve the issue.