Re: [NTG-context] The appendices envrionment and title in toc

2011-04-22 Thread Reviczky, Adam
 Set the labels with the “en” tag:
 
 \setuplabeltext[en] [chapter=Chapter ]
 \setuplabeltext[en][appendix=Appendix ]

Excellent, thanks.

My last question about labels:
If I don't use setuplist, then I have labels in the document and no labels in 
the toc.
How can I achieve the opposite, means labels in the toc (like: Chapter 1, 
Appendix A, ...) but only the numbers in the document (like: 1 Chaptertitle, A 
Appendixtitle, ...)

Adam
___
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] The appendices envrionment and title in toc

2011-04-22 Thread Wolfgang Schuster

Am 22.04.2011 um 08:54 schrieb Reviczky, Adam:

 My last question about labels:
 If I don't use setuplist, then I have labels in the document and no labels in 
 the toc.
 How can I achieve the opposite, means labels in the toc (like: Chapter 1, 
 Appendix A, ...) but only the numbers in the document (like: 1 Chaptertitle, 
 A Appendixtitle, ...)


\setuplist[chapter] [label=yes]
\setuplist[appendix][label=yes]
...

\setuphead[chapter] [bodypartlabel=]
\setuphead[appendix][appendixlabel=]
...

The names of the keys are

- frontpartlabel,
- bodypartlabel,
- appendixlabel and
- backpartlabel

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] The appendices envrionment and title in toc

2011-04-22 Thread Reviczky, Adam
 The names of the keys are
 
 - frontpartlabel,
 - bodypartlabel,
 - appendixlabel and
 - backpartlabel
Appreciate!

I've added this to the wiki, because I had a look at it earlier on but didn't 
find anything regarding the labels in setuphead.

Adam
___
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] The appendices envrionment and title in toc

2011-04-22 Thread Wolfgang Schuster

Am 22.04.2011 um 16:36 schrieb Reviczky, Adam:

 I've added this to the wiki, because I had a look at it earlier on but didn't 
 find anything regarding the labels in setuphead.

With the next beta you can the correct labeltexts in the TOC without the need 
of an extra command like \appendix.

You can control the behavior with label key from \setuplist, the valid 
arguments are:

- no: use the argument of the starter and stopper keys but don’t print 
labels
- EMPTY : a empty argument “label=” results in the same output as “label=no”
- none  : don’t print labels and ignore also the starter and stopper keys
- yes   : use the labels from the sectionblock where the heading was used
- NAME  : use a label with the given name

Example:

\setuplabeltext[en] [chapter=Chapter ]
\setuplabeltext[en][appendix=Appendix ]
\setuplabeltext[en] [section=Section ]

\setuplist[chapter][starter=(,stopper=),width=6em]

\starttext

\startfrontmatter

\completecontent[label=no] % default
\completecontent[label=]
\completecontent[label=none]
\completecontent[label=yes]
\completecontent[label=section]
\stopfrontmatter

\startbodymatter
\chapter{Bodypart}
\stopbodymatter

\startappendices
\chapter{Appendix}
\stopappendices

\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] The appendices envrionment and title in toc

2011-04-21 Thread Pontus Lurcock
On Thu 21 Apr 2011, Reviczky, Adam wrote:

 Why does this not work with
 \mainlanguage[uk]
 

Hmm, good point. It seems to work with several \mainlanguage settings
I've tried: en, fr, nl, sv, fi, cs, ru, de. But it fails for uk and
en-gb.

Pont
___
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] The appendices envrionment and title in toc

2011-04-21 Thread Pontus Lurcock
On Thu 21 Apr 2011, Pontus Lurcock wrote:

 On Thu 21 Apr 2011, Reviczky, Adam wrote:
 
  Why does this not work with
  \mainlanguage[uk]
  
 
 Hmm, good point. It seems to work with several \mainlanguage settings
 I've tried: en, fr, nl, sv, fi, cs, ru, de. But it fails for uk and
 en-gb.

I think I've got somewhere with this: Wolfgang's workaround seems to
fail when used with a language that has a ‘default’ parameter in the
\installlanguage command (see lang-def.mkiv). So en and de are fine,
but en-us, en-gb, de-at, de-ch etc. fail. My workaround was simply
to define a custom language from scratch without using ‘default’:

\installlanguage
  [mylang]
  [spacing=broad,
   leftsentence=---,
   rightsentence=---,
   leftsubsentence=---,
   rightsubsentence=---,
   leftquote=\upperleftsinglesixquote,
   rightquote=\upperrightsingleninequote,
   leftquotation=\upperleftdoublesixquote,
   rightquotation=\upperrightdoubleninequote,
   date={day,\ ,month,\ ,year},
   patterns=gb,
   lefthyphenmin=3,
   righthyphenmin=3]

\mainlanguage[mylang]
\setuplabeltext[chapter=Chapter ]
\setuplabeltext[appendix=Appendix ]

\definehead[appendix][chapter]

\setuphead[appendix][appendixlabel=appendix]

\setuplist[chapter,appendix][label=yes,width=6em]

\starttext

\startfrontmatter
\title{Contents}
\placelist[chapter,appendix,section,subsection]
\stopfrontmatter

\startbodymatter
\chapter{Bodypart}

\stopbodymatter

\startappendices
\appendix{Appendix}
\stopappendices

\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] The appendices envrionment and title in toc

2011-04-21 Thread Wolfgang Schuster

Am 21.04.2011 um 07:02 schrieb Reviczky, Adam:

 Why does this not work with
 \mainlanguage[uk]
 
 How can I force this to be shown?

Set the labels with the “en” tag:

\setuplabeltext[en] [chapter=Chapter ]
\setuplabeltext[en][appendix=Appendix ]

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] The appendices envrionment and title in toc

2011-04-20 Thread seasoul
Oh, thanks.

But is there a by-pass to solve it? A thesis without any appenix seems not
that complete.




On Mon, Apr 18, 2011 at 10:04 PM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


 Am 17.04.2011 um 12:57 schrieb seasoul:

  I want to include appendices part in MKIV. The appendices should prefixed
 by Appendix, like Appendix A, Appendix B.
 
  I use
  \setuplabeltext [appendix=Appendix ]
  \startappendices
  \component chapters/appen-01
  \stopappendices
 
  appen-01.tex is the appendix file. The appendix part tile is correct, but
 in the toc, the title is something like Chapter A.
 
  How to solve this problem?

 It has to be fixed by Hans. ConTeXt looks only for the label of the current
 heading (e.g. chapter) and not for the label which is set for a certain
 sectionblock (e.g. “chapter” for the bodypart and “appendix” for the
 appendices).

 I wrote a minimal which can be used to see the problem and to test for the
 correct result once the thing is resolved.

 \setuplabeltext [chapter=Chapter ]
 \setuplabeltext[appendix=Appendix ]

 \setuplist[chapter][label=yes,width=5em]

 \starttext

 \startfrontmatter
 \completecontent
 \stopfrontmatter

 \startbodymatter
 \chapter{Bodypart}
 \stopbodymatter

 \startappendices
 \chapter{Appendix}
 \stopappendices

 \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

 ___




-- 
Yours Sincerely
seasoul
___
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] The appendices envrionment and title in toc

2011-04-20 Thread Wolfgang Schuster

Am 20.04.2011 um 11:10 schrieb seasoul:

 Oh, thanks.
  
 But is there a by-pass to solve it? A thesis without any appenix seems not 
 that complete.

Define a \appendix command.

\setuplabeltext [chapter=Chapter ]
\setuplabeltext[appendix=Appendix ]

\definehead[appendix][chapter]

\setuphead[appendix][appendixlabel=appendix]

\setuplist[chapter,appendix][label=yes,width=6em]

\starttext

\startfrontmatter
\title{Contents}
\placelist[chapter,appendix,section,subsection]
\stopfrontmatter

\startbodymatter
\chapter{Bodypart}
\stopbodymatter

\startappendices
\appendix{Appendix}
\stopappendices

\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] The appendices envrionment and title in toc

2011-04-20 Thread Pontus Lurcock
On Wed 20 Apr 2011, Wolfgang Schuster wrote:

 Am 20.04.2011 um 11:10 schrieb seasoul:
 
  Oh, thanks.
   
  But is there a by-pass to solve it? A thesis without any appenix seems not 
  that complete.
 
 Define a \appendix command.

Thank you. One pleasant thing about this list is that many of my
questions are answered before I get round to asking them.

Pont
___
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] The appendices envrionment and title in toc

2011-04-20 Thread Reviczky, Adam
 It has to be fixed by Hans. ConTeXt looks only for the label of the current 
 heading (e.g. chapter) and not for the label which is set for a  certain 
 sectionblock (e.g. “chapter” for the bodypart and “appendix” for the 
 appendices).
 
 I wrote a minimal which can be used to see the problem and to test for the 
 correct result once the thing is resolved.
 
 \setuplabeltext [chapter=Chapter ]
 \setuplabeltext[appendix=Appendix ]
 
 \setuplist[chapter][label=yes,width=5em]
 
 \starttext
 
 \startfrontmatter
 \completecontent
 \stopfrontmatter
 
 \startbodymatter
 \chapter{Bodypart}
 \stopbodymatter
 
 \startappendices
 \chapter{Appendix}
 \stopappendices
 
 \stoptext
 
 Wolfgang

Why does this not work with
\mainlanguage[uk]

How can I force this to be shown?

Adam
___
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] The appendices envrionment and title in toc

2011-04-18 Thread Wolfgang Schuster

Am 17.04.2011 um 12:57 schrieb seasoul:

 I want to include appendices part in MKIV. The appendices should prefixed by 
 Appendix, like Appendix A, Appendix B.
  
 I use
 \setuplabeltext [appendix=Appendix ]
 \startappendices
 \component chapters/appen-01
 \stopappendices
  
 appen-01.tex is the appendix file. The appendix part tile is correct, but in 
 the toc, the title is something like Chapter A.
  
 How to solve this problem?

It has to be fixed by Hans. ConTeXt looks only for the label of the current 
heading (e.g. chapter) and not for the label which is set for a certain 
sectionblock (e.g. “chapter” for the bodypart and “appendix” for the 
appendices).

I wrote a minimal which can be used to see the problem and to test for the 
correct result once the thing is resolved.

\setuplabeltext [chapter=Chapter ]
\setuplabeltext[appendix=Appendix ]

\setuplist[chapter][label=yes,width=5em]

\starttext

\startfrontmatter
\completecontent
\stopfrontmatter

\startbodymatter
\chapter{Bodypart}
\stopbodymatter

\startappendices
\chapter{Appendix}
\stopappendices

\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] The appendices envrionment and title in toc

2011-04-17 Thread seasoul
I want to include appendices part in MKIV. The appendices should prefixed by
Appendix, like Appendix A, Appendix B.

I use
\setuplabeltext [appendix=Appendix ]
\startappendices

\component chapters/appen-01

\stopappendices



appen-01.tex is the appendix file. The appendix part tile is correct, but in
the toc, the title is something like Chapter A.



How to solve this problem?
___
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
___