[NTG-context] Problems with \completecontent

2012-06-30 Thread Marcin Borkowski
Hi,

I'd like to make the distance between the chapter number and the title
(and between the title and pagenumber with alternative=a) smaller.  How
to do that?  [distance=0.5em] didn't work.

Also, I'd like to have the pagenumbers slanted; I tried
[pagestyle=slanted], but it didn't work either.

Any ideas?

-- 
Marcin Borkowski
http://mbork.pl
___
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] List without bullets

2012-06-30 Thread Gilbert Houtekamer
Wolfgang Schuster  gmail.com> writes:
> 
> 
> Am 30.06.2012 um 00:49 schrieb Gilbert Houtekamer:
> 
> > Hi,
> > 
> > I am would like to make \startitemize list with \head that 
> > has no bullets, e.g.
> > 
> > Topic 
> > 
> > My text for topic
> > 
> > Another Topic
> > 
> > Text for another topic.
> > 
> > With \startitemize and \head I get bullets before "Topic" 
> > and "Another Topic", how can get rid of these?
> 
> When you the head and the itemize entries are on the same level you can’t 
change/remove it because
> head uses the normal item symbol but when you move the entries at a deeper 
level you can use the empty
> symbol “none” for the top level and use the “bullet” symbol for the sub level.
> 
> \starttext
> 
> \startitemize
>  \starthead {Topic}
>  \startitem My text for topic \stopitem
>  \stophead
>  \starthead {Another Topic}
>  \startitem Text for another topic. \stopitem
>  \stophead
> \stopitemize
> 
> \startitemize[none][width=0pt]
>  \starthead {Topic}
>\startitemize[bullet]
>\startitem My text for topic \stopitem
>\stopitemize
>  \stophead
>  \starthead {Another Topic}
>\startitemize[bullet]
>\startitem Text for another topic. \stopitem
>\stopitemize
>  \stophead
> \stopitemize
> 
> \stoptext
> 
> Wolfgang
> 

Wolfgang, thank you very much, this is what I wanted.

I modified it a bit to give me bold headers, and no bullets at all, as below.


\startitemize[none][width=0pt,headstyle=bold]
 \starthead {Topic}
   \startitemize[symbol=none]
   \startitem My text for topic \stopitem
   \stopitemize
 \stophead
 \starthead {Another Topic}
   \startitemize[symbol=none]
   \startitem Text for another topic. \stopitem
   \stopitemize
 \stophead
\stopitemize

Gilbert


___
> 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] Two questions about buffers

2012-06-30 Thread Wolfgang Schuster

Am 30.06.2012 um 14:25 schrieb Marcin Borkowski:

> Hello,
> 
> I have two questions concerning buffers.
> 
> 1. What is the difference between \grabbufferdata and \dostartbuffer?

There is no difference, \grabbufferdata is just the new name for \dostartbuffer 
in MkIV and it’s recommended to use the name name.

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] itemize in two columns and pagebreaks

2012-06-30 Thread Wolfgang Schuster

Am 29.06.2012 um 23:30 schrieb Marcin Borkowski:

> Hello,
> 
> I encountered a weird problem with
> 
> \startitemize[columns]
> 
> Namely, sometimes ConTeXt (MkIV) puts a pagebreak before the
> itemization.  I tried to distill the problem to a minimal example,
> until now without success, but I'll post a ME if I'm able to reproduce
> a problem in a small file.
> 
> Anybody encountered this, too?  Are there any solutions/workarounds
> known?


Use this setting for your chapter headings (adjust the test page/blank values 
to your needs).

\setuphead[chapter][page=no,sectionstopper=.,before={\testpage[6]\blank[big]}]

BTW: You can replace your numbercommand setting with sectionstopper.

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] Two questions about buffers

2012-06-30 Thread Wolfgang Schuster

Am 30.06.2012 um 14:25 schrieb Marcin Borkowski:

> Hello,
> 
> I have two questions concerning buffers.
> 
> 1. What is the difference between \grabbufferdata and \dostartbuffer?
> 
> 2. I wanted to use buffers to define my own "environment" (as Wolfgang
> suggested to me a few days ago).  However, there's a problem with
> \baselineskip; here is an example:
> 
> \starttext
> 
> \def\startMyEnv{\dostartbuffer[MyEnv][startMyEnv][stopMyEnv]}
> \def\stopMyEnv{{\tfxx\getbuffer[MyEnv]\par}}
> 
> \input tufte
> 
> \startMyEnv
>  \input knuth
> \stopMyEnv
> 
> \input tufte
> 
> \stoptext
> 
> Am I doing something wrong here?


You can use the annotation module for your environment.

\usemodule[annotation]

\defineannotation[MyEnv][style=\txx]

\starttext

\input tufte

\startMyEnv
 \input knuth
\stopMyEnv

\input tufte

\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] Two questions about buffers

2012-06-30 Thread Hans Hagen

On 30-6-2012 14:25, Marcin Borkowski wrote:

Hello,

I have two questions concerning buffers.

1. What is the difference between \grabbufferdata and \dostartbuffer?

2. I wanted to use buffers to define my own "environment" (as Wolfgang
suggested to me a few days ago).  However, there's a problem with
\baselineskip; here is an example:

\starttext

\def\startMyEnv{\dostartbuffer[MyEnv][startMyEnv][stopMyEnv]}
\def\stopMyEnv{{\tfxx\getbuffer[MyEnv]\par}}

\input tufte

\startMyEnv
   \input knuth
\stopMyEnv

\input tufte

\stoptext

Am I doing something wrong here?


\tfxx just switches a font and does not adapt the baseline

use \switchtobodyfont[small] or \tfxx\setupinterlinespace instead

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Two questions about buffers

2012-06-30 Thread Marcin Borkowski
Hello,

I have two questions concerning buffers.

1. What is the difference between \grabbufferdata and \dostartbuffer?

2. I wanted to use buffers to define my own "environment" (as Wolfgang
suggested to me a few days ago).  However, there's a problem with
\baselineskip; here is an example:

\starttext

\def\startMyEnv{\dostartbuffer[MyEnv][startMyEnv][stopMyEnv]}
\def\stopMyEnv{{\tfxx\getbuffer[MyEnv]\par}}

\input tufte

\startMyEnv
  \input knuth
\stopMyEnv

\input tufte

\stoptext

Am I doing something wrong here?

TIA

-- 
Marcin Borkowski
http://mbork.pl
___
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] List without bullets

2012-06-30 Thread Wolfgang Schuster

Am 30.06.2012 um 00:49 schrieb Gilbert Houtekamer:

> Hi,
> 
> I am would like to make \startitemize list with \head that 
> has no bullets, e.g.
> 
> Topic 
> 
> My text for topic
> 
> Another Topic
> 
> Text for another topic.
> 
> With \startitemize and \head I get bullets before "Topic" 
> and "Another Topic", how can get rid of these?

When you the head and the itemize entries are on the same level you can’t 
change/remove it because
head uses the normal item symbol but when you move the entries at a deeper 
level you can use the empty
symbol “none” for the top level and use the “bullet” symbol for the sub level.

\starttext

\startitemize
 \starthead {Topic}
 \startitem My text for topic \stopitem
 \stophead
 \starthead {Another Topic}
 \startitem Text for another topic. \stopitem
 \stophead
\stopitemize

\startitemize[none][width=0pt]
 \starthead {Topic}
   \startitemize[bullet]
   \startitem My text for topic \stopitem
   \stopitemize
 \stophead
 \starthead {Another Topic}
   \startitemize[bullet]
   \startitem Text for another topic. \stopitem
   \stopitemize
 \stophead
\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] itemize in two columns and pagebreaks

2012-06-30 Thread Marcin Borkowski
Dnia 2012-06-30, o godz. 07:05:36
Otared Kavian  napisał(a):

> Hi,
> 
> The mechanisms of columns in itemize (which I think is the same as
> startcolumns) and in simplecolumns are indeed different, as Hans
> indicated once. The issue you encountered is indeed a bug as you
> point out: once (a few months ago) I had an analogous problem and
> Wolfgang S. suggested me to use simplecolumns to avoid the strange
> page breaks.

Oh, now I remember: I found that thread when searching through the
archives!

Hans, are there any chances of fixing this?  (Not necessarily within
hours/days, of course, maybe months, but not years;)?)

Best,

-- 
Marcin Borkowski
http://mbork.pl
___
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
___