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

TOC entries not aligning correctly in generated TOC in PDF document

New Here ,
Nov 22, 2023 Nov 22, 2023

Copy link to clipboard

Copied

In the layout.css which is part of the template that I am using to generate the PDF, I assigned a left margin to the TOC entries. If the TOC entry spills to a second line, the margin is ignored. I tried setting some display options such as block to see if it would make a difference. It did not. Could this be a bug? If not, what setting an I missing? Here is a picture of what I am seeing in my generated TOC. The outlined area shows where it is ignoring the left margin.

 

Mary326624543tqk_0-1700662084038.png

Thanks, in advance for your help.

Views

105

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 22, 2023 Nov 22, 2023

Copy link to clipboard

Copied

That would require editing the TOC levels in the layout CSS. Maybe Access an Unscheduled Work Order from Project Work Orders would shorten it enough to avoid the problem. 🙂

________________________________________________________

My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

 

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
Community Expert ,
Nov 23, 2023 Nov 23, 2023

Copy link to clipboard

Copied

Or use W/O for Work Order - that's what I use in my content.

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 23, 2023 Nov 23, 2023

Copy link to clipboard

Copied

What I suspect is that the tocentry style refers to a span tag, as this is what margin-left does to a span tag. What I don't know is whether the parent element is available to modify. I'll attempt to have a look tonight to see if I can figure something out

 

You said you tried changing the tocentry to display: block. If the field is free-text, perhaps try adding !important immediately after block, to see if that forces the display change.

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 ,
Nov 29, 2023 Nov 29, 2023

Copy link to clipboard

Copied

I tried the "!important" in the layout.css for block. It did not change break within the TOC line. Here is an excerpt of the layout.css for a toc entry:

 

}
*/
.toc-level-2 {
font-size: 12pt;
text-decoration: none;
font-family: Verdana;
margin-left: 10px;
display: block !important;
break-inside: avoid;
}
.toc-level-3 {
font-size: 12pt;
text-decoration: none;
font-family: Verdana;
margin-left: 20px;
display: block !important;
break-inside: avoid;
}
.toc-level-4 {
font-size: 12pt;
text-decoration: none;
font-family: Verdana;
margin-left: 30px;
display: block !important;
break-inside: avoid;
}

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 29, 2023 Nov 29, 2023

Copy link to clipboard

Copied

LATEST

Word has a first line indent setting. See if you can find something similar in CSS. 

________________________________________________________
My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

 

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