Re: [NTG-context] Troubles with paragraph width in tabulate

2012-04-02 Thread Hans Hagen

On 1-4-2012 22:42, Willi Egger wrote:

Hi,

I think there is a bug in the tabulate environment. When setting two columns 
with the p template without giving a width, all is well. However is I set the 
paragraph width to a specific value things go wrong. Please refer to the small 
example thereunder:

\starttext

\starttabulate[|p|p|]
\NC first \NC \input ward \NC\NR
\NC \input ward \NC second \NC\NR
\stoptabulate

\starttabulate[|p(3cm)|p(5cm)|]
\NC first \NC \input ward \NC\NR
\NC \input ward \NC second \NC\NR
\stoptabulate


weird indeed


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


[NTG-context] index for Japanese alphabet

2012-04-02 Thread S Barmeier
Hi,

I would like to include an index with Japanese terms, ordered according
to the Japanese alphabet.

I can say \index[kanji]{漢字} for an entry under K. For my Japanese
index I imagine \index[かんじ]{漢字} to place an entry under か. Is
something like this possible?

The Japanese alphabet fits (almost) into a 5x10 table. Depending on the
size of the index, it is customary to order an index either by column
only (for a smaller index) or by table entry (top-to-bottom,
right-to-left). I'd be happy with either, although the smaller one will
probably suffice for my purposes...

Any help on how to implement this?

Many thanks, as always,
Severin
___
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] \em after font fallbacks

2012-04-02 Thread S Barmeier
My main font is Japanese and I'm falling back on a different font for
Latin characters.

The \it switch works fine, but \em renders the Japanese font (e.g. page
numbers in the index). Is there a way to have \em use the italic (of the
fallback font)?

Thanks,
Severin
___
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] Page numbering in latest beta

2012-04-02 Thread Steffen Fritzsche
Hi,

thanks for these suggestions. I now use the following settings:

\definefont[HeaderFont][Sans at 10pt]
\setupheader[style=HeaderFont]
\setupheadertexts [section][pagenumber][pagenumber][chapter]
\setuppagenumbering [alternative=doublesided, location=, style=sansbold]

\startsectionblockenvironment[frontpart]
 \setupuserpagenumber[numberconversion=romannumerals, way=byblock]
\stopsectionblockenvironment

\startsectionblockenvironment[bodypart]
 \setupuserpagenumber[numberconversion=numbers]
 \setuppagenumber[number=1]
\stopsectionblockenvironment

\startsectionblockenvironment[backpart]
 \setupuserpagenumber[numberconversion=numbers]
\stopsectionblockenvironment

\startsectionblockenvironment[appendix]
 \setupuserpagenumber[numberconversion=numbers]
\stopsectionblockenvironment

which give me a frontpart with roman numerals starting with i, and a bodypart 
starting with 1. The pagenumber for the backpart and appendix is continued. 
This is not the case if I make way=byblock a default setting. Thanks again!

Steffen


Am 30.03.2012 um 20:06 schrieb Hans Hagen:

 On 30-3-2012 18:41, Steffen Fritzsche wrote:
 Hi Hans,
 
 I just ran my update script again, the issue still exists. Last update 
 before was this morning around 10 a.m. CEST.
 
 Any ideas or suggestions?
 
 The old numbering code had a side effect. Every time one changes settings the 
 state of the counters needs to be synchronized and in fact a reset happened. 
 Now, normally this is no big deal, as one sets up things at the beginning of 
 a document. However, when mid document one wants to change the style, this 
 reset becomes annoying. (The linenote bug reported a few days ago was a side 
 effect of this.)
 
 So, now we don't reset any longer unless the 'start' key's value differs. As 
 a consequence one needs to be explicit in some cases, like yours. By default, 
 we number per text (we could change that if needed) but in the past the 
 \setupuserpagenumber triggers a synchronization of the counter and therefore 
 reset the number, so that obscured the fact. Now, you just need to set the 
 'way':
 
 \starttext
 
 \setupuserpagenumber[way=byblock] % can be default  yes/no?
 
 \setuppagenumbering [alternative=doublesided, partnumber=no, location=, 
 style={\ss\bold}]
 \setupheadertexts [section][pagenumber][pagenumber][chapter]
 \setupheader [before={\ss\switchtobodyfont[10pt]}]
 
 \startsectionblockenvironment[frontpart]
\setupuserpagenumber[numberconversion=romannumerals]
 \stopsectionblockenvironment
 
 \startsectionblockenvironment[bodypart]
\setuppagenumber[number=1]
 \stopsectionblockenvironment
 
 \startsectionblockenvironment[backpart]
\setupuserpagenumber[numberconversion=numbers]
 \stopsectionblockenvironment
 
 \startsectionblockenvironment[appendix]
\setupuserpagenumber[numberconversion=numbers]
 \stopsectionblockenvironment
 
 \startfrontmatter test \stopfrontmatter
 \startbodymatter  test \stopbodymatter
 \startappendices  test \stopappendices
 \startbackmatter  test \stopbackmatter
 
 \stoptext
 
 
 -
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
 -
 



smime.p7s
Description: S/MIME cryptographic signature
___
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] footnotes

2012-04-02 Thread Steffen Fritzsche
Hi Thomas,

this is what I use with the latest beta:

\setupnotation[footnote][
  alternative=,
  width=2.5em, 
  numbercommand={\setupinterlinespace[line=14pt]\ss\normal},
  style={\setupinterlinespace[line=14pt]}]

Maybe this comes close to what you try to achieve at least it should be 
possible to adjust this command to your needs.

Steffen



Am 01.04.2012 um 23:03 schrieb Thomas A. Schmitz:

 hi all,
 
 would a kind soul please enlighten me about the new footnote commands? I 
 can't find a way to achieve what I was able to achieve in older versions. The 
 following code is on the wiki. It is supposed to give us the footnote marker 
 aligned with the text area, then some blank space, then the footnote text:
 
 \definepapersize[wiki][width=8cm,height=8cm]
 
 \setuppapersize[wiki][wiki]
 
 \starttext
 
 \showframe
 
 \setupnote[footnote][margindistance=0em,command=\myfootnotecommand]
 \setupnotation[footnote][location=left,hang=1]
 
 \def\myfootnotecommand#1{\hbox to 1.5em{#1.}}
 
 test \footnote{test}
 
 \stoptext
 
 It doesn't work with the current beta, and I' completely lost about
 \setupnote[footnote]
 \setupnotation[footnote]
 \setupfootnotes
 
 What is doing what now?
 
 Thanks!
 
 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  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
 



smime.p7s
Description: S/MIME cryptographic signature
___
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] TABLE not splitting across page boundary

2012-04-02 Thread Hans Hagen

On 2-4-2012 07:41, Kip Warner wrote:

Hey list,

I am having difficulty getting my table to split across page boundaries.
It doesn't have, nor need, headers, but just individual unrelated rows.
Here is a minimal illustrating the problem I am having:

\starttext
Here is some text.
\placetable[force,nonumber,right]{}


\placetable[force,nonumber,right,split]



-
  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] footnotes

2012-04-02 Thread Thomas A. Schmitz

On 4/2/12 12:26 PM, Steffen Fritzsche wrote:

Hi Thomas,

this is what I use with the latest beta:

\setupnotation[footnote][
   alternative=,
   width=2.5em,
   numbercommand={\setupinterlinespace[line=14pt]\ss\normal},
   style={\setupinterlinespace[line=14pt]}]

Maybe this comes close to what you try to achieve at least it should be 
possible to adjust this command to your needs.

Steffen


Hi Steffen,

it is a first step, thank you. But the main point is the hanging 
indentation, and I still can't find a way to achieve this...


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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Troubles with paragraph width in tabulate

2012-04-02 Thread Hans Hagen

On 1-4-2012 22:42, Willi Egger wrote:

Hi,

I think there is a bug in the tabulate environment. When setting two columns 
with the p template without giving a width, all is well. However is I set the 
paragraph width to a specific value things go wrong. Please refer to the small 
example thereunder:

\starttext

\starttabulate[|p|p|]
\NC first \NC \input ward \NC\NR
\NC \input ward \NC second \NC\NR
\stoptabulate

\starttabulate[|p(3cm)|p(5cm)|]
\NC first \NC \input ward \NC\NR
\NC \input ward \NC second \NC\NR
\stoptabulate

\stoptext


I'm uploading a new beta.


-
  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] \em after font fallbacks

2012-04-02 Thread Wolfgang Schuster

Am 02.04.2012 um 11:37 schrieb S Barmeier:

 My main font is Japanese and I'm falling back on a different font for
 Latin characters.
 
 The \it switch works fine, but \em renders the Japanese font (e.g. page
 numbers in the index). Is there a way to have \em use the italic (of the
 fallback font)?

\em uses the slanted font but you change this with the following setup:

\setupbodyfontenvironment[default][em=italic]

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] \em after font fallbacks

2012-04-02 Thread S Barmeier
On 04/02/2012 09:18 PM, Wolfgang Schuster wrote:
 
 Am 02.04.2012 um 11:37 schrieb S Barmeier:
 
 My main font is Japanese and I'm falling back on a different font for
 Latin characters.

 The \it switch works fine, but \em renders the Japanese font (e.g. page
 numbers in the index). Is there a way to have \em use the italic (of the
 fallback font)?
 
 \em uses the slanted font but you change this with the following setup:
 
 \setupbodyfontenvironment[default][em=italic]
 
 Wolfgang

This works for \em in the text, but the page numbers in the index still
don't use the font fallback...

What switch is used for them? They resembled italics when I was loading
fonts with the simplefonts module.

Severin
___
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] \em after font fallbacks

2012-04-02 Thread Wolfgang Schuster

Am 02.04.2012 um 15:10 schrieb S Barmeier:

 On 04/02/2012 09:18 PM, Wolfgang Schuster wrote:
 
 Am 02.04.2012 um 11:37 schrieb S Barmeier:
 
 My main font is Japanese and I'm falling back on a different font for
 Latin characters.
 
 The \it switch works fine, but \em renders the Japanese font (e.g. page
 numbers in the index). Is there a way to have \em use the italic (of the
 fallback font)?
 
 \em uses the slanted font but you change this with the following setup:
 
 \setupbodyfontenvironment[default][em=italic]
 
 Wolfgang
 
 This works for \em in the text, but the page numbers in the index still
 don't use the font fallback...
 
 What switch is used for them? They resembled italics when I was loading
 fonts with the simplefonts module.

The page number also use the slanted font but most fonts provide only italic
which is then also used for slanted. You change the style of the number with

  \setupregister[index][pagestyle=italic]

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] \setuppagenumber

2012-04-02 Thread Alan Bowen
Thanks, Wolfgang. \resetpageumber is the key. I will use the section blocks
approach in my next project.

Alan

On Sun, Apr 1, 2012 at 11:34 PM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


 Am 02.04.2012 um 00:02 schrieb Alan Bowen:

  I have a product file
 
  \startproduct prd_Aestimatio_vol-09
  %prelims
  \setuppagenumber[numberconversion=romannumerals]
  \setuppagenumber[number=1]
  \setupfootnotes[conversion=numbers]
 
  \component c_A
  \component c_B
  \component c_C
  ...
  %text
  \setuppagenumber[numberconversion=numbers]
  \setuppagenumber[number=1]

 \resetpagenumber

 or use section blocks (frontpart, bodypart etc.) with block wise numbering.

 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

 ___

___
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] Figures alignment on grid

2012-04-02 Thread Hans Hagen

On 28-3-2012 20:13, Honza Hejzl wrote:

Hello ConTeXists,

My questions are still without any response. I am not sure why, maybe
they are not clearly explained.

I have found two problems about figures:

1) It is impossible to achieve proper text wrapping around figure when the
GRID is ON. I have tried more suggestions (see my source).


fixed in next beta

--

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


[NTG-context] why is \getnumber an undefined control sequence?

2012-04-02 Thread Thomas A. Schmitz

Hi all,

what's wrong with this code?

\definenumber [testnumber] [way=bytext,prefix=no]

\starttext

\incrementnumber[testnumber]

A \getnumber[testnumber]

\stoptext

Works with older betas, craps out with latest.

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] why is \getnumber an undefined control sequence?

2012-04-02 Thread Hans Hagen

On 2-4-2012 16:46, Thomas A. Schmitz wrote:

Hi all,

what's wrong with this code?

\definenumber [testnumber] [way=bytext,prefix=no]

\starttext

\incrementnumber[testnumber]

A \getnumber[testnumber]

\stoptext

Works with older betas, craps out with latest.


they were already for a while synonyms ... recently all 
'structurecounter' names became 'counter' (the structure was a 
transition addition in order to have old and new code alongside)


in the process we got rid of the 'number' synonyms

so, just replace number by counter

-
  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] why is \getnumber an undefined control sequence?

2012-04-02 Thread Thomas A. Schmitz

On 04/02/2012 04:56 PM, Hans Hagen wrote:

they were already for a while synonyms ... recently all
'structurecounter' names became 'counter' (the structure was a
transition addition in order to have old and new code alongside)

in the process we got rid of the 'number' synonyms

so, just replace number by counter


you mean, as in

\definecounter [testnumber] [way=bytext,prefix=no]

\starttext

\incrementcounter[testnumber]

A \getcounter[testnumber]

\stoptext

That gives

! Undefined control sequence.

...

l.9 A \getcounter
 [testnumber]

Did you maybe miss a file when you uploaded?

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] why is \getnumber an undefined control sequence?

2012-04-02 Thread Wolfgang Schuster

Am 02.04.2012 um 16:56 schrieb Hans Hagen:

 On 2-4-2012 16:46, Thomas A. Schmitz wrote:
 Hi all,
 
 what's wrong with this code?
 
 \definenumber [testnumber] [way=bytext,prefix=no]
 
 \starttext
 
 \incrementnumber[testnumber]
 
 A \getnumber[testnumber]
 
 \stoptext
 
 Works with older betas, craps out with latest.
 
 they were already for a while synonyms ... recently all 'structurecounter' 
 names became 'counter' (the structure was a transition addition in order to 
 have old and new code alongside)
 
 in the process we got rid of the 'number' synonyms
 
 so, just replace number by counter

The problem are these two synonyms:

\let \getnumber \getcounter   % [name]
\let \convertednumber   \getcounter   % [name]

There is a \convertedcounter but no \getcounter.

@Thomas: You can \rawcounter to print only the numeric value of the counter or 
\convertedcounter for a formatted form of the counter (you can apply a 
conversion, e.g. romannumerals or add a prefix, e.g. the current chapter or 
section number).

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] why is \getnumber an undefined control sequence?

2012-04-02 Thread Thomas A. Schmitz

On 04/02/2012 05:15 PM, Wolfgang Schuster wrote:

The problem are these two synonyms:

\let \getnumber \getcounter   % [name]
\let \convertednumber   \getcounter   % [name]

There is a \convertedcounter but no \getcounter.

@Thomas: You can \rawcounter to print only the numeric value of the counter or 
\convertedcounter for a formatted form of the counter (you can apply a 
conversion, e.g. romannumerals or add a prefix, e.g. the current chapter or 
section number).

Wolfgang


Ah, thank you Wolfgang! \rawcounter is sufficient for me in my real-life 
case, but I assume you will want to add \getcounter? (And are the number 
synonyms here to stay, or will they be deleted?)


All best

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] why is \getnumber an undefined control sequence?

2012-04-02 Thread Hans Hagen

On 2-4-2012 17:20, Thomas A. Schmitz wrote:

On 04/02/2012 05:15 PM, Wolfgang Schuster wrote:

The problem are these two synonyms:

\let \getnumber \getcounter % [name]
\let \convertednumber \getcounter % [name]

There is a \convertedcounter but no \getcounter.

@Thomas: You can \rawcounter to print only the numeric value of the
counter or \convertedcounter for a formatted form of the counter (you
can apply a conversion, e.g. romannumerals or add a prefix, e.g. the
current chapter or section number).

Wolfgang


Ah, thank you Wolfgang! \rawcounter is sufficient for me in my real-life
case, but I assume you will want to add \getcounter? (And are the number
synonyms here to stay, or will they be deleted?)


they might stay as they are in manuals but best start using the counter 
names (reason: a,b,c is counting but not numbering)


Hans

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


[NTG-context] setupinterlinespace top and height relations

2012-04-02 Thread Eidenbenz Michael
hi all,

As a grid system fetishist, I  would like to align the top of my first line 
with the top of the layout frame. 
Using try and error (still a context newbie) I managed this by 
\setupinterlinespace [height=.5, top=.7]. 

this seems strange to me, because i was expecting that the argument top is the 
only one that controls \topskip.

Is there a graphic that shows the relation between the arguments of 
setupinterlinespace?


best michael



\setupbodyfont  [palatino, 10pt]
\setupinterlinespace[height=.5, top=.7]
\showframe
\starttext
\beginofshapebox
\input zapf
\endofshapebox
\reshapebox{\hbox{\red\ruledhbox{\black\box\shapebox}}}
\flushshapebox
\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] why is \getnumber an undefined control sequence?

2012-04-02 Thread Wolfgang Schuster

Am 02.04.2012 um 17:20 schrieb Thomas A. Schmitz:

 On 04/02/2012 05:15 PM, Wolfgang Schuster wrote:
 The problem are these two synonyms:
 
 \let \getnumber \getcounter   % [name]
 \let \convertednumber   \getcounter   % [name]
 
 There is a \convertedcounter but no \getcounter.
 
 @Thomas: You can \rawcounter to print only the numeric value of the counter 
 or \convertedcounter for a formatted form of the counter (you can apply a 
 conversion, e.g. romannumerals or add a prefix, e.g. the current chapter or 
 section number).
 
 Wolfgang
 
 Ah, thank you Wolfgang! \rawcounter is sufficient for me in my real-life 
 case, but I assume you will want to add \getcounter? (And are the number 
 synonyms here to stay, or will they be deleted?)

There is no need for a \getcounter command, you can fix it by making both 
synonyms for the \convertedcounter command.

\let\getnumber \convertedcounter
\let\convertednumber\convertedcounter

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] Links into items in the itemize list are not working

2012-04-02 Thread Jaroslav Hajtmar

Hello all,
Where is error when not work links into items in the itemize list. Links 
are active but not working?


Thanx
Jaroslav Hajtmar

Here is example:


\setupinteraction[state=start]

\starttext

\in{First link}[bibl:7] and \in{second link}[bibl:1]

\page

\startitemize[n]
\item [bibl:7] Item 7
\item [bibl:4] Item 4
\item [bibl:8] Item 8
\item [bibl:10] Item 10
\item [bibl:1] Item 1
\item [bibl:20] Item 20
\stopitemize

\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] footnotes

2012-04-02 Thread Wolfgang Schuster

Am 01.04.2012 um 23:03 schrieb Thomas A. Schmitz:

 hi all,
 
 would a kind soul please enlighten me about the new footnote commands? I 
 can't find a way to achieve what I was able to achieve in older versions. The 
 following code is on the wiki. It is supposed to give us the footnote marker 
 aligned with the text area, then some blank space, then the footnote text:
 
 \definepapersize[wiki][width=8cm,height=8cm]
 
 \setuppapersize[wiki][wiki]
 
 \starttext
 
 \showframe
 
 \setupnote[footnote][margindistance=0em,command=\myfootnotecommand]
 \setupnotation[footnote][location=left,hang=1]
 
 \def\myfootnotecommand#1{\hbox to 1.5em{#1.}}
 
 test \footnote{test}
 
 \stoptext

\setupnotation
  [footnote]
  [  alternative=left,
hang=1,
   numbercommand={\simplealignedbox{1.5em}{flushleft}},
 stopper={.}]

\starttext \showframe

test \footnote{\input ward }

\stoptext

 It doesn't work with the current beta, and I' completely lost about
 \setupnote[footnote]

WIth \setupnote you can control the layout of the note block, e.g. to use 
columns or to change the rule.

 \setupnotation[footnote]

With \setupnotation you can control the layout of the footnote entry, it uses 
the same code as enumerations/descriptions and provides the same keys.

 \setupfootnotes

\setupfootnotes == \setupnote[footnote]

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] TABLE not splitting across page boundary

2012-04-02 Thread Kip Warner
On Mon, 2012-04-02 at 12:54 +0200, Hans Hagen wrote:
 \placetable[force,nonumber,right,split]

Thanks Hans. That works for splitting the table, but text no longer
wraps around it properly anymore. The table is aligned on the right side
of the page, and splits at a page boundary as requested, but the rest of
the page is blank on its left with body text only above and below it.

\input knuth

\placetable[nonumber,right,split,4*hang]{}
{
\bTABLE[width=0.25\textwidth]
\setupTABLE[column][1]
[align={middle,lohi},
 background=color,
 backgroundcolor=colour_table_row_even,
 style=\bfxx,
 width=2.3cm]
\setupTABLE[column][2]
[align=flushleft,
 option=stretch,
 background=color,
 backgroundcolor=colour_table_row_odd]
\setupTABLE[each][each]
[style=\tfxx]

\bTABLEbody

\bTR
\bTC Stuff \eTC
\bTC Stuff \eTC
\eTR

...
\eTABLEbody

\eTABLE
}

\input knuth

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] sorting footnotes alphabetically

2012-04-02 Thread Pablo Rodríguez
On 01/04/12 23:01, Wolfgang Schuster wrote:
 Am 01.04.2012 um 12:15 schrieb Pablo Rodríguez:
 [...]
 It compiles fine, but the footnotes aren't alphabetically sorted.

 Is there any way to achieve this?
 
 I’m sorry to disappoint you but notes can’t be sorted.

Many thanks for your reply, Wolfgang.

I think that there are cases in which a sorting ability in notes would
be much helpful (mainly to order the vocabulary from the text of a page).

Thanks for the reply again,


Pablo
-- 
http://www.ousia.tk
___
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
___