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] First and last lines on a grid

2011-04-22 Thread Oliver Buerschaper
>> I just realized that when I use oldstyle figures any pagenumber with a 
>> descender is bumped upwards a little. Is there a way to have them protrude 
>> (vertically) beyond the frame border?
> 
> This should do the trick:
> 
> \define[1]\PagenumberCommand
>  {\smash[d]{#1}}
> 
> \setuppagenumbering
>  [  strut=no,
>   command=\PagenumberCommand]

And how well it does it!

Thanks,
Oliver
___
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] First and last lines on a grid

2011-04-22 Thread Wolfgang Schuster

Am 22.04.2011 um 19:32 schrieb Oliver Buerschaper:

>>> Also I'd like to typeset the page number flush with the lower border of the 
>>> footer frame. How would I achieve that?
>> 
>> \setuppagenumbering[strut=no]
> 
> I just realized that when I use oldstyle figures any pagenumber with a 
> descender is bumped upwards a little. Is there a way to have them protrude 
> (vertically) beyond the frame border?

This should do the trick:

\define[1]\PagenumberCommand
  {\smash[d]{#1}}

\setuppagenumbering
  [  strut=no,
   command=\PagenumberCommand]

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] First and last lines on a grid

2011-04-22 Thread Oliver Buerschaper
>> Also I'd like to typeset the page number flush with the lower border of the 
>> footer frame. How would I achieve that?
> 
> \setuppagenumbering[strut=no]

I just realized that when I use oldstyle figures any pagenumber with a 
descender is bumped upwards a little. Is there a way to have them protrude 
(vertically) beyond the frame border?

Oliver
___
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] First and last lines on a grid

2011-04-22 Thread Oliver Buerschaper
>> Also I'd like to typeset the page number flush with the lower border of the 
>> footer frame. How would I achieve that?
> 
> \setuppagenumbering[strut=no]

That's wonderful!

Any idea about the other thing?

Thanks,
Oliver


___
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] Multiple references

2011-04-22 Thread Hans Hagen

On 21-4-2011 12:34, Florian Wobbe wrote:

Hi,

citing multiple authors with \cite[author1, author2, ...] is no problem but 
referencing multiple figures/sections does not work:
\in{Figures}[fig:one, fig:two]

Is there a way to circumvent repeating successive \in[...]?


no

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] 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] First and last lines on a grid

2011-04-22 Thread Wolfgang Schuster

Am 22.04.2011 um 14:04 schrieb Oliver Buerschaper:

> Also I'd like to typeset the page number flush with the lower border of the 
> footer frame. How would I achieve that?

\setuppagenumbering[strut=no]

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


[NTG-context] First and last lines on a grid

2011-04-22 Thread Oliver Buerschaper
Dear all,

I'm having a little trouble with grids and page layout…

I'm trying to align the first and last line of a page properly with the frame 
of the textblock. That is, I'd like to position the first baseline a certain 
distance below the textblock's upper border (say, the height of a "C" or even 
"É") and the last baseline a certain distance above the textblock's lower 
border (say, the actual depth of a "g").

How would I do that? I tried playing with "\setupinterlinespace", however, its 
options "top" and "bottom" appear to set relative distances. Once I change the 
leading funny things happen… like an empty first line.

Also I'd like to typeset the page number flush with the lower border of the 
footer frame. How would I achieve that?

Please find the source code of my attempt below.

Oliver



---
\definemeasure
[gridwidth]
[\dimexpr\paperwidth/9\relax]
\definemeasure
[gridheight]
[\dimexpr\paperheight/9\relax]

\setuplayout
[grid=yes,
 backspace=\measure{gridwidth},
 width=\dimexpr6\measure{gridwidth}\relax,
 topspace=\measure{gridheight},
 height=\dimexpr7\measure{gridheight}\relax,
 leftmargin=\zeropoint,
 rightmargin=\zeropoint,
 header=\zeropoint,
 footer=\measure{gridheight}]

\setupinterlinespace
[line=\dimexpr\textheight/20\relax]

\setuppagenumbering
[alternative=doublesided,
 location={footer,right}]


\starttext


\showframe
\showgrid

É
\dorecurse{10}{\input zapf\par}


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