Re: [NTG-context] Bug in itemize

2007-07-13 Thread Mikael Persson
>From the ConTeXt manual (cont-eni.pdf page 234 (237 in the pdf file)):

"When we use the key columns the items are typeset in two columns. The
number of columns can be set by the keys one, two (default), three or
four."

Best regards, Micke P

On 7/13/07, David Arnold <[EMAIL PROTECTED]> wrote:
> John, Wolfgang, et al,
>
> I forget how I discovered the option "three," but it worked in
> January with an older version of Context.
>
> See:  http://msenux.redwoods.edu/IntAlgText/chapter4/section4.pdf
>
> Example 13 on page 384.
>
> It no longer works as is evidenced on: http://msenux.redwoods.edu/
> IntAlgText/fall2007/chapter4/section4.pdf
>
> Example 13 on page 394.
>
>
> On Jul 13, 2007, at 5:09 AM, John R. Culleton wrote:
>
> > On Thursday 12 July 2007 15:46, David Arnold wrote:
> >> All,
> >>
> >> Think I found a bug in itemize.
> >>
> >> \starttext
> >>
> >>\startitemize[a,columns,three]
> >>\item $|x|>-5$
> >>\item $|x|>0$
> >>\item $|x|>4$
> >>\stopitemize
> >>
> >> \stoptext
> >>
> > I don't understand your parameters. The Manual allows for columns but
> > not for "three". Is this a later feature?
> >
> > --
> > John Culleton
> > ATTN Publishers/authors:
> > If you don't read you don't succeed.
> > Free short list of publishing/marketing books.
> > http://wexfordpress.com/tex/shortlist.pdf
> >
> >
> > __
> > _
> > 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  : https://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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Layers in ConTeXt

2007-07-13 Thread Giuseppe Bilotta
Friday, July 13, 2007 Peter Rolf wrote:

>>> Giuseppe Bilotta schrieb:
 The first one is very simple: is there a way to 'fix' the
 layer's content "until they change"? I've currently set them
 as page backgrounds, but their content gets reset on each
 new page.
>>> use a collector (Details, p.75) instead; I have no experience with them,
>>> but setup should be the same as for layer.
>> 
>>> % - - - - -
>>> \definecollector[foo][state=repeat]
>>
>> Excellent, thanks.
>> 
>> BTW, just to show how out of the loop I am, where can I get
>> the Details manual? :D
>> 
> http://www.pragma-ade.com/general/manuals/details.pdf

Oh yeah thanks. I'll be able to get a few more tricks from
that.

I've found that [state=repeat] works for layers too. I
wonder if there are any technical differences between them
...

-- 
Giuseppe "Oblomov" Bilotta

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


Re: [NTG-context] \definestartstop with arguments

2007-07-13 Thread Peter Rolf
Hi Vyatcheslav,

Vyatcheslav Yatskovsky schrieb:
> Hello,
> 
> Pleeease, I need a help. 
> 
> I might formulate my previous question badly, so let me restate it.
> 
> How to handle optional arguments (one or two) with \definestartstop? More 
> specifically, how to replace hard-coded "Logging-On" string so that I could 
> write 
> \startusecase[Logging-Out]
> Bla-bla
> \stopusecase
> 
> or even 
> 
> \startusecase[Reminding password][User should be already logged on] 
> % where the last argument is completely optional and is shown on an 
> additional line 
> % with "prerequisite" mark
> Bla-bla-bla
> \stopusecase
>
AFAIK startstop doesn't support optional|additional arguments. But maybe
I'm wrong or there is a better fitting macro somewhere in the deep of
'the base'. I simply dunno.

Anyhow, this is what I would do in such a case

\def\startFOO{\dodoubleempty\dostartFOO}

\long\def\dostartFOO[#1][#2]#3\stopFOO{%
  \iffirstargument
[do something with #1]
  \else
[do something without #1]
  \fi
  \ifsecondargument
[do something with #2]
  \else
[do something without #2]
  \fi
  [whatever before]
  #3
  [whatever after]
}

\let\stopFOO\relax % or define the [whatever after] stuff here


This is the basic construct, the rest is parameter evaluation and some
additional whatever.


HTH, Peter


> My current startstop definition is 
> 
> \definestartstop[usecase][before={\starttextrule{Use Case: 
> Logging-On}\startpacked\startmypar{\bf User Intentions}\mypar{\bf System 
> Responsibilities}\stopmypar},
> after={\stoppacked\stoptextrule}]
> 
> Best,
> 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] \definestartstop with arguments

2007-07-13 Thread Vyatcheslav Yatskovsky
Hello,

Pleeease, I need a help. 

I might formulate my previous question badly, so let me restate it.

How to handle optional arguments (one or two) with \definestartstop? More 
specifically, how to replace hard-coded "Logging-On" string so that I could 
write 
\startusecase[Logging-Out]
Bla-bla
\stopusecase

or even 

\startusecase[Reminding password][User should be already logged on] 
% where the last argument is completely optional and is shown on an additional 
line 
% with "prerequisite" mark
Bla-bla-bla
\stopusecase

My current startstop definition is 

\definestartstop[usecase][before={\starttextrule{Use Case: 
Logging-On}\startpacked\startmypar{\bf User Intentions}\mypar{\bf System 
Responsibilities}\stopmypar},
after={\stoppacked\stoptextrule}]

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


Re: [NTG-context] Layers in ConTeXt

2007-07-13 Thread Peter Rolf
Giuseppe Bilotta schrieb:
> Friday, July 13, 2007 Peter Rolf wrote:
> 
>> Hi Guiseppe,
> 
>> welcome back ;)
> 
> Thanks :) (btw, it's gIUseppe :D)
>
Sorry for that. Too much GUI (graphical user interface) stuff in my
work... :)

>> Giuseppe Bilotta schrieb:
>>> The first one is very simple: is there a way to 'fix' the
>>> layer's content "until they change"? I've currently set them
>>> as page backgrounds, but their content gets reset on each
>>> new page.
>> use a collector (Details, p.75) instead; I have no experience with them,
>> but setup should be the same as for layer.
> 
>> % - - - - -
>> \definecollector[foo][state=repeat]
> 
>> \starttext
>> \switchtobodyfont[32pt]
> 
>> \setcollector[foo]{\strut eat more...}
>> \flushcollector[foo]
> 
>> \page[yes]
> 
>> \setcollector[foo][hoffset=6cm]{\strut poppler}
>> \flushcollector[foo]
> 
>> \stoptext
>> % - - - - -
> 
> Excellent, thanks.
> 
> BTW, just to show how out of the loop I am, where can I get
> the Details manual? :D
> 
http://www.pragma-ade.com/general/manuals/details.pdf
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bug in itemize

2007-07-13 Thread David Arnold
John, Wolfgang, et al,

I forget how I discovered the option "three," but it worked in  
January with an older version of Context.

See:  http://msenux.redwoods.edu/IntAlgText/chapter4/section4.pdf

Example 13 on page 384.

It no longer works as is evidenced on: http://msenux.redwoods.edu/ 
IntAlgText/fall2007/chapter4/section4.pdf

Example 13 on page 394.


On Jul 13, 2007, at 5:09 AM, John R. Culleton wrote:

> On Thursday 12 July 2007 15:46, David Arnold wrote:
>> All,
>>
>> Think I found a bug in itemize.
>>
>> \starttext
>>
>>\startitemize[a,columns,three]
>>\item $|x|>-5$
>>\item $|x|>0$
>>\item $|x|>4$
>>\stopitemize
>>
>> \stoptext
>>
> I don't understand your parameters. The Manual allows for columns but
> not for "three". Is this a later feature?
>
> -- 
> John Culleton
> ATTN Publishers/authors:
> If you don't read you don't succeed.
> Free short list of publishing/marketing books.
> http://wexfordpress.com/tex/shortlist.pdf
>
>
> __ 
> _
> 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] \definestartstop with arguments

2007-07-13 Thread Vyatcheslav Yatskovsky
Hello,

I want to convert my following code into a custom \start \stop pair.

\starttextrule{Use Case: Logging-On}\startpacked
Text
\stoppacked\stoptextrule

It seems to me that using \definestartstop[usecase][...] command is the most 
approprate, but I cannot get how to achieve different captions:

\startusecase[Logging-On]
Text...
\stopusecase

\startusecase[Reminding Password]
Text...
\stopusecase

Best,
Vaytcheslav Yatskovsky

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


Re: [NTG-context] Layers in ConTeXt

2007-07-13 Thread Giuseppe Bilotta
Friday, July 13, 2007 Peter Rolf wrote:

> Hi Guiseppe,

> welcome back ;)

Thanks :) (btw, it's gIUseppe :D)

> Giuseppe Bilotta schrieb:
>> The first one is very simple: is there a way to 'fix' the
>> layer's content "until they change"? I've currently set them
>> as page backgrounds, but their content gets reset on each
>> new page.
> use a collector (Details, p.75) instead; I have no experience with them,
> but setup should be the same as for layer.

> % - - - - -
> \definecollector[foo][state=repeat]

> \starttext
> \switchtobodyfont[32pt]

> \setcollector[foo]{\strut eat more...}
> \flushcollector[foo]

> \page[yes]

> \setcollector[foo][hoffset=6cm]{\strut poppler}
> \flushcollector[foo]

> \stoptext
> % - - - - -

Excellent, thanks.

BTW, just to show how out of the loop I am, where can I get
the Details manual? :D

-- 
Giuseppe "Oblomov" Bilotta

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


Re: [NTG-context] Layers in ConTeXt

2007-07-13 Thread Peter Rolf
Hi Guiseppe,

welcome back ;)

Giuseppe Bilotta schrieb:
> Hello all,
> 
> I have a couple of questions concerning the use of layers in
> ConTeXt. I'm working with Luigi Scarso on a layout which is
> characterized by some fixed-position elements surrounding
> the actual main body of text.
> 
> For the fixed-position elements, I'm using layers. However,
> my ConTeXt is a little rusty[*], so there are a couple of
> things which I need hints for.
>
> The first one is very simple: is there a way to 'fix' the
> layer's content "until they change"? I've currently set them
> as page backgrounds, but their content gets reset on each
> new page.
> 
> The second question is slightly more complex: is there a way
> to add contents to a layer, rather than replacing the
> current layer content? Something like a macro
> 
> \addtolayer[layername][hoffset=whatever(optional)]{additional content}
>

use a collector (Details, p.75) instead; I have no experience with them,
but setup should be the same as for layer.

% - - - - -
\definecollector[foo][state=repeat]

\starttext
\switchtobodyfont[32pt]

\setcollector[foo]{\strut eat more...}
\flushcollector[foo]

\page[yes]

\setcollector[foo][hoffset=6cm]{\strut poppler}
\flushcollector[foo]

\stoptext
% - - - - -

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


Re: [NTG-context] Bug in itemize

2007-07-13 Thread John R. Culleton
On Thursday 12 July 2007 15:46, David Arnold wrote:
> All,
>
> Think I found a bug in itemize.
>
> \starttext
>
>\startitemize[a,columns,three]
>\item $|x|>-5$
>\item $|x|>0$
>\item $|x|>4$
>\stopitemize
>
> \stoptext
>
I don't understand your parameters. The Manual allows for columns but 
not for "three". Is this a later feature?

-- 
John Culleton
ATTN Publishers/authors:
If you don't read you don't succeed.
Free short list of publishing/marketing books. 
http://wexfordpress.com/tex/shortlist.pdf


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


Re: [NTG-context] Layers in ConTeXt

2007-07-13 Thread luigi scarso
"It's allright ( oblamov's Coming Back)"

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


[NTG-context] Layers in ConTeXt

2007-07-13 Thread Giuseppe Bilotta
Hello all,

I have a couple of questions concerning the use of layers in
ConTeXt. I'm working with Luigi Scarso on a layout which is
characterized by some fixed-position elements surrounding
the actual main body of text.

For the fixed-position elements, I'm using layers. However,
my ConTeXt is a little rusty[*], so there are a couple of
things which I need hints for.

The first one is very simple: is there a way to 'fix' the
layer's content "until they change"? I've currently set them
as page backgrounds, but their content gets reset on each
new page.

The second question is slightly more complex: is there a way
to add contents to a layer, rather than replacing the
current layer content? Something like a macro

\addtolayer[layername][hoffset=whatever(optional)]{additional content}

Thanks in advance,

-- 
Giuseppe "Oblomov" Bilotta

P.S. To prove that it's really me, I'll signal two minor
typos in the context source:

core-tab.tex:88:%D   {inintable, ifsplittables}

(first should be ifintable), and

page-lyr.tex:81:  \c!x=\zeropoint,\c!y=\zeropoint,\c!position=\v!no,
page-lyr.tex:87:  \c!location=rb,\c!position=\v!no,\c!page=,

position=no is set twice in the same setup.

[*] I've been out of the loop for a couple of years, the
University has sucked up most of my time. I was never too
happy with it, and I'm planning on a comeback :D

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


Re: [NTG-context] frames in ConTeXt and metafun

2007-07-13 Thread Thomas A. Schmitz
On Thu, 12 Jul 2007

> On Thu, 12 Jul 2007, Thomas A. Schmitz wrote:
> 
>> On Jul 12, 2007, at 10:04 AM, Peter Rolf wrote:
>>
>> > sure (see attachment).
>> >
>> Thanks so much Peter! THis looks MUCH better. The more I use metafun,
>> the more I love it.
> 
> Hello,
> 
> Did you take a look at the result with xpdf? There seems to be a problem
> somewhere. But it looks very nice with acroread, indeed!
> 
> Cheers, Peter

Yes you're right, I just looked at it on my linux box (usually I use OS 
X). The result is bizarre both in xpdf and in evince (there is no 
acroread for powerpc, shame on adobe!). But this seems to be merely an 
error in the viewer; I have often found the linux pdf viewers to be 
extremely inferior to what I get in OS X; one of the reasons why I will 
not be able to switch to linux anytime soom.

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