Re: [NTG-context] how can I use framewidth in calculations

2012-03-24 Thread Thomas A. Schmitz

On 03/24/12 03:27, Rogers, Michael K wrote:

Try

\framed[width=7cm]{\externalfigure[cow][width=\dimexpr\framedparameter{width}*9/10]}

[I don't understand \dimexpr.   For instance 7cm = ~198pt, 0.9 * 7 cm =
~179pt, but \dimexpr0.9\framedparameter{width} yields 27.5992pt.  It
doesn't seem to work well with decimals.  No wiki page for it, that I
can find.]


Thank you, that is exactly what I needed! I'll see if I can find some 
more information about \dimexpr now!


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] how can I use framewidth in calculations

2012-03-24 Thread Herbert Voss

Am 24.03.2012 08:30, schrieb Thomas A. Schmitz:

On 03/24/12 03:27, Rogers, Michael K wrote:

Try

\framed[width=7cm]{\externalfigure[cow][width=\dimexpr\framedparameter{width}*9/10]}


[I don't understand \dimexpr. For instance 7cm = ~198pt, 0.9 * 7 cm =
~179pt, but \dimexpr0.9\framedparameter{width} yields 27.5992pt. It
doesn't seem to work well with decimals. No wiki page for it, that I
can find.]


Thank you, that is exactly what I needed! I'll see if I can find some
more information about \dimexpr now!


\framed[width=7cm]{\externalfigure[cow][width=0.75\expandafter\dimexpr\framedparameter{width}]}

works for me

Herbert
___
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] \definepagebreak[header, footer] not working when changing matters

2012-03-24 Thread Pablo Rodríguez
I have discovered that \definepagebreak[header,footer] doesn't right
with chapters when changing from frontmatter to bodymatter (and similar
divisions).

Here you have a sample:

\definepagebreak[firstpagebreak][yes,header,footer,right]
\setuphead[chapter][page=firstpagebreak]
\setuppagenumbering[alternative=doublesided,location={botton}]
\starttext
\startfrontmatter
\dorecurse{4}{\chapter{front}}
\stopfrontmatter
\startbodymatter
\dorecurse{4}{\chapter{body}}
\stopbodymatter
\startappendices
\dorecurse{4}{\chapter{body}}
\stopappendices
\startbackmatter
\dorecurse{4}{\chapter{body}}
\stopbackmatter
\stoptext

Pages previous to chapters with no text should also lack header and
footer, but in the example above this doesn't work when text divisions
(such as front matter, body matter, appendices and back matter) change.

I guess this might be a bug.

Many thanks for your help,


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
___


Re: [NTG-context] how can I use framewidth in calculations

2012-03-24 Thread Thomas A. Schmitz

On 03/24/12 08:44, Herbert Voss wrote:

\framed[width=7cm]{\externalfigure[cow][width=0.75\expandafter\dimexpr\framedparameter{width}]}


works for me

Herbert


Ooh, expansion, my old nemesis, strikes again! Thanks, that works too - 
this is one of the many aspects of TeX that I have never really grasped...


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
___


Re: [NTG-context] Formatting Indexed Words Within the Text

2012-03-24 Thread Alan Braslau
On Fri, 23 Mar 2012 19:42:38 +0100
Hans Hagen pra...@wxs.nl wrote:

 in the test suite: registers/processors-001.tex
 
 \defineprocessor[bf][style=bold]
 \defineprocessor[it][style=italic]
 
 \starttext
 
  \index{it-italic}\index{normal}
  This is a \index[bf-bold]{test with bold number}test.
  This is a less important \index{test}test.
 
  \placeindex
 
 \stoptext
 
 so the magic word is 'processors'

Magic indeed!

So processors can be used *wherever* text is to be typeset,
as a prefix: name-text

\defineprocessor[name][...,...=...,...]
with keys: style=, color=, left=, right=, command=

I'm not sure that I understand, but once I do,
I'll have to add a wiki page...

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


[NTG-context] ConTeXt MKIV on-line version?

2012-03-24 Thread Jaroslav Hajtmar

Hello all,
I tested online version of context (mkii)  (http://live.contextgarden.net/)
for using by training of my few students. Is anywhere online mkiv 
version of context? I would use luascripts in context macros.


Thanx Jaroslav

___
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] how can I use framewidth in calculations

2012-03-24 Thread Hans Hagen

On 24-3-2012 08:44, Herbert Voss wrote:

Am 24.03.2012 08:30, schrieb Thomas A. Schmitz:

On 03/24/12 03:27, Rogers, Michael K wrote:

Try

\framed[width=7cm]{\externalfigure[cow][width=\dimexpr\framedparameter{width}*9/10]}



[I don't understand \dimexpr. For instance 7cm = ~198pt, 0.9 * 7 cm =
~179pt, but \dimexpr0.9\framedparameter{width} yields 27.5992pt. It
doesn't seem to work well with decimals. No wiki page for it, that I
can find.]


Thank you, that is exactly what I needed! I'll see if I can find some
more information about \dimexpr now!


\framed[width=7cm]{\externalfigure[cow][width=0.75\expandafter\dimexpr\framedparameter{width}]}


there is no need for \expandafter here as \dimexpr will expand what 
comes after it anyway



-
  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] Formatting Indexed Words Within the Text

2012-03-24 Thread Hans Hagen

On 24-3-2012 11:20, Alan Braslau wrote:

On Fri, 23 Mar 2012 19:42:38 +0100
Hans Hagenpra...@wxs.nl  wrote:


in the test suite: registers/processors-001.tex

\defineprocessor[bf][style=bold]
\defineprocessor[it][style=italic]

\starttext

  \index{it-italic}\index{normal}
  This is a \index[bf-bold]{test with bold number}test.
  This is a less important \index{test}test.

  \placeindex

\stoptext

so the magic word is 'processors'


Magic indeed!

So processors can be used *wherever* text is to be typeset,
as a prefix: name-text

\defineprocessor[name][...,...=...,...]
with keys: style=, color=, left=, right=, command=

I'm not sure that I understand, but once I do,
I'll have to add a wiki page...


not yet but they will be used for cases like this

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
___


Re: [NTG-context] how can I use framewidth in calculations

2012-03-24 Thread Wolfgang Schuster

Am 23.03.2012 um 23:55 schrieb Thomas A. Schmitz:

 Hi all,
 
 maybe I'm overlooking something obvious, but...: when I have a figure, I can 
 calculate its width dependent on the page width, and it will adapt:
 
 \starttext
 
 \externalfigure[cow][width=0.6\textwidth]
 
 \stoptext
 
 But is there a method for similar calculations inside a frame? Here's what I 
 tried, but it doesn't give the expected result (the image is much smaller 
 than expected):
 
 \starttext
 
 \framed[width=7cm]{\externalfigure[cow][width=\the\dimexpr0.9\framedparameter{width}\relax]}
 
 \stoptext
 
 Thanks for any pointers!

\starttext

\framed[width=7cm]{\externalfigure[cow][width=0.5\dimexpr\framedwidth\relax]}

\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] \definepagebreak[header, footer] not working when changing matters

2012-03-24 Thread Wolfgang Schuster

Am 24.03.2012 um 09:54 schrieb Pablo Rodríguez:

 I have discovered that \definepagebreak[header,footer] doesn't right
 with chapters when changing from frontmatter to bodymatter (and similar
 divisions).
 
 Here you have a sample:
 
 \definepagebreak[firstpagebreak][yes,header,footer,right]
 \setuphead[chapter][page=firstpagebreak]
 \setuppagenumbering[alternative=doublesided,location={botton}]
 \starttext
 \startfrontmatter
 \dorecurse{4}{\chapter{front}}
 \stopfrontmatter
 \startbodymatter
 \dorecurse{4}{\chapter{body}}
 \stopbodymatter
 \startappendices
 \dorecurse{4}{\chapter{body}}
 \stopappendices
 \startbackmatter
 \dorecurse{4}{\chapter{body}}
 \stopbackmatter
 \stoptext
 
 Pages previous to chapters with no text should also lack header and
 footer, but in the example above this doesn't work when text divisions
 (such as front matter, body matter, appendices and back matter) change.

Section blocks do have a page key which is used ti switch to a right page at
the begin/end of the environment and this happens before the chapter
page break happens. You have to disable the page breaks for the section block
to have the right header/footer on empty pages.

\setupsectionblock[frontpart][page=]
\setupsectionblock[bodypart] [page=]
\setupsectionblock[backpart] [page=]

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] how can I use framewidth in calculations

2012-03-24 Thread Wolfgang Schuster

Am 23.03.2012 um 23:55 schrieb Thomas A. Schmitz:

 Hi all,
 
 maybe I'm overlooking something obvious, but...: when I have a figure, I can 
 calculate its width dependent on the page width, and it will adapt:
 
 \starttext
 
 \externalfigure[cow][width=0.6\textwidth]
 
 \stoptext
 
 But is there a method for similar calculations inside a frame? Here's what I 
 tried, but it doesn't give the expected result (the image is much smaller 
 than expected):
 
 \starttext
 
 \framed[width=7cm]{\externalfigure[cow][width=\the\dimexpr0.9\framedparameter{width}\relax]}
 
 \stoptext

When you set a value for the align-key the \framed command uses a \vbox for the 
content and you can use \hsize for the width.

\starttext
\framed[width=7cm,align=middle]{\externalfigure[cow][width=0.9\hsize]}
\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] Problem Nesting defineitemgroups

2012-03-24 Thread Wolfgang Schuster

Am 24.03.2012 um 05:25 schrieb Malte Stien:

 I have the following two definitions for bullet point lists...
 
  % Setup bullet point lists
  \defineitemgroup[blist][before={\blank[1ex]}]
  \setupitemgroup[blist][1][packed][symbol=1]
  \setupitemgroup[blist][2][packed][symbol=2]
 
 ... and numbered lists
 
  % Setup numbered lists
  \defineitemgroup[nlist][before={\blank[1ex]}]
  \setupitemgroup[nlist][1][packed][symbol=n, headstyle=bold]
  \setupitemgroup[nlist][2][packed][symbol=a, headstyle=bold]
 
 They generally seem to work well, but when I try to nest one within the 
 other, like so
 
  \startnlist
  \item Foo
  \startblist
  \item Some bullet item 1,
  \item Some bullet item 2,
  \item Some bullet item 3.
  \item Assign an appropriate criticality.
  \stopblist
  \item Baz
  \startnlist
 
 ...I get unexpected behaviour as follows:
 
  1. Foo
 a. Some bullet item 1,
 b. Some bullet item 2,
 c. Some bullet item 3.
  2. Baz
 
 I was expecting this instead
 
  1. Foo
 + Some bullet item 1,
 + Some bullet item 2,
 + Some bullet item 3.
  2. Baz
 
 ...(where + denotes the round bullet point). Is this a defect or am I doing 
 something wrong?

ConTeXt uses the type of the item group in the first level also for the inner 
levels
and handles the inner \startblist as if it was \startnlist.

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] new lucida font

2012-03-24 Thread Wolfgang Schuster

Am 24.03.2012 um 01:58 schrieb Renaud AUBIN:

 Le 19/03/2012 11:36, Wolfgang Schuster a écrit :
 Can you try to attached typescript file, I replaced the files for italic and 
 bolditalic fonts for the sans style with the names from the latex example 
 document. The slanted and boldslanted alternatives for the sans style are 
 also 
 fixed.
 
 Wolfgang
 
 +Small Caps support:
 38,42d37
  \starttypescript [\s!serif] [lucidanova,lucidaot,otlucida]
  \definefontsynonym [\s!SerifCaps][\s!Serif]
 [\s!features=smallcaps]
  %definefontsynonym [\s!SerifBoldCaps][\s!SerifBold]
 [\s!features=smallcaps]
  \stoptypescript
 
 
 The SerifBoldCaps line is commented out since I get an error at
 processing… and can't figure why…

For smallcaps you can use the following command in your document:

\unexpanded\def\sc{\setff{smallcaps}}

With this you can get also smallcaps for the bold or italic style while with
the definition in the typescript (as in your patch) smallcaps are a font
switch and you can only get smallcaps for the regular style.

Bold doesn’t work because the typescript use a wrong name for the files
and Hans hasn’t released a new beta yet with the correct names.

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] getting xml instead of context

2012-03-24 Thread Hans Hagen

On 20-3-2012 22:39, Meer, H. van der wrote:

In the processing of incoming xml-data this is typeset as is, not as processed 
text.


what i incoming xml data?


-
  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] Referencing a Document within the same Project

2012-03-24 Thread Hans Hagen

On 21-3-2012 05:57, Malte Stien wrote:

Hi all,

I am designing a document suite consisting of two dozen or so documents that 
are all interrelated. I was wondering whether there is a way that I can define 
a reference point for an entire document within a project and then refer to 
that from another document, like

   \document{global-definitions-document} % This is fictitious syntax

in one document and then refer to that in another document:

   For global definitions, please see \about{global-definitions-document}.

or something along those lines.


the most simple way is:

\goto{Some Other Document}[someotherfile::]

otherwise go the \useexternaldocument route with symbolic names and such


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

2012-03-24 Thread Steffen Wolfrum

Am 06.03.2012 um 19:46 schrieb Hans Hagen:

 On 6-3-2012 18:29, Thomas A. Schmitz wrote:
 This works with the November beta, but not the current:
 
 \setupfootnotes[way=bychapter,
 location=page,
 rule=off]
 
 \starttext
 
 \startchapter[title=One]
 
 Chapter\footnote{Note 1} with two\footnote{Note 2} footnotes.
 
 \stopchapter
 
 \startchapter[title=Two]
 
 Chapter\footnote{Should be Note 1} with two additional\footnote{should
 be Note 2} footnotes.
 
 \stopchapter
 
 \stoptext
 
 Bug, or has the syntax changed?
 
 no, just something 'not done yet' (but will be done asap, some setup 
 synchronization code needed)


Is there meanwhile a context version that provides way=... again?

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

2012-03-24 Thread Wolfgang Schuster

Am 24.03.2012 um 17:29 schrieb Steffen Wolfrum:

 Is there meanwhile a context version that provides way=... again?


What doesn’t work?

\setupnotation[footnote][way=chapter]

\starttext

\chapter{One}

text\footnote{One: first} text\footnote{One: second}

\chapter{Two}

text\footnote{Two: first} text\footnote{Two: second}

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

2012-03-24 Thread Steffen Wolfrum

Am 24.03.2012 um 17:34 schrieb Wolfgang Schuster:

 
 Am 24.03.2012 um 17:29 schrieb Steffen Wolfrum:
 
 Is there meanwhile a context version that provides way=... again?
 
 
 What doesn’t work?
 
 \setupnotation[footnote][way=chapter]
 
 \starttext
 
 \chapter{One}
 
 text\footnote{One: first} text\footnote{One: second}
 
 \chapter{Two}
 
 text\footnote{Two: first} text\footnote{Two: second}
 
 \stoptext

ah, 
\setupfootnotes[way=bychapter]
didn't became 
\setupnote[footnote][way=bychapter]
but 
\setupnotation[footnote][way=bychapter]

good to know ;o)

st.




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

2012-03-24 Thread Wolfgang Schuster

Am 24.03.2012 um 17:54 schrieb Steffen Wolfrum:

 
 Am 24.03.2012 um 17:34 schrieb Wolfgang Schuster:
 
 
 Am 24.03.2012 um 17:29 schrieb Steffen Wolfrum:
 
 Is there meanwhile a context version that provides way=... again?
 
 
 What doesn’t work?
 
 \setupnotation[footnote][way=chapter]
 
 \starttext
 
 \chapter{One}
 
 text\footnote{One: first} text\footnote{One: second}
 
 \chapter{Two}
 
 text\footnote{Two: first} text\footnote{Two: second}
 
 \stoptext
 
 ah, 
 \setupfootnotes[way=bychapter]
 didn't became 
 \setupnote[footnote][way=bychapter]

That would make no sense because \setupfootnotes is defined as 
\def\setupfootnotes{\setupnote[footnote]} which means both are the same setup.

 \setupnotation[footnote][way=bychapter]

The footnote counter is created by \definenotation (which is called when you 
create a new note with \definenote) and the fore you need \setupnotation to 
change it.

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

2012-03-24 Thread Steffen Wolfrum

Am 24.03.2012 um 18:14 schrieb Wolfgang Schuster:

 
 Am 24.03.2012 um 17:54 schrieb Steffen Wolfrum:
 
 
 Am 24.03.2012 um 17:34 schrieb Wolfgang Schuster:
 
 
 Am 24.03.2012 um 17:29 schrieb Steffen Wolfrum:
 
 Is there meanwhile a context version that provides way=... again?
 
 
 What doesn’t work?
 
 \setupnotation[footnote][way=chapter]
 
 \starttext
 
 \chapter{One}
 
 text\footnote{One: first} text\footnote{One: second}
 
 \chapter{Two}
 
 text\footnote{Two: first} text\footnote{Two: second}
 
 \stoptext
 
 ah, 
 \setupfootnotes[way=bychapter]
 didn't became 
 \setupnote[footnote][way=bychapter]
 
 That would make no sense because \setupfootnotes is defined as 
 \def\setupfootnotes{\setupnote[footnote]} which means both are the same setup.
 
 \setupnotation[footnote][way=bychapter]
 
 The footnote counter is created by \definenotation (which is called when you 
 create a new note with \definenote) and the fore you need \setupnotation to 
 change it.


ok, interesting

thanks a lot!
steffen
___
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] Font goodies color schemes by Unicode number

2012-03-24 Thread Khaled Hosny
On Sat, Mar 03, 2012 at 12:09:11AM +0100, Hans Hagen wrote:
 On 29-2-2012 14:57, Khaled Hosny wrote:
 Hi all,
 
 Was exploring font goodies and color schemes and so far works great,
 very nice feature, thanks Hans.
 
 Now I've to small questions/feature requests:
 Can color schemes be
 defined using Unicode code points, e.g.: { 0x064E, 0x064F } instead of
 glyph names (e.g. I'd like to have a font independent goody to color
 Arabic combining marks and no glyph substitution is involved so Unicode
 code points should work for most fonts).
 
 Second question, can it be (ab)used to color a whole font with the same
 color (can be handy sometimes), e.g. using a special wildcard or
 something: { * }.
 
 the next beta supports * as well as ranges 0x0030:0x0035
 
 (I adapted demo.lfg and goodies-002.tex)

Thanks Hans, it took me a while to get around testing it but I'm happy
to report that it works as expected :) I don't have a generic Arabic
file per se (but I'll right one someday), but the request was mainly
inspired by this question (though it is something I wanted to explore
for a while):
http://tex.stackexchange.com/a/46240/729

Regards,
 Khaled
___
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] simple graphics, Metafun vs. ConTeXt

2012-03-24 Thread S Barmeier
On 03/23/2012 03:11 AM, Hans Hagen wrote:
 On 22-3-2012 15:09, S Barmeier wrote:
 I have leaved through the ConTeXt and MetaFun manuals on the search for
 examples of graphics resembling the attached file which I created in
 TikZ.

 I was wanting to switch to something more native to ConTeXt, but haven't
 quite found a way of realising it in ConTeXt or MetaFun.

 Maybe someone would be so kind as to point me to the right section in
 the manual.

 All I want is to define text boxes (of a fixed size) to fill them with a
 background colour and (centred, typeset) text. Do I need MetaFun for
 that, or should some table/framed text environment in ConTeXt be able to
 do that?
 
 this can be done with \bTABLE .. \eTABLE

This works as expected, thank you Wolfgang and Hans. I am putting these
tables in the margin, though, and neither stack=yes nor stack=continue
prevent two of them from overlapping. Is there some casing for the table
so that they won't overlap? Also, rather than the top, the bottom of the
table is aligned with the line containing the \inmargin command... but
maybe this will be fixed by a solution to the overlapping?

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
___