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
___


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
___

Re: [NTG-context] reference error with startproduct

2005-02-18 Thread Hans Hagen
\useencoding[ffr]
this command should come first (i.e. even before any \startproject or so since 
it set an internal separator (has to do with active french quotes); some day i 
will change that to a more convenient method

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
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] reference error with startproduct

2005-02-18 Thread Willi Egger
Hi, yes indeed I changed the code of Peter in that sense and made a 
separate file of the product-code before testing. I did this not because 
I knew it, but it looked just more Context-like to me ;-)

Willi
\setupoutput[pdftex]
\useencoding[ffr]
\mainlanguage[fr]
% This is the project file:
\starttext
\startproject project
\product product
\stopproject
\stoptext
Hans Hagen wrote:
\useencoding[ffr]

this command should come first (i.e. even before any \startproject or so 
since it set an internal separator (has to do with active french 
quotes); some day i will change that to a more convenient method

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
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] reference error with startproduct

2005-02-18 Thread Peter Münster
On Fri, 18 Feb 2005, Hans Hagen wrote:

  \useencoding[ffr]
 
 this command should come first (i.e. even before any \startproject or so 
 since 
 it set an internal separator (has to do with active french quotes); some day 
 i 
 will change that to a more convenient method

Thanks for your explanations. My goal is, to write things like
\useencoding[ffr] and \mainlanguage[fr] only once in an environment file,
and not in every product.

What do you think about the following method, can I get other kinds of
problems?

Product file:

\startproduct product
\project project

\section[bla:bla]{bla}
test: \in[bla]

\section[bla]{bla}
test: \in[bla:bla]

hallo «hallo» hallo «hallo», hallo
hallo: hallo; hallo? hallo! hallo
\stopproduct

Project file:

\startproject project
\enableregime[il1]
\mainlanguage[fr]
\defineactivecharacter « {\leftguillemot\,}
\defineactivecharacter » {\,\rightguillemot}
\defineactivecharacter ! {\,\string!}
\defineactivecharacter ? {\,\string?}
\defineactivecharacter : {\,\string:}
\defineactivecharacter ; {\,\string;}

\product product

\stopproject

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] reference error with startproduct

2005-02-17 Thread Willi Egger
Hi Peter,
your code works if you say \in{section}[bla]. \in is normally used with 
a indicator what you are referencing.

\at{page}[bla]
\about[bla]
Using
 TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
 pdfeTeXk, Version 3.141592-1.20a-2.2 (Web2c 7.5.3)
 ConTeXt  ver: 2005.01.26  fmt: 2005.1.26  int: english  mes: english
Willi
Peter Münster wrote:
Hello,
when I compile the following product, I get this error:
unknown reference [][bla]
\startproduct product
\project project
\section[bla]{bla}
test: \in[bla]
\stopproduct
This is the project file:
\startproject project
\useencoding[ffr]
\mainlanguage[fr]
\product product
\stopproject
Could someone help please?
Greetings, Peter
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] reference error with startproduct

2005-02-17 Thread Peter Münster
On Thu, 17 Feb 2005, Willi Egger wrote:

 your code works if you say \in{section}[bla]. \in is normally used with 
 a indicator what you are referencing.
 
 \at{page}[bla]
 \about[bla]
 
 Using
   TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
   pdfeTeXk, Version 3.141592-1.20a-2.2 (Web2c 7.5.3)
   ConTeXt  ver: 2005.01.26  fmt: 2005.1.26  int: english  mes: english

Hi Willi,
even with \in{section}[bla] I get an error...

Using:
TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
ConTeXt  ver: 2005.01.31  fmt: 2005.2.17  int: english  mes: english

So, should I downgrade???

Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] reference error with startproduct

2005-02-17 Thread Willi Egger
Hi Peter,
I would definitely not downgrade!
I tried your example with the alpha-version and the result is ok.
 TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
 pdfeTeX, Version 3.141592-1.20a-2.2 (Web2c 7.5.3)
 ConTeXt  ver: 2005.02.14  fmt: 2005.2.15  int: english  mes: english
Best,
Willi
Peter Münster wrote:
On Thu, 17 Feb 2005, Willi Egger wrote:

your code works if you say \in{section}[bla]. \in is normally used with 
a indicator what you are referencing.

\at{page}[bla]
\about[bla]
Using
 TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
 pdfeTeXk, Version 3.141592-1.20a-2.2 (Web2c 7.5.3)
 ConTeXt  ver: 2005.01.26  fmt: 2005.1.26  int: english  mes: english

Hi Willi,
even with \in{section}[bla] I get an error...
Using:
TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
ConTeXt  ver: 2005.01.31  fmt: 2005.2.17  int: english  mes: english
So, should I downgrade???
Peter
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context