Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
I wanted to create the Index table in the Mathcad prime 3.1 worksheet. Like below shown example.
Is there any way we can do this in the prime 3.1.
Thanks,
Anil
Prime 3.1 does not have the same capabilities as Mathcad 15 in many areas. One is the ability to make eBooks, like you are trying to do. Hopefully this will be added in Prime 4.0. I found it very helpful for documentation.
You can create a block of text of course, but not a table of contents that will send you to the correct section when you click on an entry. That's possible in Mathcad 15 (using a scripted component), but not in Prime.
I have a document with more than 50 pages, and use headings, and I need a TOC to be organized. So I made a workaround by exporting to Word, and make the TOC there.
Hope it helps to others as well
When preparing the Mathcad file use a Font Name and Size according to the Heading level. Make sure, that these Font Name - Size combinations are used only in Headings in your document, as Word will check these properties.
Example: Font: Tahoma Bold, Heading 1 – 14 points, Heading2 – 12 points, Heading3 – 11 points
When you ready with your document, leave out space for the TOC, then do the followings.
Sub SetTOCStyle()
'This routine sets Heading styles based on Font Name and Font Size.
Dim Par As Paragraph
For Each Par In ActiveDocument.Paragraphs
With Par.Range.Characters(1)
If .Font.Name = "Tahoma-Bold" Then 'Insert here the actual font name
Select Case .Font.Size
Case 14 'Insert here font size of Heading 1
Par.Style = wdStyleHeading1
Case 12 'Insert here font size of Heading 2
Par.Style = wdStyleHeading2
Case 11 'Insert here font size of Heading 3
Par.Style = wdStyleHeading3
End Select
End If
End With
Next Par
End Sub