[NTG-context] How to reset settings in setuphead back to defaults?

2022-08-21 Thread Joel via ntg-context
I have some settings like this, which define the part, chapter, and section 
titles within a file that contains all of my common settings for all files.

\definepagebreak[chapterpagebreak][yes, right]

\setuphead[part][style=\sse, placehead=yes, expansion=yes]
\setuphead[chapter][style=\sse, placehead=yes, expansion=yes, page=yes,
                        numbercommand=\groupedcommand{}{\blank[1cm]},
                        alternative=middle,
                        numberstyle=ssl,
                        numbercolor=white,
                        strut=yes,
                        page=chapterpagebreak,
                        header=empty]
\setuphead[subject][style=\sse, placehead=yes, expansion=yes, page=yes,
                        numbercommand=\groupedcommand{}{\blank[1cm]},
                        alternative=middle,
                        numberstyle=ssl,
                        numbercolor=white,
                        strut=yes,
                        page=chapterpagebreak,
                        header=empty]
A problem I have is I need one document to ignore all the above, basically 
pretend each of these is reset to defaults. Is there a way to rest all of the 
above items to default settings quickly?
--Joel
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Setting a heading text on its own page with \setuphead

2021-08-07 Thread Joey McCollum via ntg-context
Beautiful! This makes things even more succinct. I notice that if I try to
prevent paragraph indentation after a MyPart heading with the
"indentnext=no" argument, it doesn't work. Is this because of the
\page[blankpagebreak] command in the "after" argument? (In any case, I can
just change the "after" argument to
"after=\page[blankpagebreak]\noindentation" and things work as expected, so
this isn't a real problem. I'm just curious.)

Thanks!

Joey

On Sat, Aug 7, 2021 at 5:20 AM Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com> wrote:

> Joey McCollum via ntg-context schrieb am 06.08.2021 um 19:12:
> > Hi,
> >
> > I'd like to define my own class of heading derived from the "part"
> > heading; in the MWE below, it's called "MyPart". I'd like this heading
> > to have the following features:
> >
> >   * Its title should appear in the ToC, but its number should never be
> > printed in the ToC or in the text.
> >   * It should always start on an odd page.
> >   * Its text should be in a larger size than the text of the body, set
> > in all caps, and set with extra letterspacing.
> >   * Most importantly, the title of the heading should appear on its own
> > page without a header or footer. The text of the body should begin
> > on the next odd page.
> >
> > I was hoping to accomplish all of this within the \setuphead command,
> > and it seems like this should be possible, but in the following example,
> > I'm not getting the text of the header at all:
> >
> > [...]
> >
> > I expect there's something obvious that I'm missing, but any help is
> > appreciated.
>
> Most of the stuff was already answered by Pablo. Below is my version how
> to set the layout to fit the requirements.
>
> \definefontfamily
>[garamond]
>[rm]
>[EBGaramond]
>
> \setupbodyfont
>[garamond,12pt]
>
> \definefont
>[MyPartFont]
>[Serif at 24pt]
>[line=36pt]
>
> \setuppagenumbering
>[alternative=doublesided,
> location=]
>
> \setupinterlinespace
>[line=18pt]
>
> \definepagebreak
>[blankpagebreak]
>[yes,header,footer,right]
>
> \definehead
>[MyPart]
>[part]
>
> \definecharacterkerning
>[mypartkerning]
>[factor=0.,
> features=letterspacing]
>
> \setuphead
>[MyPart]
>[placehead=yes,
> number=no,
> page=blankpagebreak,
> header=empty,
> footer=empty,
> align={flushleft,nothyphenated},
> style=MyPartFont,
>
> textstyle={\setcharacterkerning[mypartkerning]\setcharactercasing[WORD]},
> after={\page[blankpagebreak]}]
>
> \setupheadertexts
>[\structureuservariable{booktitle}] []
>[] [\structureuservariable{booktitle}]
>
> \setupfootertexts
>[pagenumber] []
>[] [pagenumber]
>
> \setupblank
>[line,fixed]
>
> \starttext
>
> \startMyPart [title={Title for Title Page}] [booktitle={Title for Header}]
> \dorecurse{6}{\input knuth\par}
> \stopMyPart
>
> \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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Setting a heading text on its own page with \setuphead

2021-08-07 Thread Wolfgang Schuster via ntg-context

Joey McCollum via ntg-context schrieb am 06.08.2021 um 19:12:

Hi,

I'd like to define my own class of heading derived from the "part" 
heading; in the MWE below, it's called "MyPart". I'd like this heading 
to have the following features:


  * Its title should appear in the ToC, but its number should never be
printed in the ToC or in the text.
  * It should always start on an odd page.
  * Its text should be in a larger size than the text of the body, set
in all caps, and set with extra letterspacing.
  * Most importantly, the title of the heading should appear on its own
page without a header or footer. The text of the body should begin
on the next odd page.

I was hoping to accomplish all of this within the \setuphead command, 
and it seems like this should be possible, but in the following example, 
I'm not getting the text of the header at all:


[...]

I expect there's something obvious that I'm missing, but any help is 
appreciated.


Most of the stuff was already answered by Pablo. Below is my version how 
to set the layout to fit the requirements.


\definefontfamily
  [garamond]
  [rm]
  [EBGaramond]

\setupbodyfont
  [garamond,12pt]

\definefont
  [MyPartFont]
  [Serif at 24pt]
  [line=36pt]

\setuppagenumbering
  [alternative=doublesided,
   location=]

\setupinterlinespace
  [line=18pt]

\definepagebreak
  [blankpagebreak]
  [yes,header,footer,right]

\definehead
  [MyPart]
  [part]

\definecharacterkerning
  [mypartkerning]
  [factor=0.,
   features=letterspacing]

\setuphead
  [MyPart]
  [placehead=yes,
   number=no,
   page=blankpagebreak,
   header=empty,
   footer=empty,
   align={flushleft,nothyphenated},
   style=MyPartFont,

textstyle={\setcharacterkerning[mypartkerning]\setcharactercasing[WORD]},
   after={\page[blankpagebreak]}]

\setupheadertexts
  [\structureuservariable{booktitle}] []
  [] [\structureuservariable{booktitle}]

\setupfootertexts
  [pagenumber] []
  [] [pagenumber]

\setupblank
  [line,fixed]

\starttext

\startMyPart [title={Title for Title Page}] [booktitle={Title for Header}]
\dorecurse{6}{\input knuth\par}
\stopMyPart

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Setting a heading text on its own page with \setuphead

2021-08-06 Thread Joey McCollum via ntg-context
Hi,

I'd like to define my own class of heading derived from the "part" heading;
in the MWE below, it's called "MyPart". I'd like this heading to have the
following features:

   - Its title should appear in the ToC, but its number should never be
   printed in the ToC or in the text.
   - It should always start on an odd page.
   - Its text should be in a larger size than the text of the body, set in
   all caps, and set with extra letterspacing.
   - Most importantly, the title of the heading should appear on its own
   page without a header or footer. The text of the body should begin on the
   next odd page.

I was hoping to accomplish all of this within the \setuphead command, and
it seems like this should be possible, but in the following example, I'm
not getting the text of the header at all:

```

\setuppagenumbering [alternative=doublesided, location=] %undo default page
numbering in middle of header; doublesided option will ensure that the
document has an even number of pages


%Define an odd page break between books that omits headers and footers in
blank pages

\definepagebreak[blankpagebreak][yes,header,footer,right]


%Setup body and title fonts (is any of this redundant, or can it be
consolidated?):

\definefontsynonym [EBGaramond] [name:EBGaramond-Regular] [features=default]

\definefontfamily[garamond] [rm] [EBGaramond] [features={default}]

\setupbodyfont[garamond, 12pt]

\setupinterlinespace[18pt] %text line spacing

\definefont[MyPartFont][EBGaramond at 24pt][line=36pt] %font command to be
used for setting MyPart heading texts


%Macro for adjusting kerning of MyPart heading texts (can any of this can
be handled in the \definefont call?):

\define[1]\MyPartTextCommand{%

\kerncharacters[0.]%increase letterspacing

\WORDS{#1}%set all letters in uppercase

}


%Macro for page break after MyPart headings:

\define\AfterMyPart{%

\page[blankpagebreak]%

}


%Define a new heading at the level of a part:

\definehead[MyPart][part]

\setuphead[MyPart][

number=no,%do not add a number to this heading

page=blankpagebreak,%always start this on an odd page

header=empty,%disable headers for this page

footer=empty,%disable footers for this page

align={flushleft, nothyphenated},%titling alignment settings

textstyle=\MyPartFont,%set text style

textcommand=\MyPartTextCommand,%set text formatting command

commandafter=\AfterBookTitle%add a double page break afterwards

]


%Setup header and footer text:

\setupheadertexts[{\structureuservariable{booktitle}}\hfill][][][\hfill
{\structureuservariable{booktitle}}] %even left, even right, odd left, odd
right

\setupfootertexts[\pagenumber][][][\pagenumber] %even left, even right, odd
left, odd right


%Ensure that whitespace respects the grid layout:

\setupblank[line,fixed]

\starttext

\startMyPart[title={Title for Title Page}][booktitle={Title for Header}]

\input knuth\par

\input knuth\par

\input knuth\par

\input knuth\par

\input knuth\par

\input knuth

\stopMyPart

\stoptext
```

I expect there's something obvious that I'm missing, but any help is
appreciated.

Thank you!

Joey
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Wolfgang Schuster

juh schrieb am 29.05.2020 um 10:29:

Dear all,

with your help I can colorize the empty even page right before a chapter starts
on the odd page. The mwe below shows it.

Now I would like to redefine the contents of the left page on the fly in the 
text
so that I could place images on this page.

I thought that I could get a simple solution by inserting a TEXpage as even
page, but this does not work for several reasons. First a TEXpage is not counted
correctly like a normal page.  And secondly I found now way to put it on the
even page.

So what I really want to achieve is a way to redefine this setups at some point
in the text to insert eg. a picture on the even page before a chapter.

\startsetups [chapter:before]
   \doifoddpageelse
 {}
 {\pushbackground[page]
  \setupbackgrounds[page][background=color,backgroundcolor=blue,]
  \page[empty,right]
  \popbackground}
\stopsetups

Here comes the not so mwe:

%% start mwe
\setuplayout [ location=doublesided ]
\setuppagenumbering[alternative=doublesided]
\definepagebreak [chapter] [footer,yes,header,footer,right]

\startsetups [chapter:before]
   \doifoddpageelse
 {}
 {\pushbackground[page]
  \setupbackgrounds[page][background=color,backgroundcolor=blue,]
  \page[empty,right]
  \popbackground}
\stopsetups

\setuphead
   [chapter]
   [
page=yes,
before=\directsetup{chapter:before},
   ]

\setupexternalfigure[location=default]

\starttext

\startchapter
   [title={foo}]

   \dorecurse{2}{\input tufte \par}

\stopchapter

\startchapter
   [title={foo2}]

   \dorecurse{6}{\input tufte \par}

\stopchapter

\startchapter
   [title={bar}]

 \input knuth

\startTEXpage
   \externalfigure[cow.pdf][height=\paperheight,width=\paperwidth]
\stopTEXpage

\stopchapter


\startchapter
   [title={baz}]

 \input knuth

\stopchapter

\stoptext
%% stop mwe

As you see the image is not in the right place and of course the pagenumbering
is wrong.
Use \startTEXpage[pagestate=start] to increase the page number with TEX 
pages.

I want that one of these blue pages shows an image. Is this possible?

Yes but there are different ways for different requirements.

- Do you you have a picture before *every* chapter?
- Do you use full page images?
- Are the images cropped to fit the page dimension, stretched or 
centered with margins?

- ...

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread juh
Dear all,

with your help I can colorize the empty even page right before a chapter starts
on the odd page. The mwe below shows it.

Now I would like to redefine the contents of the left page on the fly in the 
text
so that I could place images on this page.

I thought that I could get a simple solution by inserting a TEXpage as even
page, but this does not work for several reasons. First a TEXpage is not counted
correctly like a normal page.  And secondly I found now way to put it on the
even page.

So what I really want to achieve is a way to redefine this setups at some point
in the text to insert eg. a picture on the even page before a chapter.

\startsetups [chapter:before]
  \doifoddpageelse
{}
{\pushbackground[page]
 \setupbackgrounds[page][background=color,backgroundcolor=blue,]
 \page[empty,right]
 \popbackground}
\stopsetups



Here comes the not so mwe:

%% start mwe
\setuplayout [ location=doublesided ]
\setuppagenumbering[alternative=doublesided]
\definepagebreak [chapter] [footer,yes,header,footer,right]

\startsetups [chapter:before]
  \doifoddpageelse
{}
{\pushbackground[page]
 \setupbackgrounds[page][background=color,backgroundcolor=blue,]
 \page[empty,right]
 \popbackground}
\stopsetups

\setuphead 
  [chapter] 
  [
   page=yes,
   before=\directsetup{chapter:before},
  ]

\setupexternalfigure[location=default]

\starttext

\startchapter
  [title={foo}]

  \dorecurse{2}{\input tufte \par}

\stopchapter

\startchapter
  [title={foo2}]

  \dorecurse{6}{\input tufte \par}

\stopchapter

\startchapter
  [title={bar}]

\input knuth

\startTEXpage
  \externalfigure[cow.pdf][height=\paperheight,width=\paperwidth]
\stopTEXpage

\stopchapter


\startchapter
  [title={baz}]

\input knuth

\stopchapter

\stoptext
%% stop mwe 

As you see the image is not in the right place and of course the pagenumbering
is wrong. 

I want that one of these blue pages shows an image. Is this possible?

Thanks for your help.
juh

 
-- 
Autoren-Homepage: . http://literatur.hasecke.com
Satiren & Essays: . http://www.sudelbuch.de
Privater Blog:  http://www.hasecke.eu
Netzliteratur-Projekt:  http://www.generationenprojekt.de




signature.asc
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Strange behavior in somewhat complex layout (again)

2019-06-27 Thread Andres Conrado Montoya
Hi List, it seems my message went unnoticed, if you can help me out, please
do. I'm an struggling with this layout.

I'm trying to make something using bits and examples found here and
elsewhere, but I'm hitting a wall. I know there's a flawed logic in my
approach, but I can't figure it out. Any help is appreciated.

Expected behavior of the following MWE:
When starting a new chapter, check if the page is even (left page), if so,
fill it with color, and start the chapter in the next odd page (right
page), removing the header but leaving the footer in that start-chapter
page; and if this is a start-chapter page, use a specific graphic overlay
for the page, but if if not (if its a regular page), use another graphic.

Result:
The header still appears in the start-chapter page, if it comes after the
color filled page. But, if the start-chapter page comes after a regular
(even) page, everything works as expected (no color-filled page, no header
in the start-chapter page).

MWE:

%% START MWE

\definecolor[rojo][h=ED553B]
\definehighlight[rojo][color=rojo]

\startMPinclusions
numeric u ; u := 1.125pt ;
numeric i ; i := 0.125in ;
string prevChapterTitle, currentChapterTitle;
prevChapterTitle := "";
currentChapterTitle := "";
\stopMPinclusions

\startuseMPgraphic{page:background}
StartPage;
currentChapterTitle := "\namedstructurevariable{chapter}{title}";

if currentChapterTitle <> prevChapterTitle :

fill (topboundary Page -- cycle)
enlarged(0,8i)
shifted (0,-4i)
withcolor transparent(4, 0.2, \MPcolor{rojo}) ;

fill (bottomboundary Page -- cycle)
enlarged(0,1u)
shifted (0,6i)
withcolor \MPcolor{rojo} ;

prevChapterTitle := currentChapterTitle ;

else:

fill (topboundary Page -- cycle)
enlarged(0,0.25u)
shifted (0,-7i+3u)
withcolor \MPcolor{rojo} ;

fill (bottomboundary Page -- cycle)
enlarged(0,0.25u)
shifted (0,6i)
withcolor \MPcolor{rojo} ;

fi;
StopPage;
\stopuseMPgraphic

\defineoverlay
  [chapter:background]
  [\useMPgraphic{page:background}]

\setupbackgrounds[page][background=chapter:background]

\definepagebreak[firstpagebreak][yes,header]

\startsetups [chapter:before]
   \doifoddpageelse
 {}
 {\pushbackground[page]
\setupbackgrounds[page][background=color,backgroundcolor=rojo]
\page[yes,right]
  \popbackground}
\stopsetups

\setuphead[chapter]
  [width=20em,
  before=\directsetup{chapter:before},
  align={flushleft,nothyphenated,verytolerant},
  style={\tfd\sansbold},
  header=empty,
  page=yes,
  commandbefore={\blank[1.75in]},
  after={\blackrule[color=rojo,height=4pt,width=6em]\blank[1.25in]}]


\setuppagenumbering[alternative=doublesided,location=]

\setupheadertexts
[]
[{{\small\sans\getmarking[chapter]}}]
[{{\small\sans\getmarking[chapter]}}]
[]

\setupfootertexts
[]
[{\rojo{\small\sansbold\pagenumber}}]
[{\rojo{\small\sansbold\pagenumber}}]
[]

\starttext

\dorecurse{4}{%
  \startchapter[title={A chapter with a really long, long title}]
  \dorecurse{9}{\input{tufte}}
  \stopchapter
  \startchapter[title={A different chapter with a really long, long title}]
  \dorecurse{6}{\input{tufte}}
  \stopchapter}

\stoptext

%% STOP MWE

Thank you for your time.

Andrés Conrado Montoya
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Strange behavior in somewhat complex layout

2019-06-23 Thread Andres Conrado Montoya
Hello list, I'm trying to make something using bits and examples found here
and elsewhere, but I'm hitting a wall. I know there's a flawed logic in my
approach, but I can't figure it out. Any help is appreciated.

Expected behavior of the following MWE:
When starting a new chapter, check if the page is even (left page), if so,
fill it with color, and start the chapter in the next odd page (right
page), removing the header but leaving the footer in that start-chapter
page; and if this is a start-chapter page, use a specific graphic overlay
for the page, but if if not (if its a regular page), use another graphic.

Result:
The header still appears in the start-chapter page, if it comes after the
color filled page. But, if the start-chapter page comes after a regular
(even) page, everything works as expected (no color-filled page, no header
in the start-chapter page).

MWE:

%% START MWE

\definecolor[rojo][h=ED553B]
\definehighlight[rojo][color=rojo]

\startMPinclusions
numeric u ; u := 1.125pt ;
numeric i ; i := 0.125in ;
string prevChapterTitle, currentChapterTitle;
prevChapterTitle := "";
currentChapterTitle := "";
\stopMPinclusions

\startuseMPgraphic{page:background}
StartPage;
currentChapterTitle := "\namedstructurevariable{chapter}{title}";

if currentChapterTitle <> prevChapterTitle :

fill (topboundary Page -- cycle)
enlarged(0,8i)
shifted (0,-4i)
withcolor transparent(4, 0.2, \MPcolor{rojo}) ;

fill (bottomboundary Page -- cycle)
enlarged(0,1u)
shifted (0,6i)
withcolor \MPcolor{rojo} ;

prevChapterTitle := currentChapterTitle ;

else:

fill (topboundary Page -- cycle)
enlarged(0,0.25u)
shifted (0,-7i+3u)
withcolor \MPcolor{rojo} ;

fill (bottomboundary Page -- cycle)
enlarged(0,0.25u)
shifted (0,6i)
withcolor \MPcolor{rojo} ;

fi;
StopPage;
\stopuseMPgraphic

\defineoverlay
  [chapter:background]
  [\useMPgraphic{page:background}]

\setupbackgrounds[page][background=chapter:background]

\definepagebreak[firstpagebreak][yes,header]

\startsetups [chapter:before]
   \doifoddpageelse
 {}
 {\pushbackground[page]
\setupbackgrounds[page][background=color,backgroundcolor=rojo]
\page[yes,right]
  \popbackground}
\stopsetups

\setuphead[chapter]
  [width=20em,
  before=\directsetup{chapter:before},
  align={flushleft,nothyphenated,verytolerant},
  style={\tfd\sansbold},
  header=empty,
  page=yes,
  commandbefore={\blank[1.75in]},
  after={\blackrule[color=rojo,height=4pt,width=6em]\blank[1.25in]}]


\setuppagenumbering[alternative=doublesided,location=]

\setupheadertexts
[]
[{{\small\sans\getmarking[chapter]}}]
[{{\small\sans\getmarking[chapter]}}]
[]

\setupfootertexts
[]
[{\rojo{\small\sansbold\pagenumber}}]
[{\rojo{\small\sansbold\pagenumber}}]
[]

\starttext

\dorecurse{4}{%
  \startchapter[title={A chapter with a really long, long title}]
  \dorecurse{9}{\input{tufte}}
  \stopchapter
  \startchapter[title={A different chapter with a really long, long title}]
  \dorecurse{6}{\input{tufte}}
  \stopchapter}

\stoptext

%% STOP MWE

Thank you for your time.

Andrés Conrado Montoya
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] unwanted page break in contents

2018-08-26 Thread Wolfgang Schuster



Jeong Dal schrieb am 26.08.18 um 10:06:

Hi,

In the table of contents, there is a unwanted blank space after chapter 2.
There is a page break if the remaining space is not enough to cover the list of 
the next chapter.
For example, page break after ch 2. in the following example.

Is it possible to list them continuously?

Best regards,

Dalyoung


\starttext
\definepagebreak[emptyodd][yes,header, footer, odd]
\setuphead[chapter][page=emptyodd]

\setuphead[title][incrementnumber=list]
\setupcombinedlist[content][list={title,chapter,section,subsection}]
\setuplist[chapter, title][width=5mm, style=,textcommand={\ss\bf }]
\setuplist[section][width=10mm, style=,textcommand={\ss }]


\setuplist
  [section]
  [width=10mm,
   style=,
   textstyle=\ss,
   after={\blank[preference]}]

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] unwanted page break in contents

2018-08-26 Thread Jeong Dal
Hi,

In the table of contents, there is a unwanted blank space after chapter 2.
There is a page break if the remaining space is not enough to cover the list of 
the next chapter.
For example, page break after ch 2. in the following example.

Is it possible to list them continuously?

Best regards,

Dalyoung


\starttext
\definepagebreak[emptyodd][yes,header, footer, odd]
\setuphead[chapter][page=emptyodd]

\setuphead[title][incrementnumber=list]
\setupcombinedlist[content][list={title,chapter,section,subsection}]
\setuplist[chapter, title][width=5mm, style=,textcommand={\ss\bf }]
\setuplist[section][width=10mm, style=,textcommand={\ss }]

\showframe
\startfrontmatter
\completecontent
\page[empty]
\stopfrontmatter

\startbodymatter
\dorecurse{9}
{\chapter{Ch \recurselevel}
\dorecurse{8}
{\section{Section \recurselevel}}
}   
\stopbodymatter
\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Confusing level change message, why?

2018-06-15 Thread Rik Kabel
The example below is taken from the wiki article "Titles 
<http://wiki.contextgarden.net/Titles>," with pdf bookmark apparatus 
prepended and a second chapter added to the bodymatter.


In the log, this produces the lines:

   backend > bookmarks > confusing level change at level 3
   around '1 body'
   backend > bookmarks > confusing level change at level 3
   around 'A appendix'
   backend > bookmarks > confusing level change at level 3
   around 'back'

That is, one message for each *matter change.

What is the meaning of the message, and how can it be removed (short of 
disabling pdf bookmarks)?


   \setupinteraction[state=start]
   \placebookmarks[chapter, section, subsection, subsubsection]
   [chapter,section]
   \setupsectionblock[frontpart][page=]
   \setupsectionblock[bodypart] [page=]
   \setupsectionblock[backpart] [page=]
   \setupsectionblock[appendix] [page=]
   \definepagebreak[firstpagebreak][yes,header,footer,right]
   \setuphead[chapter][page=firstpagebreak]
   \setuppagenumbering[alternative=doublesided]
   \starttext
   \startfrontmatter
   \chapter{front}
   \stopfrontmatter
   \startbodymatter
   \chapter{body}
   \chapter{body}
   \stopbodymatter
   \startappendices
   \chapter{appendix}
   \stopappendices
   \startbackmatter
   \chapter{back}
   \stopbackmatter
   \stoptext

--
Rik

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] tex error Argument of \titlecmd has an extra }

2018-03-06 Thread ????????
Dear list,

  I got a tex setting file env-plain.tex from Internet and reference it in 
project-openstack-source-analysis.tex,
when I used the the command "context project-openstack-source-analysis", the 
result of output shows 
"tex error   > tex error on line 19 in file 
/root/openstack_doc/project-openstack-source-analysis.tex: ! Argument of 
\titlecmd has an extra }".

I don't know the reason of this error.How to fix this error? Many thanks for 
your help!

the evn-plain.tex file content is below:

\startenvironment env-plain
% C 
%\usemodule[pretty-c]

% 
% : http://github.com/liyanrui/t-zhfonts
%\usemodule[zhfonts]
%\setupzhfonts[feature][onum=yes, pnum=yes]
%\setupzhfonts[latin, mono][regular=Monaco@0.8]
%\zhfonts[rm,14pt]

% ascii 
\usemodule[asciimath]

\setupinteraction[state=start,
  color=darkblue,
  contrastcolor=darkblue, 
  focus=standard]

%  A4 ??
\setuplayout[backspace=25mm, 
 width=150mm, 
 rightmargin=10mm, 
 topspace=20mm, 
 header=15mm, 
 footer=10mm, 
 height=260mm,]
% \setuppagenumbering[alternative=doublesided]

%  layout
\newdimen\AppendicesTextWidth
\AppendicesTextWidth=\textwidth
\advance\AppendicesTextWidth by\rightmarginwidth
\definelayout[normal][width=\AppendicesTextWidth]

% ??
\setuppagenumbering[location=]

\newdimen\headerwidth
\headerwidth=\the\textwidth
\advance\headerwidth by \rightmarginwidth
\newdimen\LineWidth
\LineWidth=2pt

\def\HeaderFrame#1{%
  \framed[width={\headerwidth}, 
  frame=off,
  offset=none,
  bottomframe=on, 
  framecolor=darkgray,
  rulethickness=\LineWidth]{\ss#1}}
\def\PageFrame{%
  \inframed[width=14mm, 
height=6mm,
frame=off,
offset=0pt,
framecolor=darkgray,
background=color, 
backgroundcolor=darkgray]{\color[white]{\ssx\pagenumber}}}
\def\HeadStr#1{\headnumber[#1]\hskip1em\getmarking[#1]}
\def\RightHeader{\HeaderFrame{\HeadStr{section}\hfill\PageFrame\hbox to 
-\LineWidth{}}}
\def\LeftHeader{\HeaderFrame{\hbox to 
-\LineWidth{}\PageFrame\hfill\HeadStr{chapter}}}

\def\FooterFrame#1{%
  \framed[width={\headerwidth}, 
  frame=off,
  offset=0pt]{#1}}
\def\BookNameFrame[#1]{%
  \framed[width=fit, 
height=fit,
frame=off,
offset=2pt,
background=color,
backgroundcolor=darkgray]{%
\color[white]{\ss \rotate[rotation=#1]{GLIB 
\def\RightFooter{\FooterFrame{\hfill\BookNameFrame[-90]}}
\def\LeftFooter{\FooterFrame{\BookNameFrame[90]\hfill}}

\startsetups Text
\setupheadertexts[text][\RightHeader][][][\LeftHeader]
% \setupfootertexts[text][\RightFooter][][][\LeftFooter]
\stopsetups

\startsetups Appendices
\def\RightAppendicesHeader{\HeaderFrame{\ssx\getmarking[title]\hfill%
\PageFrame\hbox to -\LineWidth{}}}
\def\LeftAppendicesHeader{\HeaderFrame{\hbox to 
-\LineWidth{}\PageFrame\hfill\ssx }}
\setupheadertexts[text][\RightAppendicesHeader][][][\LeftAppendicesHeader]
\stopsetups

\startsetups Empty
\setupheadertexts[text][][][][]
\setupfootertexts[text][][][][]
\stopsetups

% 
\setupheads[indentnext=yes]
\definepagebreak[headpagebreak][yes, header, footer, odd]
\setuphead[chapter,title][header=empty, style=\ssc, page=headpagebreak,]
\def\HeadOffset{\hbox to -10mm{}}
\def\chaptercmd#1#2{\hbox to \hsize{#2\hfill\switchtobodyfont[48pt]{%
\color[darkgray]{#1}}\HeadOffset}}
\setuphead[chapter][command=\chaptercmd,after={\blank[2cm]}]

\def\ContentTitle#1{%
  \inframed[width=fit, 
height=fit,
frame=off,
offset=4pt,
loffset=10mm,
roffset=10mm,
framecolor=darkgray,
background=color, 
backgroundcolor=darkgray]{\color[white]{#1}}}
\def\titlecmd#1#2{\hbox to \hsize{\hfill%
\ContentTitle{#2}\HeadOffset}}
\setuphead[title][command=\titlecmd,after={\blank[2cm]}]
\setuphead[section, subject][style=\ssa]

% 
\setupindenting[first,always,2em]
\setupinterlinespace[line=1.5em]
\setupheads[indentnext=yes]
\setupwhitespace[big]
\setupfootnotes[bodyfont=9pt]

% 
\setuplinenumbering[style=small,location=text,color=darkgreen]
\setuptype[style=\ttx]
%\setuptype[space=on]
\setuptyping[bodyfont=9pt, numbering=line, before=\blank, after=\blank]
\setupitemize[paragraph, packed, broad]

% 
\setupcombinedlist[content][alternative=c,aligntitle=yes,interaction=pagenumber]
\setuplist[section][margin=2em,]
\setuplist[subsection][margin=5em,]
\setuplist[subsubsection][margin=8em,]
% 
\defineoverlay[CruxOrnament][\useMPgraphic{crux}]
\def\CruxFramed#1{\framed[frame=off,width=12cm,height=fit]{#1}}

\startuseMPgraphic{crux}
color ccc ;
pair p, h[], v[] ;
u := \overlaywidt

Re: [NTG-context] hbox after \page[disable]

2016-12-06 Thread Michael Eidenbenz

> Am 05.12.2016 um 22:21 schrieb Hans Hagen <pra...@wxs.nl>:
> 
> On 12/5/2016 9:32 PM, Michael Eidenbenz wrote:
>> Ok I got it.
>> 
>> page[disable] is not taken into account by page[odd] so I changed it in
>> page-brk.mkiv:
>> 
>>  \installpagebreakmethod \v!odd
>>  {\relax\ifconditional\c_page_breaks_enabled
>>   \page
>>   \doifelseoddpage\donothing\page_reset_marks_and_insert_dummy
>>   \else
>>   \resetpagebreak
>>   \fi}
>> 
>> with this my MWE works perfectly.
> 
> isn't that just
> 
> \definepagebreak[mypagebreak][yes,odd,reset]
> 
> and then
> 
> \page[mypagebreak]


hmm. 
I can't see that [yes, odd, reset] implements the conditional I need to 
override page[odd]. (see code comments below)
but I guess the real problem occurs because I have to inject this in  
\everyafteroutput.


\newtoks \EvenPage

\appendtoks
\the\EvenPage
\global\EvenPage\emptytoks
\page[odd]   % will be overridden by page[disable] 
\to\everyafteroutput

\unexpanded\def\Figure#1{%
\appendtoks
\page[even]
#1
\page
\page[disable] %disable the next \page[odd] because else it will insert
\to\EvenPage}


> 
>> But will this break other things?
>> I dont really know what I'm doing just hacking.
>> 
>> Michael
>> 
>> -
>> 
>> \enabletrackers
>> [visualizers.hbox]
>> 
>> \useMPlibrary[dum]
>> 
>> \setuppagenumbering
>> [alternative=doublesided]
>> 
>> \definelayout[odd][width=10cm]
>> \definelayout[even][width=15cm]
>> 
>> \newtoks \EvenPage
>> 
>> \appendtoks
>> \the\EvenPage
>> \global\EvenPage\emptytoks
>> \page[odd]
>> \to\everyafteroutput
>> 
>> \unexpanded\def\Figure#1{%
>> \appendtoks
>> \page[even]
>> #1
>> \page
>> \page[disable] %disable the next \page[odd]
>> \to\EvenPage}
>> 
>> \showframe
>> 
>> \starttext
>> 
>> \dorecurse{4}{\input{tufte}\par}
>> 
>> \Figure{\externalfigure[dummy][factor=fit]}
>> \dorecurse{4}{\input{knuth}\par}
>> \Figure{\externalfigure[dummy][height=\textheight]}  %
>> \dorecurse{8}{\input{ward}\par}
>> \stoptext
>> 
>> 
>>> Am 04.12.2016 um 21:14 schrieb Michael Eidenbenz <eidenb...@arch.ethz.ch>:
>>> 
>>> Dear Hans,
>>> 
>>> thank you for your answer, but it doesnt solve the issue.
>>> (or I dont understand what you mean)
>>> 
>>> the argument in the macro is acually (not in the MWE) a xtable filled with 
>>> \externalfigures.
>>> so I would like to avoid floats as it makes things more complicated and 
>>> slower.
>>> 
>>> I tried finding the \page[disable] definition in the code but could not 
>>> find it.
>>> 
>>> any further suggestions how I can solve this issue?
>>> 
>>> thanks Michael
>>> 
>>> 
>>> 
>>>> Am 04.12.2016 um 18:13 schrieb Hans Hagen <pra...@wxs.nl>:
>>>> 
>>>> On 12/4/2016 2:12 PM, Michael Eidenbenz wrote:
>>>>> I have a doublesided layout.
>>>>> On the right side i place the text, figures (if i have any) go on the 
>>>>> left side.
>>>>> the MWE below works quite nice.
>>>>> 
>>>>> But if i want the figure to be full height, two pages are skipped.
>>>>> This is becaus the hbox right below of the figure.
>>>>> I think it is placed during the \page[disable] pass.
>>>>> 
>>>>> What can I do to avoid this hbox?
>>>> 
>>>> \def\Figure#1{\placefigure[location={page,none}]{}{#1}}
>>>> 
>>>> 
>>>>> Thanks Michael
>>>>> 
>>>>> 
>>>>> \enabletrackers
>>>>> [visualizers.hbox]
>>>>> 
>>>>> \useMPlibrary[dum]
>>>>> 
>>>>> \setuppagenumbering
>>>>> [alternative=doublesided]
>>>>> 
>>>>> \definelayout[odd][width=10cm]
>>>>> \definelayout[even][width=15cm]
>>>>> 
>>>>> \newtoks \EvenPage
>>>>> 
>>>>> \appendtoks
>>>>> \the\EvenPage
>>>>> \global\EvenPage\emptytoks
>>>>> \page[odd]
>>>>> \to\everyafteroutput
>>>>> 
>>>>> \unexpanded\def\Figure#1{%
>>>>> \appendtoks
>>>>> \page[even]
>>&

Re: [NTG-context] hbox after \page[disable]

2016-12-05 Thread Hans Hagen

On 12/5/2016 9:32 PM, Michael Eidenbenz wrote:

Ok I got it.

page[disable] is not taken into account by page[odd] so I changed it in
page-brk.mkiv:

  \installpagebreakmethod \v!odd
  {\relax\ifconditional\c_page_breaks_enabled
   \page
   \doifelseoddpage\donothing\page_reset_marks_and_insert_dummy
   \else
   \resetpagebreak
   \fi}

with this my MWE works perfectly.


isn't that just

\definepagebreak[mypagebreak][yes,odd,reset]

and then

\page[mypagebreak]


But will this break other things?
I dont really know what I'm doing just hacking.

Michael

-

\enabletrackers
[visualizers.hbox]

\useMPlibrary[dum]

\setuppagenumbering
[alternative=doublesided]

\definelayout[odd][width=10cm]
\definelayout[even][width=15cm]

\newtoks \EvenPage

\appendtoks
\the\EvenPage
\global\EvenPage\emptytoks
\page[odd]
\to\everyafteroutput

\unexpanded\def\Figure#1{%
 \appendtoks
 \page[even]
 #1
 \page
 \page[disable] %disable the next \page[odd]
 \to\EvenPage}

\showframe

\starttext

\dorecurse{4}{\input{tufte}\par}

\Figure{\externalfigure[dummy][factor=fit]}
\dorecurse{4}{\input{knuth}\par}
\Figure{\externalfigure[dummy][height=\textheight]}  %
\dorecurse{8}{\input{ward}\par}
\stoptext



Am 04.12.2016 um 21:14 schrieb Michael Eidenbenz <eidenb...@arch.ethz.ch>:

Dear Hans,

thank you for your answer, but it doesnt solve the issue.
(or I dont understand what you mean)

the argument in the macro is acually (not in the MWE) a xtable filled with 
\externalfigures.
so I would like to avoid floats as it makes things more complicated and slower.

I tried finding the \page[disable] definition in the code but could not find it.

any further suggestions how I can solve this issue?

thanks Michael




Am 04.12.2016 um 18:13 schrieb Hans Hagen <pra...@wxs.nl>:

On 12/4/2016 2:12 PM, Michael Eidenbenz wrote:

I have a doublesided layout.
On the right side i place the text, figures (if i have any) go on the left side.
the MWE below works quite nice.

But if i want the figure to be full height, two pages are skipped.
This is becaus the hbox right below of the figure.
I think it is placed during the \page[disable] pass.

What can I do to avoid this hbox?


\def\Figure#1{\placefigure[location={page,none}]{}{#1}}



Thanks Michael


\enabletrackers
[visualizers.hbox]

\useMPlibrary[dum]

\setuppagenumbering
[alternative=doublesided]

\definelayout[odd][width=10cm]
\definelayout[even][width=15cm]

\newtoks \EvenPage

\appendtoks
\the\EvenPage
\global\EvenPage\emptytoks
\page[odd]
\to\everyafteroutput

\unexpanded\def\Figure#1{%
\appendtoks
\page[even]
#1
\page[disable]
\to\EvenPage}

\showframe

\starttext

\dorecurse{4}{\input{tufte}\par}\page
\Figure{\externalfigure[dummy][factor=fit]}
\dorecurse{4}{\input{knuth}\par}\page
\Figure{\externalfigure[dummy][height=\textheight]}  %
\dorecurse{8}{\input{ward}\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___




--

-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
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://context.aanhet

Re: [NTG-context] appendices disregards page method

2016-09-30 Thread Alain Auger

Hi Henri,
try this :

---
\setuppagenumbering[alternative=doublesided]

\setupsectionblock[bodypart] [page=]
\setupsectionblock[appendix] [page=]
\definepagebreak[chapterpagebreak][yes,header,footer,right]
\setuphead[chapter][page=chapterpagebreak]

\starttext
\startbodymatter
\startchapter[title={One}]
  \dorecurse{10}{\input knuth}
\stopchapter

\startchapter[title={Two}]
  \dorecurse{10}{\input knuth}
\stopchapter

\startchapter[title={Three}]
  \dorecurse{10}{\input knuth}
\stopchapter
\stopbodymatter
\startappendices
  \startchapter[title={Four}]
\dorecurse{10}{\input knuth}
  \stopchapter

  \startchapter[title={Five}]
\dorecurse{10}{\input knuth}
  \stopchapter
\stopappendices
\stoptext

---

An adaptation from wiki : http://wiki.contextgarden.net/Titles

Alain Auger

Le 16-09-30 à 15:38, Henri Menke a écrit :

Dear list,

when I'm starting a new chapter I want it to start on a recto page and if a 
page without text has to be inserted to fulfil this requirement it should be 
completely blank (no headers of footers).  It was easy to achieve using 
\definepagebreak and setting the page method of the chapter (see MWE).  
However, when I switch to the appendix, this page method is disregarded and the 
preceding page is _not_ blank.  In my MWE below, page 12 should actually be 
completely blank, i.e. no page number.

How can this be achieved?

Cheers, Henri

---

\setuppagenumbering[alternative=doublesided]

\definepagebreak
   [chapterpagebreak]
   [yes,header,footer,right]

\setuphead
   [chapter]
   [page=chapterpagebreak]

\starttext

\startchapter[title={One}]
   \dorecurse{10}{\input knuth}
\stopchapter

\startchapter[title={Two}]
   \dorecurse{10}{\input knuth}
\stopchapter

\startchapter[title={Three}]
   \dorecurse{10}{\input knuth}
\stopchapter

\startappendices
   \startchapter[title={Four}]
 \dorecurse{10}{\input knuth}
   \stopchapter

   \startchapter[title={Five}]
 \dorecurse{10}{\input knuth}
   \stopchapter
\stopappendices

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



--

Alain Auger
Infographiste

<http://www.diffusionvie.com/fr/>
___
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] appendices disregards page method

2016-09-30 Thread Henri Menke
Dear list,

when I'm starting a new chapter I want it to start on a recto page and if a 
page without text has to be inserted to fulfil this requirement it should be 
completely blank (no headers of footers).  It was easy to achieve using 
\definepagebreak and setting the page method of the chapter (see MWE).  
However, when I switch to the appendix, this page method is disregarded and the 
preceding page is _not_ blank.  In my MWE below, page 12 should actually be 
completely blank, i.e. no page number.

How can this be achieved?

Cheers, Henri

---

\setuppagenumbering[alternative=doublesided]

\definepagebreak
  [chapterpagebreak]
  [yes,header,footer,right]

\setuphead
  [chapter]
  [page=chapterpagebreak]

\starttext

\startchapter[title={One}]
  \dorecurse{10}{\input knuth}
\stopchapter

\startchapter[title={Two}]
  \dorecurse{10}{\input knuth}
\stopchapter

\startchapter[title={Three}]
  \dorecurse{10}{\input knuth}
\stopchapter

\startappendices
  \startchapter[title={Four}]
\dorecurse{10}{\input knuth}
  \stopchapter

  \startchapter[title={Five}]
\dorecurse{10}{\input knuth}
  \stopchapter
\stopappendices

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

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

Re: [NTG-context] starting a chapter on odd page

2016-05-11 Thread Marco Patzer
On Wed, 11 May 2016 13:19:41 +0200
Andrea Valle <va...@di.unito.it> wrote:

> Thanks marco, should I rather use
> 
> 
> \definepagebreak
>  [chapterpagebreak]
>  [yes, odd]

I don't know what the actual difference is. According to the source
it has something to do with floats.

Marco
___
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] starting a chapter on odd page

2016-05-11 Thread Andrea Valle
Thanks marco, should I rather use


\definepagebreak
 [chapterpagebreak]
 [yes, odd]

?

-a-
--
Andrea Valle
--
CIRMA - StudiUm
Università degli Studi di Torino
--> http://www.cirma.unito.it/andrea/
--> http://www.fonurgia.unito.it/andrea/
--> http://www.flickr.com/photos/vanderaalle/sets/
--> http://vimeo.com/vanderaalle
--> andrea.va...@unito.it
--

"This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a 
lotta what-have-yous." 
(Jeffrey 'The Dude' Lebowski)

> On 11 May 2016, at 13:02, Marco Patzer <li...@homerow.info> wrote:
> 
> On Wed, 11 May 2016 12:38:17 +0200
> Andrea Valle <va...@di.unito.it> wrote:
> 
>> in the book I’m finishing I’m using a structure like this
>> 
>> \starttext
>> 
>> \input c_preface.tex
>> 
>> \input c_chapter1.tex
>> 
>> [etc]
>> 
>> \stoptext
>> 
>> 
>> where each .tex file contains
>> 
>> \startchapter[various options]
>> \section{First section}
>> etc
>> \stopchapter
>> 
>> The publisher is asking me to start each chapter on a odd page. Can I
>> do it by setting some options?
> 
> \definepagebreak
>  [chapterpagebreak]
>  [yes, right]
> 
> \setuphead
>  [chapter]
>  [page=chapterpagebreak]
> 
> Marco
> ___
> 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] starting a chapter on odd page

2016-05-11 Thread Marco Patzer
On Wed, 11 May 2016 12:38:17 +0200
Andrea Valle <va...@di.unito.it> wrote:

> in the book I’m finishing I’m using a structure like this
> 
> \starttext
> 
> \input c_preface.tex
> 
> \input c_chapter1.tex
> 
> [etc]
> 
> \stoptext
> 
> 
> where each .tex file contains
> 
> \startchapter[various options]
> \section{First section}
> etc
> \stopchapter
> 
> The publisher is asking me to start each chapter on a odd page. Can I
> do it by setting some options?

\definepagebreak
  [chapterpagebreak]
  [yes, right]

\setuphead
  [chapter]
  [page=chapterpagebreak]

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

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

Re: [NTG-context] New beta and definepagebreak

2015-12-18 Thread Hans Hagen

On 12/18/2015 9:38 AM, Jan U. Hasecke wrote:

Hi all,

after updating to the new beta this doesn't work anymore.


\definepagebreak
 [pagebreak:chapter]
 [yes, header, footer]

\setuphead
 [chapter,title]
 [page=pagebreak:chapter]

\starttext

\chapter{Lorem ipsum}

\input tufte

\chapter{Dolor sit}

\input tufte

\stoptext


fixed in next upload


-
  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] New beta and definepagebreak

2015-12-18 Thread Jan U. Hasecke
Hi all,

after updating to the new beta this doesn't work anymore.


\definepagebreak
[pagebreak:chapter]
[yes, header, footer]

\setuphead
[chapter,title]
[page=pagebreak:chapter]

\starttext

\chapter{Lorem ipsum}

\input tufte

\chapter{Dolor sit}

\input tufte

\stoptext


TIA
juh
___
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] bug in blank pagebreak?

2015-07-24 Thread Hans Hagen

On 7/19/2015 7:56 PM, Pablo Rodriguez wrote:

Dear list,

I have the following sample:

 \definepagebreak
 [right:pagebreak]
 [yes, blank, right]
 %~ [yes, header, footer, right]

 \setuppagenumbering
 [location=inmargin]

 \setupheadertexts
 [Header text]

 \setuphead
 [chapter]
 [page=right:pagebreak,
  header=empty]

 \starttext
 \chapter{First Chapter}
 \dorecurse{12}{\input zapf\par}
 \stoptext

With beta from 2015.07.16 13:30, footer from page 1 and header from page
2 are gone.

But if I redefine the pagebreak with header, footer instead of
blank, both missing header and footer are placed in their right places.

Isn’t it a bug? Or am I missing something?


I leave that to Wolfgang to look at because he suggested the patch.

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] bug in blank pagebreak?

2015-07-19 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\definepagebreak
[right:pagebreak]
[yes, blank, right]
%~ [yes, header, footer, right]

\setuppagenumbering
[location=inmargin]

\setupheadertexts
[Header text]

\setuphead
[chapter]
[page=right:pagebreak,
 header=empty]

\starttext
\chapter{First Chapter}
\dorecurse{12}{\input zapf\par}
\stoptext

With beta from 2015.07.16 13:30, footer from page 1 and header from page
2 are gone.

But if I redefine the pagebreak with header, footer instead of
blank, both missing header and footer are placed in their right places.

Isn’t it a bug? Or am I missing something?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Disappearing backgrounds/pagenumbers with \page[none]

2015-02-09 Thread Aditya Mahajan

On Mon, 9 Feb 2015, Hans Hagen wrote:


On 2/9/2015 12:19 AM, Wolfgang Schuster wrote:



Am 09.02.2015 um 00:10 schrieb Wolfgang Schuster
schuster.wolfg...@gmail.com mailto:schuster.wolfg...@gmail.com:

Hi,

there was a problem on TeX SE [1]  where page numbers disappear for a
whole chapter when \page[none] is used to hide the numbers on empty
left pages in a double sided document.

As can be seen in the following example the page numbers and
background on the last two pages disappear when “missing” mode is
enabled. This happens when the “blank” option for \page is used
without a change in the page number (we are already at page 3 when
\page[yes,blank,right] is expanded).

 begin example
\setupbackgrounds[page][background=color,backgroundcolor=gray]

%\enablemode[missing]

\starttext

\dorecurse{6}{\input knuth\par}

% End the current page before \page[blank] is called
\doifmode{missing}{\page}

\page[yes,blank,right]

\dorecurse{6}{\input knuth\par}

\stoptext
 end example

[1]


http://tex.stackexchange.com/questions/225603/missing-page-numbers-first-chapter-only-context


BTW: Shouldn’t the following assignment in page-ini.miv be global?

\appendtoks
 \ifcase\pageornamentstate \or
 \pageornamentstate\zerocount
 \fi
\to \everyaftershipout


sure


Not sure if this completely fixes the problem. For example:

\definepagebreak
[chapterpagebreak]
[yes, blank, right]

\setuphead [chapter]
   [page=chapterpagebreak]

\showframe

\starttext
\startchapter
[title={First Chapter Title}]

\dorecurse{6}{\input knuth \par}

\stopchapter
\startchapter
[title={Second Chapter Title}]

\dorecurse{6}{\input knuth \par}

\stopchapter
\stoptext

There is no page number on the first page of the first chapter, but there 
is one on the first page of the second chapter.


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] Disappearing backgrounds/pagenumbers with \page[none]

2015-02-09 Thread Wolfgang Schuster

 Am 09.02.2015 um 18:12 schrieb Aditya Mahajan adit...@umich.edu:
 
 On Mon, 9 Feb 2015, Hans Hagen wrote:
 
 On 2/9/2015 12:19 AM, Wolfgang Schuster wrote:
 
 Am 09.02.2015 um 00:10 schrieb Wolfgang Schuster
 schuster.wolfg...@gmail.com mailto:schuster.wolfg...@gmail.com:
 
 Hi,
 
 there was a problem on TeX SE [1]  where page numbers disappear for a
 whole chapter when \page[none] is used to hide the numbers on empty
 left pages in a double sided document.
 
 As can be seen in the following example the page numbers and
 background on the last two pages disappear when “missing” mode is
 enabled. This happens when the “blank” option for \page is used
 without a change in the page number (we are already at page 3 when
 \page[yes,blank,right] is expanded).
 
  begin example
 \setupbackgrounds[page][background=color,backgroundcolor=gray]
 
 %\enablemode[missing]
 
 \starttext
 
 \dorecurse{6}{\input knuth\par}
 
 % End the current page before \page[blank] is called
 \doifmode{missing}{\page}
 
 \page[yes,blank,right]
 
 \dorecurse{6}{\input knuth\par}
 
 \stoptext
  end example
 
 [1]
 http://tex.stackexchange.com/questions/225603/missing-page-numbers-first-chapter-only-context
 
 BTW: Shouldn’t the following assignment in page-ini.miv be global?
 
 \appendtoks
 \ifcase\pageornamentstate \or
 \pageornamentstate\zerocount
 \fi
 \to \everyaftershipout
 
 sure
 
 Not sure if this completely fixes the problem. For example:

The \global is necessary because otherwise the assignment won’t have any effect 
because
the output routine (and this is where \everyaftershipout is used) forms a group 
but this won’t
fix the problem with \page[none].

 \definepagebreak
[chapterpagebreak]
[yes, blank, right]
 
 \setuphead [chapter]
   [page=chapterpagebreak]
 
 \showframe
 
 \starttext
 \startchapter
[title={First Chapter Title}]
 
 \dorecurse{6}{\input knuth \par}
 
 \stopchapter
 \startchapter
[title={Second Chapter Title}]
 
 \dorecurse{6}{\input knuth \par}
 
 \stopchapter
 \stoptext
 
 There is no page number on the first page of the first chapter, but there is 
 one on the first page of the second chapter.

You don’t need the \chapter commands because it is a \page problem as can be 
seen in the following example
(the fix above solves the problem only for page 2 and upwards).

\starttext

\page[yes,blank,yes]

\dorecurse{6}{\input knuth\par}

\stoptext


To really fix the problem you have reset the \pageornamentstate value at
the end of the “yes”, „right” etc. keywords, e.g. (page-brk.mkiv)

\installpagebreakmethod \v!yes
  {\ifconditional\c_page_breaks_enabled
 \page_otr_flush_all_floats
 \page_otr_command_next_page
 \ifinsidecolumns   % this will move to MUL
   \page_otr_eject_page % otherwise sometimes no change
 \fi
-  \fi}
+  \fi
+  \global\pageornamentstate\zerocount}

and the automatic reset with \everyaftershipout has to be removed, otherwise
things like following example have page numbers on the page 2 and 3 which
should be empty.

\starttext

\page[yes,blank,+3]

\dorecurse{6}{\input knuth\par}

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

[NTG-context] chapter title does not show on header.

2014-06-29 Thread john Culleton
I copied \setupheadertexts etc. straight from the
wiki with one change. For the fourth parameter
instead of chapter I substituted \Titlea, which
contains the title of the book. That part works,
But the word chapter as a parameter doesn't.

Here is my pertinent code:

\def\Titlea{Scribus Index Feature }
...
\setuppagenumbering[alternative=doublesided,location=]
\setupheader[leftstyle=bold,rightstyle=bold]
\setupheadertexts
   [{\getmarking[chapter]}] 
   [{page \pagenumber}] 
   [{page \pagenumber}]
   [{\Titlea}] 
\setuppagenumbering[location=]
...
\setuppagenumbering[command=\bf]
\definetext[chapter][footer][pagenumber]
\setupmakeup[standard][page=yes, doublesided=no]
\definepagebreak
  [mychapterpagebreak]
  [yes,header,right]
...
\chapter{Summary}
etc.

-- 
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
PDF e-book: Create Book Covers with Scribus
available at
http://www.booklocker.com/books/4055.html
___
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] state=high vs state=empty for headers and footers

2014-02-12 Thread Aditya Mahajan

If one uses

\setuplayout[header][text][frame=on]

then the frame is drawn on pages with header=empty but not drawn on pages 
with header=high.


By default, the 'empty' pagebreak method (in page-txt.mkvi) sets the 
header and footer state to empty rather than high. This means that header 
frames are drawn on empty pages. For example, see attached file.


Would it make sense to change the definition in page-txt.mkvi to the 
following:


\installpagebreakmethod \v!empty
  {\page_otr_flush_all_floats
   \page_otr_command_next_page

\doifnot{\namedlayoutelementparameter\v!header\c!state}\v!stop{\setuplayoutelement[\v!header][\c!state=\v!high]}%

\doifnot{\namedlayoutelementparameter\v!footer\c!state}\v!stop{\setuplayoutelement[\v!footer][\c!state=\v!high]}%
   \page_otr_insert_dummy_page}

\installpagebreakmethod \v!header

{\doifnot{\namedlayoutelementparameter\v!header\c!state}\v!stop{\setuplayoutelement[\v!header][\c!state=\v!high]}}

\installpagebreakmethod \v!footer

{\doifnot{\namedlayoutelementparameter\v!footer\c!state}\v!stop{\setuplayoutelement[\v!footer][\c!state=\v!high]}}

or, if that is too drastic of a change, create a new pagebreakmethod 
called high. This request is motivated by:


http://tex.stackexchange.com/q/110701/323

Aditya%\showframe

\setuplayout
  [
header=\lineheight,
headerdistance=\lineheight,
  ]

\setuppagenumbering
  [
location=,
alternative=doublesided,
  ]

\definepagebreak
  [chapterpagebreak]
  [yes,empty,right]

\setuphead
  [chapter]
  [
style=\bfc,
header=high,
before={\blank[force,\the\headerheight]},
page=chapterpagebreak,
  ]

\setupheader[style=bold]

\setupheadertexts
  [{\getmarking[sectionnumber]\hskip1em\getmarking[section][first]}]
  [pagenumber]
  [{Chapter~\getmarking[chapternumber]\hskip1em\getmarking[chapter]}]
  [pagenumber]

\setupbackgrounds[header][text][bottomframe=on]

\starttext
\chapter{First Chapter}
this is the first chapter
\page   
the second page of the first chapter
\page
third page
\chapter{Second Chapter}
this is the second chapter
\page
the second page of the second chapter
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Drop folio on first page of chapter.

2014-01-10 Thread Willi Egger
This is explained in the big manual cont-enp.pdf page 81: Layoout, headers and 
footers

Willi
On 9 jan. 2014, at 23:50, john Culleton j...@wexfordpress.com wrote:

 My chapter heads have no headline. For chapter
 heads only I want to put the page number on the
 bottom of the page centered. How do I do this?
 
 definepagebreak
  [mychapterpagebreak]
  [yes,header,right]
 
 
 \setuphead[chapter]
 [alternative=middle,
 header=empty,
 align=normal,
 number=no,
 page=mychapterpagebreak,
 style=ssbfc,
 before={\blank[2*big]},
 after={\blank[2*big]}]
 
 
 
 -- 
 John Culleton
 Wexford Press
 Free list of books for self-publishers:
 http://wexfordpress.net/shortlist.html
 PDF e-book: Create Book Covers with Scribus
 available at
 http://www.booklocker.com/books/4055.html
 ___
 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] Drop folio on first page of chapter.

2014-01-09 Thread john Culleton
My chapter heads have no headline. For chapter
heads only I want to put the page number on the
bottom of the page centered. How do I do this?

definepagebreak
  [mychapterpagebreak]
  [yes,header,right]


\setuphead[chapter]
[alternative=middle,
header=empty,
align=normal,
number=no,
page=mychapterpagebreak,
style=ssbfc,
before={\blank[2*big]},
after={\blank[2*big]}]



-- 
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
PDF e-book: Create Book Covers with Scribus
available at
http://www.booklocker.com/books/4055.html
___
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] Draw a line below the header texts

2013-04-27 Thread Tim Li
Hi, now I need a line below the header text to seperate the header texts from 
the text area. I have't soloved this problem, have to ask for help (the method 
from google doesn't work any more. This new one is from Aditya, but still has 
some problem that I don't know how to deal with) \setuplayout
  [header=\lineheight,
   headerdistance=\lineheight,
   footer=\lineheight,
   footerdistance=\lineheight] \setuppagenumbering
  [location=,
   alternative=doublesided] \definepagebreak
  [chapterpagebreak]
  [yes,header,footer,right] \definetext
  [chapterstart]
  [footer]
  [{\hfill\it\pagenumber}] \setuphead
  [chapter]
  [style=\bfc,
   header=empty,   footer=chapterstart,
   page=chapterpagebreak] \setupheader
  [style=\it]
\setupheadertexts
  [{\getmarking[sectionnumber]\hskip1em\getmarking[section][first]}]
  [pagenumber]
  [{Chapter~\getmarking[chapternumber]\hskip1em\getmarking[chapter]}]
  [pagenumber] \setupbackgrounds  [header][text]  [bottomframe=on] \starttext
\chapter{First Chapter}
this is the first chapter
\section{section 1}
\page   
\section{section 2}
the second page of the first chapter
\page
\section{section 3}
the third page of the first chapter
\chapter{Second Chapter}
this is the second chapter
\section{section 1}
\page
\section{section 2}
the second page of the second chapter
\stoptext The rule shouldn't be above the chapter head ``1 First Chapter at 
page 1 and page 4 should be true empty, since it is just before Chapter 2 and 
has no contents. Of course, I hope that I can solve these two problems by 
myself, but ... I really need some help from you. Best regards, Tim
  ___
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] No header and no page-number on empty pages

2012-11-30 Thread H. Özoguz

Am 29.11.2012 19:09, schrieb ntg-context-requ...@ntg.nl:

\definepagebreak
   [mychapterpagebreak]
  % [yes,header,right]
  %[yes,header,left]
  [yes,header,footer,right]

\setuphead
   [chapter]
   [page=mychapterpagebreak]
  %[page=Mychapterpagebreak,header=empty,footer=empty]

%\setupsectionblock[frontpart][page=chapter]
%\setupsectionblock[bodypart][page=chapter]
%\setupsectionblock[backpart][page=chapter]
%\setupsectionblock[appendix][page=chapter]

\setuppagenumbering[alternative=doublesided,location={header,margin}]
\setupheadertexts[{My special headertext}]
\setupfootertexts[This is a text in the footer]
%\setupbackgrounds[header][text][bottomframe=on]

\starttext
   \chapter{testA} \dorecurse{10}{\input tufte }
   \chapter{testB} \dorecurse{10}{\input tufte }
   \chapter{testC} \dorecurse{10}{\input tufte }
\stoptext
test-

Thanks Luigi, Wolfgang. But this does not work if I use
\page~\page
(I need that in some cases for manually inserting a empty page). So the 
question is how to insert empty pages – but of course respect them in 
page numbering, I mean that the number is not shown on the page, but the 
page is counted, s.t. the next pages have the correct numbers).


Huseyin
___
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] No header and no page-number on empty pages

2012-11-30 Thread luigi scarso
On Fri, Nov 30, 2012 at 9:05 AM, H. Özoguz h.oezo...@mmnetz.de wrote:
 Am 29.11.2012 19:09, schrieb ntg-context-requ...@ntg.nl:

 \definepagebreak
[mychapterpagebreak]
   % [yes,header,right]
   %[yes,header,left]
   [yes,header,footer,right]

 \setuphead
[chapter]
[page=mychapterpagebreak]
   %[page=Mychapterpagebreak,header=empty,footer=empty]

 %\setupsectionblock[frontpart][page=chapter]
 %\setupsectionblock[bodypart][page=chapter]
 %\setupsectionblock[backpart][page=chapter]
 %\setupsectionblock[appendix][page=chapter]

 \setuppagenumbering[alternative=doublesided,location={header,margin}]
 \setupheadertexts[{My special headertext}]
 \setupfootertexts[This is a text in the footer]
 %\setupbackgrounds[header][text][bottomframe=on]

 \starttext
\chapter{testA} \dorecurse{10}{\input tufte }
\chapter{testB} \dorecurse{10}{\input tufte }
\chapter{testC} \dorecurse{10}{\input tufte }
 \stoptext
 test-

 Thanks Luigi, Wolfgang. But this does not work if I use
 \page~\page
 (I need that in some cases for manually inserting a empty page). So the
 question is how to insert empty pages – but of course respect them in page
 numbering, I mean that the number is not shown on the page, but the page is
 counted, s.t. the next pages have the correct numbers).

 Huseyin
something like this ?
(I'm sure that there are other solutions)

\starttext
\input tufte\page %% force a pagebreak
\vbox to\textheight{}\page[blank,yes] % empty page
\vbox to\textheight{}\page[blank]
\vbox to\textheight{}\page
\input tufte\page
\input tufte
\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] No header and no page-number on empty pages

2012-11-30 Thread Wolfgang Schuster

Am 30.11.2012 um 09:05 schrieb H. Özoguz h.oezo...@mmnetz.de:

 Am 29.11.2012 19:09, schrieb ntg-context-requ...@ntg.nl:
 \definepagebreak
   [mychapterpagebreak]
  % [yes,header,right]
  %[yes,header,left]
  [yes,header,footer,right]
 
 \setuphead
   [chapter]
   [page=mychapterpagebreak]
  %[page=Mychapterpagebreak,header=empty,footer=empty]
 
 %\setupsectionblock[frontpart][page=chapter]
 %\setupsectionblock[bodypart][page=chapter]
 %\setupsectionblock[backpart][page=chapter]
 %\setupsectionblock[appendix][page=chapter]
 
 \setuppagenumbering[alternative=doublesided,location={header,margin}]
 \setupheadertexts[{My special headertext}]
 \setupfootertexts[This is a text in the footer]
 %\setupbackgrounds[header][text][bottomframe=on]
 
 \starttext
   \chapter{testA} \dorecurse{10}{\input tufte }
   \chapter{testB} \dorecurse{10}{\input tufte }
   \chapter{testC} \dorecurse{10}{\input tufte }
 \stoptext
 test-
 Thanks Luigi, Wolfgang. But this does not work if I use
 \page~\page
 (I need that in some cases for manually inserting a empty page). So the 
 question is how to insert empty pages – but of course respect them in page 
 numbering, I mean that the number is not shown on the page, but the page is 
 counted, s.t. the next pages have the correct numbers).

You can add a empty page in your document with \page[empty].

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] No header and no page-number on empty pages

2012-11-29 Thread luigi scarso
On Thu, Nov 29, 2012 at 3:32 PM, H. Özoguz h.oezo...@mmnetz.de wrote:
 Hi there,

 there are some possibilities for getting empty pages in a book, f.e. if a
 new chapter begins (and by settings it may only begin on pages with odd
 pagenumber).

 In these cases I want the page-number and the headers to disappear on the
 empty page, it should be totally empty, if no text is in it. How to achieve
 that?

 Thanks
 Huseyin

from http://wiki.contextgarden.net/Titles

\definepagebreak
  [mychapterpagebreak]
 % [yes,header,right]
 %[yes,header,left]
 [yes,header,footer,right]

\setuphead
  [chapter]
  [page=mychapterpagebreak]
 %[page=Mychapterpagebreak,header=empty,footer=empty]

%\setupsectionblock[frontpart][page=chapter]
%\setupsectionblock[bodypart][page=chapter]
%\setupsectionblock[backpart][page=chapter]
%\setupsectionblock[appendix][page=chapter]

\setuppagenumbering[alternative=doublesided,location={header,margin}]
\setupheadertexts[{My special headertext}]
\setupfootertexts[This is a text in the footer]
%\setupbackgrounds[header][text][bottomframe=on]

\starttext
  \chapter{testA} \dorecurse{10}{\input tufte }
  \chapter{testB} \dorecurse{10}{\input tufte }
  \chapter{testC} \dorecurse{10}{\input tufte }
\stoptext
test-003.tex (END)


--
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] No header and no page-number on empty pages

2012-11-29 Thread Wolfgang Schuster

Am 29.11.2012 um 15:32 schrieb H. Özoguz h.oezo...@mmnetz.de:

 Hi there,
 
 there are some possibilities for getting empty pages in a book, f.e. if a new 
 chapter begins (and by settings it may only begin on pages with odd 
 pagenumber).
 
 In these cases I want the page-number and the headers to disappear on the 
 empty page, it should be totally empty, if no text is in it. How to achieve 
 that?

\setuphead
  [chapter]
  [page={yes,header,footer,right}]

or

\definepagebreak[chapterpage][yes,header,footer,right]

\setuphead
  [chapter]
  [page=chapterbreak]

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] compilation broken in latest beta

2012-04-06 Thread Pablo Rodríguez
Hi there,

after upgrading today to latest beta, some of my documents don't compile.

I'm afraid I cannot provide a minimal sample. Here is the error log:

source /opt/ctxbeta/tex/setuptex  context --purgeall prueba.tex (in
directory: /home/ousia)
mtx-context | run 1: luatex
--fmt=/var/cache/ctxbeta/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en
--lua=/var/cache/ctxbeta/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui
--backend=pdf ./prueba.tex \stoptext
This is LuaTeX, Version beta-0.70.1-2011051923 (rev 4277)
 \write18 enabled.
(prueba.tex
ConTeXt  ver: 2012.04.02 22:23 MKIV  fmt: 2012.4.6  int: english/english
system   cont-new.mkiv loaded
(/opt/ctxbeta/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   prueba.top loaded
(prueba.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
resolversmodules  loaded: 'simplefonts'
(../../opt/ctxbeta/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.tex
loading  ConTeXt User Module / Simplefonts
+
/opt/ctxbeta/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.lua)
fontstypescripts  unknown: library 'loc'
{/opt/ctxbeta/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/opt/ctxbeta/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{/opt/ctxbeta/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontsbodyfont 10.5pt is defined (can better be done global)
fontsbodyfont 12.6pt is defined (can better be done global)
fontsbodyfont 8.4pt is defined (can better be done global)
fontsotf prepare  unsupported coverage contextpos for 'RQD
' Greek Caps after Accents Positioning-1
system   command \url is already defined
fontsotf prepare  unsupported coverage contextpos for 'RQD
' Greek Caps after Accents Positioning-1
fontsotf prepare  unsupported coverage contextpos for 'RQD
' Enclosed Cyrillic Letters-1
backend  xmp  using file
'/opt/ctxbeta/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1
pagesflushing realpage 2, userpage 1
structures   begin of sectionblock frontpart
structuresectioning  title @ level 2 : 0.0 - \headtext {content}
! Undefined control sequence.
system   tex  error on line 11 in file prueba.tex: Undefined
control sequence ...
 1 \mainlanguage[es]
 2 \setuplanguage[es][patterns={es,agr}]
 3 \setuppapersize[A5]
 4 \usemodule[simplefonts][size=10.5pt]
 5
\definefontfeature[default][default][script=latn,calt=yes,ss11=yes,ss06=yes]
 6 \setmainfont[Theano Didot][italicfont=Old Standard Italic]
 7 \setupbodyfontenvironment[default][em=italic]
 8
\setupinteraction[state=start,color=,style=,contrastcolor=,focus=standard]
 9 \setupcombinedlist[content][interaction=all]
10 \setupindenting[medium,always]
11   \setupinterlinespace[line=3.15ex]
12 \setupwhitespace[small]
13 \setupheads[indentnext=yes]
14 \definepagebreak[firstpagebreak][yes,header,footer,right]
15 \setupsectionblock[frontpart][page=]
16 \setupsectionblock[bodypart] [page=]
17 \setupsectionblock[backpart] [page=]
18 \setupsectionblock[appendix] [page=]
19 \setuphead[part][page=firstpagebreak]
20
\setuphead[chapter][style=\itc,align=center,after={\blank[3*line]},page=firstpagebreak]
21 \setuppagenumbering[alternative=doublesided,location={botton,middle}]
\12:77:abc ...trc_lists_get_reference_attribute
  \v!all
\strc_lists_get_des...
\strc_lists_apply_renderingsetup ...nderingsetup }
  \relax \the
\t_lists_every...
\strclistsentryprocess ... \fi \fi \fi \endcsname
  \dostoptagged
\listextrapa...
l.11 {}
\ctxcommand ...\directlua \zerocount {commands.#1}
\doplacestructurelist ...s = #4, order = #5 }}
  \dostoptagged
...
l.62
?
! Emergency stop.
system   tex  error on line 11 in file prueba.tex: Emergency
stop ...
 1 \mainlanguage[es]
 2 \setuplanguage[es][patterns={es,agr}]
 3 \setuppapersize[A5]
 4 \usemodule[simplefonts][size=10.5pt]
 5
\definefontfeature[default][default][script=latn,calt=yes,ss11=yes,ss06=yes]
 6 \setmainfont[Theano Didot][italicfont=Old Standard Italic]
 7 \setupbodyfontenvironment[default][em=italic]
 8
\setupinteraction[state=start,color=,style=,contrastcolor=,focus=standard]
 9 \setupcombinedlist[content][interaction=all]
10 \setupindenting[medium,always]
11   \setupinterlinespace[line=3.15ex]
12 \setupwhitespace[small]
13 \setupheads[indentnext=yes]
14 \definepagebreak[firstpagebreak][yes,header,footer,right]
15 \setupsectionblock[frontpart][page=]
16

Re: [NTG-context] \definepagebreak[header, footer] not working when changing matters

2012-03-25 Thread Pablo Rodríguez
On 24/03/12 11:39, Wolfgang Schuster wrote:
 Am 24.03.2012 um 09:54 schrieb Pablo Rodríguez:
 [...]
 Pages previous to chapters with no text should also lack header and
 footer, but in the example above this doesn't work when text divisions
 (such as front matter, body matter, appendices and back matter) change.
 
 Section blocks do have a page key which is used ti switch to a right page at
 the begin/end of the environment and this happens before the chapter
 page break happens. You have to disable the page breaks for the section block
 to have the right header/footer on empty pages.
 
 \setupsectionblock[frontpart][page=]
 \setupsectionblock[bodypart] [page=]
 \setupsectionblock[backpart] [page=]

Many thanks for your help, Wolfgang.

It works like charm.

Thank you very much,


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] \definepagebreak[header, footer] not working when changing matters

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

Here you have a sample:

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

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

I guess this might be a bug.

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] \definepagebreak[header, footer] not working when changing matters

2012-03-24 Thread Wolfgang Schuster

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

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

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

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

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

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


[NTG-context] bug with \definepagebreak in latest beta?

2012-02-19 Thread Pablo Rodríguez
Hans,

truly empty pages before parts and chapters (as explained at
http://wiki.contextgarden.net/Titles#Truly_empty_pagebreak_before_chapters
 worked with the previous beta (and in stable), but they don't work with
the latest one:

\definepagebreak[numberpagebreak][yes,header,footer,right]
\setuphead[part][page=numberpagebreak,placehead=yes]
\setuphead[chapter][page=numberpagebreak]
\setuppagenumbering[alternative=doublesided,location=inmargin]
\starttext
\completecontent
\part{Part}
\chapter{Chapter}
a
\part{Part}
\chapter{Chapter}
b
\stoptext

Has been \definepagebreak replaced with a new command or is this a bug?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] bug with \definepagebreak in latest beta?

2012-02-19 Thread Wolfgang Schuster

Am 19.02.2012 um 21:29 schrieb Pablo Rodríguez:

 Hans,
 
 truly empty pages before parts and chapters (as explained at
 http://wiki.contextgarden.net/Titles#Truly_empty_pagebreak_before_chapters
 worked with the previous beta (and in stable), but they don't work with
 the latest one:
 
 \definepagebreak[numberpagebreak][yes,header,footer,right]
 \setuphead[part][page=numberpagebreak,placehead=yes]
 \setuphead[chapter][page=numberpagebreak]
 \setuppagenumbering[alternative=doublesided,location=inmargin]
 \starttext
 \completecontent
 \part{Part}
 \chapter{Chapter}
 a
 \part{Part}
 \chapter{Chapter}
 b
 \stoptext
 
 Has been \definepagebreak replaced with a new command or is this a bug?

page-txt.mkvi:

\installpagebreakmethod \v!header
- 
{\doifnot{\namedlayoutelementparameter\v!header\c!state}\v!stop{\setuplayoutelement[\c!state=\v!empty]}}
+ 
{\doifnot{\namedlayoutelementparameter\v!header\c!state}\v!stop{\setuplayoutelement[\v!header][\c!state=\v!empty]}}

\installpagebreakmethod \v!footer
- 
{\doifnot{\namedlayoutelementparameter\v!footer\c!state}\v!stop{\setuplayoutelement[\c!state=\v!empty]}}
+ 
{\doifnot{\namedlayoutelementparameter\v!footer\c!state}\v!stop{\setuplayoutelement[\v!footer][\c!state=\v!empty]}}

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] bug with \definepagebreak in latest beta?

2012-02-19 Thread Pablo Rodríguez
On 02/19/2012 09:39 PM, Wolfgang Schuster wrote:
 Am 19.02.2012 um 21:29 schrieb Pablo Rodríguez:
 [...]
 Has been \definepagebreak replaced with a new command or is this a bug?
 
 page-txt.mkvi:
 
 \installpagebreakmethod \v!header
 - 
 {\doifnot{\namedlayoutelementparameter\v!header\c!state}\v!stop{\setuplayoutelement[\c!state=\v!empty]}}
 + 
 {\doifnot{\namedlayoutelementparameter\v!header\c!state}\v!stop{\setuplayoutelement[\v!header][\c!state=\v!empty]}}
 
 \installpagebreakmethod \v!footer
 - 
 {\doifnot{\namedlayoutelementparameter\v!footer\c!state}\v!stop{\setuplayoutelement[\c!state=\v!empty]}}
 + 
 {\doifnot{\namedlayoutelementparameter\v!footer\c!state}\v!stop{\setuplayoutelement[\v!footer][\c!state=\v!empty]}}

Many thanks for your ultra-fast fix, Wolfgang.


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] math signs in itemize

2011-09-25 Thread R. Ermers
Thanks for all your replies!

I changed the superscript e into \high{e}. There is one other math item: 
$\frac1{40}$ in the whole text.

I am using mkiv.
Until the recent update the document (90 pp.) was processed fine.

I add a minimal example below.

Thanks again for looking into this problem.

Regards,

Robert

+++

\enableregime[utf]
\setuppapersize[A4][A4]

\startsectionblockenvironment[bodypart]
\setupheader[text][location=text,state=high,strut=yes,after=\vskip-0.8em\thinrule]
\setupfootertexts[{\tfx \copyright R. Ermers}][][][{\tfx \copyright R. Ermers}]
\setuppagenumber[number=1]
\stopsectionblockenvironment

 %\setmainfont[Antykwa Poltawskiego]


\usemodule[t][lettrine]
\usemodule[t][annotation]
\usemodule[newmat] %vanwege de breuk


\newdimen\Margin
\Margin=20mm
\newdimen\Tekstbreedte
\Tekstbreedte=14cm


\setupinitial
  [state=start,
n=3,
distance=.15pc,
 font=SerifBold,
  ]
\definefontfeature
  [arabic]
  [mode=node,language=dflt,script=arab,ccmp=yes,
   init=yes,medi=yes,fina=yes,isol=yes,
   liga=yes,dlig=yes,rlig=yes,clig=yes,calt=yes,
   mark=yes,mkmk=yes,kern=yes,curs=yes]


\usemodule[t][simplefonts]
\setuplayout
[width=148mm,height=268mm\relax,
backspace=25mm,topspace=20mm,
header=12pt,headerdistance=15mm,
footer=5mm,footerdistance=8mm,
%rightmargin=\zeropoint,
location=middle,marking=off]
\setupwhitespace[halfline]

\definelayer[graphics][position=yes]
\setupbackgrounds[page][background=graphics]

\setuplanguage[nl]
[leftquote=\upperleftsinglesixquote,
 rightquote=\upperrightsingleninequote,
 leftquotation=\leftguillemot,
 rightquotation=\rightguillemot]
\mainlanguage[nl]
\hyphenation{lam-pet-stel}

\definefloat[figureonder][figure]
\definefloat[edgefigure][figure]
\setupcaption[figure][location=right]
\setupcaption[figureonder][location=bottom]
\setupcaption[edgefigure][location=bottom]
\setupfloat[edgefigure]
[leftmargindistance=-\leftmargintotal,rightmargindistance=-\rightmargintotal,
default={outer,low},criterium=.67\textwidth,numbering=no]
\setupcaptions[width=max,align=middle,style=small,number=no]




 \defineitemgroup[ongenummerd][levels=3]
\setupitemgroup[ongenummerd][1][5]
\setupitemgroup[ongenummerd][2][4]
\setupitemgroup[ongenummerd][2][3]
\defineitemgroup[genummerd][levels=3]
\setupitemgroup[genummerd][1][n]
\setupitemgroup[genummerd][2][a]
\setupitemgroup[genummerd][2][r]
\setuptolerance[horizontal,verytolerant] %hyphenation

\setuppagenumbering[state=start,alternative=doublesided,location=footer,style=bold]

\setupheadertexts
[{\getmarking[subsectionnumber]\enskip\getmarking[subsection]}]
[]
[]
[{\getmarking[sectionnumber]\enskip\getmarking[section]}]%

\setuphead[part][placehead=no]
\defineblankmethod[nobreak]{\penalty\plustenthousand}
\defineblankmethod[endgraf]{\endgraf}
\setuphead[section][grid=line]

\setupheader[style=small]

\definepagebreak[chapter][yes,empty,right]
\setupinmargin[location=both,line=1,align=normal,stack=yes,style=small,color=red,distance=5mm]

\hyphenation{ver-ant-woor-de-lijk-heid}
\setupindenting[yes,medium,first]
\setupfloats[indentnext=no]
\setupfootnotedefinition[location=left,distance=1em,headalign=flushleft]
\setupnote[footnote][textstyle=,numbercommand=,margindistance=8mm,rule=off,before=,interaction=yes,align={normal,hyphenated}]

\setupinteraction[style=]

\define[2]\QuotationCommand
 {
\setupindenting[no]
\switchtobodyfont[arial,10pt]
\textrule{#1}\blank \vfil\nobreak\penalty1\endgraf
\startcolumns#2\stopcolumns
\hspace \nobreak\penalty1000
\textrule
}

\definetypeface[braqqadocio][ss][Xsans][Braqqadocio]
\usetypescriptfile[type-gentium]

\setupbodyfont[gentium,11pt]
\definefontfeature
[default]
[default]
[protrusion=quality,expansion=quality]
\setupalign[hz,hanging]

\setuplettrine[Nindent=0pt,Lines=2,Oversize=0,TextFont=\sc]
\setuplettrine[T][Findent=0.2em,Hang=.12,TextFont=\sc]
\setuplettrine[A][Slope=0.4em,Findent=0.2em,Hang=0.12]
\setuplettrine[V][Slope=-0.1em,Findent=0.2em,Hang=0.12]
\setuplettrine[W][Slope=-0.1em,Findent=0.2em,Hang=0.12]
\sethyphenatedurlnormal{:=?}
\sethyphenatedurlbefore{?}
\sethyphenatedurlafter {:=}
\setupbackground[frame=on]
\setupexternalfigures[directory={./../../MOP}]

\setupitemize[1][paragraph,atmargin][width=3mm,distance=5pt,itemalign=flushleft,indentnext=no]
\setupitems[align=right]
\starttext
\lettrine{E}{lk} mens wordt gevormd door zijn omgeving
\startitemize
\item het type van de
\item ideeën over
\item de koeien
\item overige factoren (zoals paarden)
\stopitemize

The text continues ... The text continues The text continues The text continues
\stoptext

Op 25 sep 2011, om 13:39 heeft Alan Braslau het volgende geschreven:

 On Sun, Sep 25, 2011 at 01:02:07PM +0200, R. Ermers wrote:
 
 But I use very, very little math, only once or twice, as in  7$^{th}$, but I 
 could solve that otherwise. 
 
 You may want to use 7\high{th}.
 
 My main problem occurs in itemization. Please have a look at this:
 
 l.741 \item h

[NTG-context] [***SPAM***] Minimals ignores structureblockenvironment for frontmatter etc.

2011-03-20 Thread Tom
Minimals MKIV ignores the structureenvironment blocks when the suffix is
'matter' but applies them if the suffix is 'part.' Furthermore, they are
applied in \starttext if between \startfrontmatter -- \stopfrontmatter, etc.
blocks and error if between \startfrontpart -- \stopfrontpart, etc. blocks.
The following code executes but does not apply the environment block
commands. Commenting out the three \startstructureblockenvironment commands
with 'matter arguments and uncommenting the three 'part' commands will
cause the environment block commands to be executed.

Ironically, the \start-\stop pairs between \starttext and \stoptext error if
'part' is used but execute if 'matter.' 

\def\MyFrontMatterCommand#1#2% #1 is number, #2 is text
 {\framed[frame=off,align=middle,width=broad]
 {\switchtotypeface[ChapterStart] #2}}

\def\MyChapterCommand#1#2% #1 is number, #2 is text
  {\framed[frame=off,bottomframe=on,topframe=off]
 {\vbox{\centerline{\headtext{chapter} #1}\par\blank{\centerline{#2}


\definepagebreak[mychapterpagebreak][yes,header,right]

\startstructureblockenvironment[frontmatter]
%ignored if frontmatter, applied if frontpart
%\startstructureblockenvironment[frontpart]

\setuppagenumbering[state=start,location=bottom,conversion=romannumerals] 

\setuphead[chapter]
 [command=\MyFrontMatterCommand,textstyle=\ss\bfd,
  header=empty,footer=chapter,page=mychapterpagebreak,
  number=no,after={\blank[0.5in]}]

\stopstructureblockenvironment

\startstructureblockenvironment[bodymatter]
%ignored if bodymatter, applied if bodypart
%\startstructureblockenvironment[bodypart]

\setuppagenumbering[alternative=doublesided,location=]

\setuppagenumbering[state=start,location=bottom,conversion=numbers] 

\setuphead[chapter]
 [command=\MyChapterCommand,textstyle=\ss\bfd,
  header=empty,footer=chapter,page=mychapterpagebreak,
  after={\blank[0.5in]},before={\blank[force,1.0in]}
  \placeinitial] 

\stopstructureblockenvironment

\startstructureblockenvironment[backmatter]
%ignored if back, applied if backpart
%\startstructureblockenvironment[backpart]

\setuphead[title]
 [command=\MyFrontMatterCommand,textstyle=\ss\bfd,
  header=empty,footer=chapter,page=mychapterpagebreak,
  number=no,after={\blank[0.25in]}]

\setuphead[chapter]
 [command=\MyFrontMatterCommand,textstyle=\ss\bfd,
  header=empty,footer=chapter,page=mychapterpagebreak,
  number=no,after={\blank[0.25in]}]


\stopstructureblockenvironment

\starttext 

\startfrontmatter % errors if startfrontpart

%sample front matter
\input knuth 

\completecontent[alternative=c,criterium=all]

\chapter{Preface}
\input knuth

\chapter{Introduction} 
\input knuth  

\stopfrontmatter

\startbodymatter %errors if startbodypart

\chapter{I Was Born}
\input knuth

\chapter{I Observe}
Lorem {\index{lorem}}ipsum dolor sit amet, consectetur adipiscing elit.
Maecenas ipsum turpis, imperdiet vel aliquam eu, iaculis at lorem. Proin ut
orci ac dui sodales commodo vel quis sem. Etiam nunc odio, luctus non cursus
elementum, elementum non. 

\stopbodymatter

\startbackmatter %errors if startbackpart
\title{Appendices}
\page[blank]
\completeindex
\stopbackmatter

\stoptext

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com




___
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] Style of header text

2011-03-09 Thread Milton Galo Patricio Inostroza Aguilera
Hi,

I'm trying to setup the style of the header text in this way:

\setupcolors[state=start,system=rgb]
\definecolor[Darkred][r=0.5,g=0.0,b=0.0]

\definehead[MyChapter][chapter]

\setuphead[MyChapter][
 after=\blank,
 number=no,
 continue=no,
 textcolor=Darkred,
 style=\ss\tfc
]

\starttext

\MyChapter{Introduccion}

\MyChapter{Final}

\stoptext

It work's fine.  I want that when exist a pagebreak, the system shows
the name of the chapter in the new page.  For that, I define a custom
pagebreak like this:

\definepagebreak
  [mychapterpagebreak]
  [yes,header]

and set in MyChapter's header the attribute page=mychapterpagebreak.
The system shows the name of the chapter, but I want to setup its
style (color, fontstyle, size, etc)...is it possible?.

Regards,



-- 
Milton
___
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] Style of header text

2011-03-09 Thread Wolfgang Schuster

Am 09.03.2011 um 21:24 schrieb Milton Galo Patricio Inostroza Aguilera:

 Hi,
 
 I'm trying to setup the style of the header text in this way:
 
 \setupcolors[state=start,system=rgb]
 \definecolor[Darkred][r=0.5,g=0.0,b=0.0]
 
 \definehead[MyChapter][chapter]
 
 \setuphead[MyChapter][
 after=\blank,
 number=no,
 continue=no,
 textcolor=Darkred,
 style=\ss\tfc
 ]
 
 \starttext
 
 \MyChapter{Introduccion}
 
 \MyChapter{Final}
 
 \stoptext
 
 It work's fine.  I want that when exist a pagebreak, the system shows
 the name of the chapter in the new page.  For that, I define a custom
 pagebreak like this:
 
 \definepagebreak
  [mychapterpagebreak]
  [yes,header]
 
 and set in MyChapter's header the attribute page=mychapterpagebreak.
 The system shows the name of the chapter, but I want to setup its
 style (color, fontstyle, size, etc)...is it possible?.

\setupheader[style=...,color=...]

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] header text for each page of a chapter

2011-03-05 Thread Milton Galo Patricio Inostroza Aguilera
Hi,

I need that the name of a chapter appears in each page that belongs of
it.  For that, I use the following code:

\definepagebreak
  [mychapterpagebreak]
  [yes,header]

\setuphead
[chapter]
[page=mychapterpagebreak,
placehead=no]

\setupheadertexts[][chapter]


\starttext
  \chapter{Tarjetas} \dorecurse{10}{\input tufte }
  \chapter{Linea de credito} \dorecurse{10}{\input tufte }
\stoptext


This approach works perfectly, but I can't customize the text that
contains the name of the chapter.  I would like to show the name of
the chapter with this code:

\startnarrower[3*right]
\crlf
{\tfd \rightaligned{ CHAPTER_NAME }}
\stopnarrower

Why I'm doing that?... because I have a lot of framed and I want when
they are send to the next page the document shows the name of the
chapter that they belong (or the name of the current chapter). am I
right with my approach?

Regards,

-- 
Milton
___
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] linebreak in part title

2010-11-09 Thread Michael Goerz
On Tue, Nov 9, 2010 at 6:26 AM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
 Am 09.11.2010 um 00:30 schrieb Michael Goerz:
 I want part titles to appear on the own (empty) page, centered
 horizontally and vertically, and in small caps. To this end, I've set
 up the \part command as [...]

 \definefont[PartStyle][Caps sa 1]
 \setuphead
   [part]
   [placehead=yes,
    number=no,
    before={\startstandardmakeup[align={middle,lohi}]},
    after=\stopstandardmakeup,
    style=PartStyle,
   %align=middle,
   %page={yes,header,footer,right},
   %header=high,
   %footer=high,
    prefix=no]

Works great! I ended up with

\definefont[PartStyle][Caps sa 1]
\definepagebreak
  [mychapterpagebreak]
  [yes,header,right]
\setuphead[part]
  [placehead=yes,
   page=mychapterpagebreak,
   number=no,
   before={\startstandardmakeup[align={middle,lohi}]\switchtobodyfont[18pt]},
   after=\stopstandardmakeup,
   style=PartStyle,
   align=middle,
   prefix=no]

The only things I had to add were the mychapterpagebreak, which makes
sure the (left) page before the part title is empty, and the fontsize.

Thanks!

Michael
___
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] Pagebreak without background

2010-08-04 Thread Hans Hagen

On 2-8-2010 3:16, Julian Becker wrote:

\defineoverlay[left page] [\useMPgraphic{left page}]
\defineoverlay[right page][\useMPgraphic{right page}]
\setupbackgrounds[leftpage] [background=left page]
\setupbackgrounds[rightpage][background=right page]

But now I have them on every page.
I don't want those to appear on certain pages. E.g. I want to start chapters
on the right page and want the left page to be completely empty.
For my chapters I currently have

\definepagebreak[chapterpagebreak][yes,header,right]
\setuphead[chapter][page=chapterpagebreak]


\defineoverlay[left page]   [left page]
\defineoverlay[right page]  [right page]
\setupbackgrounds[leftpage] [background=left page]
\setupbackgrounds[rightpage][background=right page]

\setuppagenumbering[alternative=doublesided]

\definepagebreak[chapterpagebreak][left,header,blank,right]
\setuphead[chapter][page=chapterpagebreak]

\starttext

\chapter{x}
\chapter{x}

\stoptext




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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] Pagebreak without background

2010-08-02 Thread Julian Becker
I'm working on a document with page backgrounds. I got them working now,
using

...
...
\defineoverlay[left page] [\useMPgraphic{left page}]
\defineoverlay[right page][\useMPgraphic{right page}]
\setupbackgrounds[leftpage] [background=left page]
\setupbackgrounds[rightpage][background=right page]

But now I have them on every page.
I don't want those to appear on certain pages. E.g. I want to start chapters
on the right page and want the left page to be completely empty.
For my chapters I currently have

\definepagebreak[chapterpagebreak][yes,header,right]
\setuphead[chapter][page=chapterpagebreak]

Which still gives me the background on the blank left page before each new
chapter. So I tried blank in definepagebreak, but it doesn't seem to give me
the desired result, since it only removes the background on the page to
follow (that is the right page on which my chapter starts).

Anybody know how to do this?
regards,
Julian


-- 
Julian Becker
Institut für Angewandte Physik, R.123
Westfälische Wilhelms-Universität Münster
Corrensstr. 2/4
48149 Münster / Westfalen
Tel. 0251 83-3 61 53
Mob. 0151 599 848 29
e-mail: j_bec...@uni-muenster.de

Keep thy heart with all diligence; for it is the wellspring of life.
___
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] feauture request - no numbers on blank pages at chapter's end

2010-05-21 Thread Wolfgang Schuster

Am 20.05.10 13:21, schrieb Piotr Kopszak:

Many thanks for your help!

First the file according to the wiki example. Works if location=footer
in \setuppagenumbering but not when

\definepagebreak
   [mychapterpagebreak]
   [yes,header,right]

\setuphead
   [chapter]
   [page=mychapterpagebreak,footer=empty]
\setuppagenumbering[alternative=doublesided,location=margin]

\starttext
   \chapter{testA} \dorecurse{10}{\input tufte }
   \chapter{testB} \dorecurse{10}{\input tufte }
   \chapter{testC} \dorecurse{10}{\input tufte }
\stoptext


Changing \setuphead to

\setuphead[chapter][page={blank,right}]

gets rid of the number on the chapter's title page (which I don't
want) and still leaves it on the left empty page facing the title
page. Not to mention the fact that pagenumbers appear only from page 10.


This works for your minimal example:

\setuphead
  [chapter]
  [page={yes,footer,right},
   footer=empty]

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] feauture request - no numbers on blank pages at chapter's end

2010-05-21 Thread Piotr Kopszak
That's very close indeed. Thanks for putting me on the right track!
What I wanted is rather:

\setuphead
 [chapter]
 [page={yes,footer,right},
  footer=nomarking]

Best

Piotr

2010/5/21 Wolfgang Schuster schuster.wolfg...@googlemail.com:
 Am 20.05.10 13:21, schrieb Piotr Kopszak:

 Many thanks for your help!

 First the file according to the wiki example. Works if location=footer
 in \setuppagenumbering but not when

 \definepagebreak
   [mychapterpagebreak]
   [yes,header,right]

 \setuphead
   [chapter]
   [page=mychapterpagebreak,footer=empty]
 \setuppagenumbering[alternative=doublesided,location=margin]

 \starttext
   \chapter{testA} \dorecurse{10}{\input tufte }
   \chapter{testB} \dorecurse{10}{\input tufte }
   \chapter{testC} \dorecurse{10}{\input tufte }
 \stoptext


 Changing \setuphead to

 \setuphead[chapter][page={blank,right}]

 gets rid of the number on the chapter's title page (which I don't
 want) and still leaves it on the left empty page facing the title
 page. Not to mention the fact that pagenumbers appear only from page 10.

 This works for your minimal example:

 \setuphead
  [chapter]
  [page={yes,footer,right},
   footer=empty]

 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
 ___




-- 
http://okle.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] feauture request - no numbers on blank pages at chapter's end

2010-05-20 Thread Wolfgang Schuster

Am 20.05.10 11:07, schrieb Piotr Kopszak:

Hello list,

I don't know if it is only an idiosyncrasy of Polish typography but if
a chapter ends with a blank page it should not display its number. It
would be very useful if this could be an option (if not a default
behaviour) of \setuppagenumbering . It's not a huge problem and I
think I will not wait for a solution before sending my next book for
printing, but it would be nice if it appeared in the future.
   


This is mentioned here: 
http://wiki.contextgarden.net/Titles#Truly_empty_pagebreak_before_chapters


You don't \definepagebreak as mentioned in the wiki because

  \setuphead[chapter][page={header,footer,right}]

is also valid.

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] feauture request - no numbers on blank pages at chapter's end

2010-05-20 Thread Piotr Kopszak
Yes, I know but even if it was working in all cases (and it is not,
for instace I need pagenumbers in the margin and it didn't work in
this case) it looks really, really ugly. Why not wrap something like
this in a definition and give users an option?

2010/5/20 Wolfgang Schuster schuster.wolfg...@googlemail.com:
 Am 20.05.10 11:07, schrieb Piotr Kopszak:

 Hello list,

 I don't know if it is only an idiosyncrasy of Polish typography but if
 a chapter ends with a blank page it should not display its number. It
 would be very useful if this could be an option (if not a default
 behaviour) of \setuppagenumbering . It's not a huge problem and I
 think I will not wait for a solution before sending my next book for
 printing, but it would be nice if it appeared in the future.


 This is mentioned here:
 http://wiki.contextgarden.net/Titles#Truly_empty_pagebreak_before_chapters

 You don't \definepagebreak as mentioned in the wiki because

  \setuphead[chapter][page={header,footer,right}]

 is also valid.

 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
 ___




-- 
http://okle.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] feauture request - no numbers on blank pages at chapter's end

2010-05-20 Thread Piotr Kopszak
Many thanks for your help!

First the file according to the wiki example. Works if location=footer
in \setuppagenumbering but not when

\definepagebreak
  [mychapterpagebreak]
  [yes,header,right]

\setuphead
  [chapter]
  [page=mychapterpagebreak,footer=empty]
\setuppagenumbering[alternative=doublesided,location=margin]

\starttext
  \chapter{testA} \dorecurse{10}{\input tufte }
  \chapter{testB} \dorecurse{10}{\input tufte }
  \chapter{testC} \dorecurse{10}{\input tufte }
\stoptext


Changing \setuphead to

\setuphead[chapter][page={blank,right}]

gets rid of the number on the chapter's title page (which I don't
want) and still leaves it on the left empty page facing the title
page. Not to mention the fact that pagenumbers appear only from page
10.

Piotr
2010/5/20 Wolfgang Schuster schuster.wolfg...@googlemail.com:
 Am 20.05.10 12:53, schrieb Piotr Kopszak:

 It would be handy to avoid inserting \page in  this case, I think.


 \setuphead[chapter][page={blank,right}]

 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
 ___




-- 
http://okle.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] Suppressing page number on chapter's last page

2010-05-12 Thread Piotr Kopszak
This works, but not in my case, as I absolutely need

\setuppagenumbering[alternative=doublesided,location=margin]

Best

Piotr



\definepagebreak
  [mychapterpagebreak]
  [yes,header,right]
 %[yes,header,left]
 %[yes,header,footer,right]

\setuphead
  [chapter]
  [page=mychapterpagebreak,footer=empty]
 %[page=Mychapterpagebreak,header=empty,footer=empty]

%\setupsectionblock[frontpart][page=chapter]
%\setupsectionblock[bodypart][page=chapter]
%\setupsectionblock[backpart][page=chapter]
%\setupsectionblock[appendix][page=chapter]

\setuppagenumbering[alternative=doublesided,location=margin]
\setupheadertexts[{My special headertext}]
\setupfootertexts[This is a text in the footer]
%\setupbackgrounds[header][text][bottomframe=on]

\starttext
  \chapter{testA} \dorecurse{10}{\input tufte }
  \chapter{testB} \dorecurse{10}{\input tufte }
  \chapter{testC} \dorecurse{10}{\input tufte }
\stoptext


2010/5/10 Tom t...@tuxedo-press.com:
 The following link discusses a method for suppressing headers (including
 page numbers) from blank pages at the ends of chapters:
 http://wiki.contextgarden.net/Titles in the section titled Truly empty
 pagebreak before chapters.

 Tom Benjey
 717-258-9733 voice
 717-243-0074 fax
 Twitter: @TomBenjey






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




-- 
http://okle.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
___


[NTG-context] Page headers drop capitals not working but pagenumbering is

2010-04-20 Thread Tom
The following code numbers the pages as I desired and the TOC lists those
page numbers. However, it is not doing two things as I desire and would
appreciate it if someone could indicate precisely which lines of code need
to be corrected.

In the front matter, page headers should be on the recto of the TOC (page
vi) and pages 2 and 3 of the introduction. Page headers seem to be operating
correctly in the body of the book.

\placeinitial is not creating drop capitals on the first page of each
chapter in the body of the text.

Example code follows:


%figure on left - chapter number and title on right
\def\MyChapterCommandM#1#2% #1 is number, #2 is text
   {\startfiguretext[left]{none}
 {\externalfigure[flowers][width=.2\textwidth]}
 {\framed[frame=off,align=middle,width=broad]
 {\switchtobodyfont[15pt] #1\\\blank[small] #2}}
\stopfiguretext}

%no figure on left - chapter number and title on right
\def\MyFrontMatterCommand#1#2% #1 is number, #2 is text
 {\framed[frame=off,align=middle,width=broad]
 {\switchtobodyfont[15pt] #1\\\blank[small] #2}}

%eliminate headers on blank page at end of chapter
\definepagebreak[mychapterpagebreak][yes,header,right]

%put pagenumber on bottom of first page of chapter
\definetext[chapter][footer][pagenumber]
\setuphead[chapter][header=high,footer=chapter,page=mychapterpagebreak]
\setuphead[title][header=high,footer=chapter,page=mychapterpagebreak]

%turn off putting naked page numbers on pages
\setuppagenumbering[location=]

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

\startsectionblockenvironment[frontpart]

\setuphead[title]
 [command=\MyFrontMatterCommand,textstyle=\ss\bf,number=no,
  header=empty,footer=chapter,page=mychapterpagebreak,
  after=\vskip 0.5in]
 
\setuphead[chapter]
 [command=\MyFrontMatterCommand,textstyle=\ss\bf,number=no,
  header=empty,footer=chapter,page=mychapterpagebreak,
  numbercommand=\ss\bf\em\tfd,after=\vskip 0.5in,before=\vskip 1.0in
 \placeinitial  %comment out this line to eliminate drop capitals
] 

\setupheadertexts[chapter]
[chapter][pagenumber][pagenumber][chapter Example]

\setupheadertexts[title]
[title][pagenumber][pagenumber][title]

\setuppagenumbering[alternative=doublesided]

%\setupheader[state=stop]

\stopsectionblockenvironment

\startsectionblockenvironment[bodypart]
\setuppagenumbering[alternative=doublesided]
\setupheadertexts
[chapter][pagenumber][pagenumber][Content Example]

\setuphead[chapter]
 [command=\MyChapterCommandM,textstyle=\ss\bf,
  header=empty,footer=chapter,page=mychapterpagebreak,
  numbercommand=\ss\bf\em\tfd,after=\vskip 0.5in,before=\vskip
1.0in\placeinitial]  

%comment out this line to eliminate drop capitals
 

\stopsectionblockenvironment

\startsectionblockenvironment[appendix]

\setupsectionblock[appendix][page=appendicespagebreak] 

\stopsectionblockenvironment

\starttext 

\startfrontmatter

Some random text to occupy front matter pages.

\blank[medium]

\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\page[right]

\setuppagenumbering[state=start,alternative=doublesided,conversion=romannume
rals,location=]
\setupheader[state=start]

\title{Contents}

\placecontent[alternative=c,criterium=all]

\blank[medium]
Random text added to push TOC onto a second page to test page headers.
\blank[medium]

\input knuth
\input knuth
\input knuth
\input knuth

\chapter{Preface}
\input knuth
\page[right]

%switch from lower case Roman numerals to Arabic numbers
\setuppagenumbering[state=start,alternative=doublesided,conversion=numbers]
\setuppagenumber[state=start,number=1]

\setuphead[chapter]
 [command=\MyChapterCommandM,textstyle=\ss\bf,number=no,
  header=empty,footer=chapter,page=mychapterpagebreak,
  numbercommand=\ss\bf\em\tfd,after=\vskip 0.5in,before=\vskip 1.0in
 \placeinitial  %comment out this line to eliminate drop capitals
] 

\chapter{Introduction}
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth


\stopfrontmatter

\startbodymatter

\chapter{Chapter One}
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth

\chapter{Chapter Two}
\input knuth

\chapter{Chapter Three}
\input knuth

\page
\stopbodymatter

\startappendices

\stopappendices
\page[stop]

\stoptext







Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey






___
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] (no subject)

2010-04-18 Thread Tom
The following example computes page numbers correctly, places the correct
entries into the TOC, and produces the desired page headers on the first
pages of chapters. However, there are some things it doesn't do properly:

1. It puts headers on blank pages at the ends of chapters even after I
inserted the code that takes care of that problem.

2. It seems to ignore some commands or wait until the next chapter to
implement them. An example is the header on page vi. It's supposed to read
viContents

3. It seems that commands in the \startsectionenvironment  frontmatter block
are ignored or overridden by commands that are for the body part. That is
why I have so many setup commands ib the \starttext section.



%figure on left - chapter number and title on right
\def\MyChapterCommandM#1#2% #1 is number, #2 is text
   {\startfiguretext[left]{none}
 {\externalfigure[cow][width=.2\textwidth]}
 {\framed[frame=off,align=middle,width=broad]
 {\switchtobodyfont[15pt] #1\\\blank[small] #2}}
\stopfiguretext}

%no figure on left - chapter number and title on right
\def\MyFrontMatterCommandM#1#2% #1 is number, #2 is text
 {\framed[frame=off,align=middle,width=broad]
 {\switchtobodyfont[15pt] #1\\\blank[small] #2}}

%eliminate headers on blank page at end of chapter
\definepagebreak[mychapterpagebreak][yes,header,next]

%put pagenumber on bottom of first page of chapter
\definetext[chapter][footer][pagenumber]
\setuphead[chapter][header=high,footer=chapter,page=right]
\setuppagenumbering[location=]


\startsectionblockenvironment[frontpart]

\definehead[mycontenttitle][chapter]
\setuphead[mycontenttitle]
 [command=\MyFrontMatterCommandM, number=no,textstyle=\ss\bf,
header=empty,footer=empty,page=mychapterpagebreak,
  numbercommand=\ss\bf\em\tfd,after=\vskip 0.5in
\placeinitial  %comment out this line to eliminate drop capitals
] 

\stopsectionblockenvironment

\startsectionblockenvironment[bodypart]
\setupheadertexts
[chapter][pagenumber][pagenumber][Content Example]

\setuphead[chapter][page=mychapterpagebreak]

\setuphead[chapter]
 [command=\MyChapterCommandM,textstyle=\ss\bf,  
  header=empty,footer=empty,page=mychapterpagebreak,
  numbercommand=\ss\bf\em\tfd,after=\vskip 0.5in,before=\vskip 1.0in
\placeinitial  %comment out this line to eliminate drop capitals
] 

\stopsectionblockenvironment

\startsectionblockenvironment[appendix]

\setupsectionblock[appendix][page=appendicespagebreak] 

\stopsectionblockenvironment

\starttext 

\startfrontmatter

\setuppagenumbering[state=start,alternative=doublesided,conversion=romannume
rals]

Some random text to occupy front matter pages.
\blank[medium]
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\page[right]


%\starthiding
\setuphead[title]
 [command=\MyFrontMatterCommandM, number=no,textstyle=\ss\bf,
header=empty,footer=pagenumber,page=mychapterpagebreak,
  numbercommand=\ss\bf\em\tfd,after=\vskip 0.5in
\placeinitial  %comment out this line to eliminate drop capitals
] 
\setupheadertexts
[Contents][pagenumber][pagenumber][Contents]

\title{Content}

%\stophiding

%\mycontenttitle{Content}  %displays Contents but drops the TOC

\placecontent[alternative=c]

\blank[medium]
Random text added to push TOC onto a second page to test page headers.
\blank[medium]

\input knuth
\input knuth
\input knuth
\input knuth

\setupheadertexts
[chapter][pagenumber][pagenumber][Content Example]

\setuphead[chapter]
 [command=\MyFrontMatterCommandM, number=no,textstyle=\ss\bf,
header=empty,footer=pagenumber,page=mychapterpagebreak,
  numbercommand=\ss\bf\em\tfd,after=\vskip 0.5in
\placeinitial  %comment out this line to eliminate drop capitals
] 

\chapter{Preface}
\input knuth
\page[right]

%switch from lower case Roman numberals to Arabic numbers
\setuppagenumbering[state=start,alternative=doublesided,conversion=numbers]
\setuppagenumber[state=start,number=1]

\setuphead[chapter]
 [command=\MyChapterCommandM,textstyle=\ss\bf,
  header=empty,footer=pagenumber,page=mychapterpagebreak,
  numbercommand=\ss\bf\em\tfd,after=\vskip 0.5in,before=\vskip 1.0in
 \placeinitial  %comment out this line to eliminate drop capitals
] 

\chapter{Introduction}
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth

\stopfrontmatter

\startbodymatter

\chapter{Chapter One}
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth

\chapter{Chapter Two}
\input knuth
\stopbodymatter

\startappendices

\page[stop]

\stopappendices

\stoptext

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey






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

maillist : ntg-context

Re: [NTG-context] Hanging indents

2010-04-05 Thread Tom
Aditya,

It took me awhile to sort through all the code to find what was creating the
problem. It appears that the code for the first page of a chapter is the
culprit but I don't know why it's causing the problem.

\definepagebreak[mychapterpagebreak][yes,header,right]  %eliminates headers
on blank pages

\def\ChapterTitle#1#2{
   \centerline{\switchtobodyfont[ChapterStart,18pt]{\ss\bf #2}}
   \godown[.5in]}

\setuphead[chapter]
  [command= \ChapterTitle,textstyle=bold,header=empty,footer=empty,
  page=mychapterpagebreak,
  numbercommand={\switchtobodyfont[big]{\ss\sl}}] 

\definestartstop
   [exdent]
   [before={\startnarrower[left]\setupindenting[-\leftskip,yes]},
after=\stopnarrower]

\starttext

\chapter{HangingIndent}

\startexdent
\dorecurse{10}{Para 1: Some random text to fill space}

\dorecurse{10}{Para 2: Some random text to fill space}

\dorecurse{10}{Para 3: Some random text to fill space}

\dorecurse{10}{Para 4: Some random text to fill space} 
\stopexdent

\stoptext


Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey




-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Aditya Mahajan
Sent: Monday, April 05, 2010 1:52 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Hanging indents

On Mon, 5 Apr 2010, Tom wrote:

 Exdent works fine when I substitute my text for Knuth in the example, but
 has a problem when I include it in my document. The first line of text
after
 Exdent is called is not outdented, but is in all subsequent paragraphs as
it
 should be. I tried calling Exdent for the paragraphs that start my
document
 and get the same result. From that I surmise that I have set up something
 that overrides the outdenting on the first line of the first paragraph,
but
 is overridden by Exdent after that. Do you have any ideas what it might
be?

Can you create a minimal example that does not work?

\definestartstop
   [exdent]
   [before={\startnarrower[left]\setupindenting[-\leftskip,yes]},
after=\stopnarrower]

\starttext

\startexdent
\dorecurse{10}{Para 1: Some random text to fill space}

\dorecurse{10}{Para 2: Some random text to fill space}

\dorecurse{10}{Para 3: Some random text to fill space}

\dorecurse{10}{Para 4: Some random text to fill space}
\stopexdent

\stoptext

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

___


___
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] Hanging indents

2010-04-05 Thread Wolfgang Schuster

Am 06.04.10 00:19, schrieb Tom:

Aditya,

It took me awhile to sort through all the code to find what was creating the
problem. It appears that the code for the first page of a chapter is the
culprit but I don't know why it's causing the problem.

\definepagebreak[mychapterpagebreak][yes,header,right]  %eliminates headers
on blank pages
   

You change the style of the number but suppress it in the output,
i guess there is some reason for this and i don't understand it.

\def\ChapterTitle#1#2{
\centerline{\switchtobodyfont[ChapterStart,18pt]{\ss\bf #2}}
\godown[.5in]}

\setuphead[chapter]
   [command= \ChapterTitle,textstyle=bold,header=empty,footer=empty,
   page=mychapterpagebreak,
   numbercommand={\switchtobodyfont[big]{\ss\sl}}]
   

\setuphead[chapter][indentnext=yes] but i think the setup is used
here http://wiki.contextgarden.net/Shaped_paragraphs just for fun.

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] Hanging indents

2010-04-05 Thread Tom
Thanks, Wolfgang. That did it. Because I wasn't using a section, I didn't
pay attention to the indentnext=yes.
The numbercommand is an artifact leftover from code used for numbered
chapters that I neglected to delete. 

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey




-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Wolfgang Schuster
Sent: Monday, April 05, 2010 6:30 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Hanging indents

Am 06.04.10 00:19, schrieb Tom:
 Aditya,

 It took me awhile to sort through all the code to find what was creating
the
 problem. It appears that the code for the first page of a chapter is the
 culprit but I don't know why it's causing the problem.

 \definepagebreak[mychapterpagebreak][yes,header,right]  %eliminates
headers
 on blank pages

You change the style of the number but suppress it in the output,
i guess there is some reason for this and i don't understand it.
 \def\ChapterTitle#1#2{
 \centerline{\switchtobodyfont[ChapterStart,18pt]{\ss\bf #2}}
 \godown[.5in]}

 \setuphead[chapter]
[command= \ChapterTitle,textstyle=bold,header=empty,footer=empty,
page=mychapterpagebreak,
numbercommand={\switchtobodyfont[big]{\ss\sl}}]

\setuphead[chapter][indentnext=yes] but i think the setup is used
here http://wiki.contextgarden.net/Shaped_paragraphs just for fun.

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] Page Numbering Hell (SOLVED)

2009-10-25 Thread Bryant Eastham
All-

 

I have attached a heavily commented MKII example that implements the
structure that I want. The notes identify several (IMHO) weak spots in
documentation, especially some consistency issues.

 

In order to implement this (some said simple) format, I used:

* http://www.pragma-ade.com/general/manuals/cont-enp.pdf (the
manual)

* 
http://www.opensubscriber.com/message/ntg-context@ntg.nl/9815615.html

* http://wiki.contextgarden.net/Biochemistry_textbook

* http://texshow.contextgarden.net

* 
http://wiki.contextgarden.net/Titles#Truly_empty_pagebreak_before_chapte
rs

 

I'm fine with that. For those (most, I imagine) who don't want to wade
through the notes, here is a summary of the most (again, IMHO) issues:

* startsectionblockenvironment does not appear documented, and
appears to be critical for this style

* setuppagenumbering documentation is hard to follow for options
'by\em{section}' and '\em{section}number'

o   The manual uses inconsistent italics

o   The texshow page doesn't use italics where it should

* setupcombinedlist (through setuplist) has the same
inconsistent use of italics.

* setuphead is not documented completely (no reference to
special 'page' formats)

* definepagebreak not documented

 

Also, the solution for 'truly empty pagebreak before chapters' does not
appear to work for the last chapter in the document.

 

I would be more than happy to contribute to the texshow documentation
and wiki, assuming that I would be given an account... J

 

The list appears to be dead again, so I hope this makes it through.

 

Thanks,

-Bryant

 

From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Bryant Eastham
Sent: Wednesday, October 21, 2009 12:37 AM
To: ntg-context@ntg.nl
Subject: [NTG-context] Page Numbering Hell

 

All-

 

A few days ago when I first stumbled on ConTeXt I was very, very
excited. I have some 500 pages of technical documentation that could
benefit from this, particularly since I need Japanese font support. But
it has to be real.

 

I'm sorry if this sounds caustic, but after 12 hours of failed attempts
to even get a minimal document formatted I have some serious questions
for the list:

 

1.   Is Mark IV real? I am only somewhat joking here - after
spending hours searching for reasonable documentation on even the most
trivial options, I am left wondering whether this is something I want to
use...

2.   ConTeXt looks great. But what is current? Seriously, I like the
look and the support (particularly Unicode). But going over
documentation I cannot make heads or tails of what to do. Mark II? Mark
IV? TeTeX? LuaTeX? If I really want to use this, what should I use?

3.   Having answered #2, where in the world is a reference manual!!!
I mean one that actually *documents the options*.

4.   Having answered #3, are there any current examples that
actually work? The snippets from the mailing are great, but they are
just snippets. That doesn't help me.

 

Now, to resolve my immediate issue, and just because I will not be able
to sleep well until I figure this out (yes, I am fixated on this).

 

I want this document structure:

 

Contents

1.   Chapter   1-1

1.1 Section 1-2

2.   Chapter 2  2-1

2.1 Section 2-2

 

Table of contents on page i.

Even/odd, each chapter starts on right page.

Page number (as in 2-2) in top margin.

Mark IV, Lua document.

 

I have tried hundreds of different combinations. If it cannot do this,
the I will (with sadness) move on. I'm sure that it would take someone
who understands this about 5 minutes to write (if that).

 

-Bryant

 

 

 

 

Panasonic Electric Works Laboratory of America - SLC Lab
4525 So. Wasatch Blvd., Suite 100, 84124
Salt Lake City, UT 84124



T 801.993.7124
F 801.993.7260
beast...@pewla.us.pewg.pansonic.com

Bryant Eastham
Chief Architect

 

 

***CONFIDENTIALITY NOTICE***: This e-mail and any attachments may
contain information which is confidential, proprietary, trade secret,
privileged or otherwise protected by law. The information is the
property of Panasonic Electric Works Laboratory of America, Inc., and is
solely intended for the named addressee (or a person responsible or
delivering it to the addressee). If you are not the intended recipient
of this message, you are not authorized to read, print, retain copy or
disseminate this message or any part of it. If you have received this
e-mail in error, please notify the sender and the Office of General
Counsel at generalcoun...@us.pewg.panasonic.com
mailto:generalcoun...@us.pewg.panasonic.com  immediately by return
e-mail and delete it from your computer.

 

image001.gifimage002.pngimage004.pngimage005.gif

evaluate.docb.tex
Description: evaluate.docb.tex

[NTG-context] Strange Behaviour for toc

2009-10-12 Thread Martin Scholz
Hallo list,

I just started to work with conTeXt, now that I seted up an project 
environment as follows with the following content:

file project_oc.tex:


\startproject project_oc
\environment env_oc

\startfrontmatter
\setuppagenumbering[conversion=romannumerals]
\completecontent
\stopfrontmatter

\startbodymatter
\setuppagenumbering[conversion=]
\product prd_oc_0

\stopbodymatter

\startappendices

\stopappendices

\stopproject

file env_oc.tex:


\startenvironment env_oc

\enableregime [utf]
\setuplanguage [de]
[leftquote=\upperleftsinglesixquote,rightquote=
\upperrightsinglesixquote,leftquotation=\leftguillemot,rightquotation=
\rightguillemot]
\mainlanguage [de]

\setupbodyfontenvironment[default][em=italic]

\usemodule[greek]
\usemodule[units]

\setupcolors[state=start]
\setupcolor[rgb]
\definecolor[lightred][r=1,g=0.85,b=0.85]

\definefont[BigFontOne][Regular sa 3]
\definefont[BigFontTwo][RegularBold sa 2]
\definecolor[BigColorOne][r=.86,g=.850,b=.54]
\definecolor[BigColorTwo][r=.43,g=.425,b=.27]

\setuplayout[location=middle,
topspace=1.3cm,
width=middle,
cutspace=4.5cm,
rightmargindistance=0.4cm,
leftmargindistance=0.2cm,
backspace=1.2cm,
height=fit,
rightmargin=2.5cm,
leftmargin=1cm,
bottomspace=2cm,
footer=0.8cm,
setup=strict]

% \showgrid
 \showframe
% \showsetups
% \showlayout

\setuppagenumbering[alternative=doublesided,location=footer]
\setupheader[state=none]

\setuptolerance[tolerant, stretch]

\setupwhitespace[medium]

\setupfootnotes[way=bypage, conversion=set 2]

\definepagebreak[chapter][yes,footer,right]

\setuphead[chapter][textcommand=\MyChapterText,color=BigColorTwo,style=
\BigFontTwo]

\def\MyChapterText#1{\rlap{\BigFontOne\BigColorOne#1}\kern15pt#1}

\setuphead[section][numbercolor=red]

\setuphead[subsection][number=no,style=\ss]

\setuphead[subsubsection][style=slanted,number=no,before={\blank
[big]},before={\testpage[1]},after=\nowhitespace]

\setupfloats[spaceafter=3*medium]

\setuptables[bodyfont=small]
\setupcaption[table][style={\ssx\setupinterlinespace
[line=2.5ex]},align=left]

\setupfloat[table][criterium=0.5\textwidth,default=inner]

\setupcaption[figure][style={\ssx\setupinterlinespace
[line=2.5ex]},align=left]

\definefloat[Bigfigure][Bigfigures][figure]
\setupfloat[Bigfigure][location=inner]

\definefloat[Bigtable][Bigtables][table]
\setupfloat[Bigtable][location=inner]

\definefloat[vignette][figure]
\setupfloat[vignette][leftmargindistance=-
\outermargintotal,rightmargindistance=-\outermargintotal,default=
{outer,none,low}]
% \setup[vignette][number=no]

\definestartstop[Story][before={\setupbackground[style=
\tfx,background=color,backgroundcolor=white,frame=on,framecorner=rectangular,framecolor=black,rulethickness=0.5pt,topoffset=0.25cm,bottomoffset=0.25cm,leftoffset=0.25cm,rightoffset=0.25cm,before=
{\blank[big]}]\startbackground\switchtobodyfont[10pt]},after=
\stopbackground]

\definestartstop[MySummary][before={\setupbackground
[background=color,backgroundcolor=lightgray,backgroundcorner=rectangular,frame=off,topoffset=0.3cm,bottomoffset=0.3cm,leftoffset=0.5cm,rightoffset=0.5cm,before=
{\blank[big]}]\startbackground\Zus},after=\stopbackground]

\defineframedtext[Oddity][width=0.75
\textwidth,background=color,backgroundcolor=lightred,frame=off,framecorner=round,frameradius=0.5cm,backgroundcorner=round,style=
\tfx]

\setupinmargin[align=right,style=\ss\tfx\setupinterlinespace]

\setupitemize[align=right]

\startsectionblockenvironment[appendix]
\setuptabulate[align=right,split=yes]

\definepagebreak[chapter][yes,footer,right]
\setuphead[chapter][bodypartconversion=Character,page=chapter]
\setuphead[subsection][command=\SectionCommand,number=yes,numbercolor,red]
\setuphead[subsubsection][number=yes]
\definefloat[BigFramedFigure][BigFramedFigures][figure]
\setupfloat[BigFramedFigure][location=inner,frame=on,offset=2pt]
\definefloat[FramedFigure][FramedFigures][figure]
\setupfloat[FramedFigure][frame=on,offset=2pt]

\stopsectionblockenvironment

\setupregister[index][imp][pagestyle=bold]

\setupcombinedlist[content][level=2,alternative=c]
\setuplist[chapter][style=bold]

\stopenvironment

file prd_oc_0.tex:
--

\startproduct prd_oc_0
\project project_oc

\component c_oc0_1

\stopproduct

file c_oc0_1.tex:
-
\startcomponent c_oc0_1
\product prd_oc_0
\project project_oc

\starttext
\title{Titel}
\chapter[chap:ques]{Question}
\chapter[chap:answ]{Answer}
\chapter[chap:rema]{Remarque}
\stoptext

\stopcomponent

Now Im getting doubled entries in the \completecontent part, it lists 
everything as

1 Question  5
1 Question  5
2 Answer7
2 Answer7

so as this is not the wished behaviour, can someone help me to solve thsi 
problem. please be patient with me to get it done right, as I'm a newbe...

Greetings

Martin

Re: [NTG-context] empty page - how?

2009-07-18 Thread Aditya Mahajan

On Sat, 18 Jul 2009, Ciro Soto wrote:


On Fri, Jul 17, 2009 at 10:37 AM, Aditya Mahajanadit...@umich.edu wrote:

On Fri, 17 Jul 2009, Ciro Soto wrote:


Hi All,

I want each chapter to start on an odd number page, and  the preceding
page to be totally empty (no header,
no footer).

Before the \chapter command, I tried:

\page[odd,blank] ... didn't work. I get the header and footer
\page[odd,empty] ... didn't work. I get an extra page (empty)
\page[odd,makeup] ... didn't work. I get the same as in the first case

what is the combination I need to use?


See
http://wiki.contextgarden.net/Titles#Truly_empty_pagebreak_before_chapters


it didn't work. I get the same blank page with header and footer.


Please reply to the list so that others might also help...

The following example works for me:

\definepagebreak
  [mychapterpagebreak]
  [yes,header,footer,right]

\setuphead
  [chapter]
  [page=mychapterpagebreak]

\setuppagenumbering[alternative=doublesided,location={header,margin}]
\setupheadertexts[{My special headertext}]
\setupfootertexts[This is a text in the footer]

\starttext
  \chapter{testA} \dorecurse{10}{\input tufte }
  \chapter{testB} \dorecurse{10}{\input tufte }
  \chapter{testC} \dorecurse{10}{\input tufte }
\stoptext



I'll insert a blank page with pdftk.


You should never have to resort to that.

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


Re: [NTG-context] How to disable page numbers in empty pages

2009-05-26 Thread Alan Stone
On Mon, May 25, 2009 at 11:43 PM, Khaled Hosny khaledho...@eglug.orgwrote:

 On Fri, May 22, 2009 at 12:04:08PM +0200, Alan Stone wrote:
  On Fri, May 22, 2009 at 11:42 AM, Khaled Hosny khaledho...@eglug.org
 wrote:
 
  How can I disable page numbers (or header/footer) in empty pages, as
  page 2 in the following example:
 
  \setuppagenumbering[alternative=doublesided]
  \starttext
  \chapter{one}
  \input tufte
  \chapter{two}
  \input tufte
  \stoptext
 
  Regards,
   Khaled
 
 
  http://www.ntg.nl/pipermail/ntg-context/2008/030594.html
 
   Alan

 Thanks for the tip, but I've a slightly more complex layout and it might
 need a more generalized solution, see:

 \definepagebreak
   [mychapterpagebreak]
[yes,header,footer,right]

 \setuphead
  [chapter]
  [page=mychapterpagebreak]


 \setuppagenumbering[alternative=doublesided,location={header,margin}]
 \setupheadertexts[{My special headertext}]
 \setupfootertexts[This is a text in the footer]

 \starttext
\chapter {testA} \dorecurse{10}{\input tufte }
\startstandardmakeup \dorecurse{4}{\input tufte }
 \stopstandardmakeup
\chapter {testB} \dorecurse{10}{\input tufte }
 \stoptext

 The page after first chapter and before the markup is empty and thus
 shouldn't have any headers/footers, but it isn't.

 Regards,
  Khaled

 --
   Khaled Hosny
  Arabic localiser and member of Arabeyes.org team
  Free font developer



\setupsectionblock[bodypart][page=yes]
\setupmakeup[standard][page=empty]

\definepagebreak
  [mychapterpagebreak]
   [yes,header,footer,right]

\setuphead
 [chapter]
 [page=mychapterpagebreak]

\setuppagenumbering[alternative=doublesided,location={header,margin}]

\setupheadertexts[{My special headertext}]
\setupfootertexts[This is a text in the footer]

\starttext

 \startbodymatter
  \chapter {testA}
  \dorecurse{10}{\input tufte }
   \stopbodymatter

 \startstandardmakeup
  \dorecurse{4}{\input tufte }
 \stopstandardmakeup

 \startbodymatter
  \chapter {testB}
  \dorecurse{10}{\input tufte }
   \stopbodymatter

\stoptext

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


Re: [NTG-context] How to disable page numbers in empty pages

2009-05-26 Thread Khaled Hosny
On Tue, May 26, 2009 at 10:53:30AM +0200, Alan Stone wrote:
 \setupsectionblock[bodypart][page=yes]
 \setupmakeup[standard][page=empty]
  
 \definepagebreak
   [mychapterpagebreak]
    [yes,header,footer,right]
  
 \setuphead
  [chapter]
  [page=mychapterpagebreak]
  
 \setuppagenumbering[alternative=doublesided,location={header,margin}]
 
 \setupheadertexts[{My special headertext}]
 \setupfootertexts[This is a text in the footer]
  
 \starttext
  
  \startbodymatter
   \chapter {testA}
   \dorecurse{10}{\input tufte }
    \stopbodymatter
  
  \startstandardmakeup
   \dorecurse{4}{\input tufte }
  \stopstandardmakeup
  
  \startbodymatter
   \chapter {testB}
   \dorecurse{10}{\input tufte }
    \stopbodymatter
  
 \stoptext

Thanks alot, this was very helpfull. (BTW, the mypagebreak part isn't
really needed).

Regards,
 Khaled



-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] How to disable page numbers in empty pages

2009-05-26 Thread Alan Stone
On Tue, May 26, 2009 at 3:12 PM, Khaled Hosny khaledho...@eglug.org wrote:

 On Tue, May 26, 2009 at 10:53:30AM +0200, Alan Stone wrote:
  \setupsectionblock[bodypart][page=yes]
  \setupmakeup[standard][page=empty]
 
  \definepagebreak
[mychapterpagebreak]
 [yes,header,footer,right]
 
  \setuphead
   [chapter]
   [page=mychapterpagebreak]
 
  \setuppagenumbering[alternative=doublesided,location={header,margin}]
 
  \setupheadertexts[{My special headertext}]
  \setupfootertexts[This is a text in the footer]
 
  \starttext
 
   \startbodymatter
\chapter {testA}
\dorecurse{10}{\input tufte }
 \stopbodymatter
 
   \startstandardmakeup
\dorecurse{4}{\input tufte }
   \stopstandardmakeup
 
   \startbodymatter
\chapter {testB}
\dorecurse{10}{\input tufte }
 \stopbodymatter
 
  \stoptext

 Thanks alot, this was very helpfull. (BTW, the mypagebreak part isn't
 really needed).


It depends whether you put more than one \chapter in each bodymatter part(s)
or not.

Alan




 Regards,
  Khaled



 --
  Khaled Hosny
  Arabic localiser and member of Arabeyes.org team
  Free font developer

___
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] How to disable page numbers in empty pages

2009-05-25 Thread Khaled Hosny
On Fri, May 22, 2009 at 12:04:08PM +0200, Alan Stone wrote:
 On Fri, May 22, 2009 at 11:42 AM, Khaled Hosny khaledho...@eglug.org wrote:
 
 How can I disable page numbers (or header/footer) in empty pages, as
 page 2 in the following example:
 
 \setuppagenumbering[alternative=doublesided]
 \starttext
 \chapter{one}
 \input tufte
 \chapter{two}
 \input tufte
 \stoptext
 
 Regards,
  Khaled
 
 
 http://www.ntg.nl/pipermail/ntg-context/2008/030594.html
 
  Alan

Thanks for the tip, but I've a slightly more complex layout and it might
need a more generalized solution, see:

\definepagebreak
   [mychapterpagebreak]
[yes,header,footer,right]

\setuphead
  [chapter]
  [page=mychapterpagebreak]


\setuppagenumbering[alternative=doublesided,location={header,margin}]
\setupheadertexts[{My special headertext}]
\setupfootertexts[This is a text in the footer]

\starttext
\chapter {testA} \dorecurse{10}{\input tufte }
\startstandardmakeup \dorecurse{4}{\input tufte }
\stopstandardmakeup
\chapter {testB} \dorecurse{10}{\input tufte }
\stoptext

The page after first chapter and before the markup is empty and thus
shouldn't have any headers/footers, but it isn't.

Regards,
 Khaled


-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] definepagebreak: problem at the end of front, body backmatter

2008-12-03 Thread Wolfgang Schuster

Am 02.12.2008 um 15:43 schrieb Bart C. Wise:

 In the sample code below, I defined the document to be doublesided  
 and that
 chapters should open on the right.  If the chapter ends on an odd  
 page, I want
 to leave the even page completely blank (no headers, footers, page  
 numbers,
 etc.).  The code below works except for the last chapter in the  
 frontmatter,
 bodymatter, and backmatter.  For the last chapter in those  
 divisions, the page
 is not blank, but has the header  footers.  How do I get  
 definepagebreak to
 work at the end of a division?

 \setupheadertexts[][chapter][Deluxe Header][]

 \definepagebreak
[ChapterPageBreak]
[yes,header,footer,right]% works! except for last page in a  
 division

 \setuphead[chapter][
header=empty,
footer=empty,
number=yes,
page=ChapterPageBreak,
 ]

 \setuplayout[location=doublesided]
 \setuppagenumbering[
location={footer,middle},
alternative=doublesided,
option=doublesided,
style=\em\tfx,
way=bytext,
 ]

 \starttext
 \startfrontmatter
\completecontent
\chapter {Introduction} \dorecurse{10}{\input tufte }
\chapter {Second Introduction} \dorecurse{10}{\input tufte }
 \stopfrontmatter
 \startbodymatter
 \chapter {First Chapter} \dorecurse{10}{\input tufte }
 \chapter {Second Chapter} \dorecurse{9}{\input tufte }
 \chapter {Third Chapter} \dorecurse{8}{\input tufte }
 \chapter {Fourth Chapter} \dorecurse{10}{\input tufte }
 \stopbodymatter
 \startbackmatter
 \chapter {First Appendix} \dorecurse{10}{\input tufte }
 \chapter {Second Appendix} \dorecurse{10}{\input tufte }
 \stopbackmatter
 \stoptext

You tried to enable doublesided documents with \setuplayout
but the option location control the location of your document
on the real paper, this option is usefull if you use different
sizes your document and paper e.g. \setupapersize[A4][A3].

Doublesided documents are enable with
\setuppagenumbering[alternative=doublesided], ConTeXt has also
a special settings alternative={singlesided,doublesided},
this this a normal single sided document with the same margins
on every page but you can use the left and right keys for
\page, \setuplayer etc.

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


Re: [NTG-context] definepagebreak: problem at the end of front, body backmatter

2008-12-03 Thread Bart C. Wise
On Wednesday 03 December 2008 05:11:23 am Wolfgang Schuster wrote:
 Am 02.12.2008 um 15:43 schrieb Bart C. Wise:
  In the sample code below, I defined the document to be doublesided
  and that
  chapters should open on the right.  If the chapter ends on an odd
  page, I want
  to leave the even page completely blank (no headers, footers, page
  numbers,
  etc.).  The code below works except for the last chapter in the
  frontmatter,
  bodymatter, and backmatter.  For the last chapter in those
  divisions, the page
  is not blank, but has the header  footers.  How do I get
  definepagebreak to
  work at the end of a division?
 
  \setupheadertexts[][chapter][Deluxe Header][]
 
  \definepagebreak
 [ChapterPageBreak]
 [yes,header,footer,right]% works! except for last page in a
  division
 
  \setuphead[chapter][
 header=empty,
 footer=empty,
 number=yes,
 page=ChapterPageBreak,
  ]
 
  \setuplayout[location=doublesided]
  \setuppagenumbering[
 location={footer,middle},
 alternative=doublesided,
 option=doublesided,
 style=\em\tfx,
 way=bytext,
  ]
 
  \starttext
  \startfrontmatter
 \completecontent
 \chapter {Introduction} \dorecurse{10}{\input tufte }
 \chapter {Second Introduction} \dorecurse{10}{\input tufte }
  \stopfrontmatter
  \startbodymatter
  \chapter {First Chapter} \dorecurse{10}{\input tufte }
  \chapter {Second Chapter} \dorecurse{9}{\input tufte }
  \chapter {Third Chapter} \dorecurse{8}{\input tufte }
  \chapter {Fourth Chapter} \dorecurse{10}{\input tufte }
  \stopbodymatter
  \startbackmatter
  \chapter {First Appendix} \dorecurse{10}{\input tufte }
  \chapter {Second Appendix} \dorecurse{10}{\input tufte }
  \stopbackmatter
  \stoptext

 You tried to enable doublesided documents with \setuplayout
 but the option location control the location of your document
 on the real paper, this option is usefull if you use different
 sizes your document and paper e.g. \setupapersize[A4][A3].

Thanks Wolfgang for your response.  I'm having a little trouble understanding 
your response, so let me tell you what I think you said.
\setuplayout should not be used to enable doublesided documents.  Because that 
option (\setuplayout[location=doublesided] is used to control the location of 
your document on real paper.  Is that correct?

If so, then I don't need to use the \setuplayout[location=doublesided] option 
for the example.  Correct?

 Doublesided documents are enable with
 \setuppagenumbering[alternative=doublesided], ConTeXt has also
 a special settings alternative={singlesided,doublesided},
 this this a normal single sided document with the same margins
 on every page but you can use the left and right keys for
 \page, \setuplayer etc.

So I did the following with the above code:
% \setuplayout[location=doublesided]
\setuppagenumbering[
location={footer,middle},
alternative=doublesided,
option=doublesided,
style=\em\tfx,
way=bytext,
]

What does the option=doublesided do?  Do I need it?  I'm not sure where I 
found that one.

I still have the same problem with the last chapter in a division, the headers 
and the footers print out.  I also tried with/without the 
option=doublesided.

Bart


___
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] definepagebreak: problem at the end of front, body backmatter

2008-12-03 Thread Wolfgang Schuster

Am 03.12.2008 um 19:43 schrieb Bart C. Wise:

  You tried to enable doublesided documents with \setuplayout
  but the option location control the location of your document
  on the real paper, this option is usefull if you use different
  sizes your document and paper e.g. \setupapersize[A4][A3].
 
 Thanks Wolfgang for your response. I'm having a little trouble  
 understanding your response, so let me tell you what I think you said.

 \setuplayout should not be used to enable doublesided documents.  
 Because that option (\setuplayout[location=doublesided] is used to  
 control the location of your document on real paper. Is that correct?

Yes.

 If so, then I don't need to use the  
 \setuplayout[location=doublesided] option for the example. Correct?

Yes.

  Doublesided documents are enable with
  \setuppagenumbering[alternative=doublesided], ConTeXt has also
  a special settings alternative={singlesided,doublesided},
  this this a normal single sided document with the same margins
  on every page but you can use the left and right keys for
  \page, \setuplayer etc.
 So I did the following with the above code:
 % \setuplayout[location=doublesided]
 \setuppagenumbering[
 location={footer,middle},
 alternative=doublesided,
 option=doublesided,
 style=\em\tfx,
 way=bytext,
 ]
 What does the option=doublesided do? Do I need it? I'm not sure  
 where I found that one.

\setuppagenumbering has no option parameter.

 I still have the same problem with the last chapter in a division,  
 the headers and the footers print out. I also tried with/without the  
 option=doublesided.

Add, ConTeXt goes by default to the next right page after
a sectionblock and insert the header and your pagebreak
for the first chapter can't work because you're past the
left page after the frontmatter you wanted to be empty.

\setupsectionblock[frontpart][page=yes]
\setupsectionblock[bodypart] [page=yes]
\setupsectionblock[backpart] [page=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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] definepagebreak: problem at the end of front, body backmatter

2008-12-03 Thread Bart C. Wise
On Wednesday 03 December 2008 12:09:53 pm Wolfgang Schuster wrote:
 Am 03.12.2008 um 19:43 schrieb Bart C. Wise:
   You tried to enable doublesided documents with \setuplayout
   but the option location control the location of your document
   on the real paper, this option is usefull if you use different
   sizes your document and paper e.g. \setupapersize[A4][A3].
 
  Thanks Wolfgang for your response. I'm having a little trouble
  understanding your response, so let me tell you what I think you said.
 
  \setuplayout should not be used to enable doublesided documents.
  Because that option (\setuplayout[location=doublesided] is used to
  control the location of your document on real paper. Is that correct?

 Yes.

  If so, then I don't need to use the
  \setuplayout[location=doublesided] option for the example. Correct?

 Yes.

   Doublesided documents are enable with
   \setuppagenumbering[alternative=doublesided], ConTeXt has also
   a special settings alternative={singlesided,doublesided},
   this this a normal single sided document with the same margins
   on every page but you can use the left and right keys for
   \page, \setuplayer etc.
 
  So I did the following with the above code:
  % \setuplayout[location=doublesided]
  \setuppagenumbering[
  location={footer,middle},
  alternative=doublesided,
  option=doublesided,
  style=\em\tfx,
  way=bytext,
  ]
  What does the option=doublesided do? Do I need it? I'm not sure
  where I found that one.

 \setuppagenumbering has no option parameter.

  I still have the same problem with the last chapter in a division,
  the headers and the footers print out. I also tried with/without the
  option=doublesided.

 Add, ConTeXt goes by default to the next right page after
 a sectionblock and insert the header and your pagebreak
 for the first chapter can't work because you're past the
 left page after the frontmatter you wanted to be empty.

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

 Wolfgang


Excellent!  Thanks again for your patience and wealth of knowledge!

Bart
___
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] definepagebreak: problem at the end of front, body backmatter

2008-12-02 Thread Bart C. Wise
In the sample code below, I defined the document to be doublesided and that 
chapters should open on the right.  If the chapter ends on an odd page, I want 
to leave the even page completely blank (no headers, footers, page numbers, 
etc.).  The code below works except for the last chapter in the frontmatter, 
bodymatter, and backmatter.  For the last chapter in those divisions, the page 
is not blank, but has the header  footers.  How do I get definepagebreak to 
work at the end of a division?

\setupheadertexts[][chapter][Deluxe Header][]

\definepagebreak
[ChapterPageBreak]
[yes,header,footer,right]% works! except for last page in a division

\setuphead[chapter][
header=empty,
footer=empty,
number=yes,
page=ChapterPageBreak,
]

\setuplayout[location=doublesided]
\setuppagenumbering[
location={footer,middle},
alternative=doublesided,
option=doublesided,
style=\em\tfx,
way=bytext,
]

\starttext
\startfrontmatter
\completecontent
\chapter {Introduction} \dorecurse{10}{\input tufte }
\chapter {Second Introduction} \dorecurse{10}{\input tufte }
\stopfrontmatter
\startbodymatter
\chapter {First Chapter} \dorecurse{10}{\input tufte }
\chapter {Second Chapter} \dorecurse{9}{\input tufte }
\chapter {Third Chapter} \dorecurse{8}{\input tufte }
\chapter {Fourth Chapter} \dorecurse{10}{\input tufte }
\stopbodymatter
\startbackmatter
\chapter {First Appendix} \dorecurse{10}{\input tufte }
\chapter {Second Appendix} \dorecurse{10}{\input tufte }
\stopbackmatter
\stoptext

Thanks,
Bart
___
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] startbodymatter question

2008-07-23 Thread Wolfgang Schuster
On Tue, Jul 22, 2008 at 7:55 PM, Alan Stone
[EMAIL PROTECTED] wrote:
 Hi,
 How do you get rid of the doublesided document's page number on the blank
 page
 inserted after the last chapter  ?

 Alan

 ConTeXt  ver: 2008.07.10 08:40 MKIV  fmt: 2008.7.10  int: english/english

 texmfstart texexec --lua test.tex

 --- start of code ---

 \setuppapersize [A4][A4]

 %\setuppagenumbering[alternative=singlesided]
 \setuppagenumbering[alternative=doublesided]

 \definepagebreak[myChapterPageBreak][yes,header,footer,right]
 \setuphead[chapter][page=myChapterPageBreak]

 \startsectionblockenvironment[frontpart]
 \setupheader[state=stop]
 \setupfooter[state=stop]
 \stopsectionblockenvironment

 \startsectionblockenvironment[bodypart]
 \setupheader[state=start]
 \setupfooter[state=start]
 \stopsectionblockenvironment
 \setupsectionblock[bodypart][page=no] % doesn't make a difference

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

or for the backpart

\setupsectionblock[backpart][page=yes,before={\page[left]}]

 \startsectionblockenvironment[backpart]
 \setupheader[state=stop]
 \setupfooter[state=stop]
 \stopsectionblockenvironment

 \starttext

 \startstandardmakeup
 Title
 \blank[3*big]
 Author
 \stopstandardmakeup

 \startfrontmatter
 Table of Contents
 \blank[3*big]
 \placecontent
 \stopfrontmatter

 \startbodymatter
 \chapter{Chapter 1}
 \section{Section 1.1}
 \input knuth
 \blank
 \input knuth
 \blank
 \input knuth
 \section{Section 1.2}
 \input tufte
 \blank
 \input tufte
 \blank
 \input tufte
 \section{Section 1.3}
 \input zapf
 \blank
 \input zapf
 \blank
 \input zapf
 \chapter{Chapter 2}
 \section{Section 2.1}
 \input knuth
 \blank
 \input knuth
 \blank
 \input knuth
 \section{Section 2.2}
 \input tufte
 \blank
 \input tufte
 \blank
 \input tufte
 \section{Section 2.3}
 \input zapf
 \blank
 \input zapf
 \blank
 \input zapf
 \stopbodymatter

 \startbackmatter
 back cover
 \stopbackmatter

 \stoptext

 --- end of code ---

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


Re: [NTG-context] startbodymatter question

2008-07-23 Thread Alan Stone

 But only in MkII, if you have a problem with this in MkIV make a example.


\setuppapersize [A4][A4]

%\setuppagenumbering[alternative=singlesided]
\setuppagenumbering[alternative=doublesided]

\definepagebreak[myChapterPageBreak][yes,header,footer,right]
\setuphead[chapter][page=myChapterPageBreak]

\startsectionblockenvironment[frontpart]
\setupheader[state=stop]
\setupfooter[state=stop]
\stopsectionblockenvironment

\startsectionblockenvironment[bodypart]
\setupheader[state=start]
\setupfooter[state=start]
\stopsectionblockenvironment

\startsectionblockenvironment[backpart]
\setupheader[state=stop]
\setupfooter[state=stop]
\stopsectionblockenvironment

\setupsectionblock[backpart][before={\page[left]}]

\starttext

\startstandardmakeup
Title
\blank[3*big]
Author
\stopstandardmakeup

\startfrontmatter
Table of Contents
\blank[3*big]
\placecontent
\stopfrontmatter

\startbodymatter
\chapter{Chapter 1}
\section{Section 1.1}
\input knuth
\blank
\input knuth
\blank
\input knuth

\section{Section 1.2}
\input tufte
\blank
\input tufte
\blank
\input tufte

\section{Section 1.3}
\input zapf
\blank
\input zapf
\blank
\input zapf

\chapter{Chapter 2}
\section{Section 2.1}
\input knuth
\blank
\input knuth
\blank
\input knuth

\section{Section 2.2}
\input tufte
\blank
\input tufte
\blank
\input tufte

\section{Section 2.3}
\input zapf
\blank
\input zapf
\blank
\input zapf

\starthiding
\chapter{Chapter 3}
\section{Section 3.1}
\input knuth
\blank
\input knuth
\blank
\input knuth

\section{Section 3.2}
\input tufte
\blank
\input tufte
\blank
\input tufte

\section{Section 3.3}
\input zapf
\blank
\input zapf
\blank
\input zapf
\stopbodymatter
\stophiding

\startbackmatter
back page
\stopbackmatter

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


Re: [NTG-context] startbodymatter question

2008-07-23 Thread Alan Stone
Correction ( disregard the previous example)...

\setuppapersize [A4][A4]

%\setuppagenumbering[alternative=singlesided]
\setuppagenumbering[alternative=doublesided]

\definepagebreak[myChapterPageBreak][yes,header,footer,right]
\setuphead[chapter][page=myChapterPageBreak]

\startsectionblockenvironment[frontpart]
\setupheader[state=stop]
\setupfooter[state=stop]
\stopsectionblockenvironment

\startsectionblockenvironment[bodypart]
\setupheader[state=start]
\setupfooter[state=start]
\stopsectionblockenvironment

\startsectionblockenvironment[backpart]
\setupheader[state=stop]
\setupfooter[state=stop]
\stopsectionblockenvironment

\setupsectionblock[backpart][before={\page[left]}]

\starttext

\startstandardmakeup
Title
\blank[3*big]
Author
\stopstandardmakeup

\startfrontmatter
Table of Contents
\blank[3*big]
\placecontent
\stopfrontmatter

\startbodymatter
\chapter{Chapter 1}
\section{Section 1.1}
\input knuth
\blank
\input knuth
\blank
\input knuth

\section{Section 1.2}
\input tufte
\blank
\input tufte
\blank
\input tufte

\section{Section 1.3}
\input zapf
\blank
\input zapf
\blank
\input zapf

\chapter{Chapter 2}
\section{Section 2.1}
\input knuth
\blank
\input knuth
\blank
\input knuth

\section{Section 2.2}
\input tufte
\blank
\input tufte
\blank
\input tufte

\section{Section 2.3}
\input zapf
\blank
\input zapf
\blank
\input zapf
\stopbodymatter

\startbackmatter
back page
\stopbackmatter

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


Re: [NTG-context] startbodymatter question

2008-07-23 Thread Wolfgang Schuster
On Wed, Jul 23, 2008 at 4:46 PM, Alan Stone
[EMAIL PROTECTED] wrote:
 Correction ( disregard the previous example)...

 \setuppapersize [A4][A4]

 %\setuppagenumbering[alternative=singlesided]
 \setuppagenumbering[alternative=doublesided]

 \definepagebreak[myChapterPageBreak][yes,header,footer,right]
 \setuphead[chapter][page=myChapterPageBreak]

 \startsectionblockenvironment[frontpart]
 \setupheader[state=stop]
 \setupfooter[state=stop]
 \stopsectionblockenvironment

 \startsectionblockenvironment[bodypart]
 \setupheader[state=start]
 \setupfooter[state=start]
 \stopsectionblockenvironment

 \startsectionblockenvironment[backpart]
 \setupheader[state=stop]
 \setupfooter[state=stop]
 \stopsectionblockenvironment

 \setupsectionblock[backpart][before={\page[left]}]

You need

\setupsectionblock[bodypart][page=yes]
\setupsectionblock[backpart][page=yes,before={\page[left]}]

The output from your settings is weird but correct because the last page
of the bodymatter is a right page and with the default value for page you're
going to the next right page, in your case page 11.

On page 11 starts now the backmatter with empty header and footer lines,
your setting for the backmatter inserts the \page[left] command and because
we're at the moment on a right page the current page is empty and the back
page is placed on page 12.

You see, nothing is wrong with ConTeXt, only the settings for the sectionblocks
are a bit confusing and you have to take care of this.

 \starttext

 \startstandardmakeup
 Title
 \blank[3*big]
 Author
 \stopstandardmakeup

 \startfrontmatter
 Table of Contents
 \blank[3*big]
 \placecontent
 \stopfrontmatter

 \startbodymatter
 \chapter{Chapter 1}
 \section{Section 1.1}
 \input knuth
 \blank
 \input knuth
 \blank
 \input knuth

 \section{Section 1.2}
 \input tufte
 \blank
 \input tufte
 \blank
 \input tufte

 \section{Section 1.3}
 \input zapf
 \blank
 \input zapf
 \blank
 \input zapf

 \chapter{Chapter 2}
 \section{Section 2.1}
 \input knuth
 \blank
 \input knuth
 \blank
 \input knuth

 \section{Section 2.2}
 \input tufte
 \blank
 \input tufte
 \blank
 \input tufte

 \section{Section 2.3}
 \input zapf
 \blank
 \input zapf
 \blank
 \input zapf
 \stopbodymatter

 \startbackmatter
 back page
 \stopbackmatter

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


[NTG-context] startbodymatter question

2008-07-22 Thread Alan Stone
Hi,
How do you get rid of the doublesided document's page number on the blank
page
inserted after the last chapter  ?

Alan

 ConTeXt  ver: 2008.07.10 08:40 MKIV  fmt: 2008.7.10  int: english/english

texmfstart texexec --lua test.tex

--- start of code ---

\setuppapersize [A4][A4]

%\setuppagenumbering[alternative=singlesided]
\setuppagenumbering[alternative=doublesided]

\definepagebreak[myChapterPageBreak][yes,header,footer,right]
\setuphead[chapter][page=myChapterPageBreak]

\startsectionblockenvironment[frontpart]
\setupheader[state=stop]
\setupfooter[state=stop]
\stopsectionblockenvironment

\startsectionblockenvironment[bodypart]
\setupheader[state=start]
\setupfooter[state=start]
\stopsectionblockenvironment
\setupsectionblock[bodypart][page=no] % doesn't make a difference

\startsectionblockenvironment[backpart]
\setupheader[state=stop]
\setupfooter[state=stop]
\stopsectionblockenvironment

\starttext

\startstandardmakeup
Title
\blank[3*big]
Author
\stopstandardmakeup

\startfrontmatter
Table of Contents
\blank[3*big]
\placecontent
\stopfrontmatter

\startbodymatter
\chapter{Chapter 1}
\section{Section 1.1}
\input knuth
\blank
\input knuth
\blank
\input knuth
\section{Section 1.2}
\input tufte
\blank
\input tufte
\blank
\input tufte
\section{Section 1.3}
\input zapf
\blank
\input zapf
\blank
\input zapf
\chapter{Chapter 2}
\section{Section 2.1}
\input knuth
\blank
\input knuth
\blank
\input knuth
\section{Section 2.2}
\input tufte
\blank
\input tufte
\blank
\input tufte
\section{Section 2.3}
\input zapf
\blank
\input zapf
\blank
\input zapf
\stopbodymatter

\startbackmatter
back cover
\stopbackmatter

\stoptext

--- end of code ---
___
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] chapter page on right.

2008-07-09 Thread Wolfgang Schuster
On Wed, Jul 9, 2008 at 3:13 PM, John Culleton [EMAIL PROTECTED] wrote:
 On Tuesday 08 July 2008 06:58:32 pm Aditya Mahajan wrote:
 On Tue, 8 Jul 2008, John Culleton wrote:
  I have set up the \chapter command thus;
  \setuphead[chapter][page=right,style={\nimbua},header=high]
  where nimbua is a font.
 
  The chapter head appears on a recto (odd numbered) page as
  expected but the verso blank page inserted where necessary before
  the chapter head has a running header. It should be blank. I can
  kludge this up with a wrapper macro   containing  \ifodd\pageno
  etc. but it seems there should be a more Contextish way to handle
  it.

 See
 http://wiki.contextgarden.net/Titles#Truly_empty_pagebreak_before_c
hapters

 Aditya

 That does it. Thanks very much.  I will only suggest that since a
 blank page needs neither header nor footer that this fix be included
 some way in Context itself, so that every time a blank page is
 generated automatically it is shorn of these items. That is the usual
 practice in book layout according to my references.

\definepagebreak is a normal ConTeXt and not a fix, you could also
use the values in \setuphead without the intermediate way.

\setuphead[chapter][page={yes,header,footer,right}]

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


Re: [NTG-context] page numbering question

2008-04-09 Thread Jörg Hagmann
\definepagebreak[chapter][yes,footer,right]

(or:  \definepagebreak[chapter][yes,header,right])

Jörg

David C. Walden wrote:
 Hi,

 I have been searching contextgarden.net and the
 manuals at the Pragma website for more than an hour
 now, and I have yet to find a way to have ConTeXt
 decide in two-sided mode that the last page
 of a book chapter is a even numbered page without
 anything on it and therefore will also not have
 a page number.  I probably can manually effect
 this by carefully inserting \setuppagenumber
 commands which start and stop the state, but
 that's not a very general solution.  Will
 someone please point me to appropriate documentation
 or an example.

 Thanks, Dave


 --
 home address: 12 Linden Rd., E. Sandwich, MA 02537; ph/fax=508-888-7655/4168
 email address:  [EMAIL PROTECTED]; 
 website(s):  http://www.walden-family.com/


 ___
 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] page numbering question

2008-04-09 Thread David C. Walden

I am not sure what you want. Do you want the last page of chapters to be
numbered or do you want them to be completely empty?

I want even numbered last pages of chapters which have no text
or images on them to be completely empty.

I tried various versions of the code for Truly empty page
breaks at http://wiki.contextgarden.net/Titles that
Jörg's message about \definepagebreak led me to, and I
tried various versions of the additional discussion
about Again: How to make empty pages by default empty?
from November 2003 in the NTG-context archives.  I couldn't
make any of that work within the last half hour or so.
Thus, I have now changed my macro which begins chapters
so it turns off page numbering before the \chapter call
and turns page numbering back on after some text has
been place on the first page of the chapter and that
now does what I want.  So, that's kind of a brute
force approach to getting these completely blank
pages automatically.  Thanks everyone for your
suggestions.   -Dave


___
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] page numbering question

2008-04-09 Thread Aditya Mahajan

On Wed, 9 Apr 2008, David C. Walden wrote:




I am not sure what you want. Do you want the last page of chapters to be
numbered or do you want them to be completely empty?


I want even numbered last pages of chapters which have no text
or images on them to be completely empty.

I tried various versions of the code for Truly empty page
breaks at http://wiki.contextgarden.net/Titles that
Jörg's message about \definepagebreak led me to, and I
tried various versions of the additional discussion


Does this do what you want (at least in this test case)

 \definepagebreak
[mychapterpagebreak]
 [yes,header,footer,right]

 \setuphead
   [chapter]
   [page=mychapterpagebreak]


 \setuppagenumbering[alternative=doublesided,location={header,margin}]
 \setupheadertexts[{My special headertext}]
 \setupfootertexts[This is a text in the footer]

 \starttext
 \chapter {testA} \dorecurse{10}{\input tufte }
 \chapter {testB} \dorecurse{10}{\input tufte }
 \chapter {testC} \dorecurse{10}{\input tufte }
 \stoptext

Notice that the pages at the end of the chapters are empty.



about Again: How to make empty pages by default empty?
from November 2003 in the NTG-context archives.  I couldn't
make any of that work within the last half hour or so.
Thus, I have now changed my macro which begins chapters
so it turns off page numbering before the \chapter call
and turns page numbering back on after some text has
been place on the first page of the chapter and that
now does what I want.  So, that's kind of a brute
force approach to getting these completely blank
pages automatically.  Thanks everyone for your
suggestions.   -Dave
___
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] page numbering question

2008-04-09 Thread David C. Walden

Does this do what you want (at least in this test case)

  \definepagebreak
 [mychapterpagebreak]
  [yes,header,footer,right]

  \setuphead
[chapter]
[page=mychapterpagebreak]


  \setuppagenumbering[alternative=doublesided,location={header,margin}]
  \setupheadertexts[{My special headertext}]
  \setupfootertexts[This is a text in the footer]

  \starttext
  \chapter {testA} \dorecurse{10}{\input tufte }
  \chapter {testB} \dorecurse{10}{\input tufte }
  \chapter {testC} \dorecurse{10}{\input tufte }
  \stoptext


I thought I tried that on my book and it didn't work.
My actual situation is more complicated with declarations
of front matter, depositing of \completecontent, etc.
However, I have now done it with the test case expanded
to mimic my real situation and it does seem to work.
I'll try it in my real file (again?). 


___
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] suppressing page number on an empty page

2008-01-30 Thread Wolfgang Schuster
On Jan 30, 2008 3:39 PM, Jörg Hagmann [EMAIL PROTECTED] wrote:
 Dear list members,

 I want to suppress page numbers on empty left pages before a new
 chapter. I tried:

 \setuphead[chapter][page=yes,before={\ifodd\realpageno\else\page[empty]\fi}]

 This works, but messes up the layout.

 I then tried to do it manually:

 \page[empty]
 or
 \page\noheaderandfooterlines

 at the appropriate places, but this also completely changes page
 breaking in the following chapters (e.g. text running down over and
 beyond the pagenumber at the bottom with \page[empty], or just breaking
 a page at a different position, which would force me to reposition all
 the margin figures etc..

 Is there a trick to avoid this behaviour? Thanks for your help,

\definepagebreak[chapter][yes,header,right]
\setuphead[chapter][page=chapter]

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


Re: [NTG-context] suppressing page number on an empty page

2008-01-30 Thread Jörg Hagmann
Thank you Wolfgang! It works (of course).
The book will be published in March (by Orell Füssli and UTB) and will 
make use of several solutions I owe to you.

Cheers, Jörg

Wolfgang Schuster wrote:
 On Jan 30, 2008 3:39 PM, Jörg Hagmann [EMAIL PROTECTED] wrote:
   
 Dear list members,

 I want to suppress page numbers on empty left pages before a new
 chapter. I tried:

 \setuphead[chapter][page=yes,before={\ifodd\realpageno\else\page[empty]\fi}]

 This works, but messes up the layout.

 I then tried to do it manually:

 \page[empty]
 or
 \page\noheaderandfooterlines

 at the appropriate places, but this also completely changes page
 breaking in the following chapters (e.g. text running down over and
 beyond the pagenumber at the bottom with \page[empty], or just breaking
 a page at a different position, which would force me to reposition all
 the margin figures etc..

 Is there a trick to avoid this behaviour? Thanks for your help,
 

 \definepagebreak[chapter][yes,header,right]
 \setuphead[chapter][page=chapter]

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

   

-- 
Prof.Dr.med. Jörg Hagmann-Zanolari
Institute of Biochemistry and Genetics
Centre of Biomedicine, University of Basel
Mattenstrasse 28
CH-4058 Basel
Switzerland
Phone +41 (0)61 267 3565

___
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] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
OK, it's been a fun day's work, but here's the current working version of 
the context.cwl file.

What it does include:
* all the commands with all the fields mentioned on texshow.contextgarden.net
* the rest of the commands that I used from the list Idris sent me are 
currently commented out, until I find out they're valid (although not on 
texshow)
* all the fields have short descriptions
* all the \start* commands end with appropriate \stop* commands
* some of the fields (where it was simple to do it) use a '|' character as a 
separator inside fields

What it does not include:
* a syntax completely as Kile's README.cwl would want to have (especially 
because of my misuse of \start* \stop* in the same command and Mojca's 
separator suggestion)
* a completely coherent and Kile-valid syntax is still missing, although as 
it is, the file is usable
* some commands are commented out, as mentioned above

Installation:
copy or link the file to /usr/share/apps/kile/complete/tex/ (or the 
appropriate kile/complete/tex/ directory) and add context.cwl in Kile's 
settings under Kile-Complete-TeX/LaTeX

I hope anyone finds it useful and that I manage to get it working 
perfectly/validly soon.


Cheers,
Matija

-- 
gsm: +386 41 849 552
e-mail: [EMAIL PROTECTED]
www: http://matija.suklje.name

aim: hookofsilver
icq: 110183360
jabber/g-talk: [EMAIL PROTECTED]
msn: [EMAIL PROTECTED]
yahoo: matija_suklje
# ConTeXt commands
# Matija silverhook Šuklje, 02. Jan. 2008 — [EMAIL PROTECTED]
# URL: todo

\about{text}[reference]
\adaptlayout[number][dimensions]
\adding[size]
# \aftersplitstring
# \and
\appendix[references]{text}
# \appendtoks
# \AR
\arg{text}
\at{text}{text}[reference]
\atpage[reference]
\background
# \bbox
# \beforesplitstring
# \begstrut
\blackrule[settings]
\blackrules[settings]
\blank[size]
# \blockquote
\bookmark[name]{text}
# \bTABLE
# \bTABLEbody
# \bTABLEfoot
# \bTABLEhead
# \bTABLEnext
# \bTD
# \bTH
# \bTR
\but[reference]
\button[settings]{text}[references]
\bypassblocks[names][names]
\CAP{text}
\Cap{text}
\cap{text}
\Caps{text}
\chapter[references]{text}
\Character{text}
\character{text}
\Characters{text}
\characters{text}
\chem{text}{text}{text}
\clip[settings]{text}
\clonefield[name][names][name][names]
\color[text{text}
\column
# \commalistelement
\comment[name][settings]{text}
\comparecolorgroup[name]
\comparepalet[name]
\completecombinedlist[name][settings]
\completelistoffloats
\completelistofsorts
\completelistofsynonyms
\completeregister[settings]
# \component
# \ConTeXt
# \Context
# \convertargument
# \convertcommand
\convertnumber{text}{text}
\copyfield[name][names]
\correctwhitespace{text}
# \countXMLchildren
\coupledocument[name][file][name]
\coupledregister[text]{text}
\couplemarking[name][name]
\couplepage[names][options]
\couplepaper[name]
\coupleregister[name]
\crlf
\currentdate[syntax]
\currentheadnumber
\date[date][syntax]
\decouplemarking[name]
# \decrement
\define[number]\command{text}
\defineblank[name][settings]
\defineblock[name]
\definebodyfont[font size][type][files]
\definebodyfontenvironment[font size][dimensions]
\definebuffer[name]
# \definecollector
\definecolor[name]{colour values}
\definecolorgroup[name][colour model][colour values]
\definecombinedlist[name][list][settings]
\defineconversion[name][command]
\definedescription[name][settings]
# \definedfont
\defineenumeration[names][name][settings]
# \defineexternalfigure
\definefield[reference][widget type][setup name][names][initial content]
\definefieldstack[name][names][settings]
\definefiguresymbol[name][text][settings]
\definefloat[singular][plural]
\definefont[name][file]
# \definefontsynonym
\defineframed[name][settings]
# \defineframedcontent
\defineframedtext[name][settings]
\definehead[name][section]
# \definehspace
\defineindenting[name][settings]
\defineinteractionmenu[position|names][options and settings]
\defineinteractionmenu[position|name][position|name][settings]
\definelabel[name][text and options]
# \definelayer
# \definelayerpreset
# \definelayout
\definelist[name][name][settings]
\definelogo[name][position][position][command][state]
# \definemainfield
\definemakeup[name][settings]
\definemarking[name][name]
# \definemeasure
# \defineoutput[name][specials]
\defineoverlay[names][command]
# \definepagebreak
\definepalet[name][name]
\definepapersize[name][dimenstions]
\defineparagraphs[name][options and settings]
\defineprofile[names][names]
\defineprogram[name][text][text]
# \definepushbutton
# \definepushsymbol
\definerawfont[name][file][settings]
\definereference[name][references]
\definereferenceformat[name][options]
\definereferencelist[name][settings]
\defineregister[singular][plural]
\definerule[name][settings]
\definesection[name]
\definesectionblock[name][settings]
\definesorting[singular][plural][command]
\definestartstop[name][commands]
\definesubfield[name][name][names]
\definesymbol[name][text]
\definesynonyms[singular][plural][command][command]
\definetabletemplate[name][text][text][text

Re: [NTG-context] Page numbers at empty pages

2007-09-10 Thread Steffen Wolfrum

Am 07.09.2007 um 10:57 schrieb Gerhard Kugler:

 On Thu, Sep 06, 2007 at 08:05:12PM +0200, Steffen Wolfrum wrote:

 % zusätzlich innerhalb des bodymatter leere linke Seiten mit \page
 [yes,empty] manuell setzen

 Thank you Steffen,

 your lines help. Only inserting \page[yes,empty] is a dirty
 solution because I must omit it if there is no empty (left) page.

Yes, it is dirty as it is only needed for emergency cases.


But apart from Wolfgang's very elegant solution you can do it also a  
more ConTeXt-like way:

As you may have seen I use ConTeXt's project-structure ...

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

... and the lowest part of this structure is the component – which in  
my case is the chapter.

See for example:


\startproduct KP_ED1
%
\project KP_book
\useexternalfigure[AbbildungsTeil][Abbildungen.pdf]
\useexternalfigure[WerksTeil][Werkverzeichnisteil.pdf]
%
\startfrontmatter
\component Kapitel/Titelei
\setuppagenumber[number=5]
\completecontent
\component Kapitel/Vorwort
\component Kapitel/Einleitung
\stopfrontmatter
%
\startbodymatter
\component Kapitel/Kap_1
\component Kapitel/Kap_2
\component Kapitel/Kap_3
\component Kapitel/Kap_4
\component Kapitel/Kap_5
\component Kapitel/Kap_6
\component Kapitel/Kap_7
\stopbodymatter
%
\startbackmatter
%\component Kapitel/Zusammenfassung
%\component Kapitel/Werkverzeichnis
%\component Kapitel/Werkverzeichnisteil
%\component Kapitel/Abbverz
%\component Kapitel/Abbildungsteil
%\component Kapitel/Literatur
%\component Kapitel/Literaturabk
%\component Kapitel/Anhang
\stopbackmatter
%
\stopproduct


This gives flexibility for larger projects as you can comment/ 
uncomment certain chapters
(and thus you can save a lot of time when manually fine-tuning your  
book!)


And using
\definepagebreak[chapter][yes,header,right]
with this projects-stucture always gives you a chapter starting on a  
right page
*and* guarantees the respective empty left page to be completely empty.


Steffen







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

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


Re: [NTG-context] Page numbers at empty pages

2007-09-06 Thread Steffen Wolfrum
Hi Gerhard,


Am 06.09.2007 um 16:01 schrieb Gerhard Kugler:

 On Thu, Sep 06, 2007 at 09:51:30AM +0200, Steffen Wolfrum wrote:

 Am 06.09.2007 um 09:35 schrieb Gerhard Kugler:

 Hi,

 in case of double-sided pagination there are empty pages.

 Where do they come from (how are they generated?)


 My publisher
 does'nt want numbers at that pages. How can I set this?

 Maybe you just set manually an empty page: \page[yes,empty]


 Hi Steffen,

 that seems to me a misunderstanding. Empty pages are created
 automatically because first pages of chapters begin at a right side.
 That's ok. But if the last page before a chapter is empty, it should
 not contain a header with the page number.


I use the following setup (apologies for not translating the german  
comments):

% Leere Linke Seiten sind leer:
%\definepagebreak[chapter][yes,header,right]% klappt gut! NICHT:  
[empty,header,right
\definepagebreak[chapter][yes,header]% klappt gut! NICHT:  
[empty,header,right]
%\definepagebreak[section][yes,header]
% zusätzlich innerhalb des bodymatter leere linke Seiten mit \page 
[yes,empty] manuell setzen
\setupsectionblock[frontpart][page=no]
\setupsectionblock[bodypart][page=no]
\setupsectionblock[backpart][page=no]


 An addition: The publisher wants that the header of pages contains at
 the left the title of the chapter and at the right the title of the
 subchapter. How to realize it? And here also: Empty pages should not
 contain such a header.

% SeitenZahl
\definefont [SZfont][Serif at 9pt] \def\SZstyle{\SZfont 
\setupinterlinespace[line=11pt]}
% Kopfzeile und Lebende Titel:
\definefont [KopfzeileFont][Serif at 9pt] \def\KopfzeileStyle 
{\KopfzeileFont\setupinterlinespace[line=11pt]}

% Layout + Position der Seitenzahl:
\setuppagenumbering [command=\SZstyle,alternative=doublesided,location=]

\setupheader[align=middle,style=\KopfzeileStyle]
% Lebende Titel MITTIG:
\setupheadertexts[\setups{text a}] [pagenumber] [pagenumber] [\setups 
{text b}]
\startsetups[text a]
\vtop{%
   \startalignment[center]
   \getmarking[chapter]
   \stopalignment
}
\stopsetups
\startsetups[text b]
\vtop{%
   \startalignment[center]
   \getmarking[section]
   \stopalignment
}
\stopsetups


Steffen


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

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


Re: [NTG-context] Using doublesided and even blank page shows header

2006-06-04 Thread Willi Egger
Hi  Jeff,

On 17/09/2003 Patrick Gundlach provided the following solution on this list:

\definepagebreak
   [Mychapterpagebreak]
   [yes,header,right]
%[yes,header,left]
%[yes,header,footer,right]

\setuphead
  [chapter]
  [page=mychapterpagebreak]
%   [page=Mychapterpagebreak,header=empty,footer=empty]

\setuppagenumbering[alternative=doublesided,location={header,margin}]
\setupheadertexts[{My special headertext}]
\setupfootertexts[This is a text in the footer]
% \setupbackgrounds[header][text][bottomframe=on]

\starttext
\chapter {testA} \dorecurse{10}{\input tufte }
\chapter {testB} \dorecurse{10}{\input tufte }
\chapter {testC} \dorecurse{10}{\input tufte }
\stoptext

Humble a hopefully correct explanation is:
1. You define a new pagebreak rule. It has the name 
Mychapterpagebreak. The options set read as: pagebreak=yes, 
placeheader, use a right page.
2. You set options for the header of type chapter and use for the option 
page the before defined new pagebreak..

You might want to experiment with the commented lines ans see what happens.

Kind regards

Willi

[EMAIL PROTECTED] wrote:
 I have the following in my environment setup:

 \setuppagenumbering[alternative=doublesided,location=]

 I am properly getting the doublesided page setup. Also, chapters begin only 
 on odd pages, which is exactly what I want.

 However, when a chapter ends on an odd page, the next (even) page that I 
 would like to be completely blank instead contains both the header and 
 footer. I found one other thread in this forum that told how to make this 
 extra even page totally blank. However, I am not an advanced ConTeXt user 
 yet, and I did not understand how to implement the solution. Is there a 
 simple explanation of how to eliminate the header and footer on this even 
 page?

 Jeff Dodson


 _
 Call Anyone, Anytime, Anywhere in the World - FREE!
 Free Internet calling from NetZero Voice
 Visit http://www.netzerovoice.com today!


 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
   
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] blank page in doublesided mode

2004-02-19 Thread Hans Hagen
At 15:35 18/02/2004, you wrote:
Hans—

Many thanks. That does the trick very nicely.

Is there a manual or the like that I have missed which documents this 
command, \installpagebreakhandler, and others such as \useURL and 
\setupinteraction? (I am interested in the latter, because inserting a 
blue, underlined URL for email in my output has curiously enough turned by 
footnote numbers blue.)
no, these commands are not in a manual, but one can find them in the source 
code; the \install.. ones are real low level; the 
\definepagebreak[whatever][yes] one is public.

Hans  

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] blank page in doublesided mode

2004-02-19 Thread Henning Hraban Ramm

Is there a manual or the like that I have missed which documents this 
command, \installpagebreakhandler, and others such as \useURL and 
\setupinteraction? (I am interested in the latter, because inserting 
a blue, underlined URL for email in my output has curiously enough 
turned by footnote numbers blue.)
no, these commands are not in a manual, but one can find them in the 
source code; the \install.. ones are real low level; the 
\definepagebreak[whatever][yes] one is public.
Regarding the rest (some hints to play with):

\useURL [context]   [http://www.pragma-ade.com]
\goto{Pragma ADE}[URL(context)]
\setupinteraction
  [state=start,
   color=black,
   style={\tf\underbars}]
\setupunderbar[alternative=c, rulecolor=blue] % underdots

Footnote numbers are interaction links, too. I don't know how to handle 
them different.
But you can switch off footnote interaction somehow AFAIK.

Grüßlis vom Hraban!
--
http://www.fiee.net/texnique/
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Problems with pagenumbering using frontpart/bodyart/...

2004-01-08 Thread Holger Schöner
Hi,

I think that I either found a bug, or am using some commands in an invalid 
way. What do you think about the following code:

\setuplayout[location=duplex]
\setuppagenumbering[alternative=doublesided]
\setuppagenumbering[way=bytext,partnumber=no]
\startsectionblockenvironment[frontpart]
  \setuppagenumbering[conversion=romannumerals,left={--~},right={~--}]
\stopsectionblockenvironment
\startsectionblockenvironment[bodypart]
%  \setuppagenumber[number=1]   % *1
  \setuppagenumber[number=0]% *2
\stopsectionblockenvironment
\setupsectionblock[frontpart][page=no]  % *2
\setupsectionblock[bodypart][page=no]   % *2
\setupsectionblock[appendixpart][page=no]   % *2
\setuphead[part][placehead=yes,alternative=middle,number=no,ownnumber=no,resetnumber=no]
\definepagebreak
  [chapter]
  [yes,header,footer,right]
\setuphead
  [part,chapter,title]
  [page=chapter]

\starttext
\startfrontmatter

\title{abstract}
\completecontent
\page[yes,header,footer,left]   % *2

\stopfrontmatter
\startbodymatter

\chapter{Introduction}
\chapter{Algorithms}
\chapter{Discussion}

\stopbodymatter
\startappendices

\chapter{Appendices}

\stopappendices
\stoptext

I want to exclude only unmarked lines and those have a *1 in their
comment, but not the lines marked with *2 at the end. Unfortunately then
the empty page between the contents and the chapter introduction is not (as
intended)  completely emtpy, but has a page number: -iv-. To avoid this I
am using (following a tip posted here some months ago, I think) the lines

  \setupsectionblock[frontpart][page=no]
  \setupsectionblock[bodypart][page=no]
  \setupsectionblock[appendixpart][page=no]

Unfortunately, now (and this, I think, is the bug) the last chapter or title
before the end of the frontmatter (in this case the table of contents) does
no longer receive roman page numbers, but already the normal ones (and page
numbering also starts at this chapter, not with the Introduction). To
compensate for this I am currently using a workaround (all the lines marked
with *2 instead the one marked with *1), basically avoiding the
described effect by forcing a page break (found using trial and error such
that it works regardless of the length of the table of contents). Can I 
somehow get rid of these workarounds, without the otherwise empty pages 
being numbered?

Unfortunately, pages 6, 8, 9 still are numbered, although otherwise empty 
(and the last two are unnecessary anyway), but I guess the problem is the 
same as for the pages between frontmatter and bodypart. (Probably fiddling 
with the backmatter and using some forced page breaks could solve those as 
well.)

I am using:
ConTeXt  ver: 2003.10.5  fmt: 2003.10.19  int: english  mes: english

-- 
Holger F. Schoener  TU Berlin; Dept. IV: EE and Computer Science
[EMAIL PROTECTED]   http://www.cs.tu-berlin.de/~hfsch/
Rooms FR2525Tel: +49-30-314-73115, Fax: -73121
Office FR 2-1   Franklinstr. 28/29, D-10587 Berlin, Germany
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Again: How to make empty pages by default empty?

2003-09-30 Thread Steffen Wolfrum
Patrick Gundlach [EMAIL PROTECTED] wrote:

 Steffen Wolfrum [EMAIL PROTECTED] writes:
 
 
  This \setupsectionblock[...part][page=no] is a good idea, 
  but the pagebreak definition was wrong. See this:
 
  \definepagebreak
  [chapter]
  [yes,header,right]
 
 
 I can't see any difference here.



I also can't see the difference between

\definepagebreak[chapter][empty,header,right]

and

\definepagebreak[chapter][yes,header,right]

But the first one gives three additional pages where just one is needed,
and the control over the empty page's header (empty or not) gets lost.

The [yes,header,right] solution gives just the page that is needed (for the next 
chapter to start on a right page) and this page is empty, finally.

Steffen
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Again: How to make empty pages by default empty?

2003-09-29 Thread Patrick Gundlach
Steffen Wolfrum [EMAIL PROTECTED] writes:


 This \setupsectionblock[...part][page=no] is a good idea, 
 but the pagebreak definition was wrong. See this:

 \definepagebreak
 [chapter]
 [yes,header,right]


I can't see any difference here.

 Now it's fine. 
good to know.

Patrick
-- 
You are your own rainbow!
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: Again: How to make empty pages by default empty?

2003-09-23 Thread Willi Egger

- Original Message - 
From: Steffen Wolfrum [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 22, 2003 10:43 PM
Subject: [NTG-context] Re: Again: How to make empty pages by default empty?


 The following message was sent by Willi Egger [EMAIL PROTECTED] on
 Mon, 22 Sep 2003 20:16:01 +0200.

 gt; Hi Steffen,
 
   From: Steffen Wolfrum [EMAIL PROTECTED]
   Subject: [NTG-context] Again: How to make empty pages by default empty?
 
 
   So I don't have to post so many (unanswered) questions any
more...

  Posting ConTeXt questions is fun, so don't stop doing this.


  Patrick
   
   
   
Alright! So maybe I am also allowed to send again
one of my favorite problems from last week?
   
Still unanswered. Still unsolved. Very interesting!
   
To whom it may concern - don't hesitate to post an answer...
   
Thank you all,
Steffen
   
   
   
Hans Hagen [EMAIL PROTECTED] wrote:
   
  At 10:05 19/09/2003 +0200, you wrote:
  Hi Steffen,



\definepagebreak
[chapter]
[yes,header,right]

  \definepagebreak
 [chapter]
 [empty,header,right]
   
   
Sorry, but that doesn't work.
   
When changed the minimal example to...
   
\definepagebreak
[chapter]
[empty,header,right]
   
\setuphead
[chapter]
[page=chapter,]
   
\setuppagenumbering[alternative=doublesided]
   
\starttext
\startfrontmatter
\completecontent
\stopfrontmatter
\startbodymatter
\chapter {test} \dorecurse{10}{\input tufte }
\chapter {test} \dorecurse{10}{\input tufte }
\chapter {test} \dorecurse{10}{\input tufte }
\stopbodymatter
   
\stoptext
   
   
... we have page numbers on (empty) page number 4, 18 and 19!
   
Plus there are two strange empty empty pages before the TOC?!
 
   If you want to get a doublesided tzpeset document you should add also
   \setuplayout[location=doublesided].
 
   I am not shure, whether the following is correct!
 
   Empty pages at the beginning:
 
   You start the frontmatters with the \completecontent. - I could imagine
   that
   this is a consequence of the fact that the TOC starts always on a
righthand
   page. - Thus at the  moment of \startbodymatter tex is already on the
first
   page. But after identifying the \completecontents command will create
two
   page breaks in order to be able to typeset the TOC on a righthand page.
 
   Pagenumbers on empty pages before starting a new chapter
 
   Chapters begin on a right hand page. If the lefthand page is empty,
there
   is
   correctly still the pagenumber. I do not know whether it is possible to
   check whether the page before a new chapter is completely empty.



 Hi Willi, I hope that it can't be to difficult:

 Cause the page before a new chapter is actually completely empty JUST
 BECAUSE it is generated by (Con)TeX(t) - for chapters should begin on
 a right page.

 So I only ask for empty pages (without pagenumbers) that are
 generated by (Con)TeX(t).

 That's not possible in ConTeXt?

 Steffen

Try the following:

\definepagebreak
[chapter]
[yes,header,right] % yes instead of emtpy taken from the sources
page-ini.tex line 1611
\setuphead
[chapter]
[page=chapter]

\setuppagenumbering[alternative={doublesided,marginedge}]
\setuplayout[location=doublesided]

This worsk for me, if no \startfrontmatter and \startbodymatter and and the
\stop... equivalents are used.
If I use the \startfrontmatter cum suis then there is a numbered page after
the TOC and the last page if even and empty is also numbered. Inside the
\startbodymatter \stopbodymatter the emptypages at new chapters are empty
pages with an empty header, thus no pagenumber.

Instead o placeing \completecontents you might want to use \placecontent
which prevents the empty pages discussed before.

Willi

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Again: How to make empty pages by default empty?

2003-09-22 Thread Steffen Wolfrum
  So I don't have to post so many (unanswered) questions any more...

 Posting ConTeXt questions is fun, so don't stop doing this.

 Patrick


Alright! So maybe I am also allowed to send again
one of my favorite problems from last week?
Still unanswered. Still unsolved. Very interesting!

To whom it may concern - don't hesitate to post an answer...

Thank you all,
Steffen


Hans Hagen [EMAIL PROTECTED] wrote:

 At 10:05 19/09/2003 +0200, you wrote:
 Hi Steffen,


   \definepagebreak
   [chapter]
   [yes,header,right]
 \definepagebreak
[chapter]
[empty,header,right]


Sorry, but that doesn't work.

When changed the minimal example to...

\definepagebreak
   [chapter]
   [empty,header,right]
\setuphead
   [chapter]
   [page=chapter,]
\setuppagenumbering[alternative=doublesided]

\starttext
\startfrontmatter
   \completecontent
\stopfrontmatter
\startbodymatter
\chapter {test} \dorecurse{10}{\input tufte }
\chapter {test} \dorecurse{10}{\input tufte }
\chapter {test} \dorecurse{10}{\input tufte }
\stopbodymatter
\stoptext

... we have page numbers on (empty) page number 4, 18 and 19!

Plus there are two strange empty empty pages before the TOC?!

Steffen
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Again: How to make empty pages by default empty?

2003-09-22 Thread Willi Egger
Hi Steffen,

From: Steffen Wolfrum [EMAIL PROTECTED]
Subject: [NTG-context] Again: How to make empty pages by default empty?


So I don't have to post so many (unanswered) questions any more...
 
   Posting ConTeXt questions is fun, so don't stop doing this.
 
 
   Patrick



 Alright! So maybe I am also allowed to send again
 one of my favorite problems from last week?

 Still unanswered. Still unsolved. Very interesting!

 To whom it may concern - don't hesitate to post an answer...

 Thank you all,
 Steffen



 Hans Hagen [EMAIL PROTECTED] wrote:

   At 10:05 19/09/2003 +0200, you wrote:
   Hi Steffen,
 
 
 
 \definepagebreak
 [chapter]
 [yes,header,right]
 
   \definepagebreak
  [chapter]
  [empty,header,right]


 Sorry, but that doesn't work.

 When changed the minimal example to...

 \definepagebreak
 [chapter]
 [empty,header,right]

 \setuphead
 [chapter]
 [page=chapter,]

 \setuppagenumbering[alternative=doublesided]

 \starttext
 \startfrontmatter
 \completecontent
 \stopfrontmatter
 \startbodymatter
 \chapter {test} \dorecurse{10}{\input tufte }
 \chapter {test} \dorecurse{10}{\input tufte }
 \chapter {test} \dorecurse{10}{\input tufte }
 \stopbodymatter

 \stoptext


 ... we have page numbers on (empty) page number 4, 18 and 19!

 Plus there are two strange empty empty pages before the TOC?!

If you want to get a doublesided tzpeset document you should add also
\setuplayout[location=doublesided].

I am not shure, whether the following is correct!

Empty pages at the beginning:

You start the frontmatters with the \completecontent. - I could imagine that
this is a consequence of the fact that the TOC starts always on a righthand
page. - Thus at the  moment of \startbodymatter tex is already on the first
page. But after identifying the \completecontents command will create two
page breaks in order to be able to typeset the TOC on a righthand page.

Pagenumbers on empty pages before starting a new chapter

Chapters begin on a right hand page. If the lefthand page is empty, there is
correctly still the pagenumber. I do not know whether it is possible to
check whether the page before a new chapter is completely empty. What one
should fetch is this information just before shipping this page.

What you can do is to use the \setuphead command. Either use page=no then
the next chapter will start immediately or say page=yes and the next chapter
will start on the following page which might be a left- or righthand page.

Willi





___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Again: How to make empty pages by default empty?

2003-09-22 Thread Steffen Wolfrum
The following message was sent by Willi Egger [EMAIL PROTECTED] on 
Mon, 22 Sep 2003 20:16:01 +0200.

gt; Hi Steffen,
 From: Steffen Wolfrum [EMAIL PROTECTED]
 Subject: [NTG-context] Again: How to make empty pages by default empty?
 So I don't have to post so many (unanswered) questions any more...
  
Posting ConTeXt questions is fun, so don't stop doing this.
  
  
Patrick
 
 
 
  Alright! So maybe I am also allowed to send again
  one of my favorite problems from last week?
 
  Still unanswered. Still unsolved. Very interesting!
 
  To whom it may concern - don't hesitate to post an answer...
 
  Thank you all,
  Steffen
 
 
 
  Hans Hagen [EMAIL PROTECTED] wrote:
 
At 10:05 19/09/2003 +0200, you wrote:
Hi Steffen,
  
  
  
  \definepagebreak
  [chapter]
  [yes,header,right]
  
\definepagebreak
   [chapter]
   [empty,header,right]
 
 
  Sorry, but that doesn't work.
 
  When changed the minimal example to...
 
  \definepagebreak
  [chapter]
  [empty,header,right]
 
  \setuphead
  [chapter]
  [page=chapter,]
 
  \setuppagenumbering[alternative=doublesided]
 
  \starttext
  \startfrontmatter
  \completecontent
  \stopfrontmatter
  \startbodymatter
  \chapter {test} \dorecurse{10}{\input tufte }
  \chapter {test} \dorecurse{10}{\input tufte }
  \chapter {test} \dorecurse{10}{\input tufte }
  \stopbodymatter
 
  \stoptext
 
 
  ... we have page numbers on (empty) page number 4, 18 and 19!
 
  Plus there are two strange empty empty pages before the TOC?!
 If you want to get a doublesided tzpeset document you should add also
 \setuplayout[location=doublesided].
 I am not shure, whether the following is correct!

 Empty pages at the beginning:

 You start the frontmatters with the \completecontent. - I could imagine
 that
 this is a consequence of the fact that the TOC starts always on a righthand
 page. - Thus at the  moment of \startbodymatter tex is already on the first
 page. But after identifying the \completecontents command will create two
 page breaks in order to be able to typeset the TOC on a righthand page.
 Pagenumbers on empty pages before starting a new chapter

 Chapters begin on a right hand page. If the lefthand page is empty, there
 is
 correctly still the pagenumber. I do not know whether it is possible to
 check whether the page before a new chapter is completely empty.


Hi Willi, I hope that it can't be to difficult:

Cause the page before a new chapter is actually completely empty JUST 
BECAUSE it is generated by (Con)TeX(t) - for chapters should begin on 
a right page.

So I only ask for empty pages (without pagenumbers) that are 
generated by (Con)TeX(t).

That's not possible in ConTeXt?

Steffen



___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Expert version: How to make empty pages by default empty?

2003-09-19 Thread Holger Schöner
Hi Steffen,

I could not confirm the following in the ConTeXt source code (could not find
the definition), but I might be remembering a similar case, where I wanted
special setups for chapters and wondered why the contents were shown
differently. As far as I remember, I solved it by using \setuphead not only
for chapter, but also for title (and/or some others?), so this might help
for your problem as well ...

For some reason the example you provided does not work at all for me
(there is no page break before chapters; perhaps my ConTeXt is too
old), so I'm sorry, I could not test this suggestion.

On Thu, 18 Sep 2003, Steffen Wolfrum wrote:
 while Patrick Gundlach could provide me a solution for all chapters in one file
 there still is no idea how to do it within the project structure.

 See for example the following:
 The generated empty pages
 after the TOC (page 2), and after the last chapter (14 and 15)
 all have pagenumbers.

 Quite ugly.

 How to get rid of them?
 How to make empty pages by default empty?

 Steffen


 Minimal Example:

 \definepagebreak
 [chapter]
 [yes,header,right]

 \setuphead
[chapter]
[page=chapter,
 ]

 \setuppagenumbering[alternative=doublesided]
 \setupsectionblock[frontmatter][page=chapter] % doesn't work

 \starttext
 \startfrontmatter
\completecontent
 \stopfrontmatter
 \startbodymatter
 \chapter {test} \dorecurse{10}{\input tufte }
 \chapter {test} \dorecurse{10}{\input tufte }
 \chapter {test} \dorecurse{10}{\input tufte }
 \stopbodymatter

 \stoptext

-- 
Holger F. Schoener  TU Berlin; Dept. IV: EE and Computer Science
[EMAIL PROTECTED]   http://www.cs.tu-berlin.de/~hfsch/
Rooms FR2525Tel: +49-30-314-73115, Fax: -73121
Office FR 2-1   Franklinstr. 28/29, D-10587 Berlin, Germany


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: Expert version: How to make empty pages by default empty?

2003-09-19 Thread Holger Schöner
On Fri, 19 Sep 2003, Patrick Gundlach wrote:
 Holger Schöner [EMAIL PROTECTED] writes:
  For some reason the example you provided does not work at all for me
  (there is no page break before chapters; perhaps my ConTeXt is too
  old), so I'm sorry, I could not test this suggestion.

 how old is your ConTeXt Version? It must be more than one year old
 (that is if my memory serves me right).

Not quite that much:
ConTeXt  ver: 2003.2.11  fmt: 2003.4.4  int: english  mes: english

and what I was wondering about is, that the command \definepagebreak exists,
and I cannot find an error message; so I do not know, where it breaks. But I
did not have time to investigate, and am planning to update anyway, when the
new TexLive is out ...

-- 
Holger F. Schoener  TU Berlin; Dept. IV: EE and Computer Science
[EMAIL PROTECTED]   http://www.cs.tu-berlin.de/~hfsch/
Rooms FR2525Tel: +49-30-314-73115, Fax: -73121
Office FR 2-1   Franklinstr. 28/29, D-10587 Berlin, Germany


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


  1   2   >