View Single Post
 
Old 01-27-2016, 07:14 AM
tfa91 tfa91 is offline Windows 10 Office 2013
Novice
 
Join Date: Jan 2016
Posts: 5
tfa91 is on a distinguished road
Default Add static text to cross-reference

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.
Reply With Quote