[NTG-context] framed items

2009-11-16 Thread Thomas A. Schmitz

Hi all,

maybe there is already code for that, but I haven't found it: is it  
possible to have itemgroups where every single item is within a frame  
(this is something that may be interesting for presentations)? Just to  
give you an idea of what I want to achieve, here's a short example:


\setuplayout[width=10cm]

\starttext
\setupframed[offset=2mm,
 corner=round,
 background=color,
 backgroundcolor=blue,
 foregroundcolor=white,
 frame=off,
 strut=no,
 align=normal,
 width=\textwidth]

\startitemize[n]
\item \framed{The text of this item is made very long because it is  
intended to
show the effect of what happens when an item extends to more than just  
one

line.}
\item \framed{This item is relatively short, but also fills more than  
one

line.}
\stopitemize

\stoptext

The problem is the vertical alignment of the item number, which should  
be at the top of the frame. Is this possible?


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] framed items

2009-11-16 Thread Aditya Mahajan

On Mon, 16 Nov 2009, Thomas A. Schmitz wrote:


Hi all,

maybe there is already code for that, but I haven't found it: is it possible 
to have itemgroups where every single item is within a frame (this is 
something that may be interesting for presentations)? Just to give you an 
idea of what I want to achieve, here's a short example:


\setuplayout[width=10cm]

\starttext
\setupframed[offset=2mm,
 corner=round,
 background=color,
 backgroundcolor=blue,
 foregroundcolor=white,
 frame=off,
 strut=no,
 align=normal,
 width=\textwidth]

\startitemize[n]
\item \framed{The text of this item is made very long because it is intended 
to

show the effect of what happens when an item extends to more than just one
line.}
\item \framed{This item is relatively short, but also fills more than one
line.}
\stopitemize

\stoptext

The problem is the vertical alignment of the item number, which should be at 
the top of the frame. Is this possible?


Add location=top to \setupframed.

Aditya
___
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] framed items

2009-11-16 Thread Thomas A. Schmitz


On Nov 16, 2009, at 9:33 AM, Aditya Mahajan wrote:

The problem is the vertical alignment of the item number, which  
should be at the top of the frame. Is this possible?


Add location=top to \setupframed.

Aditya


Oh, that's good, thanks Aditya! The baselines still don't quite agree,  
but it's just a minor difference.


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] framed items

2009-11-16 Thread Wolfgang Schuster

Am 16.11.2009 um 09:41 schrieb Thomas A. Schmitz:

 
 On Nov 16, 2009, at 9:33 AM, Aditya Mahajan wrote:
 
 The problem is the vertical alignment of the item number, which should be 
 at the top of the frame. Is this possible?
 
 Add location=top to \setupframed.
 
 Aditya
 
 Oh, that's good, thanks Aditya! The baselines still don't quite agree, but 
 it's just a minor difference.

strut=yes

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] framed items

2009-11-16 Thread Aditya Mahajan

On Mon, 16 Nov 2009, Thomas A. Schmitz wrote:



On Nov 16, 2009, at 9:33 AM, Aditya Mahajan wrote:

The problem is the vertical alignment of the item number, which should be 
at the top of the frame. Is this possible?


Add location=top to \setupframed.

Aditya


Oh, that's good, thanks Aditya! The baselines still don't quite agree, but 
it's just a minor difference.


location=high and add

\setupitemize[inbetween={\blank[3*line]}]

(maybe increase bottom blank also)

Aditya
___
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] framed items

2009-11-16 Thread Wolfgang Schuster

Am 16.11.2009 um 09:41 schrieb Thomas A. Schmitz:

 
 On Nov 16, 2009, at 9:33 AM, Aditya Mahajan wrote:
 
 The problem is the vertical alignment of the item number, which should be 
 at the top of the frame. Is this possible?
 
 Add location=top to \setupframed.
 
 Aditya
 
 Oh, that's good, thanks Aditya! The baselines still don't quite agree, but 
 it's just a minor difference.

If you hadn't notice the item is wider then the running text, in MkIV
you can say 'width=\dimexpr\textwidth-\itemgrouplistwidth\relax'
(not the best method but \localhsize is not available)

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] framed items

2009-11-16 Thread Thomas A. Schmitz


On Nov 16, 2009, at 9:55 AM, Wolfgang Schuster wrote:


If you hadn't notice the item is wider then the running text, in MkIV
you can say 'width=\dimexpr\textwidth-\itemgrouplistwidth\relax'
(not the best method but \localhsize is not available)

Wolfgang



Aditya, Wolfgang,

thanks a lot, I now get the visual output I want! So the question  
remains: any way of making this a hook for startitemize so it gets  
applied to every \item automatically?


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] framed items

2009-11-16 Thread Aditya Mahajan

On Mon, 16 Nov 2009, Wolfgang Schuster wrote:



Am 16.11.2009 um 09:41 schrieb Thomas A. Schmitz:



On Nov 16, 2009, at 9:33 AM, Aditya Mahajan wrote:


The problem is the vertical alignment of the item number, which should be at 
the top of the frame. Is this possible?


Add location=top to \setupframed.

Aditya


Oh, that's good, thanks Aditya! The baselines still don't quite agree, but it's 
just a minor difference.


If you hadn't notice the item is wider then the running text, in MkIV
you can say 'width=\dimexpr\textwidth-\itemgrouplistwidth\relax'
(not the best method but \localhsize is not available)


Shoudn't width=broad just work? It doesn't, so I consider this a bug.

Aditya
___
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] framed items

2009-11-16 Thread luigi scarso
On Mon, Nov 16, 2009 at 10:12 AM, Aditya Mahajan adit...@umich.edu wrote:
 On Mon, 16 Nov 2009, Wolfgang Schuster wrote:


 Am 16.11.2009 um 09:41 schrieb Thomas A. Schmitz:


 On Nov 16, 2009, at 9:33 AM, Aditya Mahajan wrote:

 The problem is the vertical alignment of the item number, which should
 be at the top of the frame. Is this possible?

 Add location=top to \setupframed.

 Aditya

 Oh, that's good, thanks Aditya! The baselines still don't quite agree,
 but it's just a minor difference.

 If you hadn't notice the item is wider then the running text, in MkIV
 you can say 'width=\dimexpr\textwidth-\itemgrouplistwidth\relax'
 (not the best method but \localhsize is not available)

 Shoudn't width=broad just work? It doesn't, so I consider this a bug.
I don't remember :
is  broad  related to \hsize or \textwidth ?

-- 
luigi
___
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] framed items

2009-11-16 Thread Wolfgang Schuster

Am 16.11.2009 um 10:09 schrieb Thomas A. Schmitz:

 
 On Nov 16, 2009, at 9:55 AM, Wolfgang Schuster wrote:
 
 If you hadn't notice the item is wider then the running text, in MkIV
 you can say 'width=\dimexpr\textwidth-\itemgrouplistwidth\relax'
 (not the best method but \localhsize is not available)
 
 Wolfgang
 
 
 Aditya, Wolfgang,
 
 thanks a lot, I now get the visual output I want! So the question remains: 
 any way of making this a hook for startitemize so it gets applied to every 
 \item automatically?

\startitemize[n][command=\framed]

\item {The text of this item is made very long because it is intended to show
the effect of what happens when an item extends to more than just one line.}

\item {This item is relatively short, but also fills more than one line.}

\stopitemize

\startitemize[n][command=\dowithpargument\framed]

\item The text of this item is made very long because it is intended to
show the effect of what happens when an item extends to more than just one
line.

\item This item is relatively short, but also fills more than one
line.

\stopitemize

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] framed items

2009-11-16 Thread Aditya Mahajan

On Mon, 16 Nov 2009, luigi scarso wrote:


On Mon, Nov 16, 2009 at 10:12 AM, Aditya Mahajan adit...@umich.edu wrote:

On Mon, 16 Nov 2009, Wolfgang Schuster wrote:



Am 16.11.2009 um 09:41 schrieb Thomas A. Schmitz:



On Nov 16, 2009, at 9:33 AM, Aditya Mahajan wrote:


The problem is the vertical alignment of the item number, which should
be at the top of the frame. Is this possible?


Add location=top to \setupframed.

Aditya


Oh, that's good, thanks Aditya! The baselines still don't quite agree,
but it's just a minor difference.


If you hadn't notice the item is wider then the running text, in MkIV
you can say 'width=\dimexpr\textwidth-\itemgrouplistwidth\relax'
(not the best method but \localhsize is not available)


Shoudn't width=broad just work? It doesn't, so I consider this a bug.

I don't remember :
is  broad  related to \hsize or \textwidth ?


I always thought that broad should use as much space as possible. So, 
anything more or less is a bug :)


Aditya
___
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] framed items

2009-11-16 Thread luigi scarso
On Mon, Nov 16, 2009 at 10:09 AM, Thomas A. Schmitz
thomas.schm...@uni-bonn.de wrote:

 On Nov 16, 2009, at 9:55 AM, Wolfgang Schuster wrote:

 If you hadn't notice the item is wider then the running text, in MkIV
 you can say 'width=\dimexpr\textwidth-\itemgrouplistwidth\relax'
 (not the best method but \localhsize is not available)

 Wolfgang


 Aditya, Wolfgang,

 thanks a lot, I now get the visual output I want! So the question remains:
 any way of making this a hook for startitemize so it gets applied to every
 \item automatically?
There is always a non-context solution, (so it's a kind of off-topic here...)
More seriously (well, only a bit), it can be seen as a sort of syntathic sugar
(just because I like coffe with sugar, but it' a taste of mine..)

\setuplayout[width=10cm]
\long\def\TSIF#1{\item \framed\bgroup #1}
\def\TSIFE{\egroup}
\starttext
\setupframed[offset=2mm,
corner=round,
background=color,
backgroundcolor=blue,
foregroundcolor=white,
frame=off,
strut=no,inbetween={\blank[3*line]}
location=high,
align=normal,
width=\textwidth]

\startitemize[n]
\item \framed{The text of this item is made very long because it is intended to
show the effect of what happens when an item extends to more than just one
line.}
\item \framed{This item is relatively short, but also fills more than one
line.}

\TSIF%
This item is relatively short, but also fills more than one
\TSIFE

\TSIF%
This item is relatively short, but also fills more than one
\TSIFE

\stopitemize

\stoptext

-- 
luigi
___
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] framed items

2009-11-16 Thread luigi scarso
On Mon, Nov 16, 2009 at 10:17 AM, Aditya Mahajan adit...@umich.edu wrote:
 On Mon, 16 Nov 2009, luigi scarso wrote:

 On Mon, Nov 16, 2009 at 10:12 AM, Aditya Mahajan adit...@umich.edu
 wrote:

 On Mon, 16 Nov 2009, Wolfgang Schuster wrote:


 Am 16.11.2009 um 09:41 schrieb Thomas A. Schmitz:


 On Nov 16, 2009, at 9:33 AM, Aditya Mahajan wrote:

 The problem is the vertical alignment of the item number, which
 should
 be at the top of the frame. Is this possible?

 Add location=top to \setupframed.

 Aditya

 Oh, that's good, thanks Aditya! The baselines still don't quite agree,
 but it's just a minor difference.

 If you hadn't notice the item is wider then the running text, in MkIV
 you can say 'width=\dimexpr\textwidth-\itemgrouplistwidth\relax'
 (not the best method but \localhsize is not available)

 Shoudn't width=broad just work? It doesn't, so I consider this a bug.

 I don't remember :
 is  broad  related to \hsize or \textwidth ?

 I always thought that broad should use as much space as possible. So,
 anything more or less is a bug :)
Yes, but \maxdimen is as much space as possible :-)
Anyway I will give it a look.


-- 
luigi
___
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] BibTeX/Publications

2009-11-16 Thread Andreas Harder
Thomas and Taco, thank you for your explanations.

Am 16.11.2009 um 08:34 schrieb Taco Hoekwater:

 
 Thomas A. Schmitz wrote:
 
 On Nov 15, 2009, at 4:11 PM, Andreas Harder wrote:
 
 Hi all!
 
 I've two or more problems with bibliographies:
 
 1) look at the attached attachment, the first brace.
 
 I guess you mean the parenthesis.

Yes, thank you ;)

 That appears to be a bug with the
 refcommands author and authoryears. If you use refcommand=authoryear,
 the output looks right. Hans, Taco?
 
 The dangling ( is a mkiv artifict only for me (mkii is fine), and
 it goes away when the .bib file is patched as below, so I believe this
 problem can be safely ignored as a side-effect of another error.
 
 2) @book{b,
  title={B Titel B},
  author={Brüser}, % error - ü!!!
  year={2000},
  publisher={VS Verlag}
 }
 
 
 Something is fishy with your file. 
 
 No, it is bibtex, which is not utf-8 aware so it breaks the encoding
 for the ü in the middle.

What about bibtex8, isn't it utf-8 aware?

 You need
 
  author={Br{ü}ser},
 
 To prevent bibtex from creating an invalid short key.

Thanks that helped! I tried it already with {\char00FC}, that worded too.

 
 3) I want just get a typeset version of the used database (without
 \cite[a,b,c,d]), how to achieve this?
 
 I was going to write add criterium=all to the \setuppublications
 command, but it worketh not.
 
 This is only in mkiv, but yes:  \setuppublications[criterium=all] does
 not seem to work in mkiv. Input that should have worked is attached.
 Hans?
 
 Best wishes,
 Taco
 
 
 
 \usemodule[bib]
 \setuppublications[state=start,alternative=apa-de,sorttype=bbl,criterium=all] 
 % ,sorttype=bbl
 \setupbibtex[database=test-bib,sort=author]
 
 \starttext
 
 \title{Literatur}
 \placepublications[criterium=all]
 \stoptext

Greetings
Andreas
___
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] Indent missed after \placefigure[inner]

2009-11-16 Thread Wolfgang Schuster

Am 15.11.2009 um 23:15 schrieb Vyatcheslav Yatskovsky:

 Hello,
 
 I've asked about this issue already, but maybe my cry for help was missed )

Your chance to get an answer will be bigger when you provide a short and 
working example.

 P.S. Is there a keyword that produces an indent? (like \makeindent)


Read Adityas TuGboat article about indenting and you will know \indentation is 
what you want. 

http://www.tug.org/TUGboat/Articles/tb29-2/tb92mahajan.pdf

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] osx-64-binaries/minimals

2009-11-16 Thread Andreas Harder
Hi all!

If I update the minimals via first-setup.sh I get the 32bit-binaries (luatex) 
although I'm on Snow Leopard. If I change the binaries myself it works fine and 
the compilation is notable faster!

Greetings
Andreas
___
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] BibTeX/Publications

2009-11-16 Thread Thomas A. Schmitz


On Nov 16, 2009, at 10:56 AM, Andreas Harder wrote:



No, it is bibtex, which is not utf-8 aware so it breaks the encoding
for the ü in the middle.


What about bibtex8, isn't it utf-8 aware?


No, it's 8-bit aware, thusly it can handle some latin encodings, but  
not utf8. I think this means it will not play with mkiv (since it  
needs an encoding such as iso-latin-8859-1 whereas mkiv uses utf8).


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
___


[NTG-context] mailing list question/problem

2009-11-16 Thread Bernhard Rosensteiner
Hello all,

i´m new to the mailing list. i posted a few questions on the mailing list for a 
while but got never an answer. The last thing i posted was in the [NTG-context] 
BibTeX/Publications thread:

http://archive.contextgarden.net/message/20091115.194137.4395932d.en.html

it seems that i make something wrong with posting because i get always ignored 
(see following discussion on in the mail...).

Please can somebody write back only that i can by certain that my messages 
become properly posted -  thanks.

best regards
Bernhard___
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] mailing list question/problem

2009-11-16 Thread Roger Mason
Hello Bernhard,

Bernhard Rosensteiner brosenstei...@gmail.com writes:


Please can somebody write back only that i can by certain that my
messages become properly posted -  thanks.

I see your message.

Best wishes,
Roger
___
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] mailing list question/problem

2009-11-16 Thread Thomas A. Schmitz


On Nov 16, 2009, at 12:35 PM, Bernhard Rosensteiner wrote:


Hello all,

i´m new to the mailing list. i posted a few questions on the mailing  
list for a while but got never an answer. The last thing i posted  
was in the [NTG-context] BibTeX/Publications thread:


http://archive.contextgarden.net/message/20091115.194137.4395932d.en.html

it seems that i make something wrong with posting because i get  
always ignored (see following discussion on in the mail...).


Please can somebody write back only that i can by certain that my  
messages become properly posted -  thanks.


Yes, your messages are posted correctly. I think you got no reply to  
your first question because there was no minimal example (your code  
referred to a bibtex file that wasn't included). But this list is  
sometimes a bit busy, so things just get lost in the excitement of it  
all. Don't feel embarrassed to post your question again.


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] mailing list question/problem

2009-11-16 Thread Taco Hoekwater
Hi,

Thomas A. Schmitz wrote:

 Please can somebody write back only that i can by certain that my
 messages become properly posted -  thanks.
 
 Yes, your messages are posted correctly. I think you got no reply to
 your first question because there was no minimal example (your code
 referred to a bibtex file that wasn't included). But this list is
 sometimes a bit busy, so things just get lost in the excitement of it
 all. Don't feel embarrassed to post your question again.

I would like to add that messages without example file are much more
likely to get 'lost'. I myself do not even look at questions on the list
that require me to reverse engineer the input, and I suspect the same is
true for many of the regular posters.

Best wishes,
Taco
___
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] mailing list question/problem

2009-11-16 Thread luigi scarso
On Mon, Nov 16, 2009 at 12:35 PM, Bernhard Rosensteiner
brosenstei...@gmail.com wrote:
 Hello all,
 i´m new to the mailing list. i posted a few questions on the mailing list
 for a while but got never an answer. The last thing i posted was in
 the [NTG-context] BibTeX/Publications thread:
 http://archive.contextgarden.net/message/20091115.194137.4395932d.en.html
 it seems that i make something wrong with posting because i get always
 ignored (see following discussion on in the mail...).
 Please can somebody write back only that i can by certain that my messages
 become properly posted -  thanks.
It's ok here -- I have seen your emails too.
I usually try to post something like this

test.tex fails in mkiv (or mkii, or both)
with . (relevant errors msgs, usually take from test.log)
on ... (machine, eventually minimals or TeXlive specs.)

%%test.tex
\starttext
%
% My code here
%
\stoptext

test.tex should be a cut-and-paste text , ie not very long.

-- 
luigi
___
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] mailing list question/problem

2009-11-16 Thread Bernhard Rosensteiner
Hello,

thanks for the responses. In the future i will follow your suggestions.

best regards
Bernhard


Am 16.11.2009 um 13:36 schrieb Taco Hoekwater:

 Hi,
 
 Thomas A. Schmitz wrote:
 
 Please can somebody write back only that i can by certain that my
 messages become properly posted -  thanks.
 
 Yes, your messages are posted correctly. I think you got no reply to
 your first question because there was no minimal example (your code
 referred to a bibtex file that wasn't included). But this list is
 sometimes a bit busy, so things just get lost in the excitement of it
 all. Don't feel embarrassed to post your question again.
 
 I would like to add that messages without example file are much more
 likely to get 'lost'. I myself do not even look at questions on the list
 that require me to reverse engineer the input, and I suspect the same is
 true for many of the regular posters.
 
 Best wishes,
 Taco
 ___
 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] setupsystem command with an example

2009-11-16 Thread Curiouslearn
The following is an example. Randomization occurs with MKII, but not with
MKIV.

\setupsystem[random=123]

\starttext

\startitemize[a,random]
\startitem This is item 1 \stopitem
\startitem This is item 2 \stopitem
\startitem This is item 3 \stopitem
\startitem This is item 4 \stopitem
\stopitemize

\stoptext

On Sun, Nov 15, 2009 at 1:42 PM, curiouslearn curiousle...@gmail.comwrote:

 I wanted to bring this  to your attention. It seems that
 setupsystem[random= ]
 command does not work with MKIV. If I use different numbers for [random= ]
 option the arrangement of items changes when compiled with MKII but do not
 change when compiled with MKIV.

 I tried emailing the above message with my email, but it bounced everytime
 I
 sent it. Do you know what might have happened.

 Thanks.


 ___
 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] setupsystem command with an example

2009-11-16 Thread Taco Hoekwater


Curiouslearn wrote:
 The following is an example. Randomization occurs with MKII, but not
 with MKIV.

Works here (it outputs in 2-4-1-3 order)

Best wishes,
Taco
___
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] setupsystem command with an example

2009-11-16 Thread Curiouslearn
Thanks Taco. I am not sure, why it does not work for me. I am copying
and pasting the log file. Could please someone take a look and let me
know what the problem might be.

Thanks.
**
This is LuaTeX, Version beta-0.43.0-2009081911
 \write18 enabled.
(Test_setupsystem.tex

ConTeXt  ver: 2009.10.27 16:35 MKIV  fmt: 2009.10.28  int: english/english

system  : cont-new loaded
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-new.mkiv))
system  : cont-fil loaded
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-fil.tex
loading : ConTeXt File Synonyms
)
system  : cont-sys.rme loaded
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/user/cont-sys.rme
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-tmf.tex
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-tmf.mkiv))
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-siz.tex
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-siz.mkiv))
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-otf.tex
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/type-otf.mkiv)))
system  : Test_setupsystem.top loaded
(Test_setupsystem.top)
fonts   : preloading latin modern fonts
bodyfont    : 12pt rm is loaded
language    : language en is active
systems : begin file Test_setupsystem at line 3
fonts   : resetting map file list
{/Applications/ConTeXtMinimals/tex/texmf-context/fonts/map/pdftex/context/original-empty.map}
fonts   : using map file: original-base
{/Applications/ConTeXtMinimals/tex/texmf-context/fonts/map/pdftex/context/original-base.map}
fonts   : using map file: original-ams-base
{/Applications/ConTeXtMinimals/tex/texmf-context/fonts/map/pdftex/context/original-ams-base.map}
fonts   : using map file: original-ams-euler
{/Applications/ConTeXtMinimals/tex/texmf-context/fonts/map/pdftex/context/original-ams-euler.map}
fonts   : using map file: original-public-lm
{/Applications/ConTeXtMinimals/tex/texmf-context/fonts/map/pdftex/context/original-public-lm.map}
fonts   : using map file: lm-math
{/Applications/ConTeXtMinimals/tex/texmf/fonts/map/dvips/lm/lm-math.map}
fonts   : using map file: lm-rm
{/Applications/ConTeXtMinimals/tex/texmf/fonts/map/dvips/lm/lm-rm.map}[1.1]
systems : end file Test_setupsystem at line 12
system  : cont-err loaded
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-err.tex
systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead
) 
)/Applications/ConTeXtMinimals/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf
mkiv lua stats : used config path  -
/Applications/ConTeXtMinimals/tex/texmf-local/web2c/texmf.cnf;/Applications/ConTeXtMinimals/tex/texmf/web2c/texmf.cnf
mkiv lua stats : used cache path   -
/Applications/ConTeXtMinimals/tex/texmf-cache
mkiv lua stats : input load time   - 0.030 seconds
mkiv lua stats : stored bytecode data  - 190 modules, 46 tables, 236 chunks
mkiv lua stats : node list callback tasks  - 4 unique tasks, 3 created, 21 calls
mkiv lua stats : cleaned up reserved nodes - 24 nodes, 9 lists of 1408
mkiv lua stats : node memory usage - 20 glue_spec, 2 dir
mkiv lua stats : used backend  - pdf (backend for directly
generating pdf output)
mkiv lua stats : loaded patterns   - en:us:pat:exc:2
mkiv lua stats : startup time  - 0.561 seconds (including
runtime option file processing)
mkiv lua stats : callbacks - direct: 470, indirect:
3547, total: 4017
mkiv lua stats : loaded fonts  - 29 files:
lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf
lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf
lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf
lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf
eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm
msbm10.tfm msbm7.tfm lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm
lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm
mkiv lua stats : fonts load time   - 0.321 seconds
mkiv lua stats : result saved in file  - Test_setupsystem.pdf
mkiv lua stats : luatex banner - this is luatex, version
beta-0.43.0-2009081911
mkiv lua stats : control sequences - 29458 of 165536
mkiv lua stats : current memory usage  - 30 MB (ctx: 31 MB)
mkiv lua stats : runtime   - 1.172 seconds, 0
processed pages, 1 shipped pages, 0.853 pages/second
MTXrun | run 1: luatex
--fmt=/Applications/ConTeXtMinimals/tex/texmf-cache/luatex-cache/context/3fc847143b06f084e10e73c8fbdf4ae2/formats/cont-en

Re: [NTG-context] setupsystem command with an example

2009-11-16 Thread luigi scarso
On Mon, Nov 16, 2009 at 2:55 PM, Curiouslearn curiousle...@gmail.com wrote:
 The following is an example. Randomization occurs with MKII, but not with
 MKIV.

 \setupsystem[random=123]

 \starttext

 \startitemize[a,random]
     \startitem This is item 1 \stopitem
     \startitem This is item 2 \stopitem
     \startitem This is item 3 \stopitem
     \startitem This is item 4 \stopitem
 \stopitemize

 \stoptext

It works ok here, if I undertstand what you want.

What about
%%test.tex
\starttext

 \startitemize[a,random]
 \startitem This is item 1 \stopitem
 \startitem This is item 2 \stopitem
 \startitem This is item 3 \stopitem
 \startitem This is item 4 \stopitem
 \stopitemize
\stoptext

$context --purgeall; context test.tex ; mv test.pdf test-1.pdf
$context --purgeall; context test.tex ; mv test.pdf test-2.pdf
$context --purgeall; context test.tex ; mv test.pdf test-3.pdf

I see differents pdfs test-1,test-2,test-3

With your code, all pdf are the same.


-- 
luigi
___
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] setupsystem command with an example

2009-11-16 Thread Taco Hoekwater


Curiouslearn wrote:
 Thanks Taco. I am not sure, why it does not work for me. I am copying
 and pasting the log file. Could please someone take a look and let me
 know what the problem might be.

Could be a fix in a beta. I run

This is LuaTeX, Version beta-0.45.0-2009111614


 \write18 enabled.


(./rand



ConTeXt  ver: 2009.11.15 18:01 MKIV  fmt: 2009.11.16  int: english/english

Best wishes,
Taco
___
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] setupsystem command with an example

2009-11-16 Thread Curiouslearn
Does not work for me.

Luigi, the reason I have used the \setupsystem[random=] is to control
the randomization and not have it change everytime I compile it. This
is I think necessary if I want the answerkey that identfies the
correct option.



On Mon, Nov 16, 2009 at 9:05 AM, luigi scarso luigi.sca...@gmail.com wrote:
 On Mon, Nov 16, 2009 at 2:55 PM, Curiouslearn curiousle...@gmail.com wrote:
 The following is an example. Randomization occurs with MKII, but not with
 MKIV.

 \setupsystem[random=123]

 \starttext

 \startitemize[a,random]
     \startitem This is item 1 \stopitem
     \startitem This is item 2 \stopitem
     \startitem This is item 3 \stopitem
     \startitem This is item 4 \stopitem
 \stopitemize

 \stoptext

 It works ok here, if I undertstand what you want.

 What about
 %%test.tex
 \starttext

  \startitemize[a,random]
     \startitem This is item 1 \stopitem
     \startitem This is item 2 \stopitem
     \startitem This is item 3 \stopitem
     \startitem This is item 4 \stopitem
  \stopitemize
 \stoptext

 $context --purgeall; context test.tex ; mv test.pdf test-1.pdf
 $context --purgeall; context test.tex ; mv test.pdf test-2.pdf
 $context --purgeall; context test.tex ; mv test.pdf test-3.pdf

 I see differents pdfs test-1,test-2,test-3

 With your code, all pdf are the same.


 --
 luigi
 ___
 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] setupsystem command with an example

2009-11-16 Thread Curiouslearn
Thanks Taco. I will try that.

On Mon, Nov 16, 2009 at 9:09 AM, Taco Hoekwater t...@elvenkind.com wrote:


 Curiouslearn wrote:
 Thanks Taco. I am not sure, why it does not work for me. I am copying
 and pasting the log file. Could please someone take a look and let me
 know what the problem might be.

 Could be a fix in a beta. I run

 This is LuaTeX, Version beta-0.45.0-2009111614


  \write18 enabled.


 (./rand



 ConTeXt  ver: 2009.11.15 18:01 MKIV  fmt: 2009.11.16  int: english/english

 Best wishes,
 Taco
 ___
 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
___


[NTG-context] Pstricks and Asymptote

2009-11-16 Thread curiouslearn
I apologize if this has been asked before, but would appreciate if anyone could
answer this again.

(a) Is there an easy way to incorporate asymptote code in a Context document,
like there exists in Latex. In latex you can include it between
\begin{asy}

\end{asy}
   

(b) Is there an easy way to incorporate pstricks code in a Context document. If
there is, does that way work both with MKII and MKIV or only with one of them. 

The reason I am asking is that eventually all the new Context features will be
in MKIV. I want to know what graphics packages I can use with it other than
Metapost.
   
Thanks.

___
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] setupsystem command with an example

2009-11-16 Thread luigi scarso
On Mon, Nov 16, 2009 at 3:09 PM, Curiouslearn curiousle...@gmail.com wrote:
 Does not work for me.

 Luigi, the reason I have used the \setupsystem[random=] is to control
 the randomization and not have it change everytime I compile it. This
 is I think necessary if I want the answerkey that identfies the
 correct option.

ok -- just to be sure that I understood you . No randomization  with
another seed or without it  and/or more \item maybe be a bug somewhere
, but your log seems ok to me.

It seems also that your and my code  work ok here with

luatex --credits
This is LuaTeX, Version beta-0.44.0-2009110210

context --version
MTXrun | main context file:
/opt/luatex/minimals-beta/tex/texmf-context/tex/context/base/context.tex
MTXrun | current version: 2009.11.10 13:30


-- 
luigi
___
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] Pstricks and Asymptote

2009-11-16 Thread Thomas A. Schmitz


On Nov 16, 2009, at 3:12 PM, curiouslearn wrote:

I apologize if this has been asked before, but would appreciate if  
anyone could

answer this again.

(a) Is there an easy way to incorporate asymptote code in a Context  
document,

like there exists in Latex. In latex you can include it between
\begin{asy}

\end{asy}



There was a discussion about asymptote on this list in the summer,  
Mojca has done quite a lot of work towards integrating it. But I'm not  
sure what the current state is.


(b) Is there an easy way to incorporate pstricks code in a Context  
document. If
there is, does that way work both with MKII and MKIV or only with  
one of them.


There's a module pstricks. Again, a search in the list archives would  
have shown that.


The reason I am asking is that eventually all the new Context  
features will be
in MKIV. I want to know what graphics packages I can use with it  
other than

Metapost.

Thanks.


___
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] Pstricks and Asymptote

2009-11-16 Thread luigi scarso
On Mon, Nov 16, 2009 at 3:12 PM, curiouslearn curiousle...@gmail.com wrote:

 The reason I am asking is that eventually all the new Context features will be
 in MKIV. I want to know what graphics packages I can use with it other than
 Metapost.
I have some ideas about pstricks (pst-lens)  luatex lunatic and mkiv via libgs,
but not this year, maybe for eurotex2010  (or maybe never) .
The same for asy, if it will become a library .

-- 
luigi
___
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] Pstricks and Asymptote

2009-11-16 Thread Alan BRASLAU
On Monday 16 November 2009 15:29:14 Thomas A. Schmitz wrote:
 On Nov 16, 2009, at 3:12 PM, curiouslearn wrote:
  I apologize if this has been asked before, but would appreciate if
  anyone could
  answer this again.
 
  (a) Is there an easy way to incorporate asymptote code in a Context
  document,
  like there exists in Latex. In latex you can include it between
  \begin{asy}
 
  \end{asy}
 
 There was a discussion about asymptote on this list in the summer,
 Mojca has done quite a lot of work towards integrating it. But I'm not
 sure what the current state is.
 
  (b) Is there an easy way to incorporate pstricks code in a Context
  document. If
  there is, does that way work both with MKII and MKIV or only with
  one of them.
 
 There's a module pstricks. Again, a search in the list archives would
 have shown that.
 
  The reason I am asking is that eventually all the new Context
  features will be
  in MKIV. I want to know what graphics packages I can use with it
  other than
  Metapost.
 
  Thanks.

In addition, there is a module tikz, integrating pgf/tikz, also maintained by 
Mojca.

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
___


Re: [NTG-context] Indent missed after \placefigure[inner]

2009-11-16 Thread Vyatcheslav Yatskovsky

Hello Wolfgang,

  I've asked about this issue already, but maybe my cry for help was missed )
 

Your chance to get an answer will be bigger when you provide a short and 
working example.

   

Sure. This is minimal example.

\setupindenting[big,yes]
\setupfloat[figure][indentnext=yes]

\starttext

\dorecurse{1}{\input knuth \par}

\placefigure
[inner]
{}
{\externalfigure[cow][width=0.5\textwidth]}

\dorecurse{1}{\input knuth \par}

\stoptext


  P.S. Is there a keyword that produces an indent? (like \makeindent)
 

Read Adityas TuGboat article about indenting and you will know \indentation is 
what you want.
   
Thanks. Actually, i tried \indent to produce indent, but it was treated 
as wrong keyword.


Vyatcheslav

\setupindenting[big,yes]
\setupfloat[figure][indentnext=yes]

\starttext

\dorecurse{1}{\input knuth \par}

\placefigure
[inner]
	{}
	{\externalfigure[cow][width=0.5\textwidth]}

\dorecurse{1}{\input knuth \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
___


[NTG-context] Context changelog

2009-11-16 Thread Vyatcheslav Yatskovsky

Hello,

Weird, but I cannot find Context changelog on the wiki.

Vyatcheslav
___
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] Context changelog

2009-11-16 Thread Taco Hoekwater

Vyatcheslav Yatskovsky wrote:

Hello,

Weird, but I cannot find Context changelog on the wiki.



Search for 'Release notes'.

Best wishes,
Taco
___
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 meaning of cutspace

2009-11-16 Thread Vyatcheslav Yatskovsky

Hello,

I need to set up 1.5cm/2cm page borders.

Backspace in layout setup gives me expected result (distance from page 
to the text). According to the wiki, cutspace should do the same for 
opposite side of the page, but it doesnt. So, I cannot get the meaning 
of cutspace.


\setuplayout[topspace=2cm, header=0cm, footer=0.6cm, bottomspace=2cm, 
height=fit,


%leftmargin=1.5cm, rightmargin=2cm,

backspace=1.5cm, cutspace=2cm, width=fit]

\setuppagenumbering[location={footer,middle}, alternative=doublesided, 
style=\tfx]


\showlayout\showsetups\showframe

\bye


Regards,
Vyatcheslav
___
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 meaning of cutspace

2009-11-16 Thread luigi scarso
On Mon, Nov 16, 2009 at 6:14 PM, Vyatcheslav Yatskovsky
yatskov...@gmail.com wrote:
 Hello,

 I need to set up 1.5cm/2cm page borders.

 Backspace in layout setup gives me expected result (distance from page to
 the text). According to the wiki, cutspace should do the same for opposite
 side of the page, but it doesnt. So, I cannot get the meaning of cutspace.

 \setuplayout[topspace=2cm, header=0cm, footer=0.6cm, bottomspace=2cm,
 height=fit,

 %leftmargin=1.5cm, rightmargin=2cm,

 backspace=1.5cm, cutspace=2cm, width=fit]

 \setuppagenumbering[location={footer,middle}, alternative=doublesided,
 style=\tfx]

 \showlayout\showsetups\showframe

 \bye
I'm not sure, but what about
width=middle
?

-- 
luigi
___
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 meaning of cutspace

2009-11-16 Thread Taco Hoekwater

luigi scarso wrote:

On Mon, Nov 16, 2009 at 6:14 PM, Vyatcheslav Yatskovsky
yatskov...@gmail.com wrote:

Hello,

I need to set up 1.5cm/2cm page borders.

Backspace in layout setup gives me expected result (distance from page to
the text). According to the wiki, cutspace should do the same for opposite
side of the page, but it doesnt. So, I cannot get the meaning of cutspace.

\setuplayout[topspace=2cm, header=0cm, footer=0.6cm, bottomspace=2cm,
height=fit,

%leftmargin=1.5cm, rightmargin=2cm,

backspace=1.5cm, cutspace=2cm, width=fit]


Don't use both backspace and cutspace at the same time.

Best wishes,
Taco
___
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] rotate a figure

2009-11-16 Thread R. Bastian
Hello,

is there a way to rotate a pdf-figure ?

http://wiki.contextgarden.net/Using_Graphics

thanks,

-- 
René Bastian
www.pythoneon.org
www.musiques-rb.org


___
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] rotate a figure

2009-11-16 Thread Alan BRASLAU
On Monday 16 November 2009 19:29:12 R. Bastian wrote:
 Hello,
 
 is there a way to rotate a pdf-figure ?
 
 http://wiki.contextgarden.net/Using_Graphics
 
 thanks,
 

\rotate[rotation=90]{\externalfigure[filename]}

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
___


Re: [NTG-context] the meaning of cutspace

2009-11-16 Thread Peter Münster
On Mon, 16 Nov 2009, Vyatcheslav Yatskovsky wrote:

 I need to set up 1.5cm/2cm page borders.
 
 Backspace in layout setup gives me expected result (distance from page to the
 text). According to the wiki, cutspace should do the same for opposite side of
 the page, but it doesnt. So, I cannot get the meaning of cutspace.
 
 \setuplayout[topspace=2cm, header=0cm, footer=0.6cm, bottomspace=2cm,
 height=fit,
 %leftmargin=1.5cm, rightmargin=2cm,
 backspace=1.5cm, cutspace=2cm, width=fit]

Hello Vyatcheslav,

You must be sure, that leftmargin + leftmargindistance = backspace
and rightmargin + rightmargindistance = cutspace.

Working example:

\setuplayout[leftmargin=1cm, rightmargin=1.5cm,
  leftmargindistance=2mm, rightmargindistance=2mm,
  backspace=1.5cm, cutspace=2cm, width=fit]

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___
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] Sort register (index) by Bible book

2009-11-16 Thread berend
Hi All,

I'm typesetting a book that has a register of Bible verses. I like to
order them by Bible book as per the order the books are customarily
listed.

The index is created like \index{1 Samuel 1:1} and retrieved with
\placeindex, so that's all standard.

Are there any tools to sort this index? How can I make this part of
the regular build? Or is this something you do once, at the end, by
hand?

-- 
Thanks for any pointers,

Berend de Boer
___
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 meaning of cutspace

2009-11-16 Thread Peter Münster
On Mon, 16 Nov 2009, Peter Münster wrote:

 Working example:
 
 \setuplayout[leftmargin=1cm, rightmargin=1.5cm,
   leftmargindistance=2mm, rightmargindistance=2mm,
   backspace=1.5cm, cutspace=2cm, width=fit]

I'm sorry, Taco is right. There is indeed a problem here...

Instead of cutspace=2cm, width=fit you could write
width=\dimexpr \paperwidth - 35mm \relax.

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___
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 meaning of cutspace

2009-11-16 Thread Vyatcheslav Yatskovsky

Hello,

Don't use both backspace and cutspace at the same time.


From http://wiki.contextgarden.net/Layout:

backspace 	\backspace javascript:show_command('backspace') 	from left 
rim of paper to left rim of main text area



cutspace 	\cutspace javascript:show_command('cutspace') 	from right 
rim of paper to right rim of main text area



Either the description is wrong, or... the thoughts stop here :))

Regards,
Vyatcheslav
___
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 meaning of cutspace

2009-11-16 Thread Aditya Mahajan

On Mon, 16 Nov 2009, Vyatcheslav Yatskovsky wrote:


Hello,

Don't use both backspace and cutspace at the same time.


From http://wiki.contextgarden.net/Layout:

backspace 	\backspace javascript:show_command('backspace') 	from 
left rim of paper to left rim of main text area



cutspace 	\cutspace javascript:show_command('cutspace') 	from 
right rim of paper to right rim of main text area



Either the description is wrong, or... the thoughts stop here :))


\setuplayout[backspace=1.5cm, cutspace=5cm, width=middle]
\setuppagenumbering[alternative=doublesided]
\showframe
\starttext
\showlayout
\stoptext


I am using big space so that it is easy to see the difference.

Aditya
___
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] framed items

2009-11-16 Thread luigi scarso
On Mon, Nov 16, 2009 at 10:17 AM, Aditya Mahajan adit...@umich.edu wrote:
 I always thought that broad should use as much space as possible. So,
 anything more or less is a bug :)

\starttext
\dorecurse{20}{%
\hsize=\dimexpr \textwidth / 20 *\recurselevel\relax
\framed[width=broad,align=middle]{  }
\blank
}
\stoptext



-- 
luigi
___
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] rotate a figure

2009-11-16 Thread Wolfgang Schuster

Am 16.11.2009 um 19:37 schrieb Alan BRASLAU:

 On Monday 16 November 2009 19:29:12 R. Bastian wrote:
 Hello,
 
 is there a way to rotate a pdf-figure ?
 
 http://wiki.contextgarden.net/Using_Graphics
 
 thanks,
 
 \rotate[rotation=90]{\externalfigure[filename]}

\externalfigure[filename][orientation=90] ;)

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 meaning of cutspace

2009-11-16 Thread Vyatcheslav Yatskovsky

Hello Luigi,

I'm not sure, but what about
width=middle?
   


Yes! It works!
I don't understand it; it's like another magic trick )

\setuppapersize [A5][A5]

\setuplayout[topspace=2cm, header=0cm, footer=0.6cm, bottomspace=2cm, 
height=fit,


backspace=1.5cm, cutspace=2cm,

width=middle]


@Taco: what's wrong with it then?

Regards,
Vyatcheslav


___
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] framed items

2009-11-16 Thread Aditya Mahajan

On Mon, 16 Nov 2009, luigi scarso wrote:


On Mon, Nov 16, 2009 at 10:17 AM, Aditya Mahajan adit...@umich.edu wrote:

I always thought that broad should use as much space as possible. So,
anything more or less is a bug :)


\starttext
\dorecurse{20}{%
\hsize=\dimexpr \textwidth / 20 *\recurselevel\relax
\framed[width=broad,align=middle]{  }
\blank
}
\stoptext


\starttext
\dorecurse{20}{%
\hsize=\dimexpr \textwidth / 20 *\recurselevel\relax
\framed[width=broad,align=middle]{  }
\startitemize
  \item \framed[width=broad,align=middle]{}
  \item \framed[width=\hsize,align=middle]{}
\stopitemize
\page
}
\stoptext

I think that itemize should adjust \hsize, so this is probably a bug in 
itemize.


Aditya
___
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 meaning of cutspace

2009-11-16 Thread Wolfgang Schuster

Am 16.11.2009 um 21:48 schrieb Aditya Mahajan:

 \setuplayout[backspace=1.5cm, cutspace=5cm, width=middle]
 \setuppagenumbering[alternative=doublesided]
 \showframe
 \starttext
 \showlayout
 \stoptext
 
 I am using big space so that it is easy to see the difference.

Another old example from me but i wonder if the output from your example is 
correct,
when i set 'width=middle' i expect the same margin on both sides (i.e. the 
backspace
setting) and the cutspace value is ignored.

\definelayout[1][backspace=4cm,width=12cm]
\definelayout[2][backspace=5cm,cutspace=7cm,width=fit]
\definelayout[3][backspace=3cm,width=middle]

\showframe

\starttext

\dorecurse{3}
  {\starttabulate
   \NC backspace \EQ \PtToCm\backspace \NC\NR
   \NC textwidth \EQ \PtToCm\textwidth \NC\NR
   \NC cutspace  \EQ \PtToCm\cutspace  \NC\NR
   \stoptabulate
   \page}

\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] local footnote (Tables) problem

2009-11-16 Thread Bowen Alan C.
Many thanks, Wolfgang. This works perfectly.

I will try my hand at updating the wiki entry on local notes in Table(s), once 
I have worked your solution through more carefully.

Best, Alan

On Nov 15, 2009, at 11;16,29 , Wolfgang Schuster wrote:

 
 Am 14.11.2009 um 17:05 schrieb Bowen Alan C.:
 
 After further experimentation, I am still stumped; so I am resending this.
 
 \showframe
 
 \starttext
 
 \dorecurse{3}{\input knuth\par}
 
 \start
 
 \setuptables
  [bodyfont=9pt,
   width=\textwidth,
   rulethickness=0.03em,
   distance=big,
   split=yes]
 
 \placetable
  [top,nonumber]
  [tab:Table03]
  {Table 3}
  {\startlocalfootnotes[conversion=character,bodyfont=9pt]
   \placelegend
 {\startframedtext[frame=off,offset=none,width=fit]
  \starttablehead
  \HL[3]
  \NC \REF[c]{\switchtobodyfont[11pt]Column A} \NC 
 \REF[c]{\switchtobodyfont[11pt]Column B} \NC\SR
  \HL
  \stoptablehead
  \starttable[|p(11.5pc)|p(11.5pc)|]
  \NC \REF[c]{1[4].341||345 [= F21.82||86]} \NC\REF[c]{6.29.3||4} \NC\SR
  \NC Text A\note[a]\NC Text B\note[b]\NC\SR
  \stoptable
  \stopframedtext}
 {\footnotetext[a]{A local footnote.}
  \footnotetext[b]{Another local footnote.}
  \hskip2pc\mbox{\placelocalfootnotes}}
   \stoplocalfootnotes}
 
 \stop
 
 \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
 ___

___
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] framed items

2009-11-16 Thread luigi scarso
On Mon, Nov 16, 2009 at 10:29 PM, Aditya Mahajan adit...@umich.edu wrote:

 I think that itemize should adjust \hsize, so this is probably a bug in
 itemize.
hmm I'm not sure to understand what you mean
What is wrong in this ?

\starttext
\dorecurse{20}{%
\hsize=\dimexpr \textwidth / 20 *\recurselevel\relax
\framed[width=broad,align=middle]{\the\hsize}%% A
\startitemize
 \item \framed[width=broad,align=middle]{\the\hsize}%%  B
 \item \framed[width=\hsize,align=middle]{\the\hsize}%%  C
\stopitemize
\page
}
\stoptext

I see A = B = C; is it correct ?

-- 
luigi
___
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] framed items

2009-11-16 Thread Wolfgang Schuster

Am 16.11.2009 um 22:46 schrieb luigi scarso:

 On Mon, Nov 16, 2009 at 10:29 PM, Aditya Mahajan adit...@umich.edu wrote:
 
 I think that itemize should adjust \hsize, so this is probably a bug in
 itemize.
 hmm I'm not sure to understand what you mean
 What is wrong in this ?
 
 \starttext
 \dorecurse{20}{%
 \hsize=\dimexpr \textwidth / 20 *\recurselevel\relax
 \framed[width=broad,align=middle]{\the\hsize}%% A
 \startitemize
 \item \framed[width=broad,align=middle]{\the\hsize}%%  B
 \item \framed[width=\hsize,align=middle]{\the\hsize}%%  C
 \stopitemize
 \page
 }
 \stoptext
 
 I see A = B = C; is it correct ?

No, b and c should be equal but narrower than a because there is less space
between the item symbol and the right margin as you have in the running text.

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] framed items

2009-11-16 Thread Aditya Mahajan

On Mon, 16 Nov 2009, luigi scarso wrote:


On Mon, Nov 16, 2009 at 10:29 PM, Aditya Mahajan adit...@umich.edu wrote:


I think that itemize should adjust \hsize, so this is probably a bug in
itemize.

hmm I'm not sure to understand what you mean
What is wrong in this ?

\starttext
\dorecurse{20}{%
\hsize=\dimexpr \textwidth / 20 *\recurselevel\relax
\framed[width=broad,align=middle]{\the\hsize}%% A
\startitemize
\item \framed[width=broad,align=middle]{\the\hsize}%%  B
\item \framed[width=\hsize,align=middle]{\the\hsize}%%  C
\stopitemize
\page
}
\stoptext

I see A = B = C; is it correct ?


That is wrong behaviour.We should have B = C = A - itemgrouplistwidth.

Otherwise, the frames inside the itemize environment exceed the total 
width.


Aditya
___
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 meaning of cutspace

2009-11-16 Thread Taco Hoekwater

Vyatcheslav Yatskovsky wrote:

Hello Luigi,

I'm not sure, but what about
width=middle?
   


Yes! It works!
I don't understand it; it's like another magic trick )

\setuppapersize [A5][A5]

\setuplayout[topspace=2cm, header=0cm, footer=0.6cm, bottomspace=2cm, 
height=fit,


backspace=1.5cm, cutspace=2cm,

width=middle]


@Taco: what's wrong with it then?


Never mind, I was confused (never use width=middle myself)

Best wishes,
Taco
___
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] framed items

2009-11-16 Thread luigi scarso
On Mon, Nov 16, 2009 at 10:58 PM, Aditya Mahajan adit...@umich.edu wrote:
 On Mon, 16 Nov 2009, luigi scarso wrote:

 On Mon, Nov 16, 2009 at 10:29 PM, Aditya Mahajan adit...@umich.edu
 wrote:

 I think that itemize should adjust \hsize, so this is probably a bug in
 itemize.

 hmm I'm not sure to understand what you mean
 What is wrong in this ?

 \starttext
 \dorecurse{20}{%
 \hsize=\dimexpr \textwidth / 20 *\recurselevel\relax
 \framed[width=broad,align=middle]{\the\hsize}%% A
 \startitemize
 \item \framed[width=broad,align=middle]{\the\hsize}%%  B
 \item \framed[width=\hsize,align=middle]{\the\hsize}%%  C
 \stopitemize
 \page
 }
 \stoptext

 I see A = B = C; is it correct ?

 That is wrong behaviour.We should have B = C = A - itemgrouplistwidth.

 Otherwise, the frames inside the itemize environment exceed the total width.
Ah, but I'm not sure that  \hsize and \startitemize must play well together
\showframe
\starttext
\dorecurse{1}{%
\hsize=\dimexpr \textwidth / 1 *\recurselevel\relax
\framed[width=broad,align=middle]{\the\hsize}
\startitemize
 \item 
\framed[width=broad,align=middle]{\the\currentitemmaxwidth,\the\hsize,\the\localhsize}
 \item \framed[width=\hsize,align=middle]{\the\hsize}
 \item \the\hsize \input tufte \the\hsize %
\stopitemize
\page
}
\stoptext



-- 
luigi
___
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] framed items

2009-11-16 Thread luigi scarso
On Mon, Nov 16, 2009 at 11:20 PM, luigi scarso luigi.sca...@gmail.com wrote:
 That is wrong behaviour.We should have B = C = A - itemgrouplistwidth.

 Otherwise, the frames inside the itemize environment exceed the total width.
 -- Sorry wrong post --

 \showframe
 \starttext
 \dorecurse{1}{%
 \hsize=\dimexpr \textwidth / 1 *\recurselevel\relax
 \framed[width=broad,align=middle]{\the\hsize}
 \startitemize
  \item \framed[width=broad,align=middle]{\the\hsize}
  \item \framed[width=\hsize,align=middle]{\the\hsize}
  \item \the\hsize \input tufte \the\hsize %
 \stopitemize
 \page
 }
 \stoptext

I'm ( still :-) )
not sure that  \hsize and \startitemize must play well together,
I will give it a look.


-- 
luigi
___
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] framed items

2009-11-16 Thread Wolfgang Schuster

Am 16.11.2009 um 23:31 schrieb luigi scarso:

 I'm ( still :-) )
 not sure that  \hsize and \startitemize must play well together,
 I will give it a look.

That's why we have \localhsize but it's not working.

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 meaning of cutspace

2009-11-16 Thread Wolfgang Schuster

Am 16.11.2009 um 22:29 schrieb Wolfgang Schuster:

 
 Am 16.11.2009 um 21:48 schrieb Aditya Mahajan:
 
 \setuplayout[backspace=1.5cm, cutspace=5cm, width=middle]
 \setuppagenumbering[alternative=doublesided]
 \showframe
 \starttext
 \showlayout
 \stoptext
 
 I am using big space so that it is easy to see the difference.
 
 Another old example from me but i wonder if the output from your example is 
 correct,
 when i set 'width=middle' i expect the same margin on both sides (i.e. the 
 backspace
 setting) and the cutspace value is ignored.

After reading the source 'width=middle' make sense, when both backspace and 
cutspace
are set the width of the textarea is 'paperwidth - backspace - cutspace' but 
when
cutspace is set to 0pt the textarea is 'paperwidth - 2*backspace'.

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] framed items

2009-11-16 Thread luigi scarso
On Mon, Nov 16, 2009 at 11:36 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 That's why we have \localhsize but it's not working.
yes, I was looking at \localhsize in the first post


-- 
luigi
___
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] framed items

2009-11-16 Thread luigi scarso
On Mon, Nov 16, 2009 at 11:42 PM, luigi scarso luigi.sca...@gmail.com wrote:
 On Mon, Nov 16, 2009 at 11:36 PM, Wolfgang Schuster
 schuster.wolfg...@googlemail.com wrote:

 That's why we have \localhsize but it's not working.


\showframe
\starttext
\dorecurse{1}{%
\hsize=\dimexpr \textwidth / 1 *\recurselevel\relax
\framed[width=broad,align=middle]{\the\hsize}
\bgroup
\startitemize
\advance\hsize -\itemgrouplistwidth\relax%
 \item 
\framed[width=broad,align=middle]{\the\hsize,\the\localhsize,\the\itemgrouplistwidth}
% \item 
\framed[width=\dimexpr\hsize-\itemgrouplistwidth\relax,align=middle]{\the\hsize}
  \item \framed[width=\hsize,align=middle]{\the\hsize}
 \item \the\hsize \input tufte \the\hsize %
\stopitemize
\egroup
\page
}
\stoptext

that's all x me now.

-- 
luigi
___
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] Pstricks and Asymptote

2009-11-16 Thread Curiouslearn
Thanks everyone for replying.

Mojca, in case you read this, can you please let me know what the
status on asymptote is.

Alan, the tikz module does not work with MKIV. From what I have read
before, it seems it will not unless the creator of tikz makes some
changes to tikz package so that it works with Context. I am not sure
how likely that is.

Thomas or someone else can you please confirm that the pstricks module
works with MKIV. Also, where I can find the module? It is not there
with the other third party modules.

Thanks.

On Mon, Nov 16, 2009 at 9:43 AM, Alan BRASLAU alan.bras...@cea.fr wrote:
 On Monday 16 November 2009 15:29:14 Thomas A. Schmitz wrote:
 On Nov 16, 2009, at 3:12 PM, curiouslearn wrote:
  I apologize if this has been asked before, but would appreciate if
  anyone could
  answer this again.
 
  (a) Is there an easy way to incorporate asymptote code in a Context
  document,
  like there exists in Latex. In latex you can include it between
  \begin{asy}
 
  \end{asy}

 There was a discussion about asymptote on this list in the summer,
 Mojca has done quite a lot of work towards integrating it. But I'm not
 sure what the current state is.

  (b) Is there an easy way to incorporate pstricks code in a Context
  document. If
  there is, does that way work both with MKII and MKIV or only with
  one of them.

 There's a module pstricks. Again, a search in the list archives would
 have shown that.

  The reason I am asking is that eventually all the new Context
  features will be
  in MKIV. I want to know what graphics packages I can use with it
  other than
  Metapost.
 
  Thanks.

 In addition, there is a module tikz, integrating pgf/tikz, also maintained by
 Mojca.

 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
 ___

___
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] framed items

2009-11-16 Thread Wolfgang Schuster

Am 16.11.2009 um 23:49 schrieb luigi scarso:

 \showframe
 \starttext
 \dorecurse{1}{%
 \hsize=\dimexpr \textwidth / 1 *\recurselevel\relax
 \framed[width=broad,align=middle]{\the\hsize}
 \bgroup
 \startitemize
 \advance\hsize -\itemgrouplistwidth\relax%
 \item 
 \framed[width=broad,align=middle]{\the\hsize,\the\localhsize,\the\itemgrouplistwidth}
 % \item 
 \framed[width=\dimexpr\hsize-\itemgrouplistwidth\relax,align=middle]{\the\hsize}
  \item \framed[width=\hsize,align=middle]{\the\hsize}
 \item \the\hsize \input tufte \the\hsize %
 \stopitemize
 \egroup
 \page
 }
 \stoptext
 
 that's all x me now.

as you can see in the third item the width of the text (\input tufte)
is too narrow because of the reduced \hsize but this works

\showframe
\starttext
\framed[width=\hsize,align=middle]{\the\hsize}
\startitemize
\setlocalhsize
\item \framed[width=\hsize,align=middle] {\the\hsize}
\item \framed[width=\localhsize,align=middle]{\the\localhsize}
\stopitemize
\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] framed items

2009-11-16 Thread luigi scarso
On Tue, Nov 17, 2009 at 12:01 AM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 16.11.2009 um 23:49 schrieb luigi scarso:

 \showframe
 \starttext
 \dorecurse{1}{%
 \hsize=\dimexpr \textwidth / 1 *\recurselevel\relax
 \framed[width=broad,align=middle]{\the\hsize}
 \bgroup
 \startitemize
 \advance\hsize -\itemgrouplistwidth\relax%
 \item 
 \framed[width=broad,align=middle]{\the\hsize,\the\localhsize,\the\itemgrouplistwidth}
 % \item 
 \framed[width=\dimexpr\hsize-\itemgrouplistwidth\relax,align=middle]{\the\hsize}
  \item \framed[width=\hsize,align=middle]{\the\hsize}
 \item \the\hsize \input tufte \the\hsize %
 \stopitemize
 \egroup
 \page
 }
 \stoptext

 that's all x me now.

 as you can see in the third item the width of the text (\input tufte)
 is too narrow because of the reduced \hsize but this works
yes too narrow,
but with this still
width=broad is not good,
because  broad should be now egual to \localhsize
and not \hsize,
if I understand what Aditya said.

\showframe
\starttext
\framed[width=\hsize,align=middle]{\the\hsize}
\startitemize
\setlocalhsize
\item \framed[width=\hsize,align=middle] {\the\hsize}
\item \framed[width=broad,align=middle] {\the\hsize}
\item \framed[width=\localhsize,align=middle]{\the\localhsize}
\stopitemize
\stoptext

(go to sleep now...see you tomorrow)

-- 
luigi
___
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] framed items

2009-11-16 Thread Wolfgang Schuster

Am 17.11.2009 um 00:19 schrieb luigi scarso:

 as you can see in the third item the width of the text (\input tufte)
 is too narrow because of the reduced \hsize but this works
 yes too narrow,
 but with this still
 width=broad is not good,
 because  broad should be now egual to \localhsize
 and not \hsize,
 if I understand what Aditya said.

from pack-rul:

   \else\ifx\localwidth\v!broad
 \boxhaswidthtrue
 \!!framedwidth\hsize
   \else\ifx\localwidth\v!local
 \boxhaswidthtrue
 \setlocalhsize
 \!!framedwidth\localhsize

use \framed[width=local] and don't forget \setlocalhsize after \startitemize.

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] spacing between floating figure caption and surrounding text

2009-11-16 Thread Vyatcheslav Yatskovsky

Hello,

Another question about figures. How to get rid of big spacing between 
floating figure caption and surrounding text?


In the following example, I want the spacing between  Figure 1 and the 
text below to be twice less.



\starttext

\dorecurse{2}{\input knuth \par}

\placefigure

[inner]

{}

{\externalfigure[cow][width=0.5\textwidth]}

\dorecurse{2}{\input knuth \par}

\stoptext



Regards,
Vyatcheslav
___
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] framed items

2009-11-16 Thread luigi scarso
On Tue, Nov 17, 2009 at 12:24 AM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
 from pack-rul:

   \else\ifx\localwidth\v!broad
     \boxhaswidthtrue
     \!!framedwidth\hsize
   \else\ifx\localwidth\v!local
     \boxhaswidthtrue
     \setlocalhsize
     \!!framedwidth\localhsize

 use \framed[width=local] and don't forget \setlocalhsize after \startitemize.
yes, right. I remembered of something similar
That's what I mean with not sure that  \hsize and \startitemize must
play well together


\showframe
\starttext
\framed[width=\hsize,align=middle]{width=hsize\the\hsize}
\startitemize
\setlocalhsize
\item \framed[width=\hsize,align=middle] {width=hsize,hsize=\the\hsize}
\item \framed[width=broad,align=middle] {width=broad,hsize=\the\hsize}
\item \framed[width=local,align=middle] {width=local,hsize=\the\hsize}
\item 
\framed[width=\localhsize,align=middle]{width=localsize,hsize=\the\hsize,localsize=\the\localhsize}
\stopitemize
\stoptext

Aditya, what do you think  ?

-- 
luigi
___
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] Pstricks and Asymptote

2009-11-16 Thread Alan BRASLAU
On Monday 16 November 2009 23:57:28 Curiouslearn wrote:
 Thanks everyone for replying.
 
 Alan, the tikz module does not work with MKIV. From what I have read
 before, it seems it will not unless the creator of tikz makes some
 changes to tikz package so that it works with Context. I am not sure
 how likely that is.
 

I know that tikz is (currently) not working under mkiv, but I choose to ignore 
this as I expect that this will be fixed. I have not been concerned with this, 
as I no longer actively use tikz. Indeed, since learning (and still learning) 
metapost, I find it far superior: cleaner syntax, much more powerful... Tikz 
is/was a very welcome addition to laTeX, but metapost, whose syntax is more 
closely related to plain TeX, is more coherent with ConTeXt. So I now find the 
syntax of tikz uncomfortable under ConTeXt.

I still sometimes use LaTeX for the submission of articles to scientific 
journals (in particular using RevTeX), but I now use ConTeXt 
(\startTEXpage\stopTEXpage) to make the figures (that must be submitted as 
separate files in any case).

Alan

P.S. What I really liked about tikz is the quality of its documentation, in 
particular the tutorial that is very clear. The documentation for metapost 
(and metafun) is very good, but not so easy. *We* need to write a good 
tutorial!
___
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] spacing between floating figure caption and surrounding text

2009-11-16 Thread Taco Hoekwater


Vyatcheslav Yatskovsky wrote:
 Hello,
 
 Another question about figures. How to get rid of big spacing between
 floating figure caption and surrounding text?
 
 In the following example, I want the spacing between  Figure 1 and the
 text below to be twice less.

Normally, you would do \setupfloat[figure][after=] but that does not
seem to work very well for side floats, sorry.

Best wishes,
Taco
___
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] Sort register (index) by Bible book

2009-11-16 Thread Taco Hoekwater


ber...@pobox.com wrote:
 Hi All,
 
 I'm typesetting a book that has a register of Bible verses. I like to
 order them by Bible book as per the order the books are customarily
 listed.
 
 The index is created like \index{1 Samuel 1:1} and retrieved with
 \placeindex, so that's all standard.

Using

  \index[Samuel 1 1:1]{1 Samuel 1:1}

Should change the sort order. Untested, though.

Best wishes,
Taco
___
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
___