I am trying to make a hyperlink that contains some static text and a cross-reference to a heading.
For example, assume that I have the following heading:
2.1 Theory
I would then like to make a link to that heading that displays "
chapter 2.1". Obviously I want to the number to automatically update when it is changed to 2.2.
I kind of succeeded by making two seperate fields:
Code:
{ HYPERLINK \l "Theory" } { REF _ref111 \r \h }
This does display as
chapter 2.1, however I would prefer having just one reference.
Something like this would be nice, but I don't get it to work
Code:
{"chapter" { REF _ref111 \r } \h }
Any suggestions?
Thanks.