Copy link to clipboard
Copied
Hello,
In a FM book I have succeeded to create a Table of Contents, but I see that in the generated TOC the page number (1) is next to the text (see red line in the screenshot).
I would like that FM automatically put the page number like this :
"chapter number ................................................................. page number"
So, I would like FM add automatically the "dots" and put the "page number" at the right. How to do this ?
Hi Pierre:
The generated files have a list of rules that we must follow, written up here:
https://www.rockymountaintraining.com/adobe-framemaker-what-to-know-about-working-with-generated-files/
When you learn/follow the rules it's great, but when you don't know/don't follow the rules it's a nightmare.
In your book, you did not follow rule number 4: Paragraph styles are assigned automatically to the generated text, and their names will end with the suffix for the generated file. The required
...Hi Pierre:
You will first need to create a character style called Bold to use Rick's code, or create a character style that will assign bold and call it whatever you like, and assign it to <$paratext> on the TOC/TDM reference page through the Character Catalog. When you update your book, Fm will pick up the bold and assign it to the titles.
However, your TOC/TDM is set up to include hyperlinks so that if you publish to PDF for example, someone can click anywhere on an entry and hyperlink to
...Hi Pierre:
Remember that link I posted to earlier in this thread?
https://www.rockymountaintraining.com/adobe-framemaker-what-to-know-about-working-with-generated-files/
Check out number 8 in the list:
Editing your initial choices. If you made a mistake when you were setting up the generated file, you can right click the file in the book window > Set up XXX, where XXX is equal to the type of generated file you are working with. For example, if you forgot to add a heading level to the TOC, ri
...re: Never type on a generated page! If you type on a generated page and then update your book, FrameMaker will remove your edits.
There is an exception on that. Any content above {preceding} the generated content is left unmolested.
For TOC, for example, this would typically be a Heading1.ngn saying Contents.
ngn?
It needs to be an H1 format name that is itself non-generated for list generation purposes, but might be used for page-mapping of TOC-specific Master Pages.
Hi Pierre:
This is correct.
To add SECTION A above some chapter names, and presumably, SECTION B above others—a perfectly reasonable request—Fm needs to pull the words out of the document. You will need to add the words SECTION A someplace before Chapter 1 (or at the top of Chapter 1) and assign it a unique paragraph style so that Fm can pull the words into the TOC/TDM. If you want to add the section heads to the table of contents, but not to the page, you still have to add them to the page,
...Copy link to clipboard
Copied
Hi Pierre,
Is titre2 the name of a paragraph format?
FrameMaker will only include paragraphs of those formats which are set up on the reference page.
Of course you can do this manually, but it's easier to set this up with the dialog in the File menu. I will look up the command later.
Best regards, Winfried
Copy link to clipboard
Copied
Hi, @pierret18811376 ,
you must tell FM to handle that "Titre2" as an entry for your TOC/TDM.
So open your book, right-click on the TOC/TDM entry, click on "Settings for TOC" (or similiar, I have the german version version) and change the settings as needed.
BUT as this whole thread is about basic FM knowledge I think you are not familiar with FM and its behaviour.
So my recommendation is you 1) get a good book as a learning ressource or 2) doing a FM training (online or offline) where all the basics get explained and trained.
This forum is not an online training ressource for beginners, it is for helping with special problems.
We all are happy to assist and help, but it is voluntary and in our spare time.
And some of us are trainers for FM to earn money, so expecting to get a training for free ...
Regards
Stephan
Copy link to clipboard
Copied
The English command in the context menu is: Set Up Table of Contents
You can find this command also in the Edit menu.
Of course everything is also explained in the online help.
Copy link to clipboard
Copied
Hi Pierre:
Remember that link I posted to earlier in this thread?
https://www.rockymountaintraining.com/adobe-framemaker-what-to-know-about-working-with-generated-fil...
Check out number 8 in the list:
Editing your initial choices. If you made a mistake when you were setting up the generated file, you can right click the file in the book window > Set up XXX, where XXX is equal to the type of generated file you are working with. For example, if you forgot to add a heading level to the TOC, right-click the TOC in the book window and choose Set up Table of Contents. Add the missing heading and update your book.
~Barb
Copy link to clipboard
Copied
@Winfried Reng Titre2 is corresponding to the Title2.
Hi Barb, Hi all,
Fisrt I right clicked on the TDM and chosen "setup TOC", then selected "Titre2" :
And here is the result in TOC/TDM reference page (it created a "Titre2TDM" paragraph style for the first "paratext" "pagenum") :
Thank you Barb, and thank you to all for the help.
Copy link to clipboard
Copied
Hi Pierre:
Great! So now you need to add the tab character to the top line and set the tab stop. Update the style and then update the book! 😊
~Barb
Copy link to clipboard
Copied
Hi Barb,
About the link you gave me concerning the generated files : https://www.rockymountaintraining.com/adobe-framemaker-what-to-know-about-working-with-generated-fil...
I have read again it and found this :
"5. Edits. Never type on a generated page! If you type on a generated page and then update your book, FrameMaker will remove your edits. If you see a typo in a generated file, fix it on the body page and update your book."
So I cannot type in a generated TOC file. But the problem is that it prevent me to write myself this text in the generated TOC file : "SECTION A" (ie : without pagenum).
Because, FM generate automatically a TOC always with "paratext" and "pagenum". So as you say, in the TOC /TDM, I cannot have this :
"SECTION A
paratext ........................................................................pagenum"
or by example :
"SECTION A
chapter 1 ............................................................. 1
chapter 2 ..............................................................10 "
Copy link to clipboard
Copied
re: Never type on a generated page! If you type on a generated page and then update your book, FrameMaker will remove your edits.
There is an exception on that. Any content above {preceding} the generated content is left unmolested.
For TOC, for example, this would typically be a Heading1.ngn saying Contents.
ngn?
It needs to be an H1 format name that is itself non-generated for list generation purposes, but might be used for page-mapping of TOC-specific Master Pages.
Copy link to clipboard
Copied
Hi Pierre:
This is correct.
To add SECTION A above some chapter names, and presumably, SECTION B above others—a perfectly reasonable request—Fm needs to pull the words out of the document. You will need to add the words SECTION A someplace before Chapter 1 (or at the top of Chapter 1) and assign it a unique paragraph style so that Fm can pull the words into the TOC/TDM. If you want to add the section heads to the table of contents, but not to the page, you still have to add them to the page, but you can make them white or very small. Or both. That way they won't be visible to the reader on the page, but they will still be available to FrameMaker to call into the TOC/TDM.
Bob is also correct in his reply of course, but he is referring to something you are going to ask us soon—adding a title to the top of the TDM that likely says Table des Matières. This is also addressed on the list, as number 6.
When are ready to add the title, you will have add it at the very top of the generated text. To be allowed to keep it after you update your book:
For example, you could name it the French equivalent of Contents, as per Bob or ContentsTitle as per my post, but not ContentsTitleTDM because TDM is the suffix for a table of contents in your French version of FrameMaker. If you add TDM to the end of the style name, Fm will remove it when you update your book.
So many rules!
~Barb
Copy link to clipboard
Copied
Hi Barb, Hi Bob,
From what you have said, and also from this online help : https://www.rockymountaintraining.com/adobe-framemaker-more-on-customizing-a-table-of-contents/
I have done this in TOC/TDM reference page (where I have Title1 and Title2) :
And here is the result on TOC/TDM curent page (where I put a Content title at the top) :
Is it correct for you ?
Copy link to clipboard
Copied
Yes. It looks fantastic. Two questions:
~Barb
Copy link to clipboard
Copied
Hi Barb,
To respond to your questions :
1) About "Titre2TDM" (Title2TOC), you can see it here (see red line) :
Reference page :
Current page :
2) You asked me if all was OK. In fact, I have noticed a strange behaviour in current page : about the "content title" I have put at the top of the page (see red line), I have set this tag with a font size of 36, but on the current page, it does not seem to be a font size of 36, and whatever I choose for the font size, I have always the same size on the screen. Why ?
Copy link to clipboard
Copied
Hi Pierre:
So the section heads are now Titre1?
Does Content Title have overrides? Select it and
If it still looks too small, you're welcome to send me that one file.
~Barb
Copy link to clipboard
Copied
Hi Barb,
First I have put paragraph catalog on "courant" (current) and also character catalog on "default".
Then I created a new paragraph style (content title 2) and set it on "bold" and font size "36" and updated this paragraph style. And here is the result (it worked !) :
You are right : "Section" is using "Titre1TDM" (Title1TDM). And you can notice that I have removed "pagenum" for "Titre1TDM".
Do you think all is OK for you ?
So thank you again Barb. I think I am OK now with Table of Content.
Copy link to clipboard
Copied
Yes! I think it looks great. Nice work.
~Barb