Re: [NTG-context] French interface

2020-06-25 Thread Wolfgang Schuster

Garulfo schrieb am 25.06.2020 um 21:34:

Hi,

If I understand, the translation file mult-def.lua provides 5 families
for translations:
1- commands
2- constants
3- variables
4- elements (prefix or suffix of commands) like
   - \completeREGISTER and \completeindex
    
   - \startmakeup and \stopmakeup
  ^^  ^^
5- setupstrings, to describe the syntaxe and the type of the arguments


1/ I don't understand how to impact, for example, FLOAT and chemical in:

 \placeFLOAT   becomes \placerFLOAT
 \startplaceFLOAT  becomes \debutplacerFLOAT
 \placerchemical   becomes \placerchemical
 \startplacerchemical  becomes \debutplacerchemical


\placefigure is a combination of the element "place" (\e!place) and the 
variable "figure" (\v!figure)


\startplacefigure is a combination of the elements "start" (\e!start) 
and "place" (\e!place) and the variable "figure" (\v!figure.)



2/ I don't understand the following

RUN OK:

% interface=fr
\debuttexte
\debutsection[titre=test] This is a test \finsection
\codelua{context("Foo Bar 1")}
\fintexte

\ctxlua?

% interface=fr
\debuttexte
\debutsection[titre=test] This is a test \finsection
\debutcodelua  context("Foo Bar 2") \fincodelua
\fintexte

with:
tex error   > error not related to input file:
tex error   >   tex: ?
tex error   >   lua: ?
tex error   >   mps: -
mtx-context | fatal error: return code: 256


I suppose that some complementary modifications may be required with
\start \stop and lua


Delimited command are problematic (especially when they change 
catcodes), e.g. \startluacode use \stopluacode as hard coded delimiter 
for the environment. While it is easy to create a synonym for 
\startluacode this isn't the case for \stopluacode because the 
environment always look for \stopluacode as stopper and alternative 
names are ignored.


There are ways to work around this (e.g. \startfootnote) but for the 
english interface they aren't needed in most cases.


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] French interface

2020-06-25 Thread Garulfo

Hi,

If I understand, the translation file mult-def.lua provides 5 families
for translations:
1- commands
2- constants
3- variables
4- elements (prefix or suffix of commands) like
   - \completeREGISTER and \completeindex
    
   - \startmakeup and \stopmakeup
  ^^  ^^
5- setupstrings, to describe the syntaxe and the type of the arguments


1/ I don't understand how to impact, for example, FLOAT and chemical in:

 \placeFLOAT   becomes \placerFLOAT
 \startplaceFLOAT  becomes \debutplacerFLOAT
 \placerchemical   becomes \placerchemical
 \startplacerchemical  becomes \debutplacerchemical

2/ I don't understand the following

RUN OK:

% interface=fr
\debuttexte
\debutsection[titre=test] This is a test \finsection
\codelua{context("Foo Bar 1")}
\fintexte

DOESNT RUN
% interface=fr
\debuttexte
\debutsection[titre=test] This is a test \finsection
\debutcodelua  context("Foo Bar 2") \fincodelua
\fintexte

with:
tex error   > error not related to input file:
tex error   >   tex: ?
tex error   >   lua: ?
tex error   >   mps: -
mtx-context | fatal error: return code: 256


I suppose that some complementary modifications may be required with
\start \stop and lua


Once again, thanks a lot for your support.


Le 24/06/2020 à 23:35, Hans Hagen a écrit :

On 6/24/2020 11:01 PM, Garulfo wrote:

Hi,

I try to update and to fill the french content of mult-def.lua.

Currently, I have an updated "mult-def.lua" file. 3 questions :

1/ which commands should be executed in order to make the new local
    interface effective with context


context --make fr

btw, top lines of files can have % interface=fr


2/ which commands should be executed in order to build a local version
    of setup-fr.pdf


context --interface=fr --global --result=mysetup x-setups-overview.mkiv


3/ many commands in setup-fr.pdf are not documented in mult-def.lua
    where does the additionnal translations should come from ?

users who know the language

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] title of index

2018-07-19 Thread Henri Menke



On 19/07/18 23:54, Hans van der Meer wrote:
The macro \completeregister[index] placed in 
\startbackmatter\startappendices typesets as “I Index”.

How can I change and format with my custom macro the part “Index”?
Such as using \mytitle{xyz} instead of Index?


Looks like the sectioning command is hardcoded: https://git.io/fNc1y



No solution found in the Context Wiki.

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
___

Re: [NTG-context] title of index

2018-07-19 Thread Wolfgang Schuster

\definehead[mytitle][title]

\starttext

...

\mytitle{...}

\placeregister[index]

\stoptext


Wolfgang

Hans van der Meer <mailto:havdm...@ziggo.nl>
19. Juli 2018 um 13:54
The macro \completeregister[index] placed in 
\startbackmatter\startappendices typesets as “I Index”.

How can I change and format with my custom macro the part “Index”?
Such as using \mytitle{xyz} instead of Index?

No solution found in the Context Wiki.

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
___

Re: [NTG-context] title of index

2018-07-19 Thread Hans van der Meer
Thanks. Putting \placeregister[index] inside a  
\startchapter[title=\mytitle{}]-\stopchapter pair does the ttrick.

> On 19 Jul 2018, at 14:19, Rik Kabel  wrote:
> 
> On 7/19/2018 07:54, Hans van der Meer wrote:
>> The macro \completeregister[index] placed in 
>> \startbackmatter\startappendices typesets as “I Index”. 
>> How can I change and format with my custom macro the part “Index”? 
>> Such as using \mytitle{xyz} instead of Index?
>> 
>> No solution found in the Context Wiki.
>> 
>> dr. Hans van der Meer
>> 
> 
> Try \placeindex or \placeregister[index] and your own section heading. This 
> is analagous to \completecontent and \placecontent.

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
___

Re: [NTG-context] title of index

2018-07-19 Thread Rik Kabel

On 7/19/2018 07:54, Hans van der Meer wrote:
The macro \completeregister[index] placed in 
\startbackmatter\startappendices typesets as “I Index”.

How can I change and format with my custom macro the part “Index”?
Such as using \mytitle{xyz} instead of Index?

No solution found in the Context Wiki.

dr. Hans van der Meer



Try \placeindex or \placeregister[index] and your own section heading. 
This is analagous to \completecontent and \placecontent.
___
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] title of index

2018-07-19 Thread Hans van der Meer
The macro \completeregister[index] placed in \startbackmatter\startappendices 
typesets as “I Index”. 
How can I change and format with my custom macro the part “Index”? 
Such as using \mytitle{xyz} instead of Index?

No solution found in the Context Wiki.

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
___

Re: [NTG-context] Overriding / redefining / disabling standard commands

2018-06-25 Thread Rik Kabel

On 6/25/2018 22:00, Alan Braslau wrote:

On Mon, 25 Jun 2018 20:50:51 -0400
Rik Kabel  wrote:


On 6/25/2018 20:11, Alan Braslau wrote:

On Mon, 25 Jun 2018 19:11:30 -0400
Rik  wrote:


On 6/25/2018 17:52, Wolfgang Schuster wrote:

\startmode[ebook]
\setupbackend[export=yes]
\stopmode

\starttext

\index{Knuth}\input knuth

\index{Ward}\input ward

\index{Zapf}\input zapf

\startnotmode[*export]
\completeregister[index]
\stopnotmode

\stoptext

Unfortunately, this does not suppress generation of index
references in the exported output. Here is a snippet of the
-div.html file generated by the example you provided:

  Thus,
I came to the conclusion that the designer of a new system must not
  only be the implementer and first large--scale user; the
designer should also write the first user manual.

and a snip of the output with the default css:

Thus the request for a (simple) mechanism to redefine or disable
standard commands. There are commands other than \index that might
also benefit from similar treatment.


\def\MyIndex#1{\index{#1}}

is one route.

Another might be

\let\index\gobbleoneargument

(use at your risk)

Alan


This would work if \index took one argument, but it takes as well an
optional argument preceding the required argument, and so these fail.

The best solution would seem to be one which does not require
knowledge of the number of required and optional arguments, but that
might be a stretch.

That is why I asked for help.

\setupregister[index][referencing=off]

Besides, if you use \index, why object to index reference tags in the
export?

Alan


Alan (and list),

This option still leaves the registerlocation entries in the html file, 
and so accomplishes nothing that Wolfgang's suggestion did. Being 
implemented in the environment file, it does have the advantage of not 
requiring changes to the content source file.


As to why I object to index reference tags in the export: There are a 
few constructs beyond indexes that I wish to exclude in export output -- 
indices are one and the problem is easily demonstrated. Referencetags 
themselves are not a significant problem -- a little css will hide them. 
I have not explored the other constructs yet (among them margin notes 
and cross-references) but was hoping for a generic solution, or at least 
an easily adapted per command solution.


There are a few options I can see. In order of least to most preferred, 
I can maintain separate sources; I can invoke a filter in my makefile to 
preprocess the source, removing \index commands (or margin notes, or 
...); I can redefine \index (or margin notes, or ...) to be no-ops.


As much as possible I would like to use the same content source files 
for different output formats with some unique environment files. Filters 
are an added step and fragile, depending on correctly identifying the 
target constructs. So, I have been looking at redefinition.


I thought that the ability to override a command like \index might be 
generally useful, and so brought it up to the list when I could not find 
a way to do it.


--
Rik


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Overriding / redefining / disabling standard commands

2018-06-25 Thread Alan Braslau
On Mon, 25 Jun 2018 20:50:51 -0400
Rik Kabel  wrote:

> On 6/25/2018 20:11, Alan Braslau wrote:
> > On Mon, 25 Jun 2018 19:11:30 -0400
> > Rik  wrote:
> >
> >> On 6/25/2018 17:52, Wolfgang Schuster wrote:
> >>> \startmode[ebook]
> >>> \setupbackend[export=yes]
> >>> \stopmode
> >>>
> >>> \starttext
> >>>
> >>> \index{Knuth}\input knuth
> >>>
> >>> \index{Ward}\input ward
> >>>
> >>> \index{Zapf}\input zapf
> >>>
> >>> \startnotmode[*export]
> >>> \completeregister[index]
> >>> \stopnotmode
> >>>
> >>> \stoptext
> >> Unfortunately, this does not suppress generation of index
> >> references in the exported output. Here is a snippet of the
> >> -div.html file generated by the example you provided:
> >>
> >>   >>  onclick="location.href=#aut-1">Thus,
> >> I came to the conclusion that the designer of a new system must not
> >>  only be the implementer and first large--scale user; the
> >> designer should also write the first user manual.
> >>
> >> and a snip of the output with the default css:
> >>
> >> Thus the request for a (simple) mechanism to redefine or disable
> >> standard commands. There are commands other than \index that might
> >> also benefit from similar treatment.
> >>
> > \def\MyIndex#1{\index{#1}}
> >
> > is one route.
> >
> > Another might be
> >
> > \let\index\gobbleoneargument
> >
> > (use at your risk)
> >
> > Alan
> >
> This would work if \index took one argument, but it takes as well an 
> optional argument preceding the required argument, and so these fail.
> 
> The best solution would seem to be one which does not require
> knowledge of the number of required and optional arguments, but that
> might be a stretch.
> 
> That is why I asked for help.

\setupregister[index][referencing=off]

Besides, if you use \index, why object to index reference tags in the
export?

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] Overriding / redefining / disabling standard commands

2018-06-25 Thread Rik Kabel

On 6/25/2018 20:11, Alan Braslau wrote:

On Mon, 25 Jun 2018 19:11:30 -0400
Rik  wrote:


On 6/25/2018 17:52, Wolfgang Schuster wrote:

\startmode[ebook]
\setupbackend[export=yes]
\stopmode

\starttext

\index{Knuth}\input knuth

\index{Ward}\input ward

\index{Zapf}\input zapf

\startnotmode[*export]
\completeregister[index]
\stopnotmode

\stoptext

Unfortunately, this does not suppress generation of index references
in the exported output. Here is a snippet of the -div.html file
generated by the example you provided:

 Thus,
I came to the conclusion that the designer of a new system must not
 only be the implementer and first large--scale user; the designer
 should also write the first user manual.

and a snip of the output with the default css:

Thus the request for a (simple) mechanism to redefine or disable
standard commands. There are commands other than \index that might
also benefit from similar treatment.


\def\MyIndex#1{\index{#1}}

is one route.

Another might be

\let\index\gobbleoneargument

(use at your risk)

Alan

This would work if \index took one argument, but it takes as well an 
optional argument preceding the required argument, and so these fail.


The best solution would seem to be one which does not require knowledge 
of the number of required and optional arguments, but that might be a 
stretch.


That is why I asked for help.
--
Rik
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Overriding / redefining / disabling standard commands

2018-06-25 Thread Alan Braslau
On Mon, 25 Jun 2018 19:11:30 -0400
Rik  wrote:

> On 6/25/2018 17:52, Wolfgang Schuster wrote:
> > \startmode[ebook]
> > \setupbackend[export=yes]
> > \stopmode
> >
> > \starttext
> >
> > \index{Knuth}\input knuth
> >
> > \index{Ward}\input ward
> >
> > \index{Zapf}\input zapf
> >
> > \startnotmode[*export]
> > \completeregister[index]
> > \stopnotmode
> >
> > \stoptext  
> 
> Unfortunately, this does not suppress generation of index references
> in the exported output. Here is a snippet of the -div.html file
> generated by the example you provided:
> 
>  onclick="location.href=#aut-1">Thus,
> I came to the conclusion that the designer of a new system must not
> only be the implementer and first large--scale user; the designer
> should also write the first user manual.
> 
> and a snip of the output with the default css:
> 
> Thus the request for a (simple) mechanism to redefine or disable 
> standard commands. There are commands other than \index that might
> also benefit from similar treatment.
> 

\def\MyIndex#1{\index{#1}}

is one route.

Another might be 

\let\index\gobbleoneargument

(use at your risk)

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] Overriding / redefining / disabling standard commands

2018-06-25 Thread Rik

On 6/25/2018 17:52, Wolfgang Schuster wrote:

\startmode[ebook]
\setupbackend[export=yes]
\stopmode

\starttext

\index{Knuth}\input knuth

\index{Ward}\input ward

\index{Zapf}\input zapf

\startnotmode[*export]
\completeregister[index]
\stopnotmode

\stoptext


Unfortunately, this does not suppress generation of index references in 
the exported output. Here is a snippet of the -div.html file generated 
by the example you provided:


   Thus, I
   came to the conclusion that the designer of a new system must not
   only be the implementer and first large--scale user; the designer
   should also write the first user manual.

and a snip of the output with the default css:

Thus the request for a (simple) mechanism to redefine or disable 
standard commands. There are commands other than \index that might also 
benefit from similar treatment.


--
Rik

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Overriding / redefining / disabling standard commands

2018-06-25 Thread Wolfgang Schuster



Rik Kabel <mailto:cont...@rik.users.panix.com>
25. Juni 2018 um 22:49
List,

What is the preferred way to override a standard command?

My use case is that I am trying to produce html (and epub, but that 
has a long long way to go) from the same source I use for pdf. Some 
features are not needed, and I have separate environment files for 
each output format to accommodate the differences.


I would like to override the standard \index command in one of those 
environment files, eliminating the generation of index references. 
There may be other constructs as well that would benefit from this 
simplification while allowing a common content source file.


You can use the “*export” mode to disable commands when the export is 
enabled.


\startmode[ebook]
\setupbackend[export=yes]
\stopmode

\starttext

\index{Knuth}\input knuth

\index{Ward}\input ward

\index{Zapf}\input zapf

\startnotmode[*export]
\completeregister[index]
\stopnotmode

\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] Registers and getparameters

2018-01-23 Thread Hans Hagen

On 1/22/2018 8:26 PM, Wolfgang Schuster wrote:



Otared Kavian <mailto:ota...@gmail.com>
22. Januar 2018 um 19:53
Hi all,

I have a list of speakers (and abstracts of their talk) in a rather 
long document, and the name of each speaker is written to a register 
named speakers.
Then with the command \getparameters[Talk] I get the name of each 
speaker and try to write it to the register with


\speakers{\TalkSpeakerName}


You have to add \expanded, i.e. \expanded{\speakers{...}}.


or maybe try the 'expanded' option

\setupregister
  [speakers]
  [style=sansbold,
   n=2,
   expansion=yes]


Indeed this does not work to obtain the result I am looking for: the 
sorting is indeed under the letter « t », and most importantly the 
register gets only the last name in the list instead of getting each 
speaker name.


The following is a (not so minimal…) example. Can anyone help me in 
this matter?


When you replace \getparameters with \setvariables you can set a command
which is applied each time when you set new values.


\defineregister[speakers]

\setupregister
   [speakers]
   [style=sansbold,
    n=2]

\startbuffer[pagetalk]
   \doflushatpar
     {\expanded{\speakers{\getvariable{talk}{speakername}}}%
  \expanded{\pagereference[talk:\getvariable{talk}{speakername}]}}%
   \starttabulate[|f{\bi}l|p|]
   \NC Speaker \EQ \getvariable{talk}{speakername} \NC\NR
   \NC Title   \EQ \getvariable{talk}{title}   \NC\NR
   \NC Time    \EQ \getvariable{talk}{time}    \NC\NR
   \NC Room    \EQ \getvariable{talk}{room}    \NC\NR
   \HL
   \stoptabulate
\stopbuffer

\setvariable{talk}{set}{\getbuffer[pagetalk]}

\showframe[text][text]

\starttext

\setvariables
   [talk]
   [speakername={Gauss},
    title={Remarks on Number Theory},
    time={10:30},
    room={A}]

The talk about Gauss was on \at{page}[talk:Gauss].

\completeregister[speakers]

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




--

-
  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] Registers and getparameters

2018-01-22 Thread Otared Kavian
Hi Wolfgang,

Thank you very much for your reply and your wise advice to use the \setvariable 
mechanism. It is indeed much more convenient to use for what I intend to do.

The only remaining problem is that when several talks are included in my file 
(in the following example there three of them), then the entries to the 
register are correct but the associated pagenumbers are incorrect and are given 
the last pagenumber: in the following example all three talks are given the 
pagenumber 4 in the register. Is there something I am doing wrong?

Thanks agin for your time and attention: Otared K.
%%% begin register-talks.tex
\setupinteraction[state=start]
\defineregister[speakers]

\setupregister
  [speakers]
  [style=sansbold,
   n=2]

\startbuffer[pagetalk]
  \doflushatpar 
{\expanded{\speakers{\getvariable{talk}{speakername}}}%
 \expanded{\pagereference[talk:\getvariable{talk}{speakername}]}}%
  \starttabulate[|f{\bi}l|p|]
  \NC Speaker \EQ \getvariable{talk}{speakername} \NC\NR
  \NC Title   \EQ \getvariable{talk}{title}   \NC\NR
  \NC Time\EQ \getvariable{talk}{time}\NC\NR
  \NC Room\EQ \getvariable{talk}{room}\NC\NR
  \HL
  \stoptabulate
\stopbuffer

\setvariable{talk}{set}{\getbuffer[pagetalk]}

\showframe[text][text]

\starttext

\setvariables[talk]
[speakername={Gauss},
title={Remarks on Number Theory},
time={10:30},
room={A}]


\page

\setvariables[talk]
[speakername={Poincaré},
title={Remarks on Relativity},
time={16:30},
room={B}]

\page

\setvariables[talk]%
[speakername={Dirac},
title={Quaternions and the wave equation},
time={15:30},
room={B}]

\page

The talk about Gauss is on \at{page}[talk:Gauss].

\completeregister[speakers]

\stoptext
%%% end register-talks.tex

> On 22 Jan 2018, at 20:26, Wolfgang Schuster <schuster.wolfg...@gmail.com 
> <mailto:schuster.wolfg...@gmail.com>> wrote:
> 
> 
>> Otared Kavian <mailto:ota...@gmail.com> 22. Januar 2018 um 19:53
>> Hi all,
>> 
>> I have a list of speakers (and abstracts of their talk) in a rather long 
>> document, and the name of each speaker is written to a register named 
>> speakers. 
>> Then with the command \getparameters[Talk] I get the name of each speaker 
>> and try to write it to the register with
>> 
>> \speakers{\TalkSpeakerName}
> 
> You have to add \expanded, i.e. \expanded{\speakers{...}}.
> 
>> Indeed this does not work to obtain the result I am looking for: the sorting 
>> is indeed under the letter « t », and most importantly the register gets 
>> only the last name in the list instead of getting each speaker name.
>> 
>> The following is a (not so minimal…) example. Can anyone help me in this 
>> matter?
> 
> When you replace \getparameters with \setvariables you can set a command
> which is applied each time when you set new values.
> 
> 
> \defineregister[speakers]
> 
> \setupregister
>   [speakers]
>   [style=sansbold,
>n=2]
> 
> \startbuffer[pagetalk]
>   \doflushatpar 
> {\expanded{\speakers{\getvariable{talk}{speakername}}}%
>  \expanded{\pagereference[talk:\getvariable{talk}{speakername}]}}%
>   \starttabulate[|f{\bi}l|p|]
>   \NC Speaker \EQ \getvariable{talk}{speakername} \NC\NR
>   \NC Title   \EQ \getvariable{talk}{title}   \NC\NR
>   \NC Time\EQ \getvariable{talk}{time}\NC\NR
>   \NC Room\EQ \getvariable{talk}{room}\NC\NR
>   \HL
>   \stoptabulate
> \stopbuffer
> 
> \setvariable{talk}{set}{\getbuffer[pagetalk]}
> 
> \showframe[text][text]
> 
> \starttext
> 
> \setvariables
>   [talk]
>   [speakername={Gauss},
>title={Remarks on Number Theory},
>time={10:30},
>room={A}]
> 
> The talk about Gauss was on \at{page}[talk:Gauss].
> 
> \completeregister[speakers]
> 
> \stoptext
> 
> 
> Wolfgang
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / 
> http://www.ntg.nl/mailman/listinfo/ntg-context 
> <http://www.ntg.nl/mailman/listinfo/ntg-context>
> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / 
> http://context.aanhet.net <http://context.aanhet.net/>
> archive  : https://bitbucket.org/phg/context-mirror/commits/ 
> <https://bitbucket.org/phg/context-mirror/commits/>
> wiki : http://contextgarden.net <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] Registers and getparameters

2018-01-22 Thread Wolfgang Schuster



Otared Kavian <mailto:ota...@gmail.com>
22. Januar 2018 um 19:53
Hi all,

I have a list of speakers (and abstracts of their talk) in a rather 
long document, and the name of each speaker is written to a register 
named speakers.
Then with the command \getparameters[Talk] I get the name of each 
speaker and try to write it to the register with


\speakers{\TalkSpeakerName}


You have to add \expanded, i.e. \expanded{\speakers{...}}.

Indeed this does not work to obtain the result I am looking for: the 
sorting is indeed under the letter « t », and most importantly the 
register gets only the last name in the list instead of getting each 
speaker name.


The following is a (not so minimal…) example. Can anyone help me in 
this matter?


When you replace \getparameters with \setvariables you can set a command
which is applied each time when you set new values.


\defineregister[speakers]

\setupregister
  [speakers]
  [style=sansbold,
   n=2]

\startbuffer[pagetalk]
  \doflushatpar
{\expanded{\speakers{\getvariable{talk}{speakername}}}%
 \expanded{\pagereference[talk:\getvariable{talk}{speakername}]}}%
  \starttabulate[|f{\bi}l|p|]
  \NC Speaker \EQ \getvariable{talk}{speakername} \NC\NR
  \NC Title   \EQ \getvariable{talk}{title}   \NC\NR
  \NC Time\EQ \getvariable{talk}{time}\NC\NR
  \NC Room\EQ \getvariable{talk}{room}\NC\NR
  \HL
  \stoptabulate
\stopbuffer

\setvariable{talk}{set}{\getbuffer[pagetalk]}

\showframe[text][text]

\starttext

\setvariables
  [talk]
  [speakername={Gauss},
   title={Remarks on Number Theory},
   time={10:30},
   room={A}]

The talk about Gauss was on \at{page}[talk:Gauss].

\completeregister[speakers]

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

[NTG-context] Registers and getparameters

2018-01-22 Thread Otared Kavian
Hi all,

I have a list of speakers (and abstracts of their talk) in a rather long 
document, and the name of each speaker is written to a register named speakers. 
Then with the command \getparameters[Talk] I get the name of each speaker and 
try to write it to the register with

\speakers{\TalkSpeakerName}

Indeed this does not work to obtain the result I am looking for: the sorting is 
indeed under the letter « t », and most importantly the register gets only the 
last name in the list instead of getting each speaker name.

The following is a (not so minimal…) example. Can anyone help me in this matter?
Thanks in advance for your attention and time!
Best regards: OK

%%% begin register-speaker.tex
\defineregister[speakers]
\setupregister[speakers] [
style=sansbold,   %% headings
n=2,  %% columns
]

\define\MakePageTalk{%
\reference[ref:\TalkSpeakerName]{}
{\bi Speaker~:\/} \TalkSpeakerName \speakers{\TalkSpeakerName}.\crlf
{\bi Title :} \TalkTitle \crlf
{\bi Time:} \TalkTime \crlf
{\bi Room :} \TalkRoom\crlf 
\hairline\par}

\starttext 
\getparameters[Talk]%
[SpeakerName={Gauss},
Title={Remarks on Number Theory},
Time={10:30},
Room={A}]
\MakePageTalk

\page

\getparameters[Talk]%
[SpeakerName={Poincaré},
Title={Remarks on Relativity},
Time={16:30},
Room={B}]
\MakePageTalk

\page

\getparameters[Talk]%
[SpeakerName={Dirac},
Title={Quaternions and the wave equation},
Time={15:30},
Room={B}]
\MakePageTalk

\page

\completeregister[speakers]

\stoptext
%%% end register-speaker.tex
___
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] Command for printing back of book index.

2014-05-26 Thread john Culleton
On Mon, 26 May 2014 22:41:41 +0200
Hans Hagen pra...@wxs.nl wrote:

 On 5/26/2014 10:31 PM, john Culleton wrote:
  On Mon, 26 May 2014 19:15:48 +0200
  Hans Hagen pra...@wxs.nl wrote:
 
  On 5/26/2014 6:07 PM, john Culleton wrote:
 
  In the current General Manual section 12.7
  Registers the command for actually
  printing the back of book index is omitted.
  What is it? Is it the same for both MKII
  and MKIV?
 
  Does one run the command texutil separate
  from the context command (analogous to
  running the makeindex command in other
  versions of TeX)?
 
  I can create an index separate from context
  using a front end to makeindex that I wrote
  years ago but I prefer an embedded index.
 
  producing an (sorted) index has always been
  integrated
 
  - in mkii texexec handles it (using texutil
  for all multi-pass pre- processing); the use
  never had to run texutil him/herself; in
  fact, i once made a replacement in Lua so
  that we could avoid ruby but never finished
  it read: had time to finish it
 
  - in mkiv sorting the index is done
  internally
 
  there has never been a reason for using
  something makeindex
 
  Hans
 
  ps. texutil itself went from modula-2 to perl
  to ruby ... so it's a real ancient part of
  context
 
 
  Thanks. Now, what is the command to be placed
  at the back of the file to print the index?
  Section 12.7 just has a blank line after
 
  A register is generated and placed in your
  document with
 
 did you consult the wiki?
 
 http://wiki.contextgarden.net/Registers
 
 

I finally traced it down in the wiki. I was first
looking under index and not finding the answer.
My American mind didn't think to look under 
Register. That's not what we call a back of
book index. So thanks for the pointer.

But it would be useful also to correct the manual.
Neither section 12.7 nor the list of commands in
the back mention \completeregister nor
\placeregister as the means to create a back of
the book index.

-- 
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
PDF e-book: Create Book Covers with Scribus
available at
http://www.booklocker.com/books/4055.html
___
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] Two questions about registers

2013-06-02 Thread Marcin Borkowski
Hi list,

I have two questions regarding registers.

1. How to change the title of the register (placed by
\completeregister) and its numbering style?  (Assume that e.g. I want
it to be an unnumbered section and not a numbered chapter.)

2. I'd like my register not to have the headers with subsequent letters
of the alphabet.  I did [indicator=no] in \setupregister, but still got
the *vertical spacing* between gropus of entries beginning with the same
letter. Then, I did also [before={}], but then the space between entry
groups is actually *smaller* than the usual interline space (confirmed
by doing \showgrid).  What should I do to prevent this from happening?

Regards,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University
___
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] Two questions about registers

2013-06-02 Thread Marcin Borkowski
Dnia 2013-06-02, o godz. 19:46:52
Marcin Borkowski mb...@wmi.amu.edu.pl napisał(a):

 Hi list,
 
 I have two questions regarding registers.
 
 1. How to change the title of the register (placed by
 \completeregister) and its numbering style?  (Assume that e.g. I want
 it to be an unnumbered section and not a numbered chapter.)

OK, I've just found out about \setupheadtext[register={...}], but the
rest of my problems are still unsolved for me.

 2. I'd like my register not to have the headers with subsequent
 letters of the alphabet.  I did [indicator=no] in \setupregister, but
 still got the *vertical spacing* between gropus of entries beginning
 with the same letter. Then, I did also [before={}], but then the
 space between entry groups is actually *smaller* than the usual
 interline space (confirmed by doing \showgrid).  What should I do to
 prevent this from happening?
 
 Regards,
 



-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University
___
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] Two questions about registers

2013-06-02 Thread Marcin Borkowski
Dnia 2013-06-02, o godz. 19:51:54
Marcin Borkowski mb...@wmi.amu.edu.pl napisał(a):

 Dnia 2013-06-02, o godz. 19:46:52
 Marcin Borkowski mb...@wmi.amu.edu.pl napisał(a):
 
  Hi list,
  
  I have two questions regarding registers.
  
  1. How to change the title of the register (placed by
  \completeregister) and its numbering style?  (Assume that e.g. I
  want it to be an unnumbered section and not a numbered chapter.)
 
 OK, I've just found out about \setupheadtext[register={...}], but the
 rest of my problems are still unsolved for me.
 
  2. I'd like my register not to have the headers with subsequent
  letters of the alphabet.  I did [indicator=no] in \setupregister,
  but still got the *vertical spacing* between gropus of entries
  beginning with the same letter. Then, I did also [before={}], but
  then the space between entry groups is actually *smaller* than the
  usual interline space (confirmed by doing \showgrid).  What should
  I do to prevent this from happening?

Me again: seems it was an ID10T error, the problem was insufficient
magnification in the pdf viewer.  Solution wikified under Registers.

The problem with head style of the title of the register is still
unsolved, though not critical - I can use \placeregister and supply the
title myself.

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University
___
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] Two questions about registers

2013-06-02 Thread Wolfgang Schuster

Am 02.06.2013 um 19:46 schrieb Marcin Borkowski mb...@wmi.amu.edu.pl:

 Hi list,
 
 I have two questions regarding registers.
 
 1. How to change the title of the register (placed by
 \completeregister) and its numbering style?  (Assume that e.g. I want
 it to be an unnumbered section and not a numbered chapter.)

When you use one of the \complete… (content, synonyms etc.) commands
context uses either \chapter or \title to place the heading for the register,
in addition it creates a reference to the register which has the name
of the register, e.g. “content” or “index”.

In cases where this heading type isn’t sufficient you can use \title
(or any other heading) in combination with \place…, the disadvantage
of this method is that you loose the multilingual labels (not really
a problem) but you can access the texts with \headtext{…},
e.g. \headtext{content} or \headtext{index}


 2. I'd like my register not to have the headers with subsequent letters
 of the alphabet.  I did [indicator=no] in \setupregister, but still got
 the *vertical spacing* between gropus of entries beginning with the same
 letter. Then, I did also [before={}], but then the space between entry
 groups is actually *smaller* than the usual interline space (confirmed
 by doing \showgrid).  What should I do to prevent this from happening?

Can you provide a example for this?

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] Two questions about registers

2013-06-02 Thread Marcin Borkowski
Dnia 2013-06-02, o godz. 20:46:12
Wolfgang Schuster schuster.wolfg...@gmail.com napisał(a):

 
 Am 02.06.2013 um 19:46 schrieb Marcin Borkowski
 mb...@wmi.amu.edu.pl:
 
  Hi list,
  
  I have two questions regarding registers.
  
  1. How to change the title of the register (placed by
  \completeregister) and its numbering style?  (Assume that e.g. I
  want it to be an unnumbered section and not a numbered chapter.)
 
 When you use one of the \complete… (content, synonyms etc.) commands
 context uses either \chapter or \title to place the heading for the
 register, in addition it creates a reference to the register which
 has the name of the register, e.g. “content” or “index”.

Just curiosity: when \chapter and when \title?

 In cases where this heading type isn’t sufficient you can use \title
 (or any other heading) in combination with \place…, the disadvantage
 of this method is that you loose the multilingual labels (not really
 a problem) but you can access the texts with \headtext{…},
 e.g. \headtext{content} or \headtext{index}

By multilingual labels, you mean the texts like Index, Contents
etc., right?

  2. I'd like my register not to have the headers with subsequent
  letters of the alphabet.  I did [indicator=no] in \setupregister,
  but still got the *vertical spacing* between gropus of entries
  beginning with the same letter. Then, I did also [before={}], but
  then the space between entry groups is actually *smaller* than the
  usual interline space (confirmed by doing \showgrid).  What should
  I do to prevent this from happening?
 
 Can you provide a example for this?

See my other email.  Tl;dr: I was wrong, everything is fine.

 Wolfgang

Thanks,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University
___
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] Minimals ignores structureblockenvironment for frontmatter etc.

2011-03-20 Thread Wolfgang Schuster

Am 20.03.2011 um 16:46 schrieb Tom:

 Thank you, Wolfgang. Your table is most helpful. This can probably be found
 in the documentation but not where I looked. This probably relates to the
 recent discussion regarding manuals for novices.
 
 My observation is that \completecontent and \completeindex are treated like
 chapter starts in that 'Contents' and 'Index' are formatted as if they were
 chapter titles.

\completecontent== \title   + \placecontent
\completelist   == \title   + \placelist
\completelistofsynonyms == \chapter + \placelistofsynonyms + \page
\completeregister   == \chapter + \placeregister   + \page
\completepublications   == \chapter + \placepublications

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] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
OK, it's been a fun day's work, but here's the current working version of 
the context.cwl file.

What it does include:
* all the commands with all the fields mentioned on texshow.contextgarden.net
* the rest of the commands that I used from the list Idris sent me are 
currently commented out, until I find out they're valid (although not on 
texshow)
* all the fields have short descriptions
* all the \start* commands end with appropriate \stop* commands
* some of the fields (where it was simple to do it) use a '|' character as a 
separator inside fields

What it does not include:
* a syntax completely as Kile's README.cwl would want to have (especially 
because of my misuse of \start* \stop* in the same command and Mojca's 
separator suggestion)
* a completely coherent and Kile-valid syntax is still missing, although as 
it is, the file is usable
* some commands are commented out, as mentioned above

Installation:
copy or link the file to /usr/share/apps/kile/complete/tex/ (or the 
appropriate kile/complete/tex/ directory) and add context.cwl in Kile's 
settings under Kile-Complete-TeX/LaTeX

I hope anyone finds it useful and that I manage to get it working 
perfectly/validly soon.


Cheers,
Matija

-- 
gsm: +386 41 849 552
e-mail: [EMAIL PROTECTED]
www: http://matija.suklje.name

aim: hookofsilver
icq: 110183360
jabber/g-talk: [EMAIL PROTECTED]
msn: [EMAIL PROTECTED]
yahoo: matija_suklje
# ConTeXt commands
# Matija silverhook Šuklje, 02. Jan. 2008 — [EMAIL PROTECTED]
# URL: todo

\about{text}[reference]
\adaptlayout[number][dimensions]
\adding[size]
# \aftersplitstring
# \and
\appendix[references]{text}
# \appendtoks
# \AR
\arg{text}
\at{text}{text}[reference]
\atpage[reference]
\background
# \bbox
# \beforesplitstring
# \begstrut
\blackrule[settings]
\blackrules[settings]
\blank[size]
# \blockquote
\bookmark[name]{text}
# \bTABLE
# \bTABLEbody
# \bTABLEfoot
# \bTABLEhead
# \bTABLEnext
# \bTD
# \bTH
# \bTR
\but[reference]
\button[settings]{text}[references]
\bypassblocks[names][names]
\CAP{text}
\Cap{text}
\cap{text}
\Caps{text}
\chapter[references]{text}
\Character{text}
\character{text}
\Characters{text}
\characters{text}
\chem{text}{text}{text}
\clip[settings]{text}
\clonefield[name][names][name][names]
\color[text{text}
\column
# \commalistelement
\comment[name][settings]{text}
\comparecolorgroup[name]
\comparepalet[name]
\completecombinedlist[name][settings]
\completelistoffloats
\completelistofsorts
\completelistofsynonyms
\completeregister[settings]
# \component
# \ConTeXt
# \Context
# \convertargument
# \convertcommand
\convertnumber{text}{text}
\copyfield[name][names]
\correctwhitespace{text}
# \countXMLchildren
\coupledocument[name][file][name]
\coupledregister[text]{text}
\couplemarking[name][name]
\couplepage[names][options]
\couplepaper[name]
\coupleregister[name]
\crlf
\currentdate[syntax]
\currentheadnumber
\date[date][syntax]
\decouplemarking[name]
# \decrement
\define[number]\command{text}
\defineblank[name][settings]
\defineblock[name]
\definebodyfont[font size][type][files]
\definebodyfontenvironment[font size][dimensions]
\definebuffer[name]
# \definecollector
\definecolor[name]{colour values}
\definecolorgroup[name][colour model][colour values]
\definecombinedlist[name][list][settings]
\defineconversion[name][command]
\definedescription[name][settings]
# \definedfont
\defineenumeration[names][name][settings]
# \defineexternalfigure
\definefield[reference][widget type][setup name][names][initial content]
\definefieldstack[name][names][settings]
\definefiguresymbol[name][text][settings]
\definefloat[singular][plural]
\definefont[name][file]
# \definefontsynonym
\defineframed[name][settings]
# \defineframedcontent
\defineframedtext[name][settings]
\definehead[name][section]
# \definehspace
\defineindenting[name][settings]
\defineinteractionmenu[position|names][options and settings]
\defineinteractionmenu[position|name][position|name][settings]
\definelabel[name][text and options]
# \definelayer
# \definelayerpreset
# \definelayout
\definelist[name][name][settings]
\definelogo[name][position][position][command][state]
# \definemainfield
\definemakeup[name][settings]
\definemarking[name][name]
# \definemeasure
# \defineoutput[name][specials]
\defineoverlay[names][command]
# \definepagebreak
\definepalet[name][name]
\definepapersize[name][dimenstions]
\defineparagraphs[name][options and settings]
\defineprofile[names][names]
\defineprogram[name][text][text]
# \definepushbutton
# \definepushsymbol
\definerawfont[name][file][settings]
\definereference[name][references]
\definereferenceformat[name][options]
\definereferencelist[name][settings]
\defineregister[singular][plural]
\definerule[name][settings]
\definesection[name]
\definesectionblock[name][settings]
\definesorting[singular][plural][command]
\definestartstop[name][commands]
\definesubfield[name][name][names]
\definesymbol[name][text]
\definesynonyms[singular][plural][command][command]
\definetabletemplate[name][text][text][text

Re: [NTG-context] how to change 'figure 1.1' to '?? 1.1'

2007-12-11 Thread Wolfgang Schuster
2007/12/11, Dalyoung Jeong [EMAIL PROTECTED]:
 I am sorry that there is a mistake in the previous mail that I sent.

 On Dec 11, 2007, at 9:51 AM, Jeong Dalyoung wrote:
  methods give me more choices.
  Then the \completecontent and \completeindex follows the above setup
  of chapters.
 
  My question was how to make the head title setup of contents and of
  indices free from the chapter setup?
 
  Now, I find that  the prefix{(a character) (chapter no) (a
  character)} can be suppressed using prefix=no parameter in
  \setupcombinedlist for contents and indices.

 I may do a wrong test for this.
 Without the prefix=no, \comletecontent has no prefix. But
 \completeindex has chapter no and it is not suppressed even the
 commnad \setuplist[index][prefix=no].

 I am sorry to list wrong result.

 Thank you for reading,

 Best regards,

 Dalyoung

Hi,

the difference between completecontent and completeregister is,
that the first use \title to place the header and the second use \chapter
to place the title and produce therefore a heading number.

You can now use ConTeXt's document structure and place completecontent
between \start/\stopbackmatter or you can use \title in combination
\placeindex, this produce a index without a header.

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
___


[NTG-context] 2UP arranging spoils the table of contents and index

2007-09-20 Thread Liesbeth van der Plas
Dear context group members,



The 2UP arranging  spoils the table of contents and the index. Deleting the
second rule gives a content and index, including the second rule gives only
the titels 'content' and 'index'.

\setuppapersize[A5][A4]

\setuparranging[2UP,rotated,doublesided]



\starttext

\completecontent

\chapter{hfdst 1}Dit is een verhaaltje.\index{verhaaltje}

\chapter{hfdst 2}

\chapter{hfdst 3}

\chapter{hfdst 4}

\completeregister[index]

\stoptext


-- 
[EMAIL PROTECTED]
www.wiskunde-interactief.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] 2UP arranging spoils the table of contents and index

2007-09-20 Thread Thomas A. Schmitz

On Sep 20, 2007, at 8:29 AM, Liesbeth van der Plas wrote:

 Dear context group members,

 The 2UP arranging  spoils the table of contents and the index.  
 Deleting the second rule gives a content and index, including the  
 second rule gives only the titels 'content' and 'index'.

 \setuppapersize[A5][A4]
 \setuparranging[2UP,rotated,doublesided]

 \starttext
 \completecontent
 \chapter{hfdst 1}Dit is een verhaaltje.\index{verhaaltje}
 \chapter{hfdst 2}
 \chapter{hfdst 3}
 \chapter{hfdst 4}
 \completeregister[index]
 \stoptext


http://archive.contextgarden.net/message/ 
20070225.172829.92f7ff0f.en.html

http://archive.contextgarden.net/message/ 
20070421.062216.52756c79.en.html

http://archive.contextgarden.net/message/ 
20061128.210755.994f08ac.en.html

http://archive.contextgarden.net/message/ 
20070622.065115.ee898867.en.html

Thomas
___
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] \placelist is influensed by \completeregister ??

2005-08-01 Thread Vit Zyka

Taco Hoekwater wrote:

Vit Zyka wrote:


Dear Hans, Taco, ...

I noticed strange behaviour. When I use \completeregister lists I have 
defined are ignored:



Your post is a specific example of a more generic truth:

  new lists are by default influenced by the sectioning commands

The solution is to disable that influence, like so:

  \definelist[somelist][criterium=all]

Otherwise you get only the entries defined within the 'Letter'
section, and (in this case) there are none.


Ahhh, now I understand parameter criterium. Thank you Taco for 
explanation. I added some notes/example about to texshow/setuplist.


vit
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \placelist is influensed by \completeregister ??

2005-07-30 Thread Taco Hoekwater

Vit Zyka wrote:

Dear Hans, Taco, ...

I noticed strange behaviour. When I use \completeregister lists I have 
defined are ignored:


Your post is a specific example of a more generic truth:

  new lists are by default influenced by the sectioning commands

The solution is to disable that influence, like so:

  \definelist[somelist][criterium=all]

Otherwise you get only the entries defined within the 'Letter'
section, and (in this case) there are none.

Cheers, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \placelist is influensed by \completeregister ??

2005-07-29 Thread Vit Zyka

Dear Hans, Taco, ...

I noticed strange behaviour. When I use \completeregister lists I have 
defined are ignored:


--
\defineregister[letter][letters]
\definelist[somelist]

\starttext
  Hello! \letter{Letter S}
  \writetolist[somelist]{List entry, part A}{List entry, part B}
  %\placeregister[letter]
  \completeregister[letter]
  \placelist[somelist]
\stoptext
-
I discovered that the source of the bug is probably \headtext the line
\expanded{\systemsuppliedchapter[\currentregister]{\noexpand\headtext{\currentregister}}}%

in the \completeregister definition. Please can somebody have a look on it?
vit

--
\unprotect
\def\docompleteregister[#1][#2]%
  {\iffirstargument
 \begingroup
 \edef\currentregister{#1}%
 % the expansion is needed because we don't want \v!'s in the tuo 
file (french)
% 
\expanded{\systemsuppliedchapter[\currentregister]{\noexpand\headtext{\currentregister}}}%

 \placeregister[\currentregister][#2]%
 \page[\v!yes]%
 \endgroup
   \fi}
\protect


--
===
Ing. Vít Zýka, Ph.D. TYPOkvítek

database publishing  databazove publikovani
data maintaining and typesetting in typographic quality
priprava dat a jejich sazba v typograficke kvalite

tel.: (+420) 777 198 189 www: http://typokvitek.com
===

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context