ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Bug in reference to sections
@ 2013-01-23  7:39 Otared Kavian
  2013-01-23  8:12 ` Wolfgang Schuster
  0 siblings, 1 reply; 7+ messages in thread
From: Otared Kavian @ 2013-01-23  7:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Hans,

I noticed that with the latest mkiv (version 2013.01.22 18:33 MKIV  fmt: 2013.1.22) when the sections have no numbers two « ! » are printed and this behavior is new: with previous versions when invoking for instance
	\in{other section}[sec:other]
there used to be a link to the "other section" and no « ! ! ». I understand that there has been a change in this behavior, but is there a way to suppress the two « ! ! »?

Here is a minimal example:

%%%% begin bug-reference.tex
\setupinteraction[state=start] 
\setuphead[section][number=no]

\starttext
\section{First Section}
\input knuth.tex
See the \in{other section}[sec:other] below. 
\page

\section[sec:other]{\bf Second Section}
Here is another section.

\input ward.tex

\setuphead[section][number=yes]
\section{Third Section}
\input knuth.tex

See the \in{other section}[sec:other-2] below. 
\page

\section[sec:other-2]{\bf Fourth Section}

Here another section.

\input ward.tex

\stoptext
%%%% end bug-reference.tex

Best regards: OK
___________________________________________________________________________________
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] 7+ messages in thread

* Re: Bug in reference to sections
  2013-01-23  7:39 Bug in reference to sections Otared Kavian
@ 2013-01-23  8:12 ` Wolfgang Schuster
  2013-01-23  8:38   ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2013-01-23  8:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 23.01.2013 um 08:39 schrieb Otared Kavian <otared@gmail.com>:

> Hi Hans,
> 
> I noticed that with the latest mkiv (version 2013.01.22 18:33 MKIV  fmt: 2013.1.22) when the sections have no numbers two « ! » are printed and this behavior is new: with previous versions when invoking for instance
> 	\in{other section}[sec:other]
> there used to be a link to the "other section" and no « ! ! ». I understand that there has been a change in this behavior, but is there a way to suppress the two « ! ! »?

IIRC this was a feature request a while ago, the macros to print ?? and !! are defined as

\def\dummyreference{{\tttf ??}}
\def\wrongreference{{\tttf !!}}

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
___________________________________________________________________________________


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

* Re: Bug in reference to sections
  2013-01-23  8:12 ` Wolfgang Schuster
@ 2013-01-23  8:38   ` Hans Hagen
  2013-01-23  8:59     ` Hans Hagen
                       ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Hans Hagen @ 2013-01-23  8:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Wolfgang Schuster

On 1/23/2013 9:12 AM, Wolfgang Schuster wrote:
>
> Am 23.01.2013 um 08:39 schrieb Otared Kavian <otared@gmail.com>:
>
>> Hi Hans,
>>
>> I noticed that with the latest mkiv (version 2013.01.22 18:33 MKIV  fmt: 2013.1.22) when the sections have no numbers two « ! » are printed and this behavior is new: with previous versions when invoking for instance
>> 	\in{other section}[sec:other]
>> there used to be a link to the "other section" and no « ! ! ». I understand that there has been a change in this behavior, but is there a way to suppress the two « ! ! »?
>
> IIRC this was a feature request a while ago, the macros to print ?? and !! are defined as
>
> \def\dummyreference{{\tttf ??}}
> \def\wrongreference{{\tttf !!}}

As there are indeed side effects I'll remove that options. Asking for a 
number of an unnumbered section is weird anyway.

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 7+ messages in thread

* Re: Bug in reference to sections
  2013-01-23  8:38   ` Hans Hagen
@ 2013-01-23  8:59     ` Hans Hagen
  2013-01-23  9:37     ` Marco Patzer
  2013-01-23 10:10     ` Otared Kavian
  2 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2013-01-23  8:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Wolfgang Schuster

On 1/23/2013 9:38 AM, Hans Hagen wrote:
> On 1/23/2013 9:12 AM, Wolfgang Schuster wrote:
>>
>> Am 23.01.2013 um 08:39 schrieb Otared Kavian <otared@gmail.com>:
>>
>>> Hi Hans,
>>>
>>> I noticed that with the latest mkiv (version 2013.01.22 18:33 MKIV
>>> fmt: 2013.1.22) when the sections have no numbers two « ! » are
>>> printed and this behavior is new: with previous versions when
>>> invoking for instance
>>>     \in{other section}[sec:other]
>>> there used to be a link to the "other section" and no « ! ! ». I
>>> understand that there has been a change in this behavior, but is
>>> there a way to suppress the two « ! ! »?
>>
>> IIRC this was a feature request a while ago, the macros to print ??
>> and !! are defined as
>>
>> \def\dummyreference{{\tttf ??}}
>> \def\wrongreference{{\tttf !!}}
>
> As there are indeed side effects I'll remove that options. Asking for a
> number of an unnumbered section is weird anyway.

next beta:

\enabletrackers[structures.referencing.empty]

\starttext

     \startfrontmatter
         \chapter[test]{TEST}
     \stopfrontmatter

     \in{}[test]

\stoptext


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 7+ messages in thread

* Re: Bug in reference to sections
  2013-01-23  8:38   ` Hans Hagen
  2013-01-23  8:59     ` Hans Hagen
@ 2013-01-23  9:37     ` Marco Patzer
  2013-01-23 10:10     ` Otared Kavian
  2 siblings, 0 replies; 7+ messages in thread
From: Marco Patzer @ 2013-01-23  9:37 UTC (permalink / raw)
  To: ntg-context


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

On 2013–01–23 Hans Hagen wrote:

> >IIRC this was a feature request a while ago, the macros to print ?? and !! are defined as

I'm the one to blame!

> >
> >\def\dummyreference{{\tttf ??}}
> >\def\wrongreference{{\tttf !!}}
> 
> As there are indeed side effects I'll remove that options.

I hope you mean that you change the default back to the old
behaviour and the dummy text can be activated using the tracker.

> Asking for a number of an unnumbered section is weird anyway.

Sure, it doesn't make sense. But it happens if the style changes
halfway during production. In my case I had to change the \in to
\about for the unnumbered sections. Since I couldn't find a regular
expression for that, I had to change it manually and forgot a few.
If a dummy text is printed, it's easy to grep for that.

Marco

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 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] 7+ messages in thread

* Re: Bug in reference to sections
  2013-01-23  8:38   ` Hans Hagen
  2013-01-23  8:59     ` Hans Hagen
  2013-01-23  9:37     ` Marco Patzer
@ 2013-01-23 10:10     ` Otared Kavian
  2013-01-23 12:15       ` Hans Hagen
  2 siblings, 1 reply; 7+ messages in thread
From: Otared Kavian @ 2013-01-23 10:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users


On 23 janv. 2013, at 09:38, Hans Hagen <pragma@wxs.nl> wrote:

> As there are indeed side effects I'll remove that options. Asking for a number of an unnumbered section is weird anyway.
> 

Hi,

Thanks to Hans and Wolfgang for your attention and the workarounds you offer.
When I want to refer to an un-numbered section, it makes sense in an interactive document. Maybe, instead of 
	 \in{other section}[sec:other] 
I should use another command such as
	\about[sec:other]
but in this case all the title of the section in question will be typeset: this is fine when this title is short enough, but it may be ugly if the title is long, or when one wishes to refer to that section by a paraphrase.

Best regards: OK 
___________________________________________________________________________________
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] 7+ messages in thread

* Re: Bug in reference to sections
  2013-01-23 10:10     ` Otared Kavian
@ 2013-01-23 12:15       ` Hans Hagen
  0 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2013-01-23 12:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Otared Kavian

On 1/23/2013 11:10 AM, Otared Kavian wrote:

> Thanks to Hans and Wolfgang for your attention and the workarounds you offer.
> When I want to refer to an un-numbered section, it makes sense in an interactive document. Maybe, instead of
> 	 \in{other section}[sec:other]
> I should use another command such as
> 	\about[sec:other]
> but in this case all the title of the section in question will be typeset: this is fine when this title is short enough, but it may be ugly if the title is long, or when one wishes to refer to that section by a paraphrase.

or \goto


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 7+ messages in thread

end of thread, other threads:[~2013-01-23 12:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-23  7:39 Bug in reference to sections Otared Kavian
2013-01-23  8:12 ` Wolfgang Schuster
2013-01-23  8:38   ` Hans Hagen
2013-01-23  8:59     ` Hans Hagen
2013-01-23  9:37     ` Marco Patzer
2013-01-23 10:10     ` Otared Kavian
2013-01-23 12:15       ` Hans Hagen

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).