Book a Demo

Author Topic: table of contents style  (Read 2972 times)

sada1400

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
table of contents style
« on: February 06, 2020, 03:01:27 am »
Hi,

I have a small problem with the style of my table of content.


I can not set the width of the table of contents in my style sheet.
You can see it in the following picture:


The left & right margin is too wide.
Does anyone know how to fix this?

Thanks in advance!
Daniel

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: table of contents style
« Reply #1 on: February 06, 2020, 03:27:10 am »
Hi Daniel,

I've noticed the same thing and couldn't fix it. I think it might be that EA's ToC function assumes Letter, or some such.
I ended up going to the Word API to update the ToC field once the document is generated. That works, and makes the ToC-to-page hyperlinks work too.

/Uffe
My theories are always correct, just apply them to the right reality.

sada1400

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: table of contents style
« Reply #2 on: February 07, 2020, 12:23:20 am »
Hi Uffe,

Thanks for your quick reply.
I don't want to generate the document as Word file. I prefer PDF.

I'll try again, and if it doesn't work, I'll have to leave it that way.

Thank you very much!
Daniel

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: table of contents style
« Reply #3 on: February 07, 2020, 01:25:05 am »
Hi Daniel,

If you generate to PDF, you could probably fix the ToC using that API.
Or if not, you can generate to DOCX, fix the ToC with the Word API, then save the document as PDF from Word.

/Uffe
My theories are always correct, just apply them to the right reality.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: table of contents style
« Reply #4 on: February 07, 2020, 01:25:15 am »
Hi Uffe,

Thanks for your quick reply.
I don't want to generate the document as Word file. I prefer PDF.

I'll try again, and if it doesn't work, I'll have to leave it that way.

Thank you very much!
Daniel
Daniel,

Although the document generation has really improved the last 10 years, there are still some things that are not yet OK.
TOC's are one of those things.
Most EA users I know generate a document to .docx format, do some minor post processing in Word (mostly formatting) and then save as PDF and publish it.

Geert