ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: The appendices envrionment and title in toc
@ 2011-04-21  5:02 Reviczky, Adam
  2011-04-21  7:12 ` Pontus Lurcock
  2011-04-22  5:24 ` Wolfgang Schuster
  0 siblings, 2 replies; 13+ messages in thread
From: Reviczky, Adam @ 2011-04-21  5:02 UTC (permalink / raw)
  To: ntg-context

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


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: The appendices envrionment and title in toc
  2011-04-21  5:02 The appendices envrionment and title in toc Reviczky, Adam
@ 2011-04-21  7:12 ` Pontus Lurcock
  2011-04-21 22:12   ` Pontus Lurcock
  2011-04-22  5:24 ` Wolfgang Schuster
  1 sibling, 1 reply; 13+ messages in thread
From: Pontus Lurcock @ 2011-04-21  7:12 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: The appendices envrionment and title in toc
  2011-04-21  7:12 ` Pontus Lurcock
@ 2011-04-21 22:12   ` Pontus Lurcock
  0 siblings, 0 replies; 13+ messages in thread
From: Pontus Lurcock @ 2011-04-21 22:12 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: The appendices envrionment and title in toc
  2011-04-21  5:02 The appendices envrionment and title in toc Reviczky, Adam
  2011-04-21  7:12 ` Pontus Lurcock
@ 2011-04-22  5:24 ` Wolfgang Schuster
  1 sibling, 0 replies; 13+ messages in thread
From: Wolfgang Schuster @ 2011-04-22  5:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: The appendices envrionment and title in toc
  2011-04-22 14:36 Reviczky, Adam
@ 2011-04-22 19:35 ` Wolfgang Schuster
  0 siblings, 0 replies; 13+ messages in thread
From: Wolfgang Schuster @ 2011-04-22 19:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: The appendices envrionment and title in toc
@ 2011-04-22 14:36 Reviczky, Adam
  2011-04-22 19:35 ` Wolfgang Schuster
  0 siblings, 1 reply; 13+ messages in thread
From: Reviczky, Adam @ 2011-04-22 14:36 UTC (permalink / raw)
  To: ntg-context

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


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: The appendices envrionment and title in toc
  2011-04-22  6:54 Reviczky, Adam
@ 2011-04-22 13:56 ` Wolfgang Schuster
  0 siblings, 0 replies; 13+ messages in thread
From: Wolfgang Schuster @ 2011-04-22 13:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: The appendices envrionment and title in toc
@ 2011-04-22  6:54 Reviczky, Adam
  2011-04-22 13:56 ` Wolfgang Schuster
  0 siblings, 1 reply; 13+ messages in thread
From: Reviczky, Adam @ 2011-04-22  6:54 UTC (permalink / raw)
  To: ntg-context

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


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: The appendices envrionment and title in toc
  2011-04-20 13:55     ` Wolfgang Schuster
@ 2011-04-21  4:19       ` Pontus Lurcock
  0 siblings, 0 replies; 13+ messages in thread
From: Pontus Lurcock @ 2011-04-21  4:19 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: The appendices envrionment and title in toc
  2011-04-20  9:10   ` seasoul
@ 2011-04-20 13:55     ` Wolfgang Schuster
  2011-04-21  4:19       ` Pontus Lurcock
  0 siblings, 1 reply; 13+ messages in thread
From: Wolfgang Schuster @ 2011-04-20 13:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: The appendices envrionment and title in toc
  2011-04-18 14:04 ` Wolfgang Schuster
@ 2011-04-20  9:10   ` seasoul
  2011-04-20 13:55     ` Wolfgang Schuster
  0 siblings, 1 reply; 13+ messages in thread
From: seasoul @ 2011-04-20  9:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2000 bytes --]

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.wolfgang@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

[-- Attachment #1.2: Type: text/html, Size: 2763 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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

* Re: The appendices envrionment and title in toc
  2011-04-17 10:57 seasoul
@ 2011-04-18 14:04 ` Wolfgang Schuster
  2011-04-20  9:10   ` seasoul
  0 siblings, 1 reply; 13+ messages in thread
From: Wolfgang Schuster @ 2011-04-18 14:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 13+ messages in thread

* The appendices envrionment and title in toc
@ 2011-04-17 10:57 seasoul
  2011-04-18 14:04 ` Wolfgang Schuster
  0 siblings, 1 reply; 13+ messages in thread
From: seasoul @ 2011-04-17 10:57 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 382 bytes --]

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?

[-- Attachment #1.2: Type: text/html, Size: 955 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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

end of thread, other threads:[~2011-04-22 19:35 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-21  5:02 The appendices envrionment and title in toc Reviczky, Adam
2011-04-21  7:12 ` Pontus Lurcock
2011-04-21 22:12   ` Pontus Lurcock
2011-04-22  5:24 ` Wolfgang Schuster
  -- strict thread matches above, loose matches on Subject: below --
2011-04-22 14:36 Reviczky, Adam
2011-04-22 19:35 ` Wolfgang Schuster
2011-04-22  6:54 Reviczky, Adam
2011-04-22 13:56 ` Wolfgang Schuster
2011-04-17 10:57 seasoul
2011-04-18 14:04 ` Wolfgang Schuster
2011-04-20  9:10   ` seasoul
2011-04-20 13:55     ` Wolfgang Schuster
2011-04-21  4:19       ` Pontus Lurcock

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).