Copy link to clipboard
Copied
How to update only page number in TOC with retaining formating??? CS6
Idealy via script.
Thanks
I'm confused as to why this is a scripting question. When you set up a TOC correctly, updating the page numbers without losing formatting is automatic. You have control over everything in the Table of Contents dialog box—it's really powerful. For details, see https://helpx.adobe.com/indesign/using/creating-table-contents.html.
~Barb
Copy link to clipboard
Copied
Layout > Update Table of Contents.
Copy link to clipboard
Copied
I'm confused as to why this is a scripting question. When you set up a TOC correctly, updating the page numbers without losing formatting is automatic. You have control over everything in the Table of Contents dialog box—it's really powerful. For details, see https://helpx.adobe.com/indesign/using/creating-table-contents.html.
~Barb
Copy link to clipboard
Copied
Workflow in my company is not 100% and after creating toc workers make formating by hand...yea, stupid i know..this is reason why i need way to update only page numbers in toc. We use scripts for some tasks and this will be good update for some of this sripts.
Copy link to clipboard
Copied
"Workflow in my company is not 100% and after creating toc workers make formating by hand...yea, stupid i know."
You do have the option of creating proper TOC styles using selections from the manually formatted TOC, then regenerating. Might take about 3 minutes. That way you accomplish the update, and facilitate clean ones going forward.
Copy link to clipboard
Copied
This is a situation where you just need to educate your co-workers on how to work with a TOC correctly in InDesign. Specifically, let them know that edits are made to the source files and then the TOC is updated to reflect those edits with the current page numbers.
What you are asking for is part of InDesign's out-of-the-box feature set. I'm sure you can hire someone to write a custom script for you, but why pay a programmer to write a script for a feature that is already included with the software?
~Barb
Copy link to clipboard
Copied
Alternatively, generate your ToC once and then replace all page numbers with crossreferences. See https://helpx.adobe.com/indesign/using/cross-references.html
Edits in the text won't update the ToC anymore but text reflows will update the page numbers totally automatic.
Copy link to clipboard
Copied
Could you please explain step by step?
As I'm not managing to find it in the guide.
Thanks.
Copy link to clipboard
Copied
Hey kajzica, I know this is a super old thread, but I believe I found a way to accomplish what you're asking for WITHOUT the use of a Script. With the text frame active and a portion of text selected, right click and choose Interactive > Insert Cross Reference...
Reference this screenshot for the next steps:
1) Search for the text paragraph in your document that you'd like this cross reference to link to. In my case, Wendy is the writer, and her name appears on the opening spread of her article. So I searched for her name and selected the correct paragraph (her name appears in multiple places in the document, so I had to make sure I selected the correct paragraph. As you can see, the currently selected instance of her name occurs on page 3, hence, the cross reference linked to page 3.)
2) Select the format that you want the cross reference to display. For page numbers, simply select "Page Number" from the "Cross-Reference Format" drop down menu.
Done.
Now the page number is linked to whatever page the anchored text paragraph is moved to.