I'm looking to create a macro to put a link on figures and the figure numbers could be numeric or roman numeral.
Is there a way put the respective numeric id to the link?
What I'm looking for is:
Sample:
The macro I created works on fig. 12, figure 5 and Fig. 19, but not on Figure II.
Macro code:
However, Figure II should be <a href="fig2">Figure II</a>
Is is possible to do that in a single macro? And do I need to create an additional file where I have to define the values of
the roman numerals?
Example:
And then use this reference file to put the valid value in "href=fig#".
Is there a way put the respective numeric id to the link?
What I'm looking for is:
Sample:
Code: Select all
The fig. 12 is the combination of
figure 5 and Figure II which leads to Fig. 19
Macro code:
Code: Select all
InsertMode
ColumnModeOff
HexOff
PerlReOn
Find RegExp SelectText "([a-z\.?]+) (\d+)"
Replace All "<a href="fig\2">\1 \2</a>"
Is is possible to do that in a single macro? And do I need to create an additional file where I have to define the values of
the roman numerals?
Example:
Code: Select all
I=1
II=2
.
.
.
etc.