[NTG-context] Oddity with \definereferenceformat

Wolfgang Schuster schuster.wolfgang at gmail.com
Mon Apr 20 10:03:59 CEST 2015


> Am 20.04.2015 um 05:10 schrieb Rik Kabel <context at rik.users.panix.com>:
> 
> A reference to the text of a multi-line heading takes on the line breaks of the heading when \definereferenceformat[about] is used.
> \definereferenceformat[about][type=title,left=,right=]
> \starttext
> \startsection[reference={sec:one},
>   title={Three\\line\\title}]
> \startparagraph
> See \about[sec:one].
> \stopparagraph
> \stopsection
> \stoptext
> Can this be repaired? Or, am I doing it wrong?

To avoid the line breaks in the reference context has to redefined the meaning of \crlf and \\ when
the reference content is shown in the text which happens at the moment only for the \about command.

\setupreferencing[left=,right=]

\starttext
\startsection[reference={sec:one},
  title={Three\\line\\title}]
\startparagraph
See \about[sec:one].
\stopparagraph
\stopsection
\stoptext

Wolfgang

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150420/d4bb8ed9/attachment.html>


More information about the ntg-context mailing list