cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

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

How to create Index Table in the mathcad prime

alokhande
1-Visitor

How to create Index Table in the mathcad prime

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

3 REPLIES 3
tietjee
15-Moonstone
(To:alokhande)

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.

RichardJ
19-Tanzanite
(To:alokhande)

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.

mecseri
3-Newcomer
(To:alokhande)

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.

  1. Open the Mathcad document.
  2. Click Save As, and select XPS. Save it.
  3. Convert the XPS to DOC. http://www.pdfaid.com/xps-to-doc-conversion.aspx
  4. Open the doc in MS Word.  You will notice that equations are unreadable, but this is not a problem.
  5. Open the Styles Window.
  6. Click the Styles group's dialog launcher to open the Styles pane.(small arrow on the right bottom of the ribbon)
  7. Click the Options link at the bottom of the pane.
  8. From the Select Styles To Show dropdown, choose All Styles. Click OK.
  9. Click into a heading in your document which you want to format to Heading 1.
  10. On Styles pane put your mouse over Body Text and click on the appearing down arrow.
  11. In the appearing list select ‘Update style based on selection’
  12. Repeat above 2 steps, but select Heading 1 instead of Body Text.
  13. Click into a heading in your document which you want to format to Heading 2.
  14. Repeat steps 10-11.
  15. If you have more Heading levels, repeat steps 13-14 selecting the heading level.
  16. Open Development Tools/Visual Basic
  17. Copy the following code to MS Word Object ThisDocument.

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

  1. Modify Font Name and Font Size in code according the heading levels.
  2. Execute code. It will search all the paragraphs and format Headings.
  3. Go to the end of the document and insert TOC.
  4. If you want to format TOC, copy TOC text, and paste without formatting, then format.
  5. Copy the formatted TOC and paste to Mathcad.
  6. Check the page numbers and correct if necessary.
Announcements

Top Tags