Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Hey!
I'm currently working on a pretty large report in Mathcad Prime 3.0 and would like to be able to label my sections, figures, excel components, tables (etc.) with automatic updating numbers.
For example:
etc...for sections.
For the figures, excel components and tables I would like to have a label like:
"Fig. 1-1: (text)"
"Fig. 1-2: (text)"
above/under the figure/excel(...)
I have tried to use excel components to iterate through the different section and subsection lables, but it makes the whole document really slow! Preferably I would also like to have it all inside the Prime document and not rely on an external document.
So; has anyone found a neat solution to these problems?
Thanks in advance!
This has come up many times over the years. The only viable solution for Mathcad 15 and earlier is based on scripted components, and even that does not do everything you are asking for. Scripted components are not supported in Prime though, so I do not think there is any way to do what you want.
Okey, I was afraid of that so i started trying to make a variable you can iterate and use as a label instead. It kinda works.
What I have for now is in the attached file, the coding for the labels are in the margin. It is kinda messy, but I think you should be able to understand what I'm trying to do. Do you see any immediate ways to improve it?
Edit:
Yes, I know it is weird to use variables as section headers, but if you have to, why not?
You could probably put the label in the margin too, and only include for example:
"This_section_is_empty="
in the actual document and view it as:
"This_section_is_empty=[2 0]"
Not much more work, but you'll have to write the label name twice.
Yeah, that could be an improvement.