Skip to main content
Participant
September 23, 2021
Answered

Troubles with the table of contents.

  • September 23, 2021
  • 1 reply
  • 474 views

My problem is that when creating the table of contents, it appears to me out of order. I have styles created for a section called "section" and another for titles, but when placing the table of contents, the title appears first and then the "section" one.

This topic has been closed for replies.
Correct answer Joel Cherney

Yep, if you just make the Editorial frame extend to the left hand margin, it'll get picked up before the Virus y pandemia frame. You could do that a bunch of different ways; my inclination would be to apply an image wrap to that skull-icon-thingy, so I could make the frame that holds "Editorial" go all the way to that left margin, but I wouldn't have to change the alignment on "Editorial" to right align. 

1 reply

Joel Cherney
Community Expert
Community Expert
September 23, 2021

I'm guessing that "Editorial" is the section and "Virus y pandemia" is the title. I'm also guessing that they are in separate frames in your body text.

 

If my assumption is correct, then what you're looking for is for "Editorial" to be collected first. Collection of items for the TOC happens in a top-down, left-right manner (given a left-to-right language like English or Spanish).  So I'm guessing that maybe your two terms "Virus y pandemia" and "Editorial" are in separate text frames, and that the "Virus y pandemia" frame is further up the page, or further to the left than the "Editorial" frame. Note that it's not where the text appears in the top-down left-right heirarchy, but where the frame containing it appears.

 

Participant
September 23, 2021

In the document they are like this. 

 

Joel Cherney
Community Expert
Joel CherneyCommunity ExpertCorrect answer
Community Expert
September 23, 2021

Yep, if you just make the Editorial frame extend to the left hand margin, it'll get picked up before the Virus y pandemia frame. You could do that a bunch of different ways; my inclination would be to apply an image wrap to that skull-icon-thingy, so I could make the frame that holds "Editorial" go all the way to that left margin, but I wouldn't have to change the alignment on "Editorial" to right align.