* references
@ 2011-02-11 17:27 Hans Hagen
2011-02-11 19:23 ` references Florian Wobbe
2011-02-28 15:08 ` references Stefan Müller
0 siblings, 2 replies; 13+ messages in thread
From: Hans Hagen @ 2011-02-11 17:27 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
I uploaded a beta. New:
- Improved \textxt behaviour (for Mojca's code).
- Korean labels and index tagging (with help from Jeong Dalyoung).
- Cleaned of referencing (formats).
\setupinteraction[state=start]
\startbuffer[definitions]
\definereferenceformat [PageOne] [left=(,right=),text=sometext]
\definereferenceformat [PageTwo] [label=page]
\definereferenceformat [PageThree] [label=*]
\definereferenceformat [PageFour] [label=both]
\setuplabeltext[en][page=page~]
\setuplabeltext[en][chapter=chapter~]
\setuplabeltext[en][both={chapter~,~retpahc}]
\stopbuffer
\getbuffer[definitions]
\starttext
\chapter[one]{One}
\typebuffer[definitions]
\startbuffer
\PageOne[two]
\PageTwo[two]
\PageThree[two]
\PageFour[two]
\at{(}{)}[two]
\at{!}[two]
\at{page}[two]
<<\at[two]>>
\stopbuffer
\typebuffer \startlines \getbuffer \stoplines
\chapter[two]{Two}
\typebuffer[definitions]
\startbuffer
\PageOne[one]
\PageTwo[one]
\PageThree[one]
\PageFour[one]
\at{(}{)}[one]
\at{!}[one]
\at{page}[one]
<<\at[one]>>
\stopbuffer
\typebuffer \startlines \getbuffer \stoplines
\stoptext
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: references
2011-02-11 17:27 references Hans Hagen
@ 2011-02-11 19:23 ` Florian Wobbe
2011-02-11 19:28 ` references Hans Hagen
2011-02-28 15:08 ` references Stefan Müller
1 sibling, 1 reply; 13+ messages in thread
From: Florian Wobbe @ 2011-02-11 19:23 UTC (permalink / raw)
To: mailing list for ConTeXt users
> I uploaded a beta. New:
> [...]
> \at{(}{)}[two]
Hi Hans,
is there a way to get rid of the extra space after the opening bracket?
Florian
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: references
2011-02-11 17:27 references Hans Hagen
2011-02-11 19:23 ` references Florian Wobbe
@ 2011-02-28 15:08 ` Stefan Müller
2011-02-28 16:38 ` references Stefan Müller
1 sibling, 1 reply; 13+ messages in thread
From: Stefan Müller @ 2011-02-28 15:08 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
I think it could be useful to be able to "reuse" the label text setups
elsewhere, too.
I have for example
\definereferenceformat[inexp][label=example]
\setuplabeltext[en][example=example~]
in one of my documents. Why not specify this label when defining an
enumeration "example":
\defineenumeration[example][label=example]
This way I could easily use several languages in parallel with one
setup. The first letter should probably be capitalized in the
enumeration label...
Stefan.
On 11.02.2011 18:27, Hans Hagen wrote:
> Hi,
>
> I uploaded a beta. New:
>
> - Improved \textxt behaviour (for Mojca's code).
> - Korean labels and index tagging (with help from Jeong Dalyoung).
> - Cleaned of referencing (formats).
>
> \setupinteraction[state=start]
>
> \startbuffer[definitions]
> \definereferenceformat [PageOne] [left=(,right=),text=sometext]
> \definereferenceformat [PageTwo] [label=page]
> \definereferenceformat [PageThree] [label=*]
> \definereferenceformat [PageFour] [label=both]
>
> \setuplabeltext[en][page=page~]
> \setuplabeltext[en][chapter=chapter~]
> \setuplabeltext[en][both={chapter~,~retpahc}]
> \stopbuffer
>
> \getbuffer[definitions]
>
> \starttext
>
> \chapter[one]{One}
>
> \typebuffer[definitions]
>
> \startbuffer
> \PageOne[two]
> \PageTwo[two]
> \PageThree[two]
> \PageFour[two]
> \at{(}{)}[two]
> \at{!}[two]
> \at{page}[two]
> <<\at[two]>>
> \stopbuffer
>
> \typebuffer \startlines \getbuffer \stoplines
>
> \chapter[two]{Two}
>
> \typebuffer[definitions]
>
> \startbuffer
> \PageOne[one]
> \PageTwo[one]
> \PageThree[one]
> \PageFour[one]
> \at{(}{)}[one]
> \at{!}[one]
> \at{page}[one]
> <<\at[one]>>
> \stopbuffer
>
> \typebuffer \startlines \getbuffer \stoplines
>
> \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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: references
2011-02-28 15:08 ` references Stefan Müller
@ 2011-02-28 16:38 ` Stefan Müller
2011-02-28 16:58 ` references Wolfgang Schuster
0 siblings, 1 reply; 13+ messages in thread
From: Stefan Müller @ 2011-02-28 16:38 UTC (permalink / raw)
To: mailing list for ConTeXt users
I just learned that some of those labels are, in fact, reused. That
caused some confusion when I tried something like
\setuplabeltext[en][section=section~]
Is there a "list" or something which labels alexist and what values they
have?
Stefan
On 28.02.2011 16:08, Stefan Müller wrote:
> Hi,
>
> I think it could be useful to be able to "reuse" the label text setups
> elsewhere, too.
>
> I have for example
>
> \definereferenceformat[inexp][label=example]
> \setuplabeltext[en][example=example~]
>
> in one of my documents. Why not specify this label when defining an
> enumeration "example":
>
> \defineenumeration[example][label=example]
>
> This way I could easily use several languages in parallel with one
> setup. The first letter should probably be capitalized in the
> enumeration label...
>
> Stefan.
>
> On 11.02.2011 18:27, Hans Hagen wrote:
>> Hi,
>>
>> I uploaded a beta. New:
>>
>> - Improved \textxt behaviour (for Mojca's code).
>> - Korean labels and index tagging (with help from Jeong Dalyoung).
>> - Cleaned of referencing (formats).
>>
>> \setupinteraction[state=start]
>>
>> \startbuffer[definitions]
>> \definereferenceformat [PageOne] [left=(,right=),text=sometext]
>> \definereferenceformat [PageTwo] [label=page]
>> \definereferenceformat [PageThree] [label=*]
>> \definereferenceformat [PageFour] [label=both]
>>
>> \setuplabeltext[en][page=page~]
>> \setuplabeltext[en][chapter=chapter~]
>> \setuplabeltext[en][both={chapter~,~retpahc}]
>> \stopbuffer
>>
>> \getbuffer[definitions]
>>
>> \starttext
>>
>> \chapter[one]{One}
>>
>> \typebuffer[definitions]
>>
>> \startbuffer
>> \PageOne[two]
>> \PageTwo[two]
>> \PageThree[two]
>> \PageFour[two]
>> \at{(}{)}[two]
>> \at{!}[two]
>> \at{page}[two]
>> <<\at[two]>>
>> \stopbuffer
>>
>> \typebuffer \startlines \getbuffer \stoplines
>>
>> \chapter[two]{Two}
>>
>> \typebuffer[definitions]
>>
>> \startbuffer
>> \PageOne[one]
>> \PageTwo[one]
>> \PageThree[one]
>> \PageFour[one]
>> \at{(}{)}[one]
>> \at{!}[one]
>> \at{page}[one]
>> <<\at[one]>>
>> \stopbuffer
>>
>> \typebuffer \startlines \getbuffer \stoplines
>>
>> \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
> ___________________________________________________________________________________
>
>
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: references
2011-02-28 16:38 ` references Stefan Müller
@ 2011-02-28 16:58 ` Wolfgang Schuster
2011-03-01 9:27 ` references Stefan Müller
0 siblings, 1 reply; 13+ messages in thread
From: Wolfgang Schuster @ 2011-02-28 16:58 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 28.02.2011 um 17:38 schrieb Stefan Müller:
> I just learned that some of those labels are, in fact, reused. That caused some confusion when I tried something like
>
> \setuplabeltext[en][section=section~]
>
> Is there a "list" or something which labels alexist and what values they have?
Only the source files, mkii gets the labels from the lang-xxx.mkii files
and mkiv from lang-lab.lua. What you can do is to list them on the wiki.
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: references
2011-02-28 16:58 ` references Wolfgang Schuster
@ 2011-03-01 9:27 ` Stefan Müller
2011-03-01 10:08 ` references Vedran Miletić
0 siblings, 1 reply; 13+ messages in thread
From: Stefan Müller @ 2011-03-01 9:27 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 28.02.2011 17:58, Wolfgang Schuster wrote:
>
> Am 28.02.2011 um 17:38 schrieb Stefan Müller:
>
>> I just learned that some of those labels are, in fact, reused. That caused some confusion when I tried something like
>>
>> \setuplabeltext[en][section=section~]
>>
>> Is there a "list" or something which labels alexist and what values they have?
>
> Only the source files, mkii gets the labels from the lang-xxx.mkii files
> and mkiv from lang-lab.lua. What you can do is to list them on the wiki.
>
> Wolfgang
Only for clarification: did you mean lang-txt.lua with a lot stuff like
...
july={
labels={
af="julie",
...
in it? Or is there something wrong with my files (couldn't find this
file at http://source.contextgarden.net/tex/context/base only on my
harddrive...)?
If that's the file: it looks like a clever thing to me to let a
lua-function read "data.labels" and format it properly (table or
something) and/or show only one language or something, rather then
putting it on the wiki. Especially since there are some gaps in this
file and there could be a lot updates in the future.
I'll look into that in the not too far away future, but I'm not very
experienced with Lua.
Stefan.
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: references
2011-03-01 9:27 ` references Stefan Müller
@ 2011-03-01 10:08 ` Vedran Miletić
0 siblings, 0 replies; 13+ messages in thread
From: Vedran Miletić @ 2011-03-01 10:08 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1051 bytes --]
2011/3/1 Stefan Müller <warrence.stm@gmx.de>
> On 28.02.2011 17:58, Wolfgang Schuster wrote:
>
>>
>> Am 28.02.2011 um 17:38 schrieb Stefan Müller:
>>
>> I just learned that some of those labels are, in fact, reused. That
>>> caused some confusion when I tried something like
>>>
>>> \setuplabeltext[en][section=section~]
>>>
>>> Is there a "list" or something which labels alexist and what values they
>>> have?
>>>
>>
>> Only the source files, mkii gets the labels from the lang-xxx.mkii files
>> and mkiv from lang-lab.lua. What you can do is to list them on the wiki.
>>
>> Wolfgang
>>
>
> Only for clarification: did you mean lang-txt.lua with a lot stuff like
> ...
> july={
> labels={
> af="julie",
> ...
> in it? Or is there something wrong with my files (couldn't find this file
> at http://source.contextgarden.net/tex/context/base only on my
> harddrive...)?
>
That's because that repository is quite a bit out of date; the file was
introduced quite recently.
Regards,
Vedran Miletić
[-- Attachment #1.2: Type: text/html, Size: 1759 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 13+ messages in thread
* References
@ 2002-06-05 6:44 Martin Kolarik
2002-06-05 12:57 ` References Hans Hagen
0 siblings, 1 reply; 13+ messages in thread
From: Martin Kolarik @ 2002-06-05 6:44 UTC (permalink / raw)
Hi all,
I need to put somewhere in the text reference label -- the point which I
later could reference using \at, \in, etc.
I suppose there is something the same inside all ConTeXt top level commands
like \chapter, \section or \placefloat, but I do not know, how to label
define explicitly.
Any suggestions?
Thanks,
Martin
--------
Martin Kolarik
Moravske Pristroje, a.s., Masarykova 1148, Zlin 76302
tel. +420(603)498498, fax +420(603)490803
web: http://www.mii.cz
--------
e-mail: kolarik@mii.cz
e-mail: kolarik@click.cz
tel. +420(603)535593
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: References
2002-06-05 6:44 References Martin Kolarik
@ 2002-06-05 12:57 ` Hans Hagen
0 siblings, 0 replies; 13+ messages in thread
From: Hans Hagen @ 2002-06-05 12:57 UTC (permalink / raw)
Cc: ntg-context
At 08:44 AM 6/5/2002 +0200, Martin Kolarik wrote:
>Hi all,
>
>I need to put somewhere in the text reference label -- the point which I
>later could reference using \at, \in, etc.
>
>I suppose there is something the same inside all ConTeXt top level commands
>like \chapter, \section or \placefloat, but I do not know, how to label
>define explicitly.
>
>Any suggestions?
the commands that deal with structure accept optional arguments:
\chapter[this]{Some Text}
\item[that] An itemized item
\placefigure[whatever]{}{}
with \in and \at and \about you can fetch numbers, pagenumbers and texts
You can also make your own refs with \pagereference and \textreference and
alike
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2011-03-01 10:08 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-11 17:27 references Hans Hagen
2011-02-11 19:23 ` references Florian Wobbe
2011-02-11 19:28 ` references Hans Hagen
[not found] ` <0C82F986-4A00-4587-BE0A-56D01BB52A88@awi.de>
[not found] ` <4D5869F6.3080801@wxs.nl>
[not found] ` <84FDA7BF-F81F-4975-A8EF-DE6AB857C2E9@awi.de>
2011-02-14 22:33 ` references Hans Hagen
2011-02-15 11:00 ` references Florian Wobbe
2011-02-15 19:09 ` references Hans Hagen
2011-02-28 15:08 ` references Stefan Müller
2011-02-28 16:38 ` references Stefan Müller
2011-02-28 16:58 ` references Wolfgang Schuster
2011-03-01 9:27 ` references Stefan Müller
2011-03-01 10:08 ` references Vedran Miletić
-- strict thread matches above, loose matches on Subject: below --
2002-06-05 6:44 References Martin Kolarik
2002-06-05 12:57 ` References Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).