ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Oddity with \definereferenceformat
@ 2015-04-20  3:10 Rik Kabel
  2015-04-20  8:03 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Rik Kabel @ 2015-04-20  3:10 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 434 bytes --]

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?

-- 
Rik

[-- Attachment #1.2: Type: text/html, Size: 797 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Oddity with \definereferenceformat
  2015-04-20  3:10 Oddity with \definereferenceformat Rik Kabel
@ 2015-04-20  8:03 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2015-04-20  8:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 913 bytes --]


> Am 20.04.2015 um 05:10 schrieb Rik Kabel <context@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


[-- Attachment #1.2: Type: text/html, Size: 2022 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-04-20  8:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-20  3:10 Oddity with \definereferenceformat Rik Kabel
2015-04-20  8:03 ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).