[NTG-context] Reference prefix for sections is ignored

2022-05-12 Thread Wolfgang Schuster via ntg-context

Hi,

the automatic reference prefix for section etc. with the setup

    \setuphead[chapter][referenceprefix=+]

doesn't work anymore (broken since a while).


The following patch for strc-sec.mkxl fixes the missing prefix:

 begin fix
\def\strc_sectioning_set_reference_prefix
  {\ifempty\currentstructurereferenceprefix
 % nothing
\orelse\ifx\currentstructurereferenceprefix\m_strc_references_prefix_yes
-    \global\advance\prefixcounter \plusone % temp here
-    \setupglobalreferenceprefix[\the\prefixcounter]%
+    \ifempty\currentstructurereference
+  \global\advance\prefixcounter \plusone % temp here
+  \setupglobalreferenceprefix[\the\prefixcounter]%
+    \else
+  \setupglobalreferenceprefix[\currentstructurereference]%
+    \fi
\orelse\ifx\currentstructurereferenceprefix\m_strc_references_prefix_nop
 \setupglobalreferenceprefix[]%
   \else
 \setupglobalreferenceprefix[\currentstructurereferenceprefix]%
   \fi
   \glet\currentstructurereferenceprefix\referenceprefix}
 end fix


When I apply the changes above the following document shows the correct 
references in the output.


 begin example
\setuphead[chapter][referenceprefix=+]

\starttext

\chapter[one]{First chapter}

\section[alpha]{First section}

See \in{Section}[alpha].

See \in{Section}[two:beta].

\chapter[two]{Second chapter}

\section[beta]{Second section}

See \in{Section}[one:alpha].

See \in{Section}[beta].

\stoptext
 end example

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] reference chapters from another doc in this doc's toc

2021-03-05 Thread denis.maier
Hi,
is it possible to include structure elements from other documents in a toc? 
E.g. when your having a multivolume book where each book is an individual book, 
but you want to have a TOC that covers all volumes?
Best,
Denis
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] reference a paragraph

2020-03-25 Thread Wolfgang Schuster

Alan Braslau schrieb am 25.03.2020 um 15:09:

Hello,

One creates references for structure elements as, for example,

\startsubject [reference=sub:mysubject]
...
\stopsubject

and then can refer to these using, e.g.

\on{page} [sub:subject]



How might one reference a *paragraph*, for example?
Parallel syntax might suggest \startparagraph [reference=p:myparagraph]
but this is not implemented.
Perhaps there is another referencing command that I am not aware of?


xxx\pagereference[p:myparagraph] xxx

\dontleavehmode\pagereference[p:myparagraph]xxx xxx

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] reference a paragraph

2020-03-25 Thread Alan Braslau
Hello,

One creates references for structure elements as, for example,

\startsubject [reference=sub:mysubject]
   ...
\stopsubject

and then can refer to these using, e.g.

\on{page} [sub:subject]



How might one reference a *paragraph*, for example?
Parallel syntax might suggest \startparagraph [reference=p:myparagraph]
but this is not implemented.
Perhaps there is another referencing command that I am not aware of?

Thank you

Alan
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] reference containing parentheses causes trouble

2019-07-12 Thread Hans Hagen

On 7/11/2019 5:27 PM, Alan Braslau wrote:

This is why it is always a good idea to preface references with a
(personal) identifier. However, perhaps Hans, Wolfgang, or someone else
can explain the use of colons (:) and double colons (::) in references
and in other tags in general (they have to do with namespaces,
instances, etc.).

grep for :::

mag-1103-mkiv.tex


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] reference containing parentheses causes trouble

2019-07-11 Thread Alan Braslau
This is why it is always a good idea to preface references with a
(personal) identifier. However, perhaps Hans, Wolfgang, or someone else
can explain the use of colons (:) and double colons (::) in references
and in other tags in general (they have to do with namespaces,
instances, etc.).

Alan


On Thu, 11 Jul 2019 14:56:02 +0200
Otared Kavian  wrote:

> Actually in the context of references, not only parentheses as
> Wolfgang pointed out, but also some words are reserved, such as
> nextpage and previous page:
> 
> \setupinteraction[state=start]
> 
> \starttext
> 
> \goto{Second page}[page(2)]
> 
> \goto{Go to next page}[nextpage]
> 
> \page
> 
> \goto{ConTeXt garden}[url(http://wiki.contextgarden.net)]
> 
> \goto{Go to previous page}[previouspage]
> 
> \stoptext
> 
> Best regards: OK
> 
> > On 11 Jul 2019, at 11:03, Peter Rolf  wrote:
> > 
> > Am 10.07.2019 um 21:29 schrieb Wolfgang Schuster:  
> >> Sanjoy Mahajan schrieb am 10.07.2019 um 04:15:  
> >>> Dear List,
> >>> 
> >>> Warning: The following may be a bug or feature or just my
> >>> misunderstanding!  It seems that parentheses cause trouble in
> >>> references.  
> >> Braces are used for the argument of reference actions.
> >> 
> >> \setupinteraction[state=start]
> >> 
> >> \starttext
> >> 
> >> \goto{Second page}[page(2)]
> >> 
> >> \page
> >> 
> >> \goto{ConTeXt garden}[url(http://wiki.contextgarden.net)]
> >> 
> >> \stoptext
> >> 
> >> Wolfgang
> >>   
> > 
> > I see. Thanks for clearifying.
> > 
> > 
> > Peter
> > ___
> > 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://context.aanhet.net archive  :
> > https://bitbucket.org/phg/context-mirror/commits/ 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] reference containing parentheses causes trouble

2019-07-11 Thread Otared Kavian
Actually in the context of references, not only parentheses as Wolfgang pointed 
out, but also some words are reserved, such as nextpage and previous page:

\setupinteraction[state=start]

\starttext

\goto{Second page}[page(2)]

\goto{Go to next page}[nextpage]

\page

\goto{ConTeXt garden}[url(http://wiki.contextgarden.net)]

\goto{Go to previous page}[previouspage]

\stoptext

Best regards: OK

> On 11 Jul 2019, at 11:03, Peter Rolf  wrote:
> 
> Am 10.07.2019 um 21:29 schrieb Wolfgang Schuster:
>> Sanjoy Mahajan schrieb am 10.07.2019 um 04:15:
>>> Dear List,
>>> 
>>> Warning: The following may be a bug or feature or just my
>>> misunderstanding!  It seems that parentheses cause trouble in
>>> references.
>> Braces are used for the argument of reference actions.
>> 
>> \setupinteraction[state=start]
>> 
>> \starttext
>> 
>> \goto{Second page}[page(2)]
>> 
>> \page
>> 
>> \goto{ConTeXt garden}[url(http://wiki.contextgarden.net)]
>> 
>> \stoptext
>> 
>> Wolfgang
>> 
> 
> I see. Thanks for clearifying.
> 
> 
> Peter
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] reference containing parentheses causes trouble

2019-07-11 Thread Peter Rolf
Am 10.07.2019 um 21:29 schrieb Wolfgang Schuster:
> Sanjoy Mahajan schrieb am 10.07.2019 um 04:15:
>> Dear List,
>>
>> Warning: The following may be a bug or feature or just my
>> misunderstanding!  It seems that parentheses cause trouble in
>> references.
> Braces are used for the argument of reference actions.
>
> \setupinteraction[state=start]
>
> \starttext
>
> \goto{Second page}[page(2)]
>
> \page
>
> \goto{ConTeXt garden}[url(http://wiki.contextgarden.net)]
>
> \stoptext
>
> Wolfgang
>

I see. Thanks for clearifying.


Peter
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] reference containing parentheses causes trouble

2019-07-10 Thread Wolfgang Schuster

Sanjoy Mahajan schrieb am 10.07.2019 um 04:15:

Dear List,

Warning: The following may be a bug or feature or just my
misunderstanding!  It seems that parentheses cause trouble in
references.

Braces are used for the argument of reference actions.

\setupinteraction[state=start]

\starttext

\goto{Second page}[page(2)]

\page

\goto{ConTeXt garden}[url(http://wiki.contextgarden.net)]

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] reference containing parentheses causes trouble

2019-07-10 Thread Hans Hagen

On 7/10/2019 1:04 PM, Peter Rolf wrote:

Hi Sanjoy,

I think it's just the 'normal' limitations you have when setting a
variable/id name. Special characters, like parenthesis, are not allowed
here.

Even whitespace can be problematic. Yesterday I had a problem with a
reference (data driven) that has a trailing space (obviously a typo).
This space was 'eaten' by TeX, resulting in a broken link. Embracing the
argument helped here, but I haven't tested what happens, if you use
multiple spaces in a row...
indeed, references are actually a little language in their own (always 
have been)


\enabletrackers[structures.referencing.analyzing]

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] reference containing parentheses causes trouble

2019-07-10 Thread Peter Rolf
Hi Sanjoy,

I think it's just the 'normal' limitations you have when setting a
variable/id name. Special characters, like parenthesis, are not allowed
here.

Even whitespace can be problematic. Yesterday I had a problem with a
reference (data driven) that has a trailing space (obviously a typo).
This space was 'eaten' by TeX, resulting in a broken link. Embracing the
argument helped here, but I haven't tested what happens, if you use
multiple spaces in a row...


Greetings,  Peter


Am 10.07.2019 um 04:15 schrieb Sanjoy Mahajan:
> Dear List,
>
> Warning: The following may be a bug or feature or just my
> misunderstanding!  It seems that parentheses cause trouble in
> references. MNWE:
>
>   \starttext
>   \section[sec:one(two)]{One}
>
>   As you see in sec.~\in[sec:one(two)],
>
>   \stoptext
>
> The "in sec.~\in[sec:one(two)]" typesets as "in sec. ??" and the log
> shows:
>
>   references  > start missing references
>
>   references  >1  [][sec:one(two)]
>
>   references  > stop missing references
>
> (It all works fine upon deleting "(two)" throughout.)
>
> Is this behavior known and expected?  If it is, I'll add a note to the
> "References" page on the wiki.
>
> -Sanjoy
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] reference containing parentheses causes trouble

2019-07-09 Thread Sanjoy Mahajan
Dear List,

Warning: The following may be a bug or feature or just my
misunderstanding!  It seems that parentheses cause trouble in
references. MNWE:

  \starttext
  \section[sec:one(two)]{One}

  As you see in sec.~\in[sec:one(two)],

  \stoptext

The "in sec.~\in[sec:one(two)]" typesets as "in sec. ??" and the log
shows:

  references  > start missing references

  references  >1  [][sec:one(two)]

  references  > stop missing references

(It all works fine upon deleting "(two)" throughout.)

Is this behavior known and expected?  If it is, I'll add a note to the
"References" page on the wiki.

-Sanjoy
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] reference manual

2018-09-17 Thread Henri Menke
On 09/17/2018 09:12 PM, Hans van der Meer wrote:
> My most recent version of the "ConTeXt reference manual” is Hans Hagen,
> Taco Hoekwater September 27, 2013.
> Is there a newer edition available? I could not find one in the (beta)
> distribution in texmf-context/doc.

The ConTeXt reference manual is outdated.  Please see my documentation
guide on https://github.com/hmenke/context-examples/blob/master/GUIDE.md
for where to find documentation.

> 
> dr. Hans van der Meer
> 
> 
> 
> 
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] reference manual

2018-09-17 Thread Hans van der Meer
My most recent version of the "ConTeXt reference manual” is Hans Hagen, Taco 
Hoekwater September 27, 2013.
Is there a newer edition available? I could not find one in the (beta) 
distribution in texmf-context/doc.

dr. Hans van der Meer


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] \reference not working with reference prefix and focus=standard

2018-06-25 Thread Christoph Reller
Hi,

Thank you, Hans, for supporting the focus=standard option in interactive PDFs.

I stumbled over the following problem:

\setupinteraction[state=start, focus=standard]
\starttext
\pushreferenceprefix{parent}
\reference[label]{Text}Bla
\page
\about[label]
\popreferenceprefix
\stoptext

The link's visual appearance is generated correctly and the PDF link
annotation correctly references a named destination "parent:label". In
the PDF's catalog, however, the only named destination has a name
"label", lacking the prefix.

Could you please consider fixing this issue?

Kind regards,

Christoph
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Reference links with focus=standard

2018-04-13 Thread Christoph Reller
On Fri, 13 Apr 2018 10:45:39 +0100,  Lawrence Bell
 wrote:
> On 13/04/18 07:31, Henri Menke wrote:
>>
>> On Fri, 2018-04-13 at 08:13 +0200, Christoph Reller wrote:
>>>
>>> Please, Hans, I kindly ask you to reconsider. I am aware of your
>>> opinion and reasoning about this issue. But I believe that for many of
>>> us users, today's PDFs need to be both, interactive *and* printable.
>>>
>>> If there is any way I can help or motivate you, then please tell me ;-)
>>>
>> The best way to motivate Hans to implement something you need, is by
>> implementing it yourself and sending him updated core files.
>> Works for me every time ;-)
>>

Well, thank you for this hint Henry, but that works only for those who
can afford the time :-/

>
> Dear Christoph,
>
> I take it from your reply that fixing this problem with interactivity
> would likely cause some trouble with the printability? And therefore,
> it's staying as it is to prioritize printability? That's understandable,
> but a bit frustrating, since I still don't have any clue what the actual
> problem is. Could you possibly explain in some more detail or point me
> to a relevant thread?
>
> Kind regards,
>
> Lawrence
>

Dear Lawrence,

(Sorry for changing to bottom posting style.)

This issue is not about a trade-off between print-ability and
inter-activeness. If I understand Hans' position correctly, then at
least part of his reasoning is the following (please correct me if I'm
wrong): It is easy to produce two versions of a document from one
common source, one version for print and one for the screen. The
former needs no interactive links and the latter should best be viewed
fullscreen, i.e., without scrolling, in which case focus=standard is
unnecessary. While I largely agree with this approach, many of the
ConTeXt users (including myself) are not in a position to decide how
their documents should be published. I believe that many of today's
PDF documents still are meant to be both, viewed on screen and
printed. And it's only for this scenario that focus=standard makes
sense.

Kind regards,

Christoph
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Reference links with focus=standard option

2018-04-13 Thread Christoph Reller
Fri, 13 Apr 2018 11:48:28 +0200, Hans Hagen  wrote:
> On 4/13/2018 8:13 AM, Christoph Reller wrote:
>>
>> This is a long standing feature request reported multiple times by
>> myself and others with MWEs in
>> https://www.mail-archive.com/ntg-context@ntg.nl/msg79620.html and
>> https://www.mail-archive.com/ntg-context@ntg.nl/msg79727.html.
>>
>> Another MWE in which the link is non-functional:
>>
> fixed in next beta (i'm not sure when i will upload that one as i need
> to test some new features first)
>

Thank you Hans!

This is good news. Your work is very much appreciated. I am looking
forward to the next beta.

Regards,
Christoph
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Reference links with focus=standard option

2018-04-13 Thread Hans Hagen

On 4/13/2018 8:13 AM, Christoph Reller wrote:

On Wed, 11 Apr 2018 20:27:15 +0100, Lawrence Bell 
 wrote:

Thanks very much for your replies. It's reassuring to see (it seems)
that I've not overlooked some extra option that magically does the job
:) Worst case scenario I'll hack something together, or just settle for
the default focus functionality, which is not the end of the world. Just
feel like there should be a better/more elegant way.

On 11/04/18 19:36, Pablo Rodriguez wrote:

On 04/11/2018 07:14 PM, Pablo Rodriguez wrote:

On 04/11/2018 04:35 PM, Lawrence Bell wrote:

[...]
What's going on here?

I generated an uncompressed PDF document from your source:
http://pdf.ousia.tk/focus-standard.pdf.
[...]
(eq:ref) seems to be missing there. But I have to investigate the issue
further to get a more accurate report.

[...]
Sorry, but I’m afraid that I don’t know exactly what misbehaves here. I
hope Hans can fix it.


Dear all,

This is a long standing feature request reported multiple times by
myself and others with MWEs in
https://www.mail-archive.com/ntg-context@ntg.nl/msg79620.html and
https://www.mail-archive.com/ntg-context@ntg.nl/msg79727.html.

Another MWE in which the link is non-functional:
fixed in next beta (i'm not sure when i will upload that one as i need 
to test some new features first)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Reference links with focus=standard option

2018-04-13 Thread Lawrence Bell
Dear Christoph,

I take it from your reply that fixing this problem with interactivity
would likely cause some trouble with the printability? And therefore,
it's staying as it is to prioritize printability? That's understandable,
but a bit frustrating, since I still don't have any clue what the actual
problem is. Could you possibly explain in some more detail or point me
to a relevant thread?

Kind regards,

Lawrence


On 13/04/18 07:31, Henri Menke wrote:
> On Fri, 2018-04-13 at 08:13 +0200, Christoph Reller wrote:
>>> On Wed, 11 Apr 2018 20:27:15 +0100, Lawrence Bell >> il.com> wrote:
>>>
>>> Thanks very much for your replies. It's reassuring to see (it seems)
>>> that I've not overlooked some extra option that magically does the job
>>> :) Worst case scenario I'll hack something together, or just settle for
>>> the default focus functionality, which is not the end of the world. Just
>>> feel like there should be a better/more elegant way.
>>>
>>> On 11/04/18 19:36, Pablo Rodriguez wrote:
 On 04/11/2018 07:14 PM, Pablo Rodriguez wrote:
> On 04/11/2018 04:35 PM, Lawrence Bell wrote:
>> [...]
>> What's going on here?
> I generated an uncompressed PDF document from your source:
> http://pdf.ousia.tk/focus-standard.pdf.
> [...]
> (eq:ref) seems to be missing there. But I have to investigate the issue
> further to get a more accurate report.
 [...]
 Sorry, but I’m afraid that I don’t know exactly what misbehaves here. I
 hope Hans can fix it.
>> Dear all,
>>
>> This is a long standing feature request reported multiple times by
>> myself and others with MWEs in
>> https://www.mail-archive.com/ntg-context@ntg.nl/msg79620.html and
>> https://www.mail-archive.com/ntg-context@ntg.nl/msg79727.html.
>>
>> Another MWE in which the link is non-functional:
>>
>> \setupexternalfigures[location={local,global,default}]
>> \setupinteraction[state=start, focus=standard]
>> \starttext
>> \about[figure].
>> \page
>> \placefigure[][figure]{Figure}{\externalfigure[cow.pdf]}
>> \stoptext
>>
>> Please, Hans, I kindly ask you to reconsider. I am aware of your
>> opinion and reasoning about this issue. But I believe that for many of
>> us users, today's PDFs need to be both, interactive *and* printable.
>>
>> If there is any way I can help or motivate you, then please tell me ;-)
> The best way to motivate Hans to implement something you need, is by
> implementing it yourself and sending him updated core files.
> Works for me every time ;-)
>
>> Kind regards,
>>
>> Christoph
>> __
>> _
>> 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://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Reference links with focus=standard option

2018-04-13 Thread Henri Menke
On Fri, 2018-04-13 at 08:13 +0200, Christoph Reller wrote:
> > 
> > On Wed, 11 Apr 2018 20:27:15 +0100, Lawrence Bell  > il.com> wrote:
> > 
> > Thanks very much for your replies. It's reassuring to see (it seems)
> > that I've not overlooked some extra option that magically does the job
> > :) Worst case scenario I'll hack something together, or just settle for
> > the default focus functionality, which is not the end of the world. Just
> > feel like there should be a better/more elegant way.
> > 
> > On 11/04/18 19:36, Pablo Rodriguez wrote:
> > > 
> > > On 04/11/2018 07:14 PM, Pablo Rodriguez wrote:
> > > > 
> > > > On 04/11/2018 04:35 PM, Lawrence Bell wrote:
> > > > > 
> > > > > [...]
> > > > > What's going on here?
> > > > I generated an uncompressed PDF document from your source:
> > > > http://pdf.ousia.tk/focus-standard.pdf.
> > > > [...]
> > > > (eq:ref) seems to be missing there. But I have to investigate the issue
> > > > further to get a more accurate report.
> > > [...]
> > > Sorry, but I’m afraid that I don’t know exactly what misbehaves here. I
> > > hope Hans can fix it.
> Dear all,
> 
> This is a long standing feature request reported multiple times by
> myself and others with MWEs in
> https://www.mail-archive.com/ntg-context@ntg.nl/msg79620.html and
> https://www.mail-archive.com/ntg-context@ntg.nl/msg79727.html.
> 
> Another MWE in which the link is non-functional:
> 
> \setupexternalfigures[location={local,global,default}]
> \setupinteraction[state=start, focus=standard]
> \starttext
> \about[figure].
> \page
> \placefigure[][figure]{Figure}{\externalfigure[cow.pdf]}
> \stoptext
> 
> Please, Hans, I kindly ask you to reconsider. I am aware of your
> opinion and reasoning about this issue. But I believe that for many of
> us users, today's PDFs need to be both, interactive *and* printable.
> 
> If there is any way I can help or motivate you, then please tell me ;-)

The best way to motivate Hans to implement something you need, is by
implementing it yourself and sending him updated core files.
Works for me every time ;-)

> 
> Kind regards,
> 
> Christoph
> __
> _
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Reference links with focus=standard option

2018-04-13 Thread Christoph Reller
> On Wed, 11 Apr 2018 20:27:15 +0100, Lawrence Bell 
>  wrote:
>
> Thanks very much for your replies. It's reassuring to see (it seems)
> that I've not overlooked some extra option that magically does the job
> :) Worst case scenario I'll hack something together, or just settle for
> the default focus functionality, which is not the end of the world. Just
> feel like there should be a better/more elegant way.
>
> On 11/04/18 19:36, Pablo Rodriguez wrote:
>> On 04/11/2018 07:14 PM, Pablo Rodriguez wrote:
>>> On 04/11/2018 04:35 PM, Lawrence Bell wrote:
 [...]
 What's going on here?
>>> I generated an uncompressed PDF document from your source:
>>> http://pdf.ousia.tk/focus-standard.pdf.
>>> [...]
>>> (eq:ref) seems to be missing there. But I have to investigate the issue
>>> further to get a more accurate report.
>> [...]
>> Sorry, but I’m afraid that I don’t know exactly what misbehaves here. I
>> hope Hans can fix it.

Dear all,

This is a long standing feature request reported multiple times by
myself and others with MWEs in
https://www.mail-archive.com/ntg-context@ntg.nl/msg79620.html and
https://www.mail-archive.com/ntg-context@ntg.nl/msg79727.html.

Another MWE in which the link is non-functional:

\setupexternalfigures[location={local,global,default}]
\setupinteraction[state=start, focus=standard]
\starttext
\about[figure].
\page
\placefigure[][figure]{Figure}{\externalfigure[cow.pdf]}
\stoptext

Please, Hans, I kindly ask you to reconsider. I am aware of your
opinion and reasoning about this issue. But I believe that for many of
us users, today's PDFs need to be both, interactive *and* printable.

If there is any way I can help or motivate you, then please tell me ;-)

Kind regards,

Christoph
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Reference links with focus=standard option

2018-04-11 Thread Lawrence Bell
Pablo,

Thanks very much for your replies. It's reassuring to see (it seems)
that I've not overlooked some extra option that magically does the job
:) Worst case scenario I'll hack something together, or just settle for
the default focus functionality, which is not the end of the world. Just
feel like there should be a better/more elegant way.


On 11/04/18 19:36, Pablo Rodriguez wrote:
> On 04/11/2018 07:14 PM, Pablo Rodriguez wrote:
>> On 04/11/2018 04:35 PM, Lawrence Bell wrote:
>>> [...] 
>>> What's going on here?
>> I generated an uncompressed PDF document from your source:
>> http://pdf.ousia.tk/focus-standard.pdf.
>> [...]
>> (eq:ref) seems to be missing there. But I have to investigate the issue
>> further to get a more accurate report.
> Lawrence,
>
> all I got is that floats have problems with named destinations (the ones
> you get with \setupinteraction[focus=standard]).
>
> \setupexternalfigures[location=default]
> \setupinteraction
>   [state=start, focus=standard]
>
> \starttext
>
> \startplacechemical[reference=ch:ref]
>   \startchemicalformula
>  \chemical{(C_2H_5)_2Zn}{DEZ}
> \stopchemicalformula
> \stopplacechemical
>
> \placefigure[here][fl:ref]{Cow}{\externalfigure[cow]}
>
> formula \in[ch:ref]
>
> figure \in[fl:ref]
> \stoptext
>
> Sorry, but I’m afraid that I don’t know exactly what misbehaves here. I
> hope Hans can fix it.
>
> Pablo

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Reference links with focus=standard option

2018-04-11 Thread Pablo Rodriguez
On 04/11/2018 07:14 PM, Pablo Rodriguez wrote:
> On 04/11/2018 04:35 PM, Lawrence Bell wrote:
>> [...] 
>> What's going on here?
> 
> I generated an uncompressed PDF document from your source:
> http://pdf.ousia.tk/focus-standard.pdf.
> [...]
> (eq:ref) seems to be missing there. But I have to investigate the issue
> further to get a more accurate report.

Lawrence,

all I got is that floats have problems with named destinations (the ones
you get with \setupinteraction[focus=standard]).

\setupexternalfigures[location=default]
\setupinteraction
  [state=start, focus=standard]

\starttext

\startplacechemical[reference=ch:ref]
  \startchemicalformula
 \chemical{(C_2H_5)_2Zn}{DEZ}
\stopchemicalformula
\stopplacechemical

\placefigure[here][fl:ref]{Cow}{\externalfigure[cow]}

formula \in[ch:ref]

figure \in[fl:ref]
\stoptext

Sorry, but I’m afraid that I don’t know exactly what misbehaves here. I
hope Hans can fix it.

Pablo
-- 
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Reference links with focus=standard option

2018-04-11 Thread Pablo Rodriguez
On 04/11/2018 04:35 PM, Lawrence Bell wrote:
> Hi mailing list,
> 
> I'm having some trouble with (interactive) references. I had a quick
> search of the mailing list and couldn't find any talk about this kind of
> issue, so I'm asking now. Hoping you could help me out.
> 
> All is well with the default setting for focus. I don't like that with
> most (?) PDF viewers the default setting changes the zoom level, so I
> usually turn on \setupinteraction[focus=standard] instead. But this
> seems to break (some of) the interactive links. The links to the the
> chapter and item still work, but the links to the formula are broken.

Hi Lawrence,

it seems that something is broken when ConTeXt generates the
destinations for these links.

> As an experiment, I just tried this with a couple different viewers
> (Firefox, Evince, Okular, Xpdf, Qpdfview) and (putting
> \setupinteraction[focus=standard] back in) the link is indeed broken on
> all of them, /except/ for Qpdfview which still seems to understand it.

qpdfview complains after having clicking the link:

"Error: failed to look up (eq:ref)"
"Error: failed to look up (eq:ref)"

> What's going on here?

I generated an uncompressed PDF document from your source:
http://pdf.ousia.tk/focus-standard.pdf.

The issue seems to be in the name tree node dictionary:

35 0 obj
<<
  /Limits [ (#1) (pt:ref) ]
  /Names [ (#1) 15 0 R (#2) 19 0 R (#3) 20 0 R (it:ref) 20 0 R
  (pt:ref) 15 0 R ]
>>
endobj

(eq:ref) seems to be missing there. But I have to investigate the issue
further to get a more accurate report.

I hope it helps,

Pablo
-- 
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Reference links with focus=standard option

2018-04-11 Thread Lawrence Bell
Hi mailing list,

I'm having some trouble with (interactive) references. I had a quick
search of the mailing list and couldn't find any talk about this kind of
issue, so I'm asking now. Hoping you could help me out.

Consider the following example document.

\setupinteraction
  [
    state=start,
    % focus=standard,
  ]

\starttext
\startchapter[title=Some Title, reference=pt:ref]

Lorem ipsum dolor sit amet, \periods

\startplaceformula[reference=eq:ref]
  \startformula
    c^2 = a^2 + b^2.
  \stopformula
\stopplaceformula

Lorem ipsum dolor sit amet, \periods

\startitemize[r]
  \startitem[it:ref]
    Lorem ipsum dolor sit amet, \periods
  \stopitem
\stopitemize

And now we can refer to formula~\in[eq:ref], chapter~\in[pt:ref], and
item~\in[it:ref].

\page

And now we can refer to formula~\in[eq:ref], chapter~\in[pt:ref], and
item~\in[it:ref].

\stopchapter
\stoptext

All is well with the default setting for focus. I don't like that with
most (?) PDF viewers the default setting changes the zoom level, so I
usually turn on \setupinteraction[focus=standard] instead. But this
seems to break (some of) the interactive links. The links to the the
chapter and item still work, but the links to the formula are broken.

As an experiment, I just tried this with a couple different viewers
(Firefox, Evince, Okular, Xpdf, Qpdfview) and (putting
\setupinteraction[focus=standard] back in) the link is indeed broken on
all of them, /except/ for Qpdfview which still seems to understand it.

What's going on here?

Thanks in advance, Lawrence

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] reference points with double colons (::) are not working

2015-10-10 Thread Eidenbenz Michael
Dear Hans,

thanks for your answer.
i found a workaround by using only the key for the crossref and adding the 
"img::" in the macro. 

below is the working example (just for the record)

regards michael


---

\startbuffer[duane]

@image {tug2014,
title   = "TUG 2014",
url = "http://tug.org/tug2014/;,
url_image   = "http://tug.org/art/tug2014-color.jpg;,
url_thumb   = "http://tug.org/tug2014/t2014-thumb.jpg;,
description = "Official drawing of the TUG 2014 conference",
author  = "Duane Bibby",
year= 2014,
}

\stopbuffer

\definebtxdataset
 [duane]

\usebtxdataset
 [duane]
 [duane.buffer]

\usebtxdefinitions  
 [duane]

\definebtxrendering
[duane]
[dataset=duane,
 method=local, 
]

\setupbtxlist
[duane]
[number=no]

\startsetups btx:duane:cite:image
   {\externalfigure[\btxfield{url_image}][width=10cm]}
\stopsetups

 \def\bild[#1]#2%
{\placefigure[here][#1]{#2}{\cite[image][duane::#1]}}%

\def\bildref[#1]%
{\in{\bf Fig.}[#1]}

\startsetups btx:duane:list:image
  \btxfield{title} 
\stopsetups

\starttext

   %\enabletrackers
   % [publications.setups]
   
   \bild[tug2014]\par
   
   \input tufte
 
   \bildref[tug2014]

   \page

   \placebtxrendering[duane]

\stoptext






On 10.10.2015, at 11:35, Hans Hagen 
 wrote:

> On 10/10/2015 10:26 AM, Eidenbenz  Michael wrote:
>> Hello,
>> 
>> I have double colons (::) in my reference points.
>> (It's actually the same string I also use to refer to my publication 
>> database)
>> But they wont show up as you can see in the example below.
>> 
>> Is there any way to fix this?
>> 
>> Thanks for your help and best regards
> 
> :: and ::: have special meaning (:; for another document and ::: for 
> components and such)
> 
>> Michael
>> 
>> -
>> 
>> \starttext
>> 
>> \placefigure[here][img:cow]{This is a cow}{\externalfigure[cow.jpg]}\par
>> \placefigure[here][img::mill]{This is a mill}{\externalfigure[mill.png]}\par
>> 
>> The picture in \in{Figure}[img:cow] is a cow\par
>> The picture in \in{Figure}[img::mill] is a mill (cross reference is not 
>> working)\par
>> 
>> \stoptext
>> 
>> -
>> ___
>> 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
>> ___
>> 
> 
> 
> -- 
> 
> -
>  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
> ___

___
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] reference points with double colons (::) are not working

2015-10-10 Thread Eidenbenz Michael
Hello,

I have double colons (::) in my reference points. 
(It's actually the same string I also use to refer to my publication database)
But they wont show up as you can see in the example below.

Is there any way to fix this?

Thanks for your help and best regards 

Michael

-

\starttext

\placefigure[here][img:cow]{This is a cow}{\externalfigure[cow.jpg]}\par
\placefigure[here][img::mill]{This is a mill}{\externalfigure[mill.png]}\par

The picture in \in{Figure}[img:cow] is a cow\par
The picture in \in{Figure}[img::mill] is a mill (cross reference is not 
working)\par 

\stoptext

-
___
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] reference points with double colons (::) are not working

2015-10-10 Thread Hans Hagen

On 10/10/2015 10:26 AM, Eidenbenz  Michael wrote:

Hello,

I have double colons (::) in my reference points.
(It's actually the same string I also use to refer to my publication database)
But they wont show up as you can see in the example below.

Is there any way to fix this?

Thanks for your help and best regards


:: and ::: have special meaning (:; for another document and ::: for 
components and such)



Michael

-

\starttext

\placefigure[here][img:cow]{This is a cow}{\externalfigure[cow.jpg]}\par
\placefigure[here][img::mill]{This is a mill}{\externalfigure[mill.png]}\par

The picture in \in{Figure}[img:cow] is a cow\par
The picture in \in{Figure}[img::mill] is a mill (cross reference is not 
working)\par

\stoptext

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




--

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

Re: [NTG-context] \reference and \setupinteraction[focus=...] not working

2015-10-08 Thread Christoph Reller
.]
> >> \unexpanded\def\MyUpper#1%
> >> {\ctxlua{document.gouppercase("#1")}}
> >>
> >> \starttext
> >> \doif{\MyUpper{adfalkjfaeñf}}{\MyUpper{aDFAlkjfaeñf}}{equal}{unequal}
> >>
> >> Why are are the first two strings unequal?
> >
> > You can’t use a unexpandable (which you created with \unexpanded) in
> > ConTeXts \doifXXX commands.
>
> Many thanks for your reply, Wolfgang.
>
> I see. I thought it was better to add \unexpanded before a pure \def.
>
> Is it \unexpaded required before a \def with more than one argument?
>
> (Sorry, but expansion is a concept which I’m not familiar with.)
>
> > PS. You need \doifelse and not \doif.
>
> I realized this too sending the message to the list.
>
>
>
> Pablo
> --
> http://www.ousia.tk
>
>
> --
>
> Message: 4
> Date: Fri, 18 Sep 2015 09:56:31 +0600
> From: Henning Hraban Ramm <te...@fiee.net>
> To: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Subject: Re: [NTG-context] formatting of reference links
> Message-ID: <e8f4e533-7123-4d2e-a7db-40e156aa4...@fiee.net>
> Content-Type: text/plain; charset=windows-1252
>
> Am 2015-09-17 um 16:32 schrieb Wolfgang Schuster <
> schuster.wolfg...@gmail.com>:
>
> >> Henning Hraban Ramm 17. September 2015 07:49
> >>
> >> Thank you, I had only tried style=normal
> > This is wrong because “style=normal” is in most cases the same as
> "style=\tf” which is not what
> > you want when the surrounding text is italic or bold.
>
> Maybe, but it didn’t do anything. The surroundings were upright not-bold,
> the reference links were still upright bold.
>
> > The example below shows why "style=NAME” is not always the same as
> “style=\COMMAND”.
>
> Thank you!
>
> Greetlings, Hraban
> ---
> http://www.fiee.net
> http://wiki.contextgarden.net
> https://www.cacert.org (I'm an assurer)
>
>
>
> --
>
> Message: 5
> Date: Fri, 18 Sep 2015 08:34:49 +0200
> From: Christoph Reller <christoph.rel...@gmail.com>
> To: ntg-context <ntg-context@ntg.nl>
> Subject: Re: [NTG-context] \reference and \setupinteraction[focus=...]
> not working
> Message-ID:
> <
> cao8lnpgjn5u+unks8dczc6rhnvrncmvo3ardhsc4jsenfrn...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi,
>
> Any news on this? Is this a luatex problem or a ConTeXt problem? I am glad
> to help if you can point me to the location in the source code where things
> go astray.
>
> Cheers,
> Christoph
>
> On Mon, 14 Sep 2015 14:40:43 +0200, <christoph.rel...@gmail.com> wrote:
>
> > Hi,
> >
> > In the following MWE, the interactive link work only when setting
> > focus=fit.
> >
> > The resulting PDF differs as follows:
> >
> > - focus=fit: This PDF has no named destinations. The link annotations on
> > page 3 include destinations directly, and these destinations are correct.
> >
> > - focus=: This PDF has named destinations in Root->Names
> > with names (#2) and (#3) and these named destinations are completely
> > correct. The problem is that the link annotations on page 3 reference
> named
> > destinations by the names (tuf) and (knu).
> >
> > \setupinteraction[state=start,focus=standard] %focus=fit
> > \starttext
> > \startsection[title=Hi There]
> >   \reference[tuf]{Tufte}%
> >   \input tufte
> >   \page
> >   \reference[knu]{Knuth}%
> >   \input knuth
> >   \page
> >   \about[tuf] and \about[knu].
> > \stopsection
> > \stoptext
> >
> > This seems to be a bug. If so, then please confirm and tell if you intend
> > to fix this.
> >
> > Interestingly, with focus=standard, automatically generated links (e.g.
> > with sections and \about) work as expected.
> >
> > Regards,
> > Christoph
> >
> -- next part --
> An HTML attachment was scrubbed...
> URL: <
> http://www.ntg.nl/pipermail/ntg-context/attachments/20150918/0a7dc286/attachment-0001.html
> >
>
> --
>
> Message: 6
> Date: Fri, 18 Sep 2015 11:25:38 +0200
> From: Wolfgang Schuster <schuster.wolfg...@gmail.com>
> To: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Subject: Re: [NTG-context] formatting of reference links
> Message-ID: <55fbd892.6070...@gmail.com>
> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
> > Henning Hraban Ramm <mailto:te...@fi

Re: [NTG-context] \reference and \setupinteraction[focus=...] not working

2015-09-18 Thread Christoph Reller
Hi,

Any news on this? Is this a luatex problem or a ConTeXt problem? I am glad
to help if you can point me to the location in the source code where things
go astray.

Cheers,
Christoph

On Mon, 14 Sep 2015 14:40:43 +0200,  wrote:

> Hi,
>
> In the following MWE, the interactive link work only when setting
> focus=fit.
>
> The resulting PDF differs as follows:
>
> - focus=fit: This PDF has no named destinations. The link annotations on
> page 3 include destinations directly, and these destinations are correct.
>
> - focus=: This PDF has named destinations in Root->Names
> with names (#2) and (#3) and these named destinations are completely
> correct. The problem is that the link annotations on page 3 reference named
> destinations by the names (tuf) and (knu).
>
> \setupinteraction[state=start,focus=standard] %focus=fit
> \starttext
> \startsection[title=Hi There]
>   \reference[tuf]{Tufte}%
>   \input tufte
>   \page
>   \reference[knu]{Knuth}%
>   \input knuth
>   \page
>   \about[tuf] and \about[knu].
> \stopsection
> \stoptext
>
> This seems to be a bug. If so, then please confirm and tell if you intend
> to fix this.
>
> Interestingly, with focus=standard, automatically generated links (e.g.
> with sections and \about) work as expected.
>
> Regards,
> Christoph
>
___
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] \reference and \setupinteraction[focus=...] not working

2015-09-14 Thread Christoph Reller
Hi,

In the following MWE, the interactive link work only when setting focus=fit.

The resulting PDF differs as follows:

- focus=fit: This PDF has no named destinations. The link annotations on
page 3 include destinations directly, and these destinations are correct.

- focus=: This PDF has named destinations in Root->Names
with names (#2) and (#3) and these named destinations are completely
correct. The problem is that the link annotations on page 3 reference named
destinations by the names (tuf) and (knu).

\setupinteraction[state=start,focus=standard] %focus=fit
\starttext
\startsection[title=Hi There]
  \reference[tuf]{Tufte}%
  \input tufte
  \page
  \reference[knu]{Knuth}%
  \input knuth
  \page
  \about[tuf] and \about[knu].
\stopsection
\stoptext

This seems to be a bug. If so, then please confirm and tell if you intend
to fix this.

Interestingly, with focus=standard, automatically generated links (e.g.
with sections and \about) work as expected.

Regards,
Christoph
___
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] Reference to prologue becomes Chapter 1

2015-01-10 Thread Gerben Wierda
I have a chapter in the frontmatter that has no chapter number. The first 
chapter in the real book is Chapter 1.

But when I refer to \in{chapter}[prologue], what I get is chapter 1. Is there 
a way I can make \in{chapter}[prologue] return something like the prologue?

I'm using mkii

G
___
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] Reference text differing from title

2014-12-29 Thread Christoph Reller
On Wed, Nov 26, 2014 at 6:32 AM, Christoph Reller 
christoph.rel...@gmail.com wrote:

 On Tue, Nov 25, 2014 at 5:33 PM, Wolfgang Schuster wrote:

  Am 24.11.2014 um 14:00 schrieb Christoph Reller 
 christoph.rel...@gmail.com:
 
  Is it possible to change the text shown in \about[...] to be something
 else than the text given to the title key of \startsection?
 
  \starttext
  \startsection[
title={Very Long},
  %  referencetext={Short}, % - is there something like this?
reference=mysec]
We are now in \about[mysec]. % - should render as Short
  \stopsection
  \stoptext
 
  Thank you for any help,

 You can use the selector mechanism to set multiple texts for the title.

 \defineselector[chaptertitle][max=2,n=2]

 \setuplist[chapter][textcommand={\setupselector[chaptertitle][n=1]}]
 \setuphead[chapter][textcommand={\setupselector[chaptertitle][n=1]}]

 \starttext

 \completecontent

 \startchapter[reference=sec:short,title=\select{chaptertitle}{Long title
 for the chapter}{Short title}]

 \input knuth

 \about[sec:short]

 \stopchapter

 \stoptext

 Wolfgang


 Thank you Wolfgang! This is a perfect solution.
 Christoph


Dear Wolfgang,

The example you have provided works well for section titles, table of
contents and references. What about bookmarks? The following extension of
your example produces a bookmark 1 chaptertitle{Long title for the
chapter}{Short title}:

\setupinteraction[state=start]
\placebookmarks[chapter]
\defineselector[chaptertitle][max=2,n=2]
\setuphead[chapter][textcommand={\setupselector[chaptertitle][n=1]}]
\starttext
\startchapter[reference=sec:short,title=\select{chaptertitle}{Long title
for the chapter}{Short title}]
\input knuth
\about[sec:short]
\stopchapter
\stoptext

For setuphead, is there something like a textcommand key for bookmarks?

Thank you for any help,
Christoph
___
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] Reference text differing from title

2014-12-29 Thread Wolfgang Schuster

 The example you have provided works well for section titles, table of 
 contents and references. What about bookmarks? The following extension of 
 your example produces a bookmark 1 chaptertitle{Long title for the 
 chapter}{Short title}:
 
 \setupinteraction[state=start]
 \placebookmarks[chapter]
 \defineselector[chaptertitle][max=2,n=2]
 \setuphead[chapter][textcommand={\setupselector[chaptertitle][n=1]}]
 \starttext
 \startchapter[reference=sec:short,title=\select{chaptertitle}{Long title for 
 the chapter}{Short title}]
 \input knuth
 \about[sec:short]
 \stopchapter
 \stoptext
 
 For setuphead, is there something like a textcommand key for bookmarks?

You can set the text for the bookmarks with \startchapter[bookmark=…,…]

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] Reference text differing from title

2014-11-25 Thread Wolfgang Schuster

 Am 24.11.2014 um 14:00 schrieb Christoph Reller christoph.rel...@gmail.com:
 
 Hi,
 
 Is it possible to change the text shown in \about[...] to be something else 
 than the text given to the titel key of \startsection?
 
 \starttext
 \startsection[
   title={Very Long},
 %  referencetext={Short}, % - is there something like this?
   reference=mysec]
   We are now in \about[mysec]. % - should render as Short
 \stopsection
 \stoptext
 
 I have tried the following, but it introduces vertical white space:
 
 \starttext
 \startsection[title={Very Long}]
   \reference[mysec]{Short} %- introduces white space
   We are now in \about[mysec].
 \stopsection
 \stoptext
 
 Thank you for any help,

You can use the selector mechanism to set multiple texts for the title.

\defineselector[chaptertitle][max=2,n=2]

\setuplist[chapter][textcommand={\setupselector[chaptertitle][n=1]}]
\setuphead[chapter][textcommand={\setupselector[chaptertitle][n=1]}]

\starttext

\completecontent

\startchapter[reference=sec:short,title=\select{chaptertitle}{Long title for 
the chapter}{Short title}]

\input knuth

\about[sec:short]

\stopchapter

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

Re: [NTG-context] Reference text differing from title

2014-11-25 Thread Christoph Reller
On Tue, Nov 25, 2014 at 5:33 PM, Wolfgang Schuster wrote:

  Am 24.11.2014 um 14:00 schrieb Christoph Reller 
 christoph.rel...@gmail.com:
 
  Is it possible to change the text shown in \about[...] to be something
 else than the text given to the title key of \startsection?
 
  \starttext
  \startsection[
title={Very Long},
  %  referencetext={Short}, % - is there something like this?
reference=mysec]
We are now in \about[mysec]. % - should render as Short
  \stopsection
  \stoptext
 
  Thank you for any help,

 You can use the selector mechanism to set multiple texts for the title.

 \defineselector[chaptertitle][max=2,n=2]

 \setuplist[chapter][textcommand={\setupselector[chaptertitle][n=1]}]
 \setuphead[chapter][textcommand={\setupselector[chaptertitle][n=1]}]

 \starttext

 \completecontent

 \startchapter[reference=sec:short,title=\select{chaptertitle}{Long title
 for the chapter}{Short title}]

 \input knuth

 \about[sec:short]

 \stopchapter

 \stoptext

 Wolfgang


Thank you Wolfgang! This is a perfect solution.
Christoph
___
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] Reference text differing from title

2014-11-24 Thread Christoph Reller
Hi,

Is it possible to change the text shown in \about[...] to be something else
than the text given to the titel key of \startsection?

\starttext
\startsection[
  title={Very Long},
%  referencetext={Short}, % - is there something like this?
  reference=mysec]
  We are now in \about[mysec]. % - should render as Short
\stopsection
\stoptext

I have tried the following, but it introduces vertical white space:

\starttext
\startsection[title={Very Long}]
  \reference[mysec]{Short} %- introduces white space
  We are now in \about[mysec].
\stopsection
\stoptext

Thank you for any help,

Christoph
___
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] reference to structureuservariable

2014-01-20 Thread Peter Münster
Hi,

How can I read a structureuservariable at the end of the section, when
there are subsections? Example:

--8---cut here---start-8---
\starttext
\startsection[title=sec][foo=bar]
%  \edef\myFoo{\structureuservariable{foo}} % workaround
  \startsubsection[title=sub 1]
sub 1
  \stopsubsection
  \startsubsection[title=sub 2]
sub 2
  \stopsubsection
  \par
  foo is \structureuservariable{foo}.
%  foo is \myFoo.  % workaround
\stopsection
\startsection[title=sec][foo=bar]
  no subsections...\par
  foo is \structureuservariable{foo}.
\stopsection
\stoptext
--8---cut here---end---8---

Is there a clean way or do I need to use something like the above
workaround?

TIA for any hints,
-- 
   Peter
___
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] reference to structureuservariable

2014-01-20 Thread Wolfgang Schuster
Hi Peter,  

you can use \namedstructureuservariable{section}{foo} to access the foo 
variable of the section.

Wolfgang  


On 20.01.2014 10:39:01, Peter Münster pmli...@free.fr wrote: Hi,

How can I read a structureuservariable at the end of the section, when
there are subsections? Example:

--8---cut here---start-8---
\starttext
\startsection[title=sec][foo=bar]
% \edef\myFoo{\structureuservariable{foo}} % workaround
\startsubsection[title=sub 1]
sub 1
\stopsubsection
\startsubsection[title=sub 2]
sub 2
\stopsubsection
\par
foo is \structureuservariable{foo}.
% foo is \myFoo. % workaround
\stopsection
\startsection[title=sec][foo=bar]
no subsections...\par
foo is \structureuservariable{foo}.
\stopsection
\stoptext
--8---cut here---end---8---

Is there a clean way or do I need to use something like the above
workaround?

TIA for any hints,
--
Peter
___
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] Reference in a startcombination environment

2014-01-20 Thread MANUEL GONZALEZ SUAREZ
Dear friends
I would like to know if I can make a reference (via \in, \at, etc.) in a 
\startcombination ... \stopcombination environment to each subfigure. For 
example, I have a Figure 1.1. (Sky) contains (a) the moon (b) the stars. How 
could get it to appear in the text see Figure 1.1. (b)?
Thanks very much.
Manuel
___
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] Reference in a startcombination environment

2014-01-20 Thread Wolfgang Schuster
Hi,

you can the second optional argument of \in to give a suffix for the float 
number. 



On 20.01.2014 23:56:33, MANUEL GONZALEZ SUAREZ gonzalezsman...@uniovi.es 
wrote: 
Dear friends 
I would like to know if I can make a reference (via \in, \at, etc.) in a 
\startcombination ... \stopcombination environment to each subfigure. For 
example, I have a Figure 1.1. (Sky) contains (a) the moon (b) the stars. How 
could get it to appear in the text see Figure 1.1. (b)?
Thanks very much.
Manuel

___
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] Reference in a startcombination environment

2014-01-20 Thread Wolfgang Schuster
Hi, 

you can use the second optional argument of \in to give a suffix for the float 
number. 

\setupexternalfigures[location=default] 

\starttext 

\startplacefigure[title={Combination},reference={fig:test}] 
  \startcombination[2*1]
\startcontent
 \externalfigure[cow][width=4cm]
\stopcontent
\startcaption
 a
\stopcaption
\startcontent
 \externalfigure[mill][width=4cm]
\stopcontent
\startcaption
 b
\stopcaption
  \stopcombination
\stopplacefigure

The \in{figure}{a}[fig:test] shows a dutch cow. 

\stoptext 

Wolfgang 

On 20.01.2014 23:56:33, MANUEL GONZALEZ SUAREZ gonzalezsman...@uniovi.es 
wrote:
Dear friends  
I would like to know if I can make a reference (via \in, \at, etc.) in a 
\startcombination ... \stopcombination environment to each subfigure. For 
example, I have a Figure 1.1. (Sky) contains (a) the moon (b) the stars. How 
could get it to appear in the text see Figure 1.1. (b)?
Thanks very much.
Manuel

___
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] Reference in a startcombination environment

2014-01-20 Thread MANUEL GONZALEZ SUAREZ
Thank you very much for your help, Wolfgang. When you come to Spain I'll buy 
you a paella for your work.



De: ntg-context-boun...@ntg.nl ntg-context-boun...@ntg.nl en nombre de 
Wolfgang Schuster schuster.wolfg...@gmail.com
Enviado: lunes, 20 de enero de 2014 23:18
Para: mailing list for ConTeXt users
Asunto: Re: [NTG-context] Reference in a startcombination environment

Hi,

you can use the second optional argument of \in to give a suffix for the float 
number.

\setupexternalfigures[location=default]

\starttext

\startplacefigure[title={Combination},reference={fig:test}]
  \startcombination[2*1]
\startcontent
 \externalfigure[cow][width=4cm]
\stopcontent
\startcaption
 a
\stopcaption
\startcontent
 \externalfigure[mill][width=4cm]
\stopcontent
\startcaption
 b
\stopcaption
  \stopcombination
\stopplacefigure

The \in{figure}{a}[fig:test] shows a dutch cow.

\stoptext

Wolfgang

On 20.01.2014 23:56:33, MANUEL GONZALEZ SUAREZ gonzalezsman...@uniovi.es 
wrote:

Dear friends
I would like to know if I can make a reference (via \in, \at, etc.) in a 
\startcombination ... \stopcombination environment to each subfigure. For 
example, I have a Figure 1.1. (Sky) contains (a) the moon (b) the stars. How 
could get it to appear in the text see Figure 1.1. (b)?
Thanks very much.
Manuel
___
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] reference error

2013-11-04 Thread Peter Münster
On Sun, Nov 03 2013, Wolfgang Werners-Lucchini wrote:

 \in{Kapitel}[chap:vorwort with space at the end ],
 \in{Kapitel}[chap:vorwort2 with space at the end ],
 \in{Kapitel}[chap:vorwort3 with space at the end ],
 \in{Kapitel}[chap:vorwort without space at the end] and
 \in{Kapitel}[chap:vorwort2 without space at the end]

 Only the last two are working! Not the second!!!
 Not very intuitive at all.

The first 3 are almost the same.
If you really want a space at the end, then you could add a feature
request to http://tracker.luatex.org/

If you just want to write \command[ key=value ], that does not work.
ConTeXt needs to know where the value ends: at a , or a ].
This could be a possibility for you: \command[ key=value, ].

-- 
   Peter
___
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] reference error

2013-11-04 Thread Wolfgang Schuster

Am 04.11.2013 um 09:43 schrieb Peter Münster pmli...@free.fr:

 On Sun, Nov 03 2013, Wolfgang Werners-Lucchini wrote:
 
 \in{Kapitel}[chap:vorwort with space at the end ],
 \in{Kapitel}[chap:vorwort2 with space at the end ],
 \in{Kapitel}[chap:vorwort3 with space at the end ],
 \in{Kapitel}[chap:vorwort without space at the end] and
 \in{Kapitel}[chap:vorwort2 without space at the end]
 
 Only the last two are working! Not the second!!!
 Not very intuitive at all.
 
 The first 3 are almost the same.
 If you really want a space at the end, then you could add a feature
 request to http://tracker.luatex.org/

I’n not sure is going to change this because the reference parser
removes trailing/leading spaces in references. One shouldn’t forgot
the reference commands accept more than simple references to
a section, float etc. but also hyperlinks to other pages (first, last etc.)
or external documents.

BTW: The code which removes the space in reference is on strc-rsc.lua

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] reference error

2013-11-04 Thread Hans Hagen

On 11/4/2013 10:00 AM, Wolfgang Schuster wrote:


Am 04.11.2013 um 09:43 schrieb Peter Münster pmli...@free.fr:


On Sun, Nov 03 2013, Wolfgang Werners-Lucchini wrote:


\in{Kapitel}[chap:vorwort with space at the end ],
\in{Kapitel}[chap:vorwort2 with space at the end ],
\in{Kapitel}[chap:vorwort3 with space at the end ],
\in{Kapitel}[chap:vorwort without space at the end] and
\in{Kapitel}[chap:vorwort2 without space at the end]


Only the last two are working! Not the second!!!
Not very intuitive at all.


The first 3 are almost the same.
If you really want a space at the end, then you could add a feature
request to http://tracker.luatex.org/


I’n not sure is going to change this because the reference parser
removes trailing/leading spaces in references. One shouldn’t forgot
the reference commands accept more than simple references to
a section, float etc. but also hyperlinks to other pages (first, last etc.)
or external documents.

BTW: The code which removes the space in reference is on strc-rsc.lua


Also, one can pass multiple references as in:

\startchapter[reference={foo,bar},...]

Anyhow, as an experiment I've added a space stripper to the 'definition' 
part of references


\starttext

\startsection [title=Test 1, reference=ref 1]  \stopsection
\startsection [title=Test 2, reference={ref 2}]\stopsection
\startsection [title=Test 3, reference= {ref 3}]   \stopsection
\startsection [title=Test 4, reference={ref 4} ]   \stopsection
\startsection [title=Test 5, reference= {ref 5} ]  \stopsection
\startsection [title=Test 6, reference={ ref 6 , ref 7 }] \stopsection

\dorecurse{7}{
\in{ref}[ref #1]
\in{ref}[ ref #1]
\in{ref}[ref #1 ]
\in{ref}[ ref #1 ]
\par
}

\stoptext

This all works ok but someone needs to document it at the wiki. Of 
course one can come up with yet another 'wanted tolerance' but we 
shouldn't become to fuzzy.


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
___


Re: [NTG-context] reference error

2013-11-03 Thread Wolfgang Werners-Lucchini
 If you remove the space, i.e.

Puuh! If the parser of this reference strings allows spaces, why 
doesn't work 'reference={chap:neu}'?

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] reference error

2013-11-03 Thread Peter Münster
On Sun, Nov 03 2013, Wolfgang Werners-Lucchini wrote:

 Puuh! If the parser of this reference strings allows spaces, why 
 doesn't work 'reference={chap:neu}'?

\starttext
\startchapter
[ title=Vorwort, reference=chap:vorwort with space at the end ]
\stopchapter

\startchapter
[ title=Vorwort, reference={chap:vorwort2 with space at the end} ]
\stopchapter

\startchapter
[ title=Vorwort, reference={chap:vorwort3 with space at the end }]
\stopchapter

\startchapter
[ title=Vorwort, reference=chap:vorwort without space at the end]
\stopchapter

\startchapter
[ title=Vorwort, reference={chap:vorwort2 without space at the end}]
\stopchapter

\startchapter
\ConTeXt\ does not support space at the end of references:
Siehe
\in{Kapitel}[chap:vorwort with space at the end ],
\in{Kapitel}[chap:vorwort2 with space at the end ],
\in{Kapitel}[chap:vorwort3 with space at the end ],
\in{Kapitel}[chap:vorwort without space at the end] and
\in{Kapitel}[chap:vorwort2 without space at the end]
\stopchapter
\stoptext

-- 
   Peter
___
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] reference error

2013-11-03 Thread Wolfgang Werners-Lucchini
 \starttext
 \startchapter
 [ title=Vorwort, reference=chap:vorwort with space at the end ]
 \stopchapter
 
 \startchapter
 [ title=Vorwort, reference={chap:vorwort2 with space at the end} ]
 \stopchapter
 
 \startchapter
 [ title=Vorwort, reference={chap:vorwort3 with space at the end }]
 \stopchapter
 
 \startchapter
 [ title=Vorwort, reference=chap:vorwort without space at the end]
 \stopchapter
 
 \startchapter
 [ title=Vorwort, reference={chap:vorwort2 without space at the end}]
 \stopchapter
 
 \startchapter
 \ConTeXt\ does not support space at the end of references:
 Siehe
 \in{Kapitel}[chap:vorwort with space at the end ],
 \in{Kapitel}[chap:vorwort2 with space at the end ],
 \in{Kapitel}[chap:vorwort3 with space at the end ],
 \in{Kapitel}[chap:vorwort without space at the end] and
 \in{Kapitel}[chap:vorwort2 without space at the end]
 \stopchapter
 \stoptext

Only the last two are working! Not the second!!!
Not very intuitive at all.

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] reference error

2013-11-02 Thread Wolfgang Werners-Lucchini
Hallo,

I must do someting wrong
---
\starttext
\startchapter
[ title={Vorwort}, reference=chap:vorwort ]

Siehe \in{Kapitel}[chap:neu] \at{Seite}[chap:neu].
\stopchapter
\startchapter
[ title={Neu}, reference=chap:neu ]

Bla.
\stopchapter
\stoptext
---
I get an error: unknown reference '[][chap:neu]'

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] reference error

2013-11-02 Thread Mikael P. Sundqvist
If you remove the space, i.e.

\starttext
\startchapter
[ title={Vorwort}, reference=chap:vorwort]

Siehe \in{Kapitel}[chap:neu] \at{Seite}[chap:neu].
\stopchapter
\startchapter
[ title={Neu}, reference=chap:neu]

Bla.
\stopchapter
\stoptext

it works here.

/Mikael


On Sat, Nov 2, 2013 at 1:49 PM, Wolfgang Werners-Lucchini w...@musensturm.de
 wrote:

 Hallo,

 I must do someting wrong
 ---
 \starttext
 \startchapter
 [ title={Vorwort}, reference=chap:vorwort ]

 Siehe \in{Kapitel}[chap:neu] \at{Seite}[chap:neu].
 \stopchapter
 \startchapter
 [ title={Neu}, reference=chap:neu ]

 Bla.
 \stopchapter
 \stoptext
 ---
 I get an error: unknown reference '[][chap:neu]'

 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

 ___

___
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] reference \about shall not be shortened

2012-03-23 Thread Steffen Wolfrum
Hi,

how can I avoid shortening of referenced titles?


\setupreferencing[left=,right=]

\starttext

\chapter[
reference={ref123},
title={This is a long titel -- every word is meaningful and shall not be 
omitted},
  marking={Titel},
 list={Titel},
 bookmark={Titel}]

see in “\at[ref123] \about[ref123]”.

\stoptext



Steffen
___
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] reference \about shall not be shortened

2012-03-23 Thread Wolfgang Schuster

Am 23.03.2012 um 16:33 schrieb Steffen Wolfrum:

 Hi,
 
 how can I avoid shortening of referenced titles?
 
 \setupreferencing[left=,right=]

Add “width=” to \setupreferencing or use \getreference[title][ref123] to print 
the title of the heading.

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] reference bug: MkiV

2011-11-05 Thread Idris Samawi Hamid ادريس سماوي حامد

On Fri, 04 Nov 2011 03:13:14 -0600, Hans Hagen pra...@wxs.nl wrote:


On 3-11-2011 21:24, Wolfgang Schuster wrote:

For longer texts you can replace \mymargin{…} with \startmymargin  
…\stopmymargin.


A next version will support

\starttext

\inmargin[reference=test1]{test} test \at[test2] \page
\inmargin[reference=test2]{test} test \at[test1]

\stoptext

but this does nothing as clever as the annotation code as it's just a  
basic page reference to the blob that ends up in the margin.


Just noticed this ... works in the latest beta!

Best wishes
Idris
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] reference bug: MkiV

2011-11-05 Thread Idris Samawi Hamid ادريس سماوي حامد
On Thu, 03 Nov 2011 14:24:53 -0600, Wolfgang Schuster  
schuster.wolfg...@googlemail.com wrote:


For longer texts you can replace \mymargin{…} with \startmymargin  
…\stopmymargin.


This is a _very_ useful feature :-)

Best wishes
Idris
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] reference bug: MkiV

2011-11-04 Thread Hans Hagen

On 3-11-2011 21:24, Wolfgang Schuster wrote:


For longer texts you can replace \mymargin{…} with \startmymargin 
…\stopmymargin.


A next version will support

\starttext

\inmargin[reference=test1]{test} test \at[test2] \page
\inmargin[reference=test2]{test} test \at[test1]

\stoptext

but this does nothing as clever as the annotation code as it's just a 
basic page reference to the blob that ends up in the margin.


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
___

Re: [NTG-context] reference bug: MkiV

2011-11-03 Thread Idris Samawi Hamid ادريس سماوي حامد

Hi Wolfgang,

On Tue, 01 Nov 2011 14:03:04 -0600, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

Well, that's quite frustrating... I have a 400-page document I'm trying  
to port to MkIV full of references, the old \inmargin no longer respect  
[align=outer], so I switched to the new system, and now the new system  
does not support references …


The old \inmargin command is gone, Hans rewrote the whole code for  
\inmargin etc.
You can change the alignment global with \setupmarginframed[align=outer]  
for for a single

command with \inmargin[][align=outer]{…}


Hmm .. does not work:


\starttext
\setuplayout[location={middle,doublesided},backspace=2cm]
\setuppagenumbering[alternative=doublesided]
%
\setupmargindata[inoutermargin][location=outer,align=inner,style=\tfxx\setupinterlinespace,margin=54pt]
\setupmarginframed[align=outer]
% \dorecurse{20}{\input zapf \inmargin{This is a test of the margindata
system and the inmargin macros}\par  }

\dorecurse{20}{\input zapf \inmargin[][align=outer]{This is a test of the
margindata system and the inmargin macros}\par  }
   \stoptext


inmargin remains in the left margin on each page.

Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] reference bug: MkiV

2011-11-03 Thread Idris Samawi Hamid ادريس سماوي حامد

On Tue, 01 Nov 2011 14:03:04 -0600, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

Well, that's quite frustrating... I have a 400-page document I'm trying  
to port to MkIV full of references, the old \inmargin no longer respect  
[align=outer], so I switched to the new system, and now the new system  
does not support references …


The old \inmargin command is gone, Hans rewrote the whole code for  
\inmargin etc.
You can change the alignment global with \setupmarginframed[align=outer]  
for for a single

command with \inmargin[][align=outer]{…}

Is there any workaround, either for \inmargin or \inoutermargin? My  
publisher is going to kill me

\usemodule[annotation]
%\defineannotation[mymargin][alternative=inmargin]
\define[2]\MymarginCommand
  {\inmargin[scope=local]{#2}}
\defineannotation
  [mymargin]
  [alternative=command,
   command=\MymarginCommand]
\starttext
See is a test.\mymargin[reference=mar:test]{Test}
See \at{page}[mar:test].
\stoptext


Ok, here is an example that takes both align=outer and references into
account:


\usemodule[annotation]
\setuplayout[location={middle,doublesided},backspace=2cm]
\setuppagenumbering[alternative=doublesided]
\setupmargindata[inoutermargin][location=outer,align=inner,style=\tfxx\setupinterlinespace]
\define[2]\MymarginCommand
{\inoutermargin[scope=local]{#2}}

\defineannotation
[mymargin]
[alternative=command,
 command=\MymarginCommand]

\starttext

This is a test.\mymargin[reference=mar:test]{Test} See
\at{page}[mar:testt].

\dorecurse{8}{\input zapf \mymargin{This is a test of the margindata
system and the inmargin macros}\par  }

\blank[7*big]

This is a test.\mymargin[reference=mar:testt]{Test} See
\at{page}[mar:test].
   \stoptext


Appears to work well, and I have to give you a BIG THANK YOU!!!


--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] reference bug: MkiV

2011-11-03 Thread Idris Samawi Hamid ادريس سماوي حامد

On Tue, 01 Nov 2011 14:03:04 -0600, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

Well, that's quite frustrating... I have a 400-page document I'm trying  
to port to MkIV full of references, the old \inmargin no longer respect  
[align=outer], so I switched to the new system, and now the new system  
does not support references …


The old \inmargin command is gone, Hans rewrote the whole code for  
\inmargin etc.
You can change the alignment global with \setupmarginframed[align=outer]  
for for a single

command with \inmargin[][align=outer]{…}

Is there any workaround, either for \inmargin or \inoutermargin? My  
publisher is going to kill me

\usemodule[annotation]
%\defineannotation[mymargin][alternative=inmargin]
\define[2]\MymarginCommand
  {\inmargin[scope=local]{#2}}
\defineannotation
  [mymargin]
  [alternative=command,
   command=\MymarginCommand]
\starttext
See is a test.\mymargin[reference=mar:test]{Test}
See \at{page}[mar:test].
\stoptext


Ok, here is an example that takes both align=outer and references into
account:


\usemodule[annotation]
\setuplayout[location={middle,doublesided},backspace=2cm]
\setuppagenumbering[alternative=doublesided]
\setupmargindata[inoutermargin][location=outer,align=inner,style=\tfxx\setupinterlinespace]
\define[2]\MymarginCommand
  {\inoutermargin[scope=local]{#2}}

\defineannotation
  [mymargin]
  [alternative=command,
   command=\MymarginCommand]

\starttext

This is a test.\mymargin[reference=mar:test]{Test} See
\at{page}[mar:testt].

\dorecurse{8}{\input zapf \mymargin{This is a test of the margindata
system and the inmargin macros}\par  }

\blank[7*big]

This is a test.\mymargin[reference=mar:testt]{Test} See
\at{page}[mar:test].
 \stoptext


Appears to work well, and I have to give you a BIG THANK YOU!!!

Best wishes
Idris
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] reference bug: MkiV

2011-11-03 Thread Wolfgang Schuster

Am 03.11.2011 um 21:12 schrieb Idris Samawi Hamid ادريس سماوي حامد:

 Hi Wolfgang,
 
 On Tue, 01 Nov 2011 14:03:04 -0600, Wolfgang Schuster
 schuster.wolfg...@googlemail.com wrote:
 
 Well, that's quite frustrating... I have a 400-page document I'm trying to 
 port to MkIV full of references, the old \inmargin no longer respect 
 [align=outer], so I switched to the new system, and now the new system does 
 not support references …
 
 The old \inmargin command is gone, Hans rewrote the whole code for \inmargin 
 etc.
 You can change the alignment global with \setupmarginframed[align=outer] for 
 for a single
 command with \inmargin[][align=outer]{…}
 
 Hmm .. does not work:
 
 
 \starttext
 \setuplayout[location={middle,doublesided},backspace=2cm]
 \setuppagenumbering[alternative=doublesided]
 %
 \setupmargindata[inoutermargin][location=outer,align=inner,style=\tfxx\setupinterlinespace,margin=54pt]
 \setupmarginframed[align=outer]
 % \dorecurse{20}{\input zapf \inmargin{This is a test of the margindata
 system and the inmargin macros}\par  }
 
 \dorecurse{20}{\input zapf \inmargin[][align=outer]{This is a test of the
 margindata system and the inmargin macros}\par  }
   \stoptext
 
 
 inmargin remains in the left margin on each page.

The \margindata commands have two optional commands, the arguments of the first 
argument
are used for the placement of the margin text while the second passes it’s 
argument to the frame
part of each command.

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] reference bug: MkiV

2011-11-03 Thread Wolfgang Schuster

Am 03.11.2011 um 21:17 schrieb Idris Samawi Hamid ادريس سماوي حامد:

 On Tue, 01 Nov 2011 14:03:04 -0600, Wolfgang Schuster
 schuster.wolfg...@googlemail.com wrote:
 
 Well, that's quite frustrating... I have a 400-page document I'm trying to 
 port to MkIV full of references, the old \inmargin no longer respect 
 [align=outer], so I switched to the new system, and now the new system does 
 not support references …
 
 The old \inmargin command is gone, Hans rewrote the whole code for \inmargin 
 etc.
 You can change the alignment global with \setupmarginframed[align=outer] for 
 for a single
 command with \inmargin[][align=outer]{…}
 
 Is there any workaround, either for \inmargin or \inoutermargin? My 
 publisher is going to kill me
 \usemodule[annotation]
 %\defineannotation[mymargin][alternative=inmargin]
 \define[2]\MymarginCommand
  {\inmargin[scope=local]{#2}}
 \defineannotation
  [mymargin]
  [alternative=command,
   command=\MymarginCommand]
 \starttext
 See is a test.\mymargin[reference=mar:test]{Test}
 See \at{page}[mar:test].
 \stoptext
 
 Ok, here is an example that takes both align=outer and references into
 account:
 
 
 \usemodule[annotation]
 \setuplayout[location={middle,doublesided},backspace=2cm]
 \setuppagenumbering[alternative=doublesided]
 \setupmargindata[inoutermargin][location=outer,align=inner,style=\tfxx\setupinterlinespace]
 \define[2]\MymarginCommand
{\inoutermargin[scope=local]{#2}}
 
 \defineannotation
[mymargin]
[alternative=command,
 command=\MymarginCommand]
 
 \starttext
 
 This is a test.\mymargin[reference=mar:test]{Test} See
 \at{page}[mar:testt].
 
 \dorecurse{8}{\input zapf \mymargin{This is a test of the margindata
 system and the inmargin macros}\par  }
 
 \blank[7*big]
 
 This is a test.\mymargin[reference=mar:testt]{Test} See
 \at{page}[mar:test].
   \stoptext
 
 
 Appears to work well, and I have to give you a BIG THANK YOU!!!

For longer texts you can replace \mymargin{…} with \startmymargin 
…\stopmymargin.

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] reference bug: MkiV

2011-11-03 Thread Idris Samawi Hamid ادريس سماوي حامد
On Thu, 03 Nov 2011 14:23:28 -0600, Wolfgang Schuster  
schuster.wolfg...@googlemail.com wrote:


The old \inmargin command is gone, Hans rewrote the whole code for  
\inmargin etc.


You can change the alignment global with  
\setupmarginframed[align=outer] for for a single

command with \inmargin[][align=outer]{…}


Hmm .. does not work:


\starttext
\setuplayout[location={middle,doublesided},backspace=2cm]
\setuppagenumbering[alternative=doublesided]
%
\setupmargindata[inoutermargin][location=outer,align=inner,style=\tfxx\setupinterlinespace,margin=54pt]
\setupmarginframed[align=outer]
% \dorecurse{20}{\input zapf \inmargin{This is a test of the margindata
system and the inmargin macros}\par  }

\dorecurse{20}{\input zapf \inmargin[][align=outer]{This is a test of  
the

margindata system and the inmargin macros}\par  }
  \stoptext


inmargin remains in the left margin on each page.
The \margindata commands have two optional commands, the arguments of  
the first argument
are used for the placement of the margin text while the second passes  
it’s argument to the frame

part of each command.


Ok, this may seem like a moot point since we got the other method working,  
but work on the context book means getting clear on these things and if  
there is a bug, so ... :


A perhaps clearer example:

=
\starttext
\setuplayout[location={middle,doublesided},backspace=2cm]
\setuppagenumbering[alternative=doublesided]
% \setupmarginframed[][align=outer]
% \setupmarginframed[align=outer][]
\setupmarginframed[align=outer]

\dorecurse{20}{\input zapf \inmargin{This is a test of the marginframed  
system and the inmargin macros}\par  }

 \stoptext =

Toggling the commented line with the two immediately above it makes no  
difference; inmargin stays in the left gutter.


What am I doing wrong? or should we just officially forget about the  
marginframed mechanism and stick to margindata only??


Best wishes
Idris
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] reference bug: MkiV

2011-11-03 Thread Wolfgang Schuster

Am 03.11.2011 um 21:35 schrieb Idris Samawi Hamid ادريس سماوي حامد:

 What am I doing wrong? or should we just officially forget about the 
 marginframed mechanism and stick to margindata only??

Just to be clear, the name of the whole thing is margin data and you define a 
new command with \definemargindata. 

To describe what’s the difference between \setupmargindata and 
\setupmarginframed is a wrote a very simple version of \inmargin.

\def\imrand#1%
  {\vadjust
 {\llap
{\smash[h]{\inframed{#1}}%
 \hskip\leftmargindistance}}}

\starttext \showframe

text text text text \imrand{margin} text text text text
text text text text text text text text text text text
text text text text text text text text text text text

\stoptext

You can split my \imrand command in two parts, the first \vadjust{\llap{…}} 
which puts the argument in the margin, to make changes at this part you use 
\setupmargindata where you can control with the “location” key on which side 
the text should appear (“left” for the left margin, “right” for the right 
margin, “inner” for the inner margin etc.) and in which block (“margin=edge” 
for the edge and “margin=margin” for the margin). The second part is \framed, 
to make changes at this part you can use the \setupmarginframed command (e.g. 
to disable/enable the frame). The question is now why not only one command for 
both but the answer is simple, both have keys with the same name (e.g. 
location) which expect different argument and only when you use different setup 
commands total control about the environment is possible.

You can find a overview about all keys and their values in my new command 
reference: https://bitbucket.org/wolfs/commands/downloads

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] reference bug: MkiV

2011-11-03 Thread Idris Samawi Hamid ادريس سماوي حامد
On Thu, 03 Nov 2011 15:04:06 -0600, Wolfgang Schuster  
schuster.wolfg...@googlemail.com wrote:


What am I doing wrong? or should we just officially forget about the  
marginframed mechanism and stick to margindata only??
Just to be clear, the name of the whole thing is margin data and you  
define a new command with \definemargindata.
To describe what’s the difference between \setupmargindata and  
\setupmarginframed is a wrote a very simple version of \inmargin.

:
You can find a overview about all keys and their values in my new  
command reference: https://bitbucket.org/wolfs/commands/downloads


As always, Wolfgang, THNX. I'll study this. I got inmargin to behave by


\starttext
\setuplayout[location={middle,doublesided},backspace=2cm]
\setuppagenumbering[alternative=doublesided]
\setupmargindata[inmargin][align=inner,location=outer]

\dorecurse{20}{\input zapf \inmargin{This is a test of the marginframed  
system and the inmargin macros}\par  }

 \stoptext


and I'll make a note to work on this some more to get more clear. Thnx  
again, and


Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] reference bug: MkiV

2011-11-01 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear cabal,

There seems to be a bug in MkIV:


\starttext
This is a test \inoutermargin[ref]{test}

As explained earlier (page \at[ref])

This is a test \inoutermargin[reference=reff]{test}

As explained earlier (page \at[reff])
\stoptext


The reference is not generated in either method:

===log==
checkmissing or ungrouped '=' after 'ref' in line 2  
(@@mcinoutermargin:)

references   unknown reference [][ref]
references   unknown reference [][reff]


Please advise and

Best wishes
Idris
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

reference.tex
Description: TeX document
___
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] reference bug: MkiV

2011-11-01 Thread Wolfgang Schuster

Am 01.11.2011 um 19:47 schrieb Idris Samawi Hamid ادريس سماوي حامد:

 Dear cabal,
 
 There seems to be a bug in MkIV:
 
 
 \starttext
 This is a test \inoutermargin[ref]{test}
 
 As explained earlier (page \at[ref])
 
 This is a test \inoutermargin[reference=reff]{test}
 
 As explained earlier (page \at[reff])
 \stoptext
 
 
 The reference is not generated in either method:
 
 ===log==
 checkmissing or ungrouped '=' after 'ref' in line 2 
 (@@mcinoutermargin:)
 references   unknown reference [][ref]
 references   unknown reference [][reff]
 
 
 Please advise and

\inoutermargin doesn’t support references and the optional argument expects a 
assignments as you can see from the message

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] reference bug: MkiV

2011-11-01 Thread Idris Samawi Hamid ادريس سماوي حامد
On Tue, 01 Nov 2011 12:59:41 -0600, Wolfgang Schuster  
schuster.wolfg...@googlemail.com wrote:




The reference is not generated in either method:

===log==
checkmissing or ungrouped '=' after 'ref' in line 2  
(@@mcinoutermargin:)

references   unknown reference [][ref]
references   unknown reference [][reff]


Please advise and


\inoutermargin doesn’t support references and the optional argument  
expects a assignments as you can see from the message


Well, that's quite frustrating... I have a 400-page document I'm trying to  
port to MkIV full of references, the old \inmargin no longer respect  
[align=outer], so I switched to the new system, and now the new system  
does not support references ...


Is there any workaround, either for \inmargin or \inoutermargin? My  
publisher is going to kill me ;-)


Best wishes
Idris
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] reference bug: MkiV

2011-11-01 Thread Wolfgang Schuster

Am 01.11.2011 um 20:20 schrieb Idris Samawi Hamid ادريس سماوي حامد:

 On Tue, 01 Nov 2011 12:59:41 -0600, Wolfgang Schuster 
 schuster.wolfg...@googlemail.com wrote:
 
 
 The reference is not generated in either method:
 
 ===log==
 checkmissing or ungrouped '=' after 'ref' in line 2 
 (@@mcinoutermargin:)
 references   unknown reference [][ref]
 references   unknown reference [][reff]
 
 
 Please advise and
 
 \inoutermargin doesn’t support references and the optional argument expects 
 a assignments as you can see from the message
 
 Well, that's quite frustrating... I have a 400-page document I'm trying to 
 port to MkIV full of references, the old \inmargin no longer respect 
 [align=outer], so I switched to the new system, and now the new system does 
 not support references …

The old \inmargin command is gone, Hans rewrote the whole code for \inmargin 
etc.

You can change the alignment global with \setupmarginframed[align=outer] for 
for a single
command with \inmargin[][align=outer]{…}

 Is there any workaround, either for \inmargin or \inoutermargin? My publisher 
 is going to kill me ;-)

\usemodule[annotation]

%\defineannotation[mymargin][alternative=inmargin]

\define[2]\MymarginCommand
  {\inmargin[scope=local]{#2}}

\defineannotation
  [mymargin]
  [alternative=command,
   command=\MymarginCommand]

\starttext

See is a test.\mymargin[reference=mar:test]{Test}

See \at{page}[mar:test].

\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] `\reference` does not print number

2011-10-29 Thread Paul Menzel
Dear ConTeXt folks,


using

ConTeXt  ver: 2011.10.14 22:47 MKIV  fmt: 2011.10.15  int: 
english/english

the example from the Wiki page for `\reference` [1] does not work.

\starttext
See page \ref[p][myref 1] and \ref[p][myref 2].
\page
\reference[myref 1]{} This is the first reference.
\page
\reference[myref 2]{} This is the second one.
\stoptext

The numbers are not printed into the resulting file. Please find the
source file and resulting PDF file attached.


Thanks,

Paul


[1] http://wiki.contextgarden.net/Reference/en/reference


test.pdf
Description: Adobe PDF document
\starttext
See page \ref[p][myref 1] and \ref[p][myref 2].
\page
\reference[myref 1]{} This is the first reference.
\page
\reference[myref 2]{} This is the second one.
\stoptext


signature.asc
Description: This is a digitally signed message part
___
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] `\reference` does not print number

2011-10-29 Thread Wolfgang Schuster

Am 29.10.2011 um 18:03 schrieb Paul Menzel:

 Dear ConTeXt folks,
 
 
 using
 
ConTeXt  ver: 2011.10.14 22:47 MKIV  fmt: 2011.10.15  int: 
 english/english
 
 the example from the Wiki page for `\reference` [1] does not work.
 
\starttext
See page \ref[p][myref 1] and \ref[p][myref 2].
\page
\reference[myref 1]{} This is the first reference.
\page
\reference[myref 2]{} This is the second one.
\stoptext
 
 The numbers are not printed into the resulting file. Please find the
 source file and resulting PDF file attached.

Use “page” as keyword for the first argument or get the pagenumber with 
“\at[myref 1]”.

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] Reference jump location

2011-03-28 Thread Marco
I have the feeling that this issue is well known, but I cannot find a solution
at the moment.

When clicking on a reference the jump goes underneath the heading making it
invisible. How to make the jump to a position that the heading stays visible?
Example:

\setupinteraction [state=start, focus=width]
\starttext
\completecontent [interaction=all]
\startchapter [title=Foo]
\stopchapter
\page
\startchapter [title=Bar]
\stopchapter
\stoptext


Marco


___
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] reference tag for equations.

2011-01-27 Thread Jeong Dalyoung
Dear Aditya,

It was my dumb question.

Thank you.

Best regards,

Dalyoung
___
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] reference tag for equations.

2011-01-26 Thread Jeong Dalyoung
Dear all,

1. I have used \startalign many times before without tag and it worked well.
Thanks Aditya.
now, I tried to set a tag for an equation using \NR[+]:
But there is no reference numbers in the output. Since there is no mention 
about this problem in the list, I think that it is my only problem,
Should I do something special for this?

\starttext

\startformula\startalign[align={middle, left}]
\NC  x \NC =  n\times r, \NR[+]
\NC  y \NC = {{n-1}\choose {r-1}}, \NR[+]
\NC z \NC =  (n-1)\times {r}, \NR[+]
\stopalign\stopformula

\stoptext

2. Is there a command to reduce the width of the space between letters? For 
some Korean fonts, the space between letters is a little bit wide. I think that 
it is not  a simple command, it may be very difficult job for me. However, is 
there a way to do that?

My system is Mac OSX 10.6, ConTeXt Minimal   ver: 2010.11.12 18:22 MKIV.

Thank you for reading.

Best regards,

Dalyoung


___
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] reference tag for equations.

2011-01-26 Thread Aditya Mahajan


On Jan 26, 2011, at 7:35 PM, Jeong Dalyoung hak...@me.com wrote:

 Dear all,
 
 1. I have used \startalign many times before without tag and it worked well.
 Thanks Aditya.
 now, I tried to set a tag for an equation using \NR[+]:
 But there is no reference numbers in the output. Since there is no mention 
 about this problem in the list, I think that it is my only problem,
 Should I do something special for this?
 \starttext

\placeformula
 
 \startformula\startalign[align={middle, left}]
 \NC  x \NC =  n\times r, \NR[+]
 \NC  y \NC = {{n-1}\choose {r-1}}, \NR[+]
 \NC z \NC =  (n-1)\times {r}, \NR[+]
 \stopalign\stopformula
 
 \stoptext
 
___
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] reference, ref, label, id, etc.

2010-06-11 Thread Peter Münster
Hello,

We have now
\startsection[reference=...] and \reference[]{} and perhaps other such
commands.

Wouldn't it be better to call this label or identifier or id or
similar instead of reference ?

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] \reference fails in the new beta

2010-06-06 Thread Taco Hoekwater

Michael Saunders wrote:

\starttext
\reference[test]{test}
\stoptext

Has the syntax of \reference changed?


No, it is borked. The same problem was reported in the thread

  dodosetreference undefined

I am quite sure Hans will upload a new beta later today.

Best wishes,
Taco


___
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] \reference fails in the new beta

2010-06-05 Thread Michael Saunders
\starttext
\reference[test]{test}
\stoptext

Has the syntax of \reference changed?
___
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] Reference to formula does not work?

2009-09-14 Thread Mingyang Sun
Hi all,

Say I have a formula that is numbered as 1.1.  The problem is when I
use \in to refer to that formula, the reference only shows a number
1, and if interaction is enabled, the link does not work neither.
The following is the code I use:

\setupinteraction[state=start,focus=standard]
\starttext
\chapter{Test}
\section{Test}

\placeformula[eq:test]
\startformula
  a + b
\stopformula
Eq \in[eq:test]

\section{Test 2}

\placeformula[eq:testtwo]
\startformula
  a + b
\stopformula
Eq \in[eq:testtwo]

\stoptext

Another question is, how to make formula number without the chapter
number?.

Thanks~~

-- 
There is no emotion; there is peace.
There is no ignorance; there is knowledge.
There is no passion; there is serenity.
There is no death; there is the Force.
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Reference to formula does not work?

2009-09-14 Thread Aditya Mahajan

On Mon, 14 Sep 2009, Mingyang Sun wrote:


Hi all,

Say I have a formula that is numbered as 1.1.  The problem is when I
use \in to refer to that formula, the reference only shows a number
1, and if interaction is enabled, the link does not work neither.


Confirmed (in MKIV). I don't know how to correct it.


Another question is, how to make formula number without the chapter
number?.


The usual way is to say

\setupformulas[way=bytext]

but that also seems to be broken in MKIV.

Aditya
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Reference to formula does not work?

2009-09-14 Thread Mingyang Sun
On Mon, Sep 14, 2009 at 05:15:52PM -0400, Aditya Mahajan wrote:
 On Mon, 14 Sep 2009, Mingyang Sun wrote:
  Another question is, how to make formula number without the chapter
  number?.
 
 The usual way is to say
 
 \setupformulas[way=bytext]
 
 but that also seems to be broken in MKIV.

Ya.  Tried, not work...

-- 
There is no emotion; there is peace.
There is no ignorance; there is knowledge.
There is no passion; there is serenity.
There is no death; there is the Force.
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Reference to formula does not work?

2009-09-14 Thread Hans Hagen

Mingyang Sun wrote:

On Mon, Sep 14, 2009 at 05:15:52PM -0400, Aditya Mahajan wrote:

On Mon, 14 Sep 2009, Mingyang Sun wrote:

Another question is, how to make formula number without the chapter
number?.

The usual way is to say

\setupformulas[way=bytext]

but that also seems to be broken in MKIV.


Ya.  Tried, not work...



i'll have a look at it this week

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] reference in \placefigure

2009-09-08 Thread Hans Hagen

Peter Münster wrote:

Hello,

References to figures don't seem to work with latest version:

\starttext
\section[secref]{section}
\placefigure[][figref]{caption}{figure}
In section \in[secref] and in figure
\in[figref]. % nothing here...
\stoptext


fixed in next beta

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] reference in \placefigure

2009-09-03 Thread Peter Münster
Hello,

References to figures don't seem to work with latest version:

\starttext
\section[secref]{section}
\placefigure[][figref]{caption}{figure}
In section \in[secref] and in figure
\in[figref]. % nothing here...
\stoptext

Cheers, Peter


___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Reference to equation fails

2009-06-04 Thread richard . stephens

There seems to be a problem in the referencing to equations in the version
of MKIV I'm using:
ConTeXt  ver: 2009.06.03 11:48 MKIV  fmt: 2009.6.3  int: english/english

In the following code, the reference to the equation fails, resulting in
'??'. Using MKII everything is fine.

\starttext
\placeformula[eq:pythag]
\startformula
a^2 = b^2 + c^2
\stopformula
Pythagoras proposed \in{equation}[eq:pythag].
\stoptext

Best regards,

Richard



Converteam UK Ltd. Registration Number: 5571739 and Converteam Ltd. 
Registration Number: 2416188  
Registered in England and Wales.  
Registered office: Boughton Road, Rugby, Warwickshire, CV21 1BU.  

CONFIDENTIALITY : This e-mail and any attachments are confidential and may be 
privileged. If you are not a named recipient, please notify the sender 
immediately and do not disclose the contents to another person, use it for any 
purpose or store or copy the information in any medium.  

Please consider the environment before printing this e-mail 
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Reference to a subitem

2008-10-27 Thread Wolfgang Schuster
2008/10/25 Marcin Borkowski [EMAIL PROTECTED]:
 Dnia Sat, Oct 25, 2008 at 02:58:24AM +0200, Diego Depaoli napisa#322;(a):
 2008/10/23 Wolfgang Schuster [EMAIL PROTECTED]:
 
  \def\ItemNumber#1%
   {\expandafter\doItemNumber#1..\relax}
 
  \def\doItemNumber#1.#2.#3\relax
   {\doifelsenothing{#2}
 {#1}
 {#2}}
 
  \definereferenceformat[initem][left=\ItemNumber]
 Since I don't speak that language, someone could explain why this code
 doesn't work when I put a stopper in subitemization?
 The standard dot isn't a stopper itself?

 This code seems to work (approximately) like this: it expands the full
 reference, which is:
 number dot number dot something, probably space
 and selects everything from the first dot up to the second one (w/o the
 dots themselves).  So I consider it to be a bit dirty hack (sorry,
 Wolfgang;)), in a sense that it is not very flexible.

It's just hack at user level, a dirty hack would redefine core macros but
this is what I try to avoid.

 If your stopper is, say ) (and the second one, say, ], so you have
 references in a strange form like 1)2]), you might want to say
 something like
 \def\doItemNumber #1)#2]#3\relax
 (the space after \doItemNumber is gobbled by TeX, so it might be present
 here or not, it is a matter of taste only).
 If you have different stoppers, another approach might be reasonable.  I
 can see two possibilities:
 1. Get to know _where_ ConTeXt really keeps the relevant info about
 labels; if the info about the values (w/o stoppers) is preserved, we are
 saved, if not, we've got a problem;
 2. so in the latter case we have to (?) use this kind of hacky solution,
 which might be something like this (assuming that \stopper and \stopperr
 are the first- and second level stoppers respectively):

 \edef\sometemporarymacroname{%
  \def\noexpand\doItemNumber ##1\stopper ##2\stopperr ##3\relax
  {\noexpand\doifelsenothing{##2}
{##1}
{##2}}%
 }%
 \sometemporarymacroname

 (I'm not sure whether the last percentage sign is needed, but a good
 rule of thumb is to put them everywhere after closing brace newline,
 so that the newlines don't get translated into spaces.)

You don't need the comment sign at the end of the macro in outer level
but you need it for local definitons in other macros if your're in
horizontal mode.

 I'm not sure whether this works, though, *please* check it and tell me
 (maybe I'm doing some stupid error, please the TeX gurus correct me if
 yes).  I hope this is ok, though, because then it my first post to this
 list containing actually an _answer_ and not a _question_:))).

Thanks to explain my solution.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Reference to a subitem

2008-10-27 Thread Diego Depaoli
2008/10/25 Marcin Borkowski [EMAIL PROTECTED]:
 Dnia Sat, Oct 25, 2008 at 02:58:24AM +0200, Diego Depaoli napisa#322;(a):
 This code seems to work (approximately) like this: it expands the full
 reference, which is:
 number dot number dot something, probably space
 and selects everything from the first dot up to the second one (w/o the
 dots themselves).  So I consider it to be a bit dirty hack (sorry,
 Wolfgang;)), in a sense that it is not very flexible.
Thanks for clarification, here I begin to understand

 If your stopper is, say ) (and the second one, say, ], so you have
 references in a strange form like 1)2]), you might want to say
 something like
 \def\doItemNumber #1)#2]#3\relax
... I tried before posting... doesn't work

 \edef\sometemporarymacroname{%
  \def\noexpand\doItemNumber ##1\stopper ##2\stopperr ##3\relax
  {\noexpand\doifelsenothing{##2}
{##1}
{##2}}%
 }%
 \sometemporarymacroname
Here I stop understand and I can't get this code working.
Could you give me a full example?

 I'm not sure whether this works, though, *please* check it and tell me
 (maybe I'm doing some stupid error, please the TeX gurus correct me if
 yes).  I hope this is ok, though, because then it my first post to this
 list containing actually an _answer_ and not a _question_:))).
This time will never come for me.

Cheers
-- 
Diego Depaoli
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Reference to a subitem

2008-10-27 Thread Diego Depaoli
Another curiosity...
why have such kind of reference since we get more flexibility with
\in[item]\in[subitem]?
-- 
Diego Depaoli
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Reference to a subitem

2008-10-27 Thread Marcin Borkowski
Dnia Mon, Oct 27, 2008 at 10:56:32AM +0100, Wolfgang Schuster napisa#322;(a):
 2008/10/25 Marcin Borkowski [EMAIL PROTECTED]:
  Dnia Sat, Oct 25, 2008 at 02:58:24AM +0200, Diego Depaoli napisa#322;(a):
  2008/10/23 Wolfgang Schuster [EMAIL PROTECTED]:
  
   \def\ItemNumber#1%
{\expandafter\doItemNumber#1..\relax}
  
   \def\doItemNumber#1.#2.#3\relax
{\doifelsenothing{#2}
  {#1}
  {#2}}
  
   \definereferenceformat[initem][left=\ItemNumber]
  Since I don't speak that language, someone could explain why this code
  doesn't work when I put a stopper in subitemization?
  The standard dot isn't a stopper itself?
 
  This code seems to work (approximately) like this: it expands the full
  reference, which is:
  number dot number dot something, probably space
  and selects everything from the first dot up to the second one (w/o the
  dots themselves).  So I consider it to be a bit dirty hack (sorry,
  Wolfgang;)), in a sense that it is not very flexible.
 
 It's just hack at user level, a dirty hack would redefine core macros but
 this is what I try to avoid.

OK, sorry - probably we have different semantics of dirty (or, more
probably, we're talking about different levels of dirtiness).  Here I
meant roughly that this hack is not very flexible.

  If your stopper is, say ) (and the second one, say, ], so you have
  references in a strange form like 1)2]), you might want to say
  something like
  \def\doItemNumber #1)#2]#3\relax
  (the space after \doItemNumber is gobbled by TeX, so it might be present
  here or not, it is a matter of taste only).
  If you have different stoppers, another approach might be reasonable.  I
  can see two possibilities:
  1. Get to know _where_ ConTeXt really keeps the relevant info about
  labels; if the info about the values (w/o stoppers) is preserved, we are
  saved, if not, we've got a problem;
  2. so in the latter case we have to (?) use this kind of hacky solution,
  which might be something like this (assuming that \stopper and \stopperr
  are the first- and second level stoppers respectively):
 
  \edef\sometemporarymacroname{%
   \def\noexpand\doItemNumber ##1\stopper ##2\stopperr ##3\relax
   {\noexpand\doifelsenothing{##2}
 {##1}
 {##2}}%
  }%
  \sometemporarymacroname
 
  (I'm not sure whether the last percentage sign is needed, but a good
  rule of thumb is to put them everywhere after closing brace newline,
  so that the newlines don't get translated into spaces.)
 
 You don't need the comment sign at the end of the macro in outer level
 but you need it for local definitons in other macros if your're in
 horizontal mode.

Shame on me, being a mathematician and being sooo imprecise:):)

  I'm not sure whether this works, though, *please* check it and tell me
  (maybe I'm doing some stupid error, please the TeX gurus correct me if
  yes).  I hope this is ok, though, because then it my first post to this
  list containing actually an _answer_ and not a _question_:))).
 
 Thanks to explain my solution.

You're welcome:).

 Wolfgang

Greets

-- 
Marcin Borkowski (http://mbork.pl)

Jeść.  Pić.  Spać.  Wstać.  Kupić.  Sprzedać.  Mieć.
Możesz więcej chcieć - czegoś więcej!
(40i30na70)
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Reference to a subitem

2008-10-27 Thread Marcin Borkowski
Dnia Mon, Oct 27, 2008 at 05:24:56PM +0100, Diego Depaoli napisa#322;(a):
 2008/10/25 Marcin Borkowski [EMAIL PROTECTED]:
  Dnia Sat, Oct 25, 2008 at 02:58:24AM +0200, Diego Depaoli napisa#322;(a):
  This code seems to work (approximately) like this: it expands the full
  reference, which is:
  number dot number dot something, probably space
  and selects everything from the first dot up to the second one (w/o the
  dots themselves).  So I consider it to be a bit dirty hack (sorry,
  Wolfgang;)), in a sense that it is not very flexible.
 Thanks for clarification, here I begin to understand
 
  If your stopper is, say ) (and the second one, say, ], so you have
  references in a strange form like 1)2]), you might want to say
  something like
  \def\doItemNumber #1)#2]#3\relax
 ... I tried before posting... doesn't work

Could you please send me a minimal example?

  \edef\sometemporarymacroname{%
   \def\noexpand\doItemNumber ##1\stopper ##2\stopperr ##3\relax
   {\noexpand\doifelsenothing{##2}
 {##1}
 {##2}}%
  }%
  \sometemporarymacroname
 Here I stop understand and I can't get this code working.
 Could you give me a full example?

As above; send me a file, I'll try to do something.  Still, I'm not
really sure this would work, it was only a rough idea.  I'll explain it
later (it's 1:30 AM here in Poland;)).

  I'm not sure whether this works, though, *please* check it and tell me
  (maybe I'm doing some stupid error, please the TeX gurus correct me if
  yes).  I hope this is ok, though, because then it my first post to this
  list containing actually an _answer_ and not a _question_:))).
 This time will never come for me.

If you follow the path of TeX, your expertise will gradually rise;).
You'll never notice, though, until people start coming to you asking
questions, and will be baffled by your expert-like,
impossible-to-understand-and-technical answers;).

 Cheers
 -- 
 Diego Depaoli

Greets

-- 
Marcin Borkowski (http://mbork.pl)

- Gandalf!  A ja myślałem, że nie żyjesz.  Co prawda o sobie też byłem
tego zdania.
Sam Gamgee
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Reference to a subitem

2008-10-25 Thread Marcin Borkowski
Dnia Sat, Oct 25, 2008 at 02:58:24AM +0200, Diego Depaoli napisa#322;(a):
 2008/10/23 Wolfgang Schuster [EMAIL PROTECTED]:
 
  \def\ItemNumber#1%
   {\expandafter\doItemNumber#1..\relax}
 
  \def\doItemNumber#1.#2.#3\relax
   {\doifelsenothing{#2}
 {#1}
 {#2}}
 
  \definereferenceformat[initem][left=\ItemNumber]
 Since I don't speak that language, someone could explain why this code
 doesn't work when I put a stopper in subitemization?
 The standard dot isn't a stopper itself?

This code seems to work (approximately) like this: it expands the full
reference, which is:
number dot number dot something, probably space
and selects everything from the first dot up to the second one (w/o the
dots themselves).  So I consider it to be a bit dirty hack (sorry,
Wolfgang;)), in a sense that it is not very flexible.

If your stopper is, say ) (and the second one, say, ], so you have
references in a strange form like 1)2]), you might want to say
something like
\def\doItemNumber #1)#2]#3\relax
(the space after \doItemNumber is gobbled by TeX, so it might be present
here or not, it is a matter of taste only).
If you have different stoppers, another approach might be reasonable.  I
can see two possibilities:
1. Get to know _where_ ConTeXt really keeps the relevant info about
labels; if the info about the values (w/o stoppers) is preserved, we are
saved, if not, we've got a problem;
2. so in the latter case we have to (?) use this kind of hacky solution,
which might be something like this (assuming that \stopper and \stopperr
are the first- and second level stoppers respectively):

\edef\sometemporarymacroname{%
  \def\noexpand\doItemNumber ##1\stopper ##2\stopperr ##3\relax
  {\noexpand\doifelsenothing{##2}
{##1}
{##2}}%
}%
\sometemporarymacroname

(I'm not sure whether the last percentage sign is needed, but a good
rule of thumb is to put them everywhere after closing brace newline,
so that the newlines don't get translated into spaces.)

I'm not sure whether this works, though, *please* check it and tell me
(maybe I'm doing some stupid error, please the TeX gurus correct me if
yes).  I hope this is ok, though, because then it my first post to this
list containing actually an _answer_ and not a _question_:))).

 
 Cheers
 -- 
 Diego Depaoli

Greets

-- 
Marcin Borkowski (http://mbork.pl)

Kim jest ta, co wyłania się z pustyni,
Idzie wsparta na swoim Oblubieńcu?
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Reference to a subitem

2008-10-25 Thread Hans Hagen
Diego Depaoli wrote:
 2008/10/23 Wolfgang Schuster [EMAIL PROTECTED]:
 \def\ItemNumber#1%
  {\expandafter\doItemNumber#1..\relax}

 \def\doItemNumber#1.#2.#3\relax
  {\doifelsenothing{#2}
{#1}
{#2}}

 \definereferenceformat[initem][left=\ItemNumber]
 Since I don't speak that language, someone could explain why this code
 doesn't work when I put a stopper in subitemization?
 The standard dot isn't a stopper itself?

in mkiv this will be done differently, more control over each bit and piece

Hans


-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Reference to a subitem

2008-10-24 Thread Diego Depaoli
2008/10/23 Wolfgang Schuster [EMAIL PROTECTED]:

 \def\ItemNumber#1%
  {\expandafter\doItemNumber#1..\relax}

 \def\doItemNumber#1.#2.#3\relax
  {\doifelsenothing{#2}
{#1}
{#2}}

 \definereferenceformat[initem][left=\ItemNumber]
Since I don't speak that language, someone could explain why this code
doesn't work when I put a stopper in subitemization?
The standard dot isn't a stopper itself?

Cheers
-- 
Diego Depaoli
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Reference to a subitem

2008-10-23 Thread Wolfgang Schuster
On Thu, Oct 23, 2008 at 12:55 AM, Diego Depaoli [EMAIL PROTECTED] wrote:
 Hi all,
 referencing a subitem I get also the item (1.a, 2.c and so on).
 Can I split them or get only the subitem?

 \starttext
 \startitemize [n]
 \item [number] one
 \startitemize  [a]
 \item [letter] letter
 \stopitemize
 \stopitemize
 Look at number \in[number] letter \in[letter]
 \stoptext

 Normal output:
 Look at number 1 letter 1.a

 Wanted result
 Look at number 1 letter a

\def\ItemNumber#1%
 {\expandafter\doItemNumber#1..\relax}

\def\doItemNumber#1.#2.#3\relax
 {\doifelsenothing{#2}
{#1}
{#2}}

\definereferenceformat[initem][left=\ItemNumber]

\starttext
\startitemize[n]
\item[number] one
  \startitemize  [a]
  \item[letter] letter
  \stopitemize
\stopitemize
Look at \initem{number}[number] \initem{letter}[letter]
\stoptext

Regards,
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Reference to a subitem

2008-10-23 Thread Diego Depaoli
2008/10/23 Wolfgang Schuster [EMAIL PROTECTED]:

 Wanted result
 Look at number 1 letter a

 \def\ItemNumber#1%
  {\expandafter\doItemNumber#1..\relax}
As usual, Wolfgang solved!

Mojca, can I have a Context t-shirt customized 'Wolfgang's fan club'?

-- 
Diego Depaoli
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Reference to a subitem

2008-10-22 Thread Diego Depaoli
Hi all,
referencing a subitem I get also the item (1.a, 2.c and so on).
Can I split them or get only the subitem?

\starttext
\startitemize [n]
\item [number] one
\startitemize  [a]
\item [letter] letter
\stopitemize
\stopitemize
Look at number \in[number] letter \in[letter]
\stoptext

Normal output:
Look at number 1 letter 1.a

Wanted result
Look at number 1 letter a

Many thanks

-- 
Diego Depaoli
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] \reference, \goto(box)

2008-08-26 Thread Alan Stone
Hi,

Win XP - ConTeXt minimal: ConTeXt  ver: 2008.08.18 14:00 MKIV  fmt:
2008.8.22  int: english/english

What has changed with the \reference and/or \goto(box) commands ? I'm
getting fatal compile errors
related to these while there weren't none previously ( that was under
Linux, but shouldn't make any
difference ).

Thanks,
Alan
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \reference, \goto(box)

2008-08-26 Thread Alan Stone
When replacing \goto with \gotobox, everything works fine again.

Is \goto depreciated ?

Best,
Alan

On Tue, Aug 26, 2008 at 10:44 AM, Alan Stone
[EMAIL PROTECTED] wrote:
 Hi,

 Win XP - ConTeXt minimal: ConTeXt  ver: 2008.08.18 14:00 MKIV  fmt:
 2008.8.22  int: english/english

 What has changed with the \reference and/or \goto(box) commands ? I'm
 getting fatal compile errors
 related to these while there weren't none previously ( that was under
 Linux, but shouldn't make any
 difference ).

 Thanks,
 Alan

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \reference, \goto(box)

2008-08-26 Thread Wolfgang Schuster
On Tue, Aug 26, 2008 at 10:44 AM, Alan Stone
[EMAIL PROTECTED] wrote:
 Hi,

 Win XP - ConTeXt minimal: ConTeXt  ver: 2008.08.18 14:00 MKIV  fmt:
 2008.8.22  int: english/english

 What has changed with the \reference and/or \goto(box) commands ? I'm
 getting fatal compile errors
 related to these while there weren't none previously ( that was under
 Linux, but shouldn't make any
 difference ).

Give us a example!

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \reference, \goto(box)

2008-08-26 Thread Alan Stone
 Give us a example!

Sorry Wolfgang, for the moment no time to make a minimal example.

Best,
Alan

On Tue, Aug 26, 2008 at 12:56 PM, Wolfgang Schuster
[EMAIL PROTECTED] wrote:
 On Tue, Aug 26, 2008 at 10:44 AM, Alan Stone
 [EMAIL PROTECTED] wrote:
 Hi,

 Win XP - ConTeXt minimal: ConTeXt  ver: 2008.08.18 14:00 MKIV  fmt:
 2008.8.22  int: english/english

 What has changed with the \reference and/or \goto(box) commands ? I'm
 getting fatal compile errors
 related to these while there weren't none previously ( that was under
 Linux, but shouldn't make any
 difference ).

 Give us a example!

 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Reference Manual Project

2008-08-13 Thread Henning Hraban Ramm
Am 2008-08-11 um 21:44 schrieb Hans Hagen:

 Henning Hraban Ramm wrote:

 BTW in LilyPond there's a multilingual glossary, perhaps we should
 start such, too? We often get confusion with technical terms. And at
 least in German there's currently not even a technical dictionary for
 the print/design industries.

 good idea, perfect for a wiki page

Ok, I started it:
http://wiki.contextgarden.net/Dictionary

I was surprised that there's already a Glossary, but that should  
stay like an index, i.e. to find subjects, not translations.




Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


  1   2   >