• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

Contributor ,
Nov 12, 2019 Nov 12, 2019

Copy link to clipboard

Copied

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.

TOPICS
New UI

Views

790

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Correct answers

Community Expert , Nov 12, 2019 Nov 12, 2019

Finally your post has appeared on the forum and with a Reply box that works. I am sorry you have had so much trouble, the reasons are being looked into.

 

The first thing I would say is forget any ideas of doing this direct to PDF, there just isn't enough control.

 

Although not essential to the outcome, if your content folders are broadly similar to the outputs, I would prefix the folders and maybe the topics with numbers. That way the Contents panel will be sorted into the same order as the ou

...

Votes

Translate

Translate
Enthusiast , Nov 12, 2019 Nov 12, 2019

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

...

Votes

Translate

Translate
Contributor ,
Nov 12, 2019 Nov 12, 2019

Copy link to clipboard

Copied

pdf_question1.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 12, 2019 Nov 12, 2019

Copy link to clipboard

Copied

Finally your post has appeared on the forum and with a Reply box that works. I am sorry you have had so much trouble, the reasons are being looked into.

 

The first thing I would say is forget any ideas of doing this direct to PDF, there just isn't enough control.

 

Although not essential to the outcome, if your content folders are broadly similar to the outputs, I would prefix the folders and maybe the topics with numbers. That way the Contents panel will be sorted into the same order as the outputs, just makes life easier.

 

You can set up a CSS to apply numbering within a topic but not running across other topics without a little intervention. You add something to each topic that forces the first number in that topic to be what you want and then other instances of that style will flow from the number you set. It's described in a sample project I have attached. See the Method topic. That would also allow you to have numbers for print but not online if that is a requirement.

 

There is a relatively easy way to get your chapter numbering. Create a separate TOC for your print presets, it can be a duplicate of an existing TOC to avoid having to create it again or you could auto-create it. Just go to each book and prefix it with a manually entered chapter number. Topics will still show their Topic Title (Not topic heading) so they will not have numbering. The order of them would be what you set in the Print preset so would it be an issue they are not numbered within the chapter?

 

You also wanted cross references to include the numbering. I don't have a ready solution for that but I do if page numbers would be acceptable and I am thinking that would be better anyway. For anyone online, it doesn't matter as the link would take them so the section or page is not needed. For print users accessing hard copy page numbers are more specific. On my site is a Word macro adds the page number to the links in the Word output.

 

There is one other idea that might be worth a try. Map you print output to a Word template where the styles have numbering set up already. Not sure how that would work across topics but I have a hunch it might.


www.grainge.org

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 12, 2019 Nov 12, 2019

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 19, 2019 Nov 19, 2019

Copy link to clipboard

Copied

Exporting to Word probably works, I have used that some years ago with RH 10, where I mapped RH styles to Word styles, which worked perfectly at the time.

 

Currently I have some problems with exporting to Word, for one each style that isn't already in the Word template but is copied from RH gets a font size of 10x the original size, so I ended up with 110-pt fonts and 5,000-page documents 🙂 

 

Also, I would like to get everything I can out of the direct-to-pdf output before switching to Word, because it's just so much easier to hit Generate and be done with it. So I've accepted the limitations of direct pointers in print for now.

 

But When I do switch to Word (and I will at some point, if nothing else just for the fun of it), I will certainly be trying out the macro that generates page numbers. I will let you know how that goes.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 19, 2019 Nov 19, 2019

Copy link to clipboard

Copied

Each style that isn't already in the Word template but is copied from RH gets a font size of 10x the original size, so I ended up with 110-pt fonts and 5,000-page documents

 

I haven't encountered that or seen anyone else report it. Can you recreate that in a new project with just one or two topics? If you can, then see the Contact page on my site and send the project as instructed there. Do make sure you include a link to this thread and please do not email the project direct.


www.grainge.org

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 19, 2019 Nov 19, 2019

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 19, 2019 Nov 19, 2019

Copy link to clipboard

Copied

Karin

 

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


www.grainge.org

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 19, 2019 Nov 19, 2019

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 19, 2019 Nov 19, 2019

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 20, 2019 Nov 20, 2019

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 28, 2020 Jan 28, 2020

Copy link to clipboard

Copied

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?

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 28, 2020 Jan 28, 2020

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 28, 2020 Jan 28, 2020

Copy link to clipboard

Copied

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

 

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 31, 2021 Mar 31, 2021

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 31, 2021 Mar 31, 2021

Copy link to clipboard

Copied

@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

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 01, 2021 Apr 01, 2021

Copy link to clipboard

Copied

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. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 01, 2021 Apr 01, 2021

Copy link to clipboard

Copied

LATEST

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

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

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp