Re: [NTG-context] Oddity with \definereferenceformat

2015-04-20 Thread Wolfgang Schuster

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

___
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
___

[NTG-context] Oddity with \definereferenceformat

2015-04-19 Thread Rik Kabel
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
___
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
___

[NTG-context] Behaviour of definereferenceformat changed?

2011-05-21 Thread Julian Becker
Can it be that in the beta version 2011.05.01, the behaviour of
\definereferenceformat changed?
I used to define:
\definereferenceformat [ineqn] [left=(,right=),text=equation]
and get e.g. equation (1), but now all it produces (equation 1). Is it
supposed to behave that way?
Do I have to use something like
\definereferenceformat [ineqn] [right={)},text={equation (}]
to get what I want, or is there something better?



Example:

\definereferenceformat [ineqn] [left=(,right=),text=equation]
\starttext
Here in \ineqn[eq1].
\placeformula[eq1]
\startformula
a^2+b^2=c^2
\stopformula
\stoptext


Julian.


--
Keep thy heart with all diligence; for it is the wellspring of life.
___
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
___

Re: [NTG-context] Behaviour of definereferenceformat changed?

2011-05-21 Thread Wolfgang Schuster

Am 21.05.2011 um 18:32 schrieb Julian Becker:

 Can it be that in the beta version 2011.05.01, the behaviour of 
 \definereferenceformat changed?
 I used to define:
 \definereferenceformat [ineqn] [left=(,right=),text=equation]
 and get e.g. equation (1), but now all it produces (equation 1). Is it 
 supposed to behave that way?
 Do I have to use something like
 \definereferenceformat [ineqn] [right={)},text={equation (}]
 to get what I want, or is there something better?

There seems to be a few lines in the source in the wrong,
it’s possible this happened when Hans rewrote parts of
the interaction macros to make them more efficient.

\setvalue{\??rf\c!interaction\v!all}%
  {\leftofreference
   \the\leftreferencetoks
   \doifsometokselse\leftreferencetoks \leftofreferencecontent \donothing
   \currentreferencecontent
   \doifsometokselse\rightreferencetoks\rightofreferencecontent\donothing
   \the\rightreferencetoks
   \rightofreference}

should be

\setvalue{\??rf\c!interaction\v!all}%
  {\the\leftreferencetoks
   \doifsometokselse\leftreferencetoks \leftofreferencecontent \donothing
   \leftofreference
   \currentreferencecontent
   \rightofreference
   \doifsometokselse\rightreferencetoks\rightofreferencecontent\donothing
   \the\rightreferencetoks}

but I’m not sure about this, what is the expected output?

\setvalue{\??rf\c!interaction\v!label}%
  {\leftofreference
   \the\leftreferencetoks
   \the\rightreferencetoks
   \rightofreference}

Wolfgang

___
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
___


[NTG-context] \definereferenceformat [MkIV]

2010-05-24 Thread Rogutės Sparnuotos
A bug in MkIV?
The left=[ and right=] settings of \definereferenceformat[] bleed through
to \in and \at:

\definereferenceformat[cite][left={[},right={]}]
\starttext
\section[sec:test]{Test}
\cite[].
Section \in[sec:test].
\stoptext

By the way, is \setupreferencing meant for \about only (if so, why the
generic name)?

-- 
--  Rogutės Sparnuotos
___
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
___


[NTG-context] \at inherits from costum \definereferenceformat

2010-01-26 Thread Bernhard Rosensteiner
Hello all,

when i define a new reference with \definereferenceformat the \at command 
inherits the value from the left and right keys (see attachement).
Is there a solution to prevent this or can i maybe define a costume reference 
format which outputs the pagenumber and not the sectionnumber?

best regards
Bernhard




untitled.tex
Description: Binary data


untitled.log
Description: Binary data
___
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
___


Re: [NTG-context] \at inherits from costum \definereferenceformat

2010-01-26 Thread Wolfgang Schuster

Am 27.01.10 00:08, schrieb Bernhard Rosensteiner:

Hello all,

when i define a new reference with \definereferenceformat the \at command 
inherits the value from the left and right keys (see attachement).
Is there a solution to prevent this or can i maybe define a costume reference 
format which outputs the pagenumber and not the sectionnumber?
   

\definereferenceformat[...][...,command=\at]

Wolfgang

___
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
___


Re: [NTG-context] \at inherits from costum \definereferenceformat

2010-01-26 Thread Bernhard Rosensteiner

Am 27.01.2010 um 00:16 schrieb Wolfgang Schuster:

 Am 27.01.10 00:08, schrieb Bernhard Rosensteiner:
 Hello all,
 
 when i define a new reference with \definereferenceformat the \at command 
 inherits the value from the left and right keys (see attachement).
 Is there a solution to prevent this or can i maybe define a costume 
 reference format which outputs the pagenumber and not the sectionnumber?
   
 \definereferenceformat[...][...,command=\at]
 
 Wolfgang
 
Thanks a lot

best regards
Bernhard
___
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
___


Re: [NTG-context] definereferenceformat problem...

2009-11-28 Thread Chen Shen
Hi all,

I wonder whether this issue with text in \definereferenceformat is a bug, or
if I missed something. Thanks a lot.

shenchen

On Wed, Nov 25, 2009 at 9:50 AM, Chen Shen hashh...@gmail.com wrote:

 I have the same problem with the latest mkiv beta (2009.11.25).
 left/right works fine, but text does not.

 regards,
 shenchen


 On Thu, Nov 12, 2009 at 1:26 AM, Bernhard Rosensteiner 
 brosenstei...@gmail.com wrote:

 Hello,

 \definereferenceformat[fig][left=(, right=), label=reffigure,
 text={figure}]

 produces no output of text (in this case figure) when i do
 \fig[something]. Is this a bug in mkiv? I use luatex 0.44

 best regards
 Bernhard

 ___
 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

 ___



___
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
___


Re: [NTG-context] definereferenceformat problem...

2009-11-28 Thread Peter Münster
On Wed, Nov 11 2009, Bernhard Rosensteiner wrote:
 
 \definereferenceformat[fig][left=(, right=), label=reffigure, text={figure}]
 
 produces no output of text (in this case figure) when i do
 \fig[something]. Is this a bug in mkiv? I use luatex 0.44

A workaround:

\definereferenceformat[fig][left=(, right=), label=reffigure]
\setuplabeltext[en][reffigure=figure]
\starttext
\placefigure[][something]{bla}{bla}
\fig[something]
\stoptext

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/

___
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
___


Re: [NTG-context] definereferenceformat problem...

2009-11-28 Thread Chen Shen
Thanks a lot Peter

shenchen

On Sun, Nov 29, 2009 at 12:36 AM, Peter Münster pmli...@free.fr wrote:

 On Wed, Nov 11 2009, Bernhard Rosensteiner wrote:
 
  \definereferenceformat[fig][left=(, right=), label=reffigure,
 text={figure}]
 
  produces no output of text (in this case figure) when i do
  \fig[something]. Is this a bug in mkiv? I use luatex 0.44

 A workaround:

 \definereferenceformat[fig][left=(, right=), label=reffigure]
 \setuplabeltext[en][reffigure=figure]
 \starttext
 \placefigure[][something]{bla}{bla}
 \fig[something]
 \stoptext

 Cheers, Peter

 --
 Contact information: http://pmrb.free.fr/contact/


 ___
 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

 ___

___
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
___


Re: [NTG-context] definereferenceformat problem...

2009-11-24 Thread Chen Shen
I have the same problem with the latest mkiv beta (2009.11.25).
left/right works fine, but text does not.

regards,
shenchen

On Thu, Nov 12, 2009 at 1:26 AM, Bernhard Rosensteiner 
brosenstei...@gmail.com wrote:

 Hello,

 \definereferenceformat[fig][left=(, right=), label=reffigure,
 text={figure}]

 produces no output of text (in this case figure) when i do
 \fig[something]. Is this a bug in mkiv? I use luatex 0.44

 best regards
 Bernhard

 ___
 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

 ___

___
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
___


[NTG-context] definereferenceformat problem...

2009-11-11 Thread Bernhard Rosensteiner
Hello,

\definereferenceformat[fig][left=(, right=), label=reffigure, text={figure}]

produces no output of text (in this case figure) when i do \fig[something]. 
Is this a bug in mkiv? I use luatex 0.44

best regards
Bernhard
___
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
___