[NTG-context] Re: Asking help for better way to make tickets.

2024-01-12 Thread Marco Patzer
On Fri, 12 Jan 2024 23:05:14 +0900
Jeong Dal via ntg-context  wrote:

> I’d like to make a ticket on A4 as follows:
> 
> 1. Use all of A4(no margin, no header, no footer,…)
> 2. Arange 12 tickets in the form of 3 x 4 on one page,
> 3. Two rows are same,
> 4. Numbers in the center of the ticket which is increasing.
> 
> I use the following code to make it.

Here's a suggestion:

\definepapersize
  [jeong]
  [width=67mm,
   height=73mm]

\setuppapersize
  [jeong]
  [A4]

\setuppaper
  [nx=3, ny=4,
   dx=4.4mm, dy=1.5mm]

\setuparranging
  [XY]

\setuplayout
  [page]

\setuppagenumbering
  [state=stop]

\setupmakeup
  [standard]
  [align=middle]

\setupblank
  [2*line]

\showframe
\starttext
  \dorecurse{12}{%%
\startstandardmakeup
Text \blank
{\tfd\recurselevel} \blank
Text
\stopstandardmakeup
\page}
\stoptext

That's how I'd approach it. Not sure if it meets all your
requirements, though.

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Frontpage and Titlepage

2023-10-02 Thread Jeroen
The following MWE is how I create my frontpage and titlepage. Is this the
proper way to do so?

\definemakeup
  [frontpage]
  [align=middle]

\definemakeup
  [titlepage]

\setupmakeup
  [titlepage]
  [align={right,top},
   top=\vfill,
   pagestate=stop,
   style=smallbodyfont]

\definealternativestyle
  [authorstyle]
  [\rm\tfb]
  []

\definealternativestyle
  [titlestyle]
  [\rm\bfd]
  []

\starttext

\startmakeup
  [frontpage]

\authorstyle
  {The Author}

\blank

\titlestyle
  {This is the Title}

\stopmakeup

\startmakeup
  [titlepage]

\titlestyle
  {This is the Title}

\stopmakeup

\startchapter
  [title={Chapter Title}]

\samplefile{tufte}

\stopchapter

\stoptext
___
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] Makeup and page numbering increment

2023-02-15 Thread Pablo Rodriguez via ntg-context
On 2/15/23 12:40, Alex Leray via ntg-context wrote:
> Thanks a lot Wolfgang, that's perfect!
> 
> I added an example in the wiki:
> 
> https://wiki.contextgarden.net/Command/setupmakeup

Hi Alex,

many thanks for adding the info to the wiki.

Just in case it might help, I added an explanation to the main article:

  https://wiki.contextgarden.net/Makeup

Let me know whether it could be improved.

Welcome back to ConTeXt,

Pablo
___
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] Makeup and page numbering increment

2023-02-15 Thread Alex Leray via ntg-context

Thanks a lot Wolfgang, that's perfect!

I added an example in the wiki:

https://wiki.contextgarden.net/Command/setupmakeup

Have a good day,

Alex

Le 15/02/23 à 12:03, Wolfgang Schuster via ntg-context a écrit :
Alex Leray via ntg-context <mailto:ntg-context@ntg.nl>> schrieb am Mi., 15. Feb. 2023, 11:59:


Hi Mikael,

here it is:

%%%
\definemakeup [title] [doublesided=empty]


Add pagestate=start to the settings.

Wolfgang


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


--
Alexandre Leray
+32 487 947 030

Avez-vous pensé à (vous) offrir Médor ?
https://medor.coop/ideescadeau
___
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] Full-page Figure?

2022-03-31 Thread Hans Hagen via ntg-context

On 3/30/2022 11:41 PM, Michael Urban via ntg-context wrote:

Almost there.  But if I add \setuppagenumbering  [alternative=doublesided]
to the example, there is a blank page before the makeup page, and an unnumbered 
blank page after.  If I add doublesided=no to the
\setupmakeup options, the unnumbered blank page is not there, but there is 
still a blank page before.  It is seemingly forcing
a right-hand page for some reason I do not understand.

does adding page=no help?

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


Re: [NTG-context] Full-page Figure?

2022-03-30 Thread śrīrāma via ntg-context
On Thursday, March 31, 2022 3:11 AM Michael Urban via ntg-context wrote:
> Almost there.  But if I add \setuppagenumbering  [alternative=doublesided]
> to the example, there is a blank page before the makeup page, and an 
> unnumbered blank page after.  If I add doublesided=no to the
> \setupmakeup options, the unnumbered blank page is not there, but there is 
> still a blank page before.  It is seemingly forcing
> a right-hand page for some reason I do not understand.

That is an easy fix: \setupmakeup, just like \setuphead, has a 'page' key which 
controls this. So, using the below setup for the 'FloatPage' makeup you can get 
rid of the unwanted page:

  \setupmakeup
[FloatPage]
[ headerstate=normal,
pagestate=start,
align=middle,
  footerstate=normal,
page=no,
  doublesided=no]

  Sreeram


___
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] Full-page Figure?

2022-03-30 Thread Michael Urban via ntg-context
Almost there.  But if I add \setuppagenumbering  [alternative=doublesided]
to the example, there is a blank page before the makeup page, and an unnumbered 
blank page after.  If I add doublesided=no to the
\setupmakeup options, the unnumbered blank page is not there, but there is 
still a blank page before.  It is seemingly forcing
a right-hand page for some reason I do not understand.

Mike


> On Mar 28, 2022, at 6:37 PM, śrīrāma via ntg-context  
> wrote:
> 
> On Tuesday, March 29, 2022 4:18 AM Michael Urban via ntg-context wrote:
>> Is there a simple way to accomplish this?
> 
> I suppose you need 'postponing'. See
>  https://wiki.contextgarden.net/Command/startpostponing
> [One can specify a page explicitly, or, more conveniently, an offset]
> 
> First, we define a makeup and enable header, footer and page for it. Then we 
> can put the float inside the makeup and wrap it with 
> \start...\stoppostponing. Here is a MWE:
> 
> %%% start example
>  \setupexternalfigures[location=default]
>  \definemakeup
>[FloatPage]
>  \setupmakeup
>[FloatPage]
>[headerstate=normal,
>   pagestate=start,
>   align=middle,
> footerstate=normal]
> 
>  \setupheadertexts[]
>  \setupheadertexts[chapter][\date]
>  \setupfootertexts[pagenumber]
> 
>  \starttext
>  \startchapter [title={Chapter title}]
>\startpostponing[+1]
>  \startFloatPagemakeup
>  \placefigure{a floating cow}{\externalfigure[cow]}
>  \stopFloatPagemakeup
>\stoppostponing
>  \dorecurse{6}{\samplefile{knuth}}
>  \blank
> 
>  \dorecurse{2}{\samplefile{tufte}}
>  \stopchapter
>  \stoptext
> %%% stop example
> 
> Of course, I think some manual hand-tuning is required (in the final stages 
> of the document) in deciding the right place to put the postponing block and 
> in deciding what offset is best.
> 
> Sreeram
> 
> 
> ___
> 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
___


Re: [NTG-context] Full-page Figure?

2022-03-28 Thread śrīrāma via ntg-context
On Tuesday, March 29, 2022 4:18 AM Michael Urban via ntg-context wrote:
> Is there a simple way to accomplish this?

I suppose you need 'postponing'. See
  https://wiki.contextgarden.net/Command/startpostponing
[One can specify a page explicitly, or, more conveniently, an offset]

First, we define a makeup and enable header, footer and page for it. Then we 
can put the float inside the makeup and wrap it with \start...\stoppostponing. 
Here is a MWE:

%%% start example
  \setupexternalfigures[location=default]
  \definemakeup
[FloatPage]
  \setupmakeup
[FloatPage]
[headerstate=normal,
   pagestate=start,
   align=middle,
 footerstate=normal]

  \setupheadertexts[]
  \setupheadertexts[chapter][\date]
  \setupfootertexts[pagenumber]

  \starttext
  \startchapter [title={Chapter title}]
\startpostponing[+1]
  \startFloatPagemakeup
  \placefigure{a floating cow}{\externalfigure[cow]}
  \stopFloatPagemakeup
\stoppostponing
  \dorecurse{6}{\samplefile{knuth}}
  \blank

  \dorecurse{2}{\samplefile{tufte}}
  \stopchapter
  \stoptext
%%% stop example

Of course, I think some manual hand-tuning is required (in the final stages of 
the document) in deciding the right place to put the postponing block and in 
deciding what offset is best.

Sreeram


___
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] Multiple Layouts

2021-03-13 Thread Jeroen
I have the following document, but I want a different
\setuplayout[backspace] for the titlepage and copyright space. What is
the best way to achieve this?





\setupcolors
  [state=start]

\usecolors
  [xwi]

\usetypescriptfile
  [euler]

\definetypeface
  [mainface][rm][serif][pagella][default]

\definetypeface
  [mainface][tt][mono][dejavu][default]

\definetypeface
  [mainface][mm][math][pagellaovereuler][default]

\setupbodyfont
  [mainface,11.5pt]

\setuppapersize
  [A4,
   portrait]

\setuplayout
  [backspace=19mm,
   width=176mm,
   topspace=7mm,
   header=10mm,
   headerdistance=3mm,
   height=middle,
   footerdistance=5mm,
   footer=9mm,
   bottomspace=11mm]

\setuphead
  [chapter]
  [style={\bfb},
   before={\vskip 0mm},
   after={\vskip-\parskip}]

\setuphead
[section]
[style=bold,
   before={\vskip 6mm},
   after={\vskip 2mm}]

\setuppagenumbering
  [alternative=doublesided]

\setupheadertexts
  []

\setupfooter
  [style=\it]

\setupfootertexts
  [{Footer Title} \hfill \pagenumber]

\definemakeup
  [titlepage]
  [align=left]

\definemakeup
  [copyrightpage]

\setupmakeup
  [copyrightpage]
  [align={right,bottom},
   top=\vfill,
   pagestate=stop,
   style=smallbodyfont]

\definealternativestyle
  [authorstyle]
  [\rm\tfb]
  []

\definealternativestyle
  [titlestyle]
  [{\rm\bfd\color[red]}]
  []

\definealternativestyle
  [subtitlestyle]
  [\rm\tfb]
  []

\definealternativestyle
  [publisherstyle]
  [\rm\bfb]
  []


\starttext

\startmakeup[titlepage]
\authorstyle{The Author}
\blank[13*big]
\titlestyle{Title 1}
\blank[5*small]
\titlestyle{Title 2}
\blank[2*big]
\subtitlestyle{Subtitle}
\blank[47*big]
\publisherstyle{Publisher}
\stopmakeup

\startmakeup[copyrightpage]
Title \crlf
Subtitle
\blank
Geprint in Country. \crlf
Document Reference ABC-ABC-001. \crlf
Eerste draft versie, gepubliceerd op \date. \crlf
Dit document is getypset met \CONTEXT\ LMTX op Microsoft Windows 10.
\blank
\startalignment[flushmiddle]
Copyright \copyright\ 2021, Publisher. Alle rechten voorbehouden. \crlf
Niets uit deze uitgave mag worden verveelvoudigd, opgeslagen in een
geautomatiseerd gegevensbestand en/of openbaar gemaakt in enige vorm of op
enige wijze, hetzij elektronisch, mechanisch, door fotokopieën, opnamen of
op enige andere manier zonder voorafgaande schriftelijk bevestigde
toestemming van Publisher.
\stopalignment
\stopmakeup

\startcolumns[2]

\startchapter[title={Bryson and Tufte}]

\dorecurse{5}{
  \startsection[title={Bryson}] \input{bryson} \stopsection
  \startsection[title={Tufte}] \input{tufte} \stopsection}

\stopchapter

\startchapter[title={Zapf and Ward}]

\dorecurse{5}{
  \startsection[title={Zapf}] \input{zapf} \stopsection
  \startsection[title={Ward}] \input{ward} \stopsection}

\stopchapter

\stopcolumns

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

2021-03-13 Thread Jeroen
I have the following document, but I want a different
\setuplayout[backspace] for the titlepage and copyright space. What is
the best way to achieve this?





\setupcolors
  [state=start]

\usecolors
  [xwi]

\usetypescriptfile
  [euler]

\definetypeface
  [mainface][rm][serif][pagella][default]

\definetypeface
  [mainface][tt][mono][dejavu][default]

\definetypeface
  [mainface][mm][math][pagellaovereuler][default]

\setupbodyfont
  [mainface,11.5pt]

\setuppapersize
  [A4,
   portrait]

\setuplayout
  [backspace=19mm,
   width=176mm,
   topspace=7mm,
   header=10mm,
   headerdistance=3mm,
   height=middle,
   footerdistance=5mm,
   footer=9mm,
   bottomspace=11mm]

\setuphead
  [chapter]
  [style={\bfb},
   before={\vskip 0mm},
   after={\vskip-\parskip}]

\setuphead
[section]
[style=bold,
   before={\vskip 6mm},
   after={\vskip 2mm}]

\setuppagenumbering
  [alternative=doublesided]

\setupheadertexts
  []

\setupfooter
  [style=\it]

\setupfootertexts
  [{Footer Title} \hfill \pagenumber]

\definemakeup
  [titlepage]
  [align=left]

\definemakeup
  [copyrightpage]

\setupmakeup
  [copyrightpage]
  [align={right,bottom},
   top=\vfill,
   pagestate=stop,
   style=smallbodyfont]

\definealternativestyle
  [authorstyle]
  [\rm\tfb]
  []

\definealternativestyle
  [titlestyle]
  [{\rm\bfd\color[red]}]
  []

\definealternativestyle
  [subtitlestyle]
  [\rm\tfb]
  []

\definealternativestyle
  [publisherstyle]
  [\rm\bfb]
  []


\starttext

\startmakeup[titlepage]
\authorstyle{The Author}
\blank[13*big]
\titlestyle{Title 1}
\blank[5*small]
\titlestyle{Title 2}
\blank[2*big]
\subtitlestyle{Subtitle}
\blank[47*big]
\publisherstyle{Publisher}
\stopmakeup

\startmakeup[copyrightpage]
Title \crlf
Subtitle
\blank
Geprint in Country. \crlf
Document Reference ABC-ABC-001. \crlf
Eerste draft versie, gepubliceerd op \date. \crlf
Dit document is getypset met \CONTEXT\ LMTX op Microsoft Windows 10.
\blank
\startalignment[flushmiddle]
Copyright \copyright\ 2021, Publisher. Alle rechten voorbehouden. \crlf
Niets uit deze uitgave mag worden verveelvoudigd, opgeslagen in een
geautomatiseerd gegevensbestand en/of openbaar gemaakt in enige vorm of op
enige wijze, hetzij elektronisch, mechanisch, door fotokopieën, opnamen of
op enige andere manier zonder voorafgaande schriftelijk bevestigde
toestemming van Publisher.
\stopalignment
\stopmakeup

\startcolumns[2]

\startchapter[title={Bryson and Tufte}]

\dorecurse{5}{
  \startsection[title={Bryson}] \input{bryson} \stopsection
  \startsection[title={Tufte}] \input{tufte} \stopsection}

\stopchapter

\startchapter[title={Zapf and Ward}]

\dorecurse{5}{
  \startsection[title={Zapf}] \input{zapf} \stopsection
  \startsection[title={Ward}] \input{ward} \stopsection}

\stopchapter

\stopcolumns

\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] Pagenumbering with \setupcounter[userpagenumber]

2020-07-29 Thread Willi Egger
Good evening!

I am trying to make use of the userpagenumber counter. I have a book at hand, 
where I need to adjust the start of the pagenumbering.

It appears to me, that the \setupcounter[userpagenumber[state=stop] and later 
the \setupcounter[userpagenumber][state=start,start=7] is not giving the 
expected result.

MWE:

% Context file

\mainlanguage[en]

\usetypescript[termes]
\setupbodyfont[termes,9pt]

\setuppapersize [A5][A5]


\setuppagenumbering[location=,alternative=doublesided]

\setupheadertexts
[text]
[]
[\userpagenumber]
[\userpagenumber]
[{\getmarking[chapter]}]

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

\setupmakeup[standard][top=,bottom=,doublesided=yes]

\setupcounter[userpagenumber][state=stop]

\starttext

\startstandardmakeup[page=yes,doublesided=yes]
\strut
\godown[.2\textheight]
\rightaligned{Bramble-Bees}
\stopstandardmakeup

\startstandardmakeup[doublesided=yes,page=yes]
\strut
\godown[.1\textheight]
\startalignment[middle]
{\bfb BRAMBLE-BEES AND OTHER} 
\blank[line]
{\bfa by J. HENRI FABRE}
\stopalignment
\vfill
\startalignment[middle]
{TRANSLATED BY ALEXANDER TEIXEIRA DE MATTOS, F.Z.S.}
\stopalignment
\stopstandardmakeup


\starttitle[title={TRANSLATOR'S NOTE.}]
\input ward
\stoptitle


\setupcounter[userpagenumber][state=start,number=7]

\starttitle[title=Contents]
\placelist[chapter]
\stoptitle

\startchapter[title=Ward]
\input ward
\stopchapter

\startchapter[title=Knuth]
\input knuth
\stopchapter

\stoptext


Is this a bug or do I miss something?

Kind regards

Willi
___
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] Setuppagenumbering for single page only

2019-12-04 Thread Denis Maier

Am 04.12.2019 um 10:30 schrieb Henning Hraban Ramm:

Hi Denis,
"page styles" are called "makeup" in ConTeXt,
see
https://wiki.contextgarden.net/Makeup
https://wiki.contextgarden.net/Command/setupmakeup

Also \setuplayout[MyMakeupName][… setups …]

Best, Hraban


Thanks. That was it.
Best,
Denis
___
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] Setuppagenumbering for single page only

2019-12-04 Thread Henning Hraban Ramm
Hi Denis,
"page styles" are called "makeup" in ConTeXt,
see
https://wiki.contextgarden.net/Makeup
https://wiki.contextgarden.net/Command/setupmakeup

Also \setuplayout[MyMakeupName][… setups …]

Best, Hraban

> Am 2019-12-04 um 10:19 schrieb Denis Maier :
> 
> Hi,
> is it possible to change the pagelayout for one page only? Something like 
> \thispagestyle{empty} in LaTeX?
> Best,
> Denis
> ___
> 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
___


Re: [NTG-context] background color, was: CMYK Color profile

2019-06-02 Thread Benjamin Koppe
When stupidity strikes, no one's safe.

Turns out \setupbackgrounds has an option called backgroundoffset, and
this is the solution. The not colorized part was the bleed part of the
document, so the background command would be:


\setupbackgrounds
[paper]
[
background=color,
backgroundcolor=blue,
backgroundoffset=\measured{bleed}
]

wonder if this would be handy in the DIN lang folder template in the
wiki, as most such brochures will supposingly have a colored
background...?




Am Samstag, den 01.06.2019, 05:48 +0200 schrieb Benjamin Koppe:
> Here's the example. It's basically the code from DIN Lang Folder in
> the
> Wiki plus a setupbackgrounds command. It works with `page` but fails
> to
> work with `paper`:
>
>
>
>
> %% This is a template for a Din lang Folder.
> %% The folded page of such a flyer is shorter (97mm) than the other
> pages (100mm)
>
> %% This measure shows how much shorter the folded page is.
> \definemeasure
> [shortfold]
> [3mm]
>
> %% The bleed measure is necessary if you have colored page
> backgrounds
> %% or images in the bleed.
> %% Different print shops need different bleeds.
> \definemeasure
> [bleed]
> [1mm]
>
> %% This is the pagesize of the final PDF.
> %% The bleed size is added two times to width and height.
> \definepapersize
> [A4-flyer]
> [width=\dimexpr297mm+2\measured{bleed}\relax,
>  height=\dimexpr210mm+2\measured{bleed}\relax]
>
> %% The size of a normal page.
> \definepapersize
> [flyer-page]
> [width=100mm,
>  height=210mm]
>
> %% The size of the folded page.
> \definepapersize
> [flyer-page-small]
> [width=\dimexpr100mm-\measure{shortfold}\relax,
>  height=210mm]
>
> %% Imposition: With the following two commands we arrange the six
> pages
> %% on the final PDF print sheet.
>
> %% The flyerpages are imposed on the printed sheet.
> \setuppapersize
> [flyer-page]
> [A4-flyer]
>
> %% The pages are arranged as a tryptichon.
> \setuparranging
> [TRYPTICHON]
>
> %% Because of the shorter folded page and the bleed the pages has
> %% to be shifted horizontally on the printed sheet.
> %% The values are calculated here.
> \definepageshift
> [flyer]
> [horizontal]
> [\dimexpr\measure{bleed}-\measured{shortfold}\relax,
> \measure{bleed},
>  \measure{bleed},
>  \dimexpr2\measured{shortfold}+\measured{bleed}\relax,
>  \measure{bleed},
> \dimexpr\measure{bleed}-\measured{shortfold}\relax
> ]
>
>
> %% The vertical pageshift is simple.
> \definepageshift
> [flyer]
> [vertical]
> [\measure{bleed}]
>
> \setuppageshift
> [paper]
> [flyer]
>
> %% We define some measures to construct the page layout.
> \definemeasure
> [small]
> [3mm]
>
> \definemeasure
> [big]
> [\measure{small}*2]
>
> %% Each page has a slightly different page layout.
> %% The named layouts (1. bracket) inherit values from other layouts
> %% which are assigned in the second bracket.
> \definelayout
> [first]
> [page]
> [page=flyer-page,
>  topspace=2\measured{big},
>  backspace=2\measured{small},
>  width=\dimexpr\paperwidth-4\measured{small}\relax,
>  height=\dimexpr\paperheight-4\measured{big}\relax]
>
> \definelayout
> [second]
> [first]
> [topspace=2\measured{big},
>  backspace=2\measured{small},
>  width=\dimexpr\paperwidth-2\measured{big}\relax]
>
> \definelayout
> [thirdandfourth]
> [second]
> [backspace=\measure{big},
>  width=\dimexpr\paperwidth-2\measured{big}\relax]
>
> \definelayout
> [fifthandsixth]
> [first]
> [backspace=\measure{big},
>  width=\dimexpr\paperwidth-2\measured{big}\relax]
>
> %% We assign the layouts to the pages.
> \definelayout [1] [first]
> \definelayout [2] [second]
> \definelayout [3] [thirdandfourth]
> \definelayout [4] [thirdandfourth]
> \definelayout [5] [fifthandsixth]
> \definelayout [6] [fifthandsixth]
>
>
> %% Some setups
> \setupmakeup [doublesided=no]
> \setuptolerance [verytolerant]
>
>
> %% We want to see page and layout borders.
> %% COMMENT THIS OUT BEFORE YOU PRINT!
> \showframe
>
> \setupbackgrounds[paper][background=color,backgroundcolor=blue]
>
> \starttext
> \starttitle[title={First page}]
> \input lorem
>   \stoptitle
>   \starttitle[title={Second page}]
> \input lorem
>
>   \stoptitle
>   \starttitle[title={Third page}]
> \input lorem
>
>   \stoptitle
>
>   \starttitle[title={Fourth page}]
> \setuppapersize [flyer-p

Re: [NTG-context] background color, was: CMYK Color profile

2019-05-31 Thread Benjamin Koppe
Here's the example. It's basically the code from DIN Lang Folder in the
Wiki plus a setupbackgrounds command. It works with `page` but fails to
work with `paper`:




%% This is a template for a Din lang Folder.
%% The folded page of such a flyer is shorter (97mm) than the other
pages (100mm)

%% This measure shows how much shorter the folded page is.
\definemeasure
[shortfold]
[3mm]

%% The bleed measure is necessary if you have colored page backgrounds
%% or images in the bleed.
%% Different print shops need different bleeds.
\definemeasure
[bleed]
[1mm]

%% This is the pagesize of the final PDF.
%% The bleed size is added two times to width and height.
\definepapersize
[A4-flyer]
[width=\dimexpr297mm+2\measured{bleed}\relax,
 height=\dimexpr210mm+2\measured{bleed}\relax]

%% The size of a normal page.
\definepapersize
[flyer-page]
[width=100mm,
 height=210mm]

%% The size of the folded page.
\definepapersize
[flyer-page-small]
[width=\dimexpr100mm-\measure{shortfold}\relax,
 height=210mm]

%% Imposition: With the following two commands we arrange the six pages
%% on the final PDF print sheet.

%% The flyerpages are imposed on the printed sheet.
\setuppapersize
[flyer-page]
[A4-flyer]

%% The pages are arranged as a tryptichon.
\setuparranging
[TRYPTICHON]

%% Because of the shorter folded page and the bleed the pages has
%% to be shifted horizontally on the printed sheet.
%% The values are calculated here.
\definepageshift
[flyer]
[horizontal]
[\dimexpr\measure{bleed}-\measured{shortfold}\relax,
\measure{bleed},
 \measure{bleed},
 \dimexpr2\measured{shortfold}+\measured{bleed}\relax,
 \measure{bleed},
\dimexpr\measure{bleed}-\measured{shortfold}\relax
]


%% The vertical pageshift is simple.
\definepageshift
[flyer]
[vertical]
[\measure{bleed}]

\setuppageshift
[paper]
[flyer]

%% We define some measures to construct the page layout.
\definemeasure
[small]
[3mm]

\definemeasure
[big]
[\measure{small}*2]

%% Each page has a slightly different page layout.
%% The named layouts (1. bracket) inherit values from other layouts
%% which are assigned in the second bracket.
\definelayout
[first]
[page]
[page=flyer-page,
 topspace=2\measured{big},
 backspace=2\measured{small},
 width=\dimexpr\paperwidth-4\measured{small}\relax,
 height=\dimexpr\paperheight-4\measured{big}\relax]

\definelayout
[second]
[first]
[topspace=2\measured{big},
 backspace=2\measured{small},
 width=\dimexpr\paperwidth-2\measured{big}\relax]

\definelayout
[thirdandfourth]
[second]
[backspace=\measure{big},
 width=\dimexpr\paperwidth-2\measured{big}\relax]

\definelayout
[fifthandsixth]
[first]
[backspace=\measure{big},
 width=\dimexpr\paperwidth-2\measured{big}\relax]

%% We assign the layouts to the pages.
\definelayout [1] [first]
\definelayout [2] [second]
\definelayout [3] [thirdandfourth]
\definelayout [4] [thirdandfourth]
\definelayout [5] [fifthandsixth]
\definelayout [6] [fifthandsixth]


%% Some setups
\setupmakeup [doublesided=no]
\setuptolerance [verytolerant]


%% We want to see page and layout borders.
%% COMMENT THIS OUT BEFORE YOU PRINT!
\showframe

\setupbackgrounds[paper][background=color,backgroundcolor=blue]

\starttext
\starttitle[title={First page}]
\input lorem
  \stoptitle
  \starttitle[title={Second page}]
\input lorem

  \stoptitle
  \starttitle[title={Third page}]
\input lorem

  \stoptitle

  \starttitle[title={Fourth page}]
\setuppapersize [flyer-page-small] [A4-flyer]
\input lorem

  \stoptitle
  \starttitle[title={Fifth page}]
\input lorem

  \stoptitle

  \starttitle[title={Sixth page}]
  \setuppapersize [flyer-page] [A4-flyer]
\input lorem

  \stoptitle

\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] DIN lang folder with crop marks

2019-04-10 Thread Benjamin Koppe
Hallo,

I'm new to ConTeXt and am crazy enough to start with something
nonstandard.

Of course I got stuck pretty fast. I started out with this:

https://wiki.contextgarden.net/DIN_lang_folder

and then found some info on crop marks here:

https://wiki.contextgarden.net/PaperSetup#Crop_marks


I tried different options (marked=on, market=colour, marked=color...,
something with \setuplayout[location={middle,middle}]...)

Some times the crop marks don't show at all, sometimes they are set off
a bit so they don't fit with the actual document.

I added the whole file as I really do not knwo (yet) how to reduce
things...

Thanks for any help
De Benny

%% This is a template for a Din lang Folder.
%% The folded page of such a flyer is shorter (97mm) than the other pages (100mm)

%% This measure shows how much shorter the folded page is.
\definemeasure
[shortfold]
[3mm]

%% The bleed measure is necessary if you have colored page backgrounds 
%% or images in the bleed.
%% Different print shops need different bleeds.
\definemeasure
[bleed]
[3mm]

%% This is the pagesize of the final PDF.
%% The bleed size is added two times to width and height.
\definepapersize
[A4-flyer]
[width=\dimexpr297mm+2\measured{bleed}\relax,
 height=\dimexpr210mm+2\measured{bleed}\relax]

%% The size of a normal page.
\definepapersize
[flyer-page]
[width=100mm,
 height=210mm]

%% The size of the folded page.
\definepapersize
[flyer-page-small]
[width=\dimexpr100mm-\measure{shortfold}\relax,
 height=210mm]

%% Imposition: With the following two commands we arrange the six pages
%% on the final PDF print sheet.

%% The flyerpages are imposed on the printed sheet.
\setuppapersize
[flyer-page]
[A4-flyer]


%% The pages are arranged as a tryptichon.
\setuparranging
[TRYPTICHON]

%% Because of the shorter folded page and the bleed the pages has
%% to be shifted horizontally on the printed sheet.
%% The values are calculated here.
\definepageshift
[flyer]
[horizontal]
[\dimexpr\measure{bleed}-\measured{shortfold}\relax,
\measure{bleed},
 \measure{bleed},
 \dimexpr2\measured{shortfold}+\measured{bleed}\relax,
 \measure{bleed},
\dimexpr\measure{bleed}-\measured{shortfold}\relax
]


%% The vertical pageshift is simple.
\definepageshift
[flyer]
[vertical]
[\measure{bleed}]

\setuppageshift
[paper]
[flyer]

%% We define some measures to construct the page layout.
\definemeasure
[small]
[3mm]

\definemeasure
[big]
[\measure{small}*2]

%% Each page has a slightly different page layout.
%% The named layouts (1. bracket) inherit values from other layouts
%% which are assigned in the second bracket.
\definelayout
[first]
[page]
[page=flyer-page,
 topspace=2\measured{big},
 backspace=2\measured{small},
 width=\dimexpr\paperwidth-4\measured{small}\relax,
 height=\dimexpr\paperheight-4\measured{big}\relax]

\definelayout
[second]
[first]
[topspace=2\measured{big},
 backspace=2\measured{big},
 width=\dimexpr\paperwidth-3\measured{big}\relax]

\definelayout
[thirdandfourth]
[second]
[backspace=\measure{big},
 width=\dimexpr\paperwidth-2\measured{big}\relax]

\definelayout
[fifthandsixth]
[first]
[backspace=\measure{big},
 width=\dimexpr\paperwidth-2\measured{big}\relax]

%% We assign the layouts to the pages.
\definelayout [1] [first]
\definelayout [2] [second]
\definelayout [3] [thirdandfourth]
\definelayout [4] [thirdandfourth]
\definelayout [5] [fifthandsixth]
\definelayout [6] [fifthandsixth]


%% Some setups
\setupmakeup [doublesided=no]
\setupbodyfont  [mainface,10pt]
\setuptolerance [verytolerant]

\setuplayout[marking=color]


%% We want to see page and layout borders.
%% COMMENT THIS OUT BEFORE YOU PRINT!
\showframe


\starttext
\starttitle[title={First page},marking{ }]
\input lorem
  \stoptitle 
  \starttitle[title={Second page},marking{ }]
\input lorem

  \stoptitle 
  \starttitle[title={Third page},marking{ }]
\input lorem

  \stoptitle

  \starttitle[title={Fourth page},marking{ }]
\setuppapersize [flyer-page-small] [A4-flyer]
\input lorem

  \stoptitle

  \starttitle[title={Fifth page},marking{ }]
\input lorem

  \stoptitle

  \starttitle[title={Sixth page},marking{ }]
  \setuppapersize [flyer-page] [A4-flyer]
\input lorem

  \stoptitle

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


Re: [NTG-context] Creating flyers with ConTeXt

2018-09-24 Thread Jan U. Hasecke
Hi Marco,

On 21.09.18 16:56, Marco Patzer wrote:

> A while ago I made a corporate flyer with context using the
> TRYPTICHON method. Printing required 3mm bleed.

Thanks a lot for this template. This is exactly what I need.

I try to understand it in order to adapt it to the requirements of my
print shop which only needs a bleed of 1mm.

I hope that I understand it right:

Page 1,2,3 and 6 are 100mm

Page 4 and 5 are 97mm as these are the pages that are folded to the inside.

The measure "shortfold" (3mm) reduces the 100mm page to 97mm. Right?

The pageshift thing is beyond my horizon so I won't comment on this.

You adjust the backspace of the pages with multiples of the measure
"big". Right?

As you can see in my example I use layers on page 2-4 to have bleeding
images on the top of the page. This works more or less.

But as you can see there are blank white spaces between the images of
page 2-4. Maybe I can adjust this by using absolut measures like 100mm
or 97mm in the layers.

I have to adjust the layout of pages 2-4 so that the text starts below
the images.

An now here is my question. Is there a value I can simply change to have
a pdf with only 1mm bleed?

Only adjusting the papersize A4-flyer to 299mm/212mm does not work of
course.

TIA
juh

%% The page shift of page #6 needs to be adjusted if the value is changed, no
%% clue why.
%% A4-flyer pagesize needs to be adjusted as well
\definemeasure
	[shortfold]
	[3mm]

\definepapersize
	[A4-flyer]
	[width=303mm,
	 height=216mm]

\definepapersize
	[flyer-page]
	[width=100mm,
	 height=210mm]

\definepapersize
  [flyer-page-small]
	[width=\dimexpr100mm-\measure{shortfold}\relax,
	 height=210mm]

\setuppapersize
	[flyer-page]
	[A4-flyer]

\setuparranging
	[TRYPTICHON]

%% The page shift of page #6 needs to be adjusted if shortfold is adjusted, no
%% clue why.
\definepageshift
	[flyer]
	[horizontal]
	[\zeropoint,
	 \measure{shortfold},
	 \measure{shortfold},
	 3\measured{shortfold},
	 \measure{shortfold},
	 \zeropoint]

\definepageshift
	[flyer]
	[vertical]
	[\measure{shortfold}]

\setuppageshift
	[paper]
	[flyer]

\definemeasure
	[small]
	[3mm]

\definemeasure
	[big]
	[\measure{small}*2]

\definelayout
	[first]
	[page]
	[page=flyer-page,
	 topspace=2\measured{big},
	 backspace=2\measured{small},
	 width=\dimexpr\paperwidth-4\measured{small}\relax,
	 height=\dimexpr\paperheight-4\measured{big}\relax]

\definelayout
	[second]
	[first]
	[topspace=4\measured{big},
	 backspace=2\measured{big},
	 width=\dimexpr\paperwidth-3\measured{big}\relax,
	 height=\dimexpr\paperheight-4\measured{big}-2\measured{big}\relax]

\definelayout
	[thirdandfourth]
	[second]
	[backspace=\measure{big},
	 width=\dimexpr\paperwidth-2\measured{big}\relax]

\definelayout
	[fifthandsixth]
	[first]
	[backspace=\measure{big},
	 width=\dimexpr\paperwidth-2\measured{big}\relax]

\definelayout [1] [first]
\definelayout [2] [second]
\definelayout [3] [thirdandfourth]
\definelayout [4] [thirdandfourth]
\definelayout [5] [fifthandsixth]
\definelayout [6] [fifthandsixth]


\setuphead[title][header=none,footer=none]

\definecolor [hs-logoblau] [c=1.0,m=0.46,y=0.0,k=0.42]
\definecolor [hs-dunkelblau] [c=0.65,m=0.36,y=0.0,k=0.26]
\definecolor [hs-mittelblau] [c=0.72,m=0.33,y=0.0,k=0.28]
\definecolor [hs-hellblau] [c=0.30,m=0.14,y=0.0,k=0.14]
\definecolor [hs-orange] [c=0.0,m=0.67,y=1.0,k=0.13]

\definefontfamily
[mainface]
[rm]
[Tex Gyre Heros]



\setupmakeup [doublesided=no]
\setupinterlinespace[line=3ex]

\setuphead [title] [textcolor=hs-dunkelblau,textstyle=\bfc, align=right]
\setupbodyfont	[mainface,10pt]
\setuptolerance [verytolerant]
\mainlanguage [de]
\setbreakpoints[compound]

\definelayer[Hintergrund]
[x=0, y=0, width=\paperwidth, height=\paperwidth]

\setlayer[Hintergrund]
[x=1.2cm, y=1cm]
{\externalfigure[../bilder/logo.pdf][width=7cm]}

\definelayer[topic1]
[x=-3mm, y=-3mm, width=\paperwidth, height=\paperheight]

\setlayer[topic1]
[x=-3mm, y=-3mm]
{\externalfigure[../bilder/topic1.png][width=102mm]}

\definelayer[topic2]
[x=0, y=-3mm, width=\paperwidth, height=\paperheight]

\setlayer[topic2]
[x=0cm, y=-3mm]
{\externalfigure[../bilder/topic2.png][width=99mm,height=58mm]}

\definelayer[topic3]
[x=0, y=0, width=\paperwidth, height=\paperwidth]

\setlayer[topic3]
[x=0cm, y=-3mm]
{\externalfigure[../bilder/topic3.png][width=102mm]}

\definelayer[blau]
[x=0, y=-3mm, width=\paperwidth, height=\paperheight]

\setlayer[blau]
[x=0mm,y=-3mm]
{\framed[frame=off,background=color, backgroundcolor=hs-dunkelblau,width=102mm, height=303mm]{}}

\showframe


\starttext
\setupbackgrounds[page][background=blau]

\startstandardmakeup

\externalfigure [../bilder/example.png] [width=\textwidth]
\blank[5*big]

\externalfigure [../bilder/logo.svg] [width=\textwidth]


\stopstandardmakeup

\starttitle[title={PAGE 2},marking{}]
\setupbackgrounds[page][background=topic1]



   \input lorem
\stoptitle 

\starttitle[title={PAGE 3},marking{ }]
\setupbackgrounds[page][backgr

Re: [NTG-context] hiding page number in postponed makeup page

2017-09-19 Thread Pablo Rodriguez
On 09/19/2017 04:46 PM, Henning Hraban Ramm wrote:
> Hi all,
> back from the meeting I’m still working on my full page figure placement.
> Most of it works so far, even if it tends to collide with floats, but now I’d 
> like to switch off the page numbers on that pages.

Hi Hraban,

if you plan full-page figure placement, I think this might help:

   \setuplayout[standard][footer=0cm]

Pablo


> The M(N)WE is simplified in that I use only a text area sized frame instead 
> of a full page image on a layer.
> If I could place the image layer on top of the page numbers that also would 
> be a solution.
> 
> 
> \setuppapersize[A6]
> \setuppagenumbering
>   [location=footer,
>   alternative=doublesided,
>   state=start]
> 
> \startsetups paginaoff
>   \setuppagenumbering[location=,] % doesn’t work
> \stopsetups
> 
> \setupmakeup[standard]
>   [page=no,
>   doublesided=no,
>   headerstate=empty,
>   footerstate=empty,
>   before=\setups{paginaoff}]
> 
> \starttext
> \input knuth
> 
> \startpostponing[+2]
> \startstandardmakeup
>   \setuppagenumbering[location=,] % doesn’t work
>   \framed
> [width=\textwidth,
> height=\textheight,
> background=color,
> backgroundcolor=blue,
> foregroundcolor=white,
> foregroundstyle=bold,
> frame=off,
>   ]{This page should show no page number}
> \stopstandardmakeup
> \stoppostponing
> 
> \dorecurse{5}{
>   \recurselevel
>   \input tufte \par
> }
> 
> \stoptext
> 
> 
> 
> Greetlings, Hraban
> ---
> http://www.fiee.net
> http://wiki.contextgarden.net
> GPG Key ID 1C9B22FD
> 
> ___
> 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
> ___
> 


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

[NTG-context] hiding page number in postponed makeup page

2017-09-19 Thread Henning Hraban Ramm
Hi all,
back from the meeting I’m still working on my full page figure placement.
Most of it works so far, even if it tends to collide with floats, but now I’d 
like to switch off the page numbers on that pages.

The M(N)WE is simplified in that I use only a text area sized frame instead of 
a full page image on a layer.
If I could place the image layer on top of the page numbers that also would be 
a solution.


\setuppapersize[A6]
\setuppagenumbering
  [location=footer,
  alternative=doublesided,
  state=start]

\startsetups paginaoff
  \setuppagenumbering[location=,] % doesn’t work
\stopsetups

\setupmakeup[standard]
  [page=no,
  doublesided=no,
  headerstate=empty,
  footerstate=empty,
  before=\setups{paginaoff}]

\starttext
\input knuth

\startpostponing[+2]
\startstandardmakeup
  \setuppagenumbering[location=,] % doesn’t work
  \framed
[width=\textwidth,
height=\textheight,
background=color,
backgroundcolor=blue,
foregroundcolor=white,
foregroundstyle=bold,
frame=off,
  ]{This page should show no page number}
\stopstandardmakeup
\stoppostponing

\dorecurse{5}{
  \recurselevel
  \input tufte \par
}

\stoptext



Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

___
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] Odd numbering of pp. in PDF viewer

2017-07-27 Thread Sebastian L.
Actually SumatraPDF works pretty fine with the setting your proposed 
(see attached screens).

Thanks.


On 27/07/2017 23:37, Pablo Rodriguez wrote:

On 07/27/2017 11:14 PM, Sebastian L. wrote:

That's my product.tex:

\environment env.tex

 \startstandardmakeup
 \stopstandardmakeup

Here is your makeup (I removed unrequired lines).


And that's from my env.tex:

\setupinteraction[state=start, color=GBlue, contrastcolor=GBlue] % also
in mkiv!
% color: different page, contrastcolor: same page
\setupinteractionscreen[option=bookmark]
\setuppagenumbering[state=start, location={footer,right}]
\placebookmarks[chapter,title,section,subsection][chapter,section]

Add \setupmakeup[pagestate=start] in this document and page labels in
the PDF document will be fine (SumatraPDF is buggy here, but other PDF
viewers with page label support will be fine).

Cheers,

Pablo


___
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] Odd numbering of pp. in PDF viewer

2017-07-27 Thread Pablo Rodriguez
On 07/27/2017 10:19 PM, Sebastian L. wrote:
> Hi Pablo,
> 
> interesting issue, I will keep your github link focused, thanks. I 
> installed Adobe Reader DC and opened the original document with it. 
> Screenshots attached.
> TBH, this also isn't the correct numbering if you ask me. It goes 1, 1, 
> 2. I thought of 1, 2, 3...
> 
> But ok, the romans solution is ok for now.

Hi Sebastian,

are you using a makeup on the second page?

The way to enable numbering also in makeups is:

\setupmakeup[pagestate=start]

If you add it to your preamble, my guess is that it will work.

I hope it helps,

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

Re: [NTG-context] Odd numbering of pp. in PDF viewer

2017-07-26 Thread Sebastian L.

Sorry, I forgot the second attachment.


On 26/07/2017 22:01, Pablo Rodriguez wrote:

On 07/26/2017 09:25 PM, Sebastian L. wrote:

[..]
... I initially didn't plan on using roman numbers. But right now
this seems the only proper solution to the wrong numbering in my
case. I attached an explanation document to show you what I mean.

If you still wish for the source files please tell me.

Hi Sebastian,

using Roman numerals is a way to workaround the issue.

Unless you provide a minimal source that replicates the wrong numbering,
it would be hard to guess which causes the issue on your document (I’m
afraid I’m not that smart :-().

In the PDF document, you mention makeups. See the difference in numbering:

 \setuppapersize[A9]
 \starttext
 \dorecurse{5}{\startmakeup[standard]\recurselevel\stopmakeup}
 \setupmakeup[standard][pagestate=start]
 \dorecurse{5}{\startmakeup[standard]\recurselevel\stopmakeup}
 \stoptext

But we’re still guessing.

Pablo


___
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] Odd numbering of pp. in PDF viewer

2017-07-26 Thread Sebastian L.

Hi Pablo, I attached what I see. ;)


On 26/07/2017 22:01, Pablo Rodriguez wrote:

\setuppapersize[A9]
 \starttext
 \dorecurse{5}{\startmakeup[standard]\recurselevel\stopmakeup}
 \setupmakeup[standard][pagestate=start]
 \dorecurse{5}{\startmakeup[standard]\recurselevel\stopmakeup}
 \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
___

Re: [NTG-context] Odd numbering of pp. in PDF viewer

2017-07-26 Thread Pablo Rodriguez
On 07/26/2017 09:25 PM, Sebastian L. wrote:
> [..]

> ... I initially didn't plan on using roman numbers. But right now
> this seems the only proper solution to the wrong numbering in my
> case. I attached an explanation document to show you what I mean.
> 
> If you still wish for the source files please tell me.

Hi Sebastian,

using Roman numerals is a way to workaround the issue.

Unless you provide a minimal source that replicates the wrong numbering,
it would be hard to guess which causes the issue on your document (I’m
afraid I’m not that smart :-().

In the PDF document, you mention makeups. See the difference in numbering:

\setuppapersize[A9]
\starttext
\dorecurse{5}{\startmakeup[standard]\recurselevel\stopmakeup}
\setupmakeup[standard][pagestate=start]
\dorecurse{5}{\startmakeup[standard]\recurselevel\stopmakeup}
\stoptext

But we’re still guessing.

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

Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers

2016-07-01 Thread Ursula Hermann
Hello Otared!

 

At least the example is this. Now it works perfekt: 

\starttext

\placecontent

\setupuserpagenumber[numberconversion=romannumerals]

\setcounter[userpage][2]

\startchapter

   [title={Danksagung}]

\stopchapter

\startchapter

   [title={Bildbeschreibung der Cover-Grafik}]

\stopchapter

\startchapter

  [title={Einleitung:"Entwicklung" behindern?}]

\stopchapter

\setupuserpagenumber[numberconversion=numbers]

\setcounter[userpage][1]

\startsection

  [title=Activité 2]

\stopsection

\startchapter

   [title={Cours-Méthodes}]

 

\startsection

  [title={Coordonnées d'un point dans un repère}]

 

\startsection

  [title={Coordonnées du milieu d'un segment}]

 

\startchapter

   [title={S'entraîner}]

 

\startsection

  [title={Coordonnées d'un point dans un repère}]

 

\startsection

  [title={Coordonnées du milieu d'un segment}]

 

\stoptext

\definestructureconversionset [frontpart:pagenumber] [5] [numbers]

 

\setupmakeup

  [standard]

  [pagestate=start,

   style=bigbodyfont,

   align=middle]

 

\starttext

 

\startfrontmatter

  \completecontent

\stopfrontmatter

 

\startbodymatter

  \startchapter [title=First chapter]

  \stopchapter

  \startchapter [title=Second chapter]

  \stopchapter

\stopbodymatter

 

\stoptext

 

Thank‘s so much, for helping me . 

Uschi

Von: ntg-context [mailto:ntg-context-boun...@ntg.nl] Im Auftrag von Otared 
Kavian
Gesendet: Donnerstag, 30. Juni 2016 12:05
An: mailing list for ConTeXt users
Betreff: Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and 
numbers

 

Hi again,

 

Maybe what you want to achieve is resetting the page numbers at some point: in 
that case you can say:

 

\page

\resetuserpagenumber

 

just before the chapter where you want your chapter with roman numerals 
beginning at number 1.

 

Best regards: OK

 

On 28 Jun 2016, at 14:15, Ursula Hermann <ursula.herm...@univie.ac.at> wrote:

 

Hello Wolfgang!

 

I have now written as you told me. 

\starttext

\placecontent

\setupuserpagenumber[numberconversion=romannumerals]

\startchapter

\startchapter[title={Bildbeschreibung der Cover-Grafik}]

\setupuserpagenumber[numberconversion=numbers]

\startchapter

  [title={Einleitung:"Entwicklung" behindern?}]

\stoptext

 

Ähm where do i set the counter. I mean when I set\setcounter? 

 

Uschi

Von: ntg-context [ <mailto:ntg-context-boun...@ntg.nl> 
mailto:ntg-context-boun...@ntg.nl] Im Auftrag von Ursula Hermann
Gesendet: Dienstag, 28. Juni 2016 12:31
An: 'mailing list for ConTeXt users'
Betreff: Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and 
numbers

 

Hallo Wolfgang!

 

Thanks for helping me. It was perfekt. 

 

Uschi

 

Von: ntg-context [ <mailto:ntg-context-boun...@ntg.nl> 
mailto:ntg-context-boun...@ntg.nl] Im Auftrag von Wolfgang Schuster
Gesendet: Freitag, 24. Juni 2016 18:34
An: mailing list for ConTeXt users
Betreff: Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and 
numbers

 

 <mailto:ursula.herm...@univie.ac.at> Ursula Hermann

24. Juni 2016 um 15:53

Hello evrybody!

 

I need in a Toc pagenumberings with romannumrals and numbers. 

 

I have written this one: 

 

\mainlanguage[de]

 

\setupinteraction[state=start] % don't forget this line!

% make chapter, section bookmarks visible when opening document

\placebookmarks[chapter,section,subsection][chapter,section]

\setupinteractionscreen[option=bookmark]\starttext

\setuplist[chapter]

\setuplist[section][width=1em]

\setuplist[subsection][width=1.5em, margin=0.6em]

\setuplist[subject][margin=1.5em]

\setuppagenumbering

\setupcombinedlist[content][list={part,chapter,section,subsection,subsubsection}]

None of the above setups are needed for a minimal example, remove them next 
time.

\setupuserpagenumbering[conversion=romannumerals]

You’re looking for the \setupuserpagenumber command (but \setuppagenumber would
also work because it’s a synonym for the command) and you have to use the 
numbercommand
key to change the conversion.

\setupuserpagenumber[numberconversion=romannumerals]

Wolfgang

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

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

 

___
If your question is 

Re: [NTG-context] Layer placement problem

2016-04-18 Thread Mari Voipio
On Mon, Apr 18, 2016 at 12:52 PM, Wolfgang Schuster
<schuster.wolfg...@gmail.com> wrote:
>
> \setupmakeup[page][top=,bottom=]

Ahh, yes, this elegantly sorted out the problem. Thank you, Wolfgang!


Mari
___
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] Layer placement problem

2016-04-18 Thread Wolfgang Schuster

Mari Voipio <mailto:mari.voi...@iki.fi>
18. April 2016 um 11:25
Hi,

after I updated my ConTeXt a few weeks ago, my cover page suddenly
started looking funny. As far as I understand it, the page consists of
stuff piled on a layer and then the layer is placed on a page. Except
that now the top edge of the layer seems to be placed at the midpoint
of the page or something like that. The text that should be in the
middle of the page now ends up on the bottom edge of the page. How can
I align the top of the layer to the top of the page so that everything
on the page shows up again?

\setupmakeup[page][top=,bottom=]

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

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

Re: [NTG-context] How to properly `\setuplayout' for several pages and then restore back?

2015-05-24 Thread Hans Hagen

On 5/23/2015 8:36 PM, Alexander Shukaev wrote:

Hello,

I have a table of contents that now has grown to span several pages.
Before that I used the following setup:

\definemakeup
[contentspage]

\setupmakeup
[contentspage][%
   footerstate={stop},
   headerstate={stop},
 pagestate={stop},
  page={yes},
bottom={\vfill},
   top={},
]

\setuplayout
[contentspage][%
   footer={\zeropoint},
   header={\zeropoint},
]

\setuplayout
[contentspage][%
   footerdistance={\zeropoint},
   headerdistance={\zeropoint},
]

\startcontentspagemakeup

\setupwhitespace
[line]

% ToC

\stopcontentspagemakeup

and that indeed worked when ToC spanned only one page.  Since page
breaking does not work inside `makeup', I had ti give it up.  Now I try
the following:

\start

\setupheader[state={stop}]
\setupfooter[state={stop}]

\setuppagenumbering[state={stop}]

\setuplayout[%
   footer={\zeropoint},
   header={\zeropoint},
]

\setuplayout[%
   footerdistance={\zeropoint},
   headerdistance={\zeropoint},
]

% ToC

\stop

Why after `\stop' previous setups for `layout', `header', `footer', and
`pagenumbering' do not restore?  Is there a way to achieve this or do I
have to manually duplicate the setups which were before `\start'?  Thank
you.


switching layouts is tricky as there is a mix between local and global 
settings and actions around the page crossing


\startlayout[name]

\stoplayout

also, when there is a layout defined with the same name as a makeup, 
then the makeup will take that layout


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

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

Re: [NTG-context] Force to display page number on the `makeup' page

2015-05-24 Thread Wolfgang Schuster

 Am 24.05.2015 um 20:03 schrieb Alexander Shukaev haroo...@gmail.com:
 
 Hello,
 
 I have a special `makeup' for the abstract page:
 
 \definemakeup
 [abstractpage]
 
 I also have general `makeup' setup:
 
 \setupmakeup[
   doublesided={no},
 pagestate={start},
  page={yes},
 ]
 
 The footer is available from general `layout' setup:
 
 \setuplayout[
   footer={16pt},
   header={\zeropoint},
   margin={\zeropoint},
 ]
 
 Page numbering comes from general `pagenumbering' setup:
 
 \setuppagenumbering
 [location={footer}]
 
 I'm aware that `makeup' pages don't display page numbers even though they can 
 count them with the `pagestate={start}' setting.  However, for this 
 particular `makeup' (`abstractpage') I would like to force the display of 
 page number.  I've tried
 
 \startabstractpagemakeup
 
 \setuppagenumbering
 [location={footer}]
 
 ...
 
 \stopabstractpagemakeup
 
 in hope that `makeup' simply sets `location=' behind the scenes to hide the 
 page number, but it seems that I was wrong.  Is it possible to force page 
 number placement for a particular `makeup'?  Thanks a lot.

You can enable the header with the headerstate key and the footer with the 
footerstate key.

\setupmakeup[standard][pagestate=start]

\starttext

\input knuth

\startmakeup[standard]
\input knuth
\stopmakeup

\input knuth

\startmakeup[standard][headerstate=start]
\input knuth
\stopmakeup

\input knuth

\stoptext

Wolfgang

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

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

Re: [NTG-context] Force to display page number on the `makeup' page

2015-05-24 Thread Alexander Shukaev
Thanks, Wolfgang, that indeed does the trick.

A related question.  I've noticed that global `whitespace' setup is not
recognized by `makeup' environment, i.e.

\setupwhitespace[line]

\definemakeup
[abstractpage]

\startabstractpagemakeup

% `whitespace' is definitely not `line'.

\stopabstractpagemakeup

The trivial and ugly solution is to

\definemakeup
[abstractpage]

\startabstractpagemakeup

\setupwhitespace[line]

% `whitespace' is definitely `line'.

\stopabstractpagemakeup

However, I would prefer

\setupmakeup[
  commands={%
\setupwhitespace[line]%
  },
]

but it has no effect too.  I would like to know why and if there is a
alternative?

By the way, the similar setting

\setupmakeup[
  commands={%
\setupinterlinespace[line={4.2ex}]%
  },
]

does have an effect.  Once again, why?  What's the difference in this case?

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

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

Re: [NTG-context] How to properly `\setuplayout' for several pages and then restore back?

2015-05-24 Thread Alexander Shukaev
On Sun, May 24, 2015 at 11:20 AM, Hans Hagen pra...@wxs.nl wrote:

 On 5/23/2015 8:36 PM, Alexander Shukaev wrote:

 Hello,

 I have a table of contents that now has grown to span several pages.
 Before that I used the following setup:

 \definemakeup
 [contentspage]

 \setupmakeup
 [contentspage][%
footerstate={stop},
headerstate={stop},
  pagestate={stop},
   page={yes},
 bottom={\vfill},
top={},
 ]

 \setuplayout
 [contentspage][%
footer={\zeropoint},
header={\zeropoint},
 ]

 \setuplayout
 [contentspage][%
footerdistance={\zeropoint},
headerdistance={\zeropoint},
 ]

 \startcontentspagemakeup

 \setupwhitespace
 [line]

 % ToC

 \stopcontentspagemakeup

 and that indeed worked when ToC spanned only one page.  Since page
 breaking does not work inside `makeup', I had ti give it up.  Now I try
 the following:

 \start

 \setupheader[state={stop}]
 \setupfooter[state={stop}]

 \setuppagenumbering[state={stop}]

 \setuplayout[%
footer={\zeropoint},
header={\zeropoint},
 ]

 \setuplayout[%
footerdistance={\zeropoint},
headerdistance={\zeropoint},
 ]

 % ToC

 \stop

 Why after `\stop' previous setups for `layout', `header', `footer', and
 `pagenumbering' do not restore?  Is there a way to achieve this or do I
 have to manually duplicate the setups which were before `\start'?  Thank
 you.


 switching layouts is tricky as there is a mix between local and global
 settings and actions around the page crossing

 \startlayout[name]

 \stoplayout

 also, when there is a layout defined with the same name as a makeup, then
 the makeup will take that layout

 -
   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

 ___


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

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

[NTG-context] Force to display page number on the `makeup' page

2015-05-24 Thread Alexander Shukaev
Hello,

I have a special `makeup' for the abstract page:

\definemakeup
[abstractpage]

I also have general `makeup' setup:

\setupmakeup[
  doublesided={no},
pagestate={start},
 page={yes},
]

The footer is available from general `layout' setup:

\setuplayout[
  footer={16pt},
  header={\zeropoint},
  margin={\zeropoint},
]

Page numbering comes from general `pagenumbering' setup:

\setuppagenumbering
[location={footer}]

I'm aware that `makeup' pages don't display page numbers even though they
can count them with the `pagestate={start}' setting.  However, for this
particular `makeup' (`abstractpage') I would like to force the display of
page number.  I've tried

\startabstractpagemakeup

\setuppagenumbering
[location={footer}]

...

\stopabstractpagemakeup

in hope that `makeup' simply sets `location=' behind the scenes to hide the
page number, but it seems that I was wrong.  Is it possible to force page
number placement for a particular `makeup'?  Thanks a lot.

Kind regards,
Alexander
___
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] Force to display page number on the `makeup' page

2015-05-24 Thread Wolfgang Schuster

 Am 24.05.2015 um 21:20 schrieb Alexander Shukaev haroo...@gmail.com:
 
 Thanks, Wolfgang, that indeed does the trick.
 
 A related question.  I've noticed that global `whitespace' setup is not 
 recognized by `makeup' environment, i.e.
 
 \setupwhitespace[line]
 
 \definemakeup
 [abstractpage]
 
 \startabstractpagemakeup
 
 % `whitespace' is definitely not `line'.
 
 \stopabstractpagemakeup
 
 The trivial and ugly solution is to
 
 \definemakeup
 [abstractpage]
 
 \startabstractpagemakeup
 
 \setupwhitespace[line]
 
 % `whitespace' is definitely `line'.
 
 \stopabstractpagemakeup
 
 However, I would prefer
 
 \setupmakeup[
   commands={%
 \setupwhitespace[line]%
   },
 ]
 
 but it has no effect too.  I would like to know why and if there is a 
 alternative?
 
 By the way, the similar setting
 
 \setupmakeup[
   commands={%
 \setupinterlinespace[line={4.2ex}]%
   },
 ]
 
 does have an effect.  Once again, why?  What's the difference in this case?

The makeup environment resets the global indentation and whitespace settings.

To apply your own setups for the makeup environment you can put them in a setups
environment and enable them. The commands key can’t be used for this because
its content is flushed before context resets the value and your whitespace 
setting
is never used.

\definemakeup[abstractpage]

\startsetups[makeup:abstractpage]
  \setupwhitespace[line]
\stopsetups

\setupmakeup[abstractpage][setups=makeup:abstractpage]

\setupwhitespace[line]

\starttext

\input knuth

\startmakeup[abstractpage]
\input knuth
\stopmakeup

\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] How to properly `\setuplayout' for several pages and then restore back?

2015-05-23 Thread Alexander Shukaev
Hello,

I have a table of contents that now has grown to span several pages.
Before that I used the following setup:

\definemakeup
[contentspage]

\setupmakeup
[contentspage][%
  footerstate={stop},
  headerstate={stop},
pagestate={stop},
 page={yes},
   bottom={\vfill},
  top={},
]

\setuplayout
[contentspage][%
  footer={\zeropoint},
  header={\zeropoint},
]

\setuplayout
[contentspage][%
  footerdistance={\zeropoint},
  headerdistance={\zeropoint},
]

\startcontentspagemakeup

\setupwhitespace
[line]

% ToC

\stopcontentspagemakeup

and that indeed worked when ToC spanned only one page.  Since page breaking
does not work inside `makeup', I had ti give it up.  Now I try the
following:

\start

\setupheader[state={stop}]
\setupfooter[state={stop}]

\setuppagenumbering[state={stop}]

\setuplayout[%
  footer={\zeropoint},
  header={\zeropoint},
]

\setuplayout[%
  footerdistance={\zeropoint},
  headerdistance={\zeropoint},
]

% ToC

\stop

Why after `\stop' previous setups for `layout', `header', `footer', and
`pagenumbering' do not restore?  Is there a way to achieve this or do I
have to manually duplicate the setups which were before `\start'?  Thank
you.

Kind regards,
Alexander
___
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] vertical spacing and makeups

2015-04-18 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\showgrid
\setupinteraction[option=max]
\setuppapersize[S6]
\setuppagenumbering[location=]
\setupbodyfont[100pt]
\setupwhitespace[big]
\startsetups[setups:slides]
\setupwhitespace[big]
\stopsetups
\setupmakeup[pagestate=start]
\definemakeup[slides][setups=setups:slides]
\definemakeup[slide]
\starttext
\startmakeup[slides]\ConTeXt\stopmakeup
\startmakeup[slide]\ConTeXt\stopmakeup
\page\ConTeXt
\startmakeup[slides]program\stopmakeup
\startmakeup[slides]descender\stopmakeup
\startmakeup[slide]program\stopmakeup
\startmakeup[slide]descender\stopmakeup
\page program
\page descender
\stoptext

The first page shows that \setupwhitespace[big] affects to a single line
in a makeup. Shouldn’t white space be added only between paragraphs? The
second page is right vertically centered. And the third page shows that
the white space isn’t added before the first paragraph in a normal page
(no makeup).

This is the first issue, isn’t it a bug? Or what am I missing?

The second issue is about the line height. If I didn’t get it wrong from
Hans some days ago, line height is the x-height, plus ascender and
descender heights.

In vertical centering for makeups, why does ascender or descender height
affect to basline position? Sorry, but this is a problem for
readability. And it think it is better to center the line instead than a
group of glyphs.

Or am I missing something in this second issue too?

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] vertical spacing and makeups

2015-04-18 Thread Wolfgang Schuster

 Am 18.04.2015 um 18:43 schrieb Pablo Rodriguez oi...@gmx.es:
 
 Dear list,
 
 I have the following sample:
 
\showgrid
\setupinteraction[option=max]
\setuppapersize[S6]
\setuppagenumbering[location=]
\setupbodyfont[100pt]
\setupwhitespace[big]
\startsetups[setups:slides]
\setupwhitespace[big]
\stopsetups
\setupmakeup[pagestate=start]
\definemakeup[slides][setups=setups:slides]
\definemakeup[slide]
\starttext
\startmakeup[slides]\ConTeXt\stopmakeup
\startmakeup[slide]\ConTeXt\stopmakeup
\page\ConTeXt
\startmakeup[slides]program\stopmakeup
\startmakeup[slides]descender\stopmakeup
\startmakeup[slide]program\stopmakeup
\startmakeup[slide]descender\stopmakeup
\page program
\page descender
\stoptext
 
 The first page shows that \setupwhitespace[big] affects to a single line
 in a makeup. Shouldn’t white space be added only between paragraphs? The
 second page is right vertically centered. And the third page shows that
 the white space isn’t added before the first paragraph in a normal page
 (no makeup).
 
 This is the first issue, isn’t it a bug? Or what am I missing?

TeX inserts the \parskip value which is set by \setupwhitespace
before your text in the makeup environment. Note that this happens
only when you have skip before the text (e.g. with the default top=\vss
setting) at the begin of the environment.

The following low level example demonstrates this:

\setuppapersize[A6]

\starttext

\dontleavehmode
\ruledvbox to 3cm{\hsize=4cm text}
\ruledvbox to 3cm{\hsize=4cm\parskip=2ex\relax text}

\dontleavehmode
\ruledvbox to 3cm{\hsize=4cm\vss text\vss}
\ruledvbox to 3cm{\hsize=4cm\parskip=2ex\relax\vss text\vss}

\stoptext

 The second issue is about the line height. If I didn’t get it wrong from
 Hans some days ago, line height is the x-height, plus ascender and
 descender heights.

TeX has only a concept for the distance between the baseline of two lines,
to get a certain line height and depth at the begin and end of your text
you have to the \strut or \begstrut and \endstrut commands.

 In vertical centering for makeups, why does ascender or descender height
 affect to basline position? Sorry, but this is a problem for
 readability. And it think it is better to center the line instead than a
 group of glyphs.

\def\startSlide
  {\grabbufferdata[SlideContent][startSlide][stopSlide]}

\def\stopSlide
  {\startmakeup[standard][align=middle]
   \begstrut\getbufferdata[SlideContent]\endstrut
   \stopmakeup}

\setuppapersize[S8]
\setupbodyfont[100pt]

\showgrid

\starttext

\startSlide
program
\stopSlide

\startSlide
descender
\stopSlide

\stoptext

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

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

Re: [NTG-context] Handling line numbers in frontmatter.

2015-04-16 Thread Pablo Rodriguez
On 04/16/2015 09:19 PM, John Culleton wrote:
 In the sample shown below I get correct (roman)
 line numbers but the very first page, imported
 from plug.tex has an unwanted page number. If I
 surround that page with:
 \startstandardmakeup[doublesided=no,page=yes]
  and
 \stopstandardmakeup
 
 the page number disappears but the page count is
 wrong by one. Page numbers are roman. 

Hi John,

this isn’t wrong. Makeup pages aren’t numbered by default.

Add pagestate=start to the makeup you want to get its page numbered.

To avoid adding the same options to every single makeup, add in the
preamble:

   \setupmakeup[pagestate=start, doublesided=no, page=yes]

BTW, I don’t know whether this is is the best way to surpress page
numbers in texts. Because makeups don’t split texts in pages.

I hope it helps,


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] overlay or layer for chapter head.

2015-04-02 Thread Wolfgang Schuster

 Am 02.04.2015 um 17:12 schrieb John Culleton j...@wexfordpress.com:
 
 On Thu, 02 Apr 2015 15:10:19 +0200
 Procházka Lukáš Ing. - Pontex s. r. o.
 l...@pontex.cz mailto:l...@pontex.cz wrote:
 
 Hello,
 
 On Thu, 02 Apr 2015 14:46:11 +0200, Otared
 Kavian ota...@gmail.com wrote:
 
 Hi,
 
 Maybe you need to say state=repeat in the
 definition of your layer:
 
 \definelayer[chapterbackground][state=repeat]
 
 '[state=repeat]' causes all pages have the
 'mill' background.
 
 Best regards,
 
 Lukas
 
 
 
 I am not seeking a background but rather a
 foreground. And I only need this for 7 chapter
 heads. Here is how I put the page image into my
 context file now:
 -
 \startstandardmakeup[doublesided=no]
 \vskip -0.15in
 \hskip -0.7in
 \hbox{\externalfigure[chaphead2.pdf][width=\paperwidth,
 height=\paperheight]} \stopstandardmakeup
 \writetolist[chapter]{2}{Chapter 2: Understanding
 the Food Industry}%
 
 This works but I want a less fiddly-more
 reliable method.  

\setupexternalfigures[location=default]

\definelayer[chaptertext][width=\paperwidth,height=\paperheight]

\define[2]\ChapterCommand
  {\setlayerframed
 [chaptertext]
 [x=3cm,
  y=8cm]
 [frame=off]
 {#1 – #2}}

\definemakeup[chapterpage][page]

\setupmakeup
  [chapterpage]
  [pagestate=start,
  before={\setupbackgrounds[page][background=chapterimage]},
  bottom={\placelayer[chaptertext]}]

\defineoverlay[chapterimage][\overlayfigure{\structureuservariable{image}}]

\setuphead
  [chapter]
  [   before={\startmakeup[chapterpage]},
%command=\ChapterCommand,
   placehead=empty,
   after={\stopmakeup}]

\setuphead
  [title]
  [ before={\blank[big]},
 after={\blank[2*big]},
   command=]

\starttext

\completecontent

\startchapter[title={Understanding the Food Industry}][image=mill.png]

\input knuth

\stopchapter

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] duplicate booklet arrangement

2015-02-24 Thread Willi Egger
Hi Pablo,

..late answer ;-)

your explanation is fine. I also looked at your example in the link…

We had this discussion in earlier threads. For me as a bookbinder, your issue 
is not really something for impositioning in a restricted sense. The thing is, 
that the machinery for imposition is looping over the number of pages and puts 
them in the defined place. So if one wants to achieve what you describe, the 
machinery would have to set up in a different way. I run into this issue myself 
and I would suggest, that you are ging to use for this special purpose some 
code like this:

\def\Myfilename{quotes-1}
\def\Mypages{22}


\setuplayout
   [topspace=0mm,
   backspace=0mm,
   margin=0pt,
   header=0pt,
   footer=0pt,
   height=middle,
   width=middle,]

\definelayer[Draw][width=\paperwidth,height=\paperheight]
\setuplayer[Draw][preset=lefttop]
\setupmakeup[standard][top=,bottom=,page=yes,doublesided=no]

\starttext

\dorecurse
{\Mypages}
   {\setlayerframed
  [Draw]
  [x=0mm,y=0mm]
  [offset=overlay,frame=off,rightframe=on]
  {\externalfigure[\Myfilename][page=\recurselevel]} 
   \setlayerframed
  [Draw]
  [x=0mm,y=\dimexpr\paperheight/2]
  [offset=overlay,frame=off]
  {\externalfigure[\Myfilename][page=\recurselevel]} 

   \startstandardmakeup
  \placelayer[Draw]
   \stopstandardmakeup}
\stop

What this code does is to pick up the pages from the pdf which is made with 
e.g. 2UP arranging on A5_landscape. It puts then each page two times on a sheet 
of paper. 

Willi

p.s. I am curious about how your booklet looks like after assembly. You put 142 
pages in it with arranging 2UP.  Folding this amount of paper makes a rather 
thick booklet and I expect, that the outer margins are very small after cutting 
it square…?

 On 22 feb. 2015, at 09:26, Pablo Rodriguez oi...@gmx.es wrote:
 
 Hans,
 
 I need to generate a duplicate booklet from a PDF file.
 
 It would be like \setuparrange[2UP, singlesided]. But I need an extra
 imposition (this is what I have to do now), repeating the same booklet
 imposition one above each other.
 
 This would require a \setuppaper such as [A6][A4].
 
 The first four pages would be:
 
  last|first  last-1|first+1  last-2|first+2  last+3|first+3
  last|first  last-1|first+1  last-2|first+2  last+3|first+3
 
 Just in case I haven’t explained myself, here you have a sample:
 https://archive.org/download/ensayo-escritura/ensayo-escritura.pdf.
 
 ConTeXt was used to typeset the book and arrange the booklet. But I
 needed to use another tool for the final imposition.
 
 I think it might be useful for other users also.
 
 Could this 2UPrepeated arrangement be included in ConTeXt?
 
 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
 ___

___
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] Interactive table of content -- jumps always 1 page too far

2015-01-31 Thread Pablo Rodriguez
On 01/31/2015 05:42 PM, Rob Heusdens wrote:
 [...]
 The code looks likes this, but this examples does not exhibit the same
 faulty off-by-1-page interactive page jump behaviour. In the chapters in
 the body matter, always directly after a new chapter a section begins (in
 this example omitted).

Hi Rob,

include in your preamble the following command to avoid makeups not
being numbered as pages:

\setupmakeup[pagestate=start]

So you don’t have to worry about setting counters for userpage.

I don’t see any special problem here.

You could define a colophon makeup for the colophon:

\definemakeup[colophon][bottom=]

(BTW, I thought colophons were at the end of the book.)

I wonder what makes your links point to the next page from their
destinations.

BTW, which OS and PDF interpreter are you using?


Pablo


 \setupinteraction[state=start]
 \setuppagenumbering[location=,alternative=doublesided]
 \definemakeup
   [titlepage]
   [align=middle,style=\bf]
 \starttext
 \startfrontmatter
 Small title
 \page
 \phantom{x}\vfill
 Colofon
 \page
 \starttitlepagemakeup
 BIG TITLE
 \stoptitlepagemakeup % - empty page inserted after here, so page number
 becomes 5
 \setcounter[userpage][5] % - without this, the page number = 3
 \setuppagenumbering[location={footer,middle}]
 \completecontent
 \chapter{Introduction} \dorecurse{4}{\input zapf}
 \stopfrontmatter
 \startbodymatter
 \setuppagenumbering[location={header,middle}]
 \dorecurse{21}{\chapter{Knuth} \dorecurse{10}{\input knuth}}
 \stopbodymatter
 \startappendices
 \chapter{Appendix} \dorecurse{4}{\input zapf}
 \stopappendices
 \startbackmatter
 \chapter{Notes} \dorecurse{4}{\input zapf}
 \stopbackmatter
 \stoptext

-- 
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] Interactive table of content -- jumps always 1 page too far

2015-01-31 Thread Rob Heusdens
 On 01/31/2015 05:42 PM, Rob Heusdens wrote:
 [...]
 The code looks likes this, but this examples does not exhibit the same
 faulty off-by-1-page interactive page jump behaviour. In the chapters in
 the body matter, always directly after a new chapter a section begins
 (in
 this example omitted).

 Hi Rob,

 include in your preamble the following command to avoid makeups not
 being numbered as pages:

 \setupmakeup[pagestate=start]

 So you don’t have to worry about setting counters for userpage.

 I don’t see any special problem here.

 You could define a colophon makeup for the colophon:

 \definemakeup[colophon][bottom=]

 (BTW, I thought colophons were at the end of the book.)

 I wonder what makes your links point to the next page from their
 destinations.

 BTW, which OS and PDF interpreter are you using?


 Pablo


Hello Pablo,

The problem is NOT that the pagenumber as displayed on the page and the
page counter in the viewer ar not in sync (because that is repairable by
either setting the pagestate=start in the makeup, or by setting the page
counter directly, as I did as temoporary workaround).

The problem is that the viewer sends me to the wrong page (always off by 1
page too far) in the interactive table of contents.

So far I have not figured out where to look for, or make a MWE that
exposes the same problem.

The code I sent, resembling the setups I use and document structure I use,
did NOT expose that error, so I conclude that the problem is (most likely)
not viewer related.

I use an Evince Document Viewer 3.10.3 on Ubuntu.

If I have time I will use the \enabletrackers to see if that can direct me
to where the problem may be located.

Greetings  thanks,

Rob




___
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] workarounds required for book layouts.

2013-12-31 Thread john Culleton

For print books the half-title page is backed by a
blank page but the full title page is backed by
the copyright page. The first page of the
bodymatter (chapter 1 in most cases) is recto
faced by a blank verso. 

There are workarounds that obtain this layout.
First   \standardmakeup
command must be modified thus:
\setupmakeup[standard][page=yes, doublesided=no]

Then to get a blank page after the half title
We must insert a dummy page thus:
\startstandardmakeup
\null
\stopstandardmakeup
These two moves put a blank page 
after the half title but forbid it thereafter.

The blank page after \startbodymatter, after
\startbackmatter and after \startappendix is
provided by:
\setupsectionblock[frontpart][page=]
\setupsectionblock[bodypart] [page=]
\setupsectionblock[backpart] [page=]
\setupsectionblock[appendix] [page=]

This combination of workarounds gets the job
done. There may be other combinations that do it
as well.

My suggestion is that all the above setup
commands should be built into context. It takes
some exploration of the mailing list to ferret out
these layout techniques. I have already added
them to my boilerplate macros.tex file that I
insert in every book layout file. But others have
to discover these techniques afresh when they
start using Context for books. 

 




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


Re: [NTG-context] Extra blank page after title page.

2013-11-21 Thread john Culleton
On Thu, 21 Nov 2013 15:56:51 -0500 (EST)
Aditya Mahajan adit...@umich.edu wrote:

 On Thu, 21 Nov 2013, john Culleton wrote:
 
 
  Here is the code. first the file title.tex:
  -
  \startstandardmakeup[doublesided=no]
  (title stuff)
  \stopstandardmakeup
  ---
  and next the file copy.tex:
  --
  \startstandardmakeup[page=no]
  (contents)
  \stopstandardmakeup
  
  MY master file contains:
  \input title.tex
  \input copy.tex
  --
  An extra blank page is inserted between the
  title page and the title verso.
  If I combine the two files into a new file
  combine.tex, eliminate the two input lines
  above and say
  \input combine.tex
  instead I still get the unwanted blank page
  in between.
 
 (untested). Add doublesided=no.
 
 See http://tex.stackexchange.com/a/122349/323
 for details.
 
 Aditya


It works! Thanks for your help.

I added these lines to my macros.tex file which gets read first:

\setuppagenumbering[alternative=doublesided]
\setupmakeup[standard][page=yes, doublesided=no]

Then to preserve the blank page after my half
title (where I really want it) I changed my
master file to read as follows:

\input macros.tex
\starttext
\startfrontmatter
\input variables.tex
\input half.tex
\startstandardmakeup %new
\null%new  
\stopstandardmakeup  %new
\input title.tex
\input copy.tex
%\input ded.tex
\stopfrontmatter
\startbodymatter
%\input body.tex
\stopbodymatter
\stoptext

Lines 6-8 in the above file give me a blank page.

This will now be my standard master file. I hope
that the next revision of the manual will
include this fix.

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



-- 
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] middle align without ascenders and descenders

2013-11-14 Thread Pablo Rodriguez
Dear list,

I have the following code:

\setuppapersize[S6]
\usemodule[simplefonts][size=340pt]
\setmainfont[TeX Gyre Pagella]
\setupmakeup[standard][align=middle]
\starttext
\startstandardmakeup
aa
\stopstandardmakeup

\startstandardmakeup
db
\stopstandardmakeup

\startstandardmakeup
pq
\stopstandardmakeup
\stoptext

This sample shows something that I want to avoid: when centering text
vertically, is there a way that by default the text would be centered
not taking in account ascenders and descenders?

So the text in the sample above would be read at the same height in the
three slides.

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] middle align without ascenders and descenders

2013-11-14 Thread Wolfgang Schuster

Am 14.11.2013 um 22:27 schrieb Pablo Rodriguez oi...@gmx.es:

 Dear list,
 
 I have the following code:
 
 \setuppapersize[S6]
 \usemodule[simplefonts][size=340pt]
 \setmainfont[TeX Gyre Pagella]
 \setupmakeup[standard][align=middle]
 \starttext
 \startstandardmakeup
 aa
 \stopstandardmakeup
 
 \startstandardmakeup
 db
 \stopstandardmakeup
 
 \startstandardmakeup
 pq
 \stopstandardmakeup
 \stoptext
 
 This sample shows something that I want to avoid: when centering text
 vertically, is there a way that by default the text would be centered
 not taking in account ascenders and descenders?
 
 So the text in the sample above would be read at the same height in the
 three slides.


Does this what you want?

\startstandardmakeup
\strut aa
\stopstandardmakeup

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] overlay lifts image slightly

2013-07-21 Thread Pablo Rodríguez
Dear list,

I have the following sample code (http://www.ousia.tk/overlay.pdf):

\setuppapersize[S6]
\usemodule[simplefonts][size=30pt]
\definesimplefonttypeface[sfserif][Free Serif][scale=10]
\setupmakeup[standard][align=middle]
\starttext

\startstandardmakeup
\dontleavehmode\externalfigure[text-icon.pdf]
[scale=5000]
\stopstandardmakeup

\startstandardmakeup
\dontleavehmode\startoverlay
  {\externalfigure[text-icon.pdf]
[scale=5000]}{\sfserif\color[red]{✘}}\stopoverlay\stopoverlay
\stopstandardmakeup

\stoptext

For some reason unknown to me, the overlay in the second slide has the
background image slightly lifted. All I have realized is that replacing
✘ with x shows no image lift, but I need ✘.

Is there any way to avoid this image lift?

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] overlay lifts image slightly

2013-07-21 Thread Wolfgang Schuster

Am 21.07.2013 um 19:13 schrieb Pablo Rodríguez oi...@web.de:

 Dear list,
 
 I have the following sample code (http://www.ousia.tk/overlay.pdf):
 
\setuppapersize[S6]
\usemodule[simplefonts][size=30pt]
\definesimplefonttypeface[sfserif][Free Serif][scale=10]
\setupmakeup[standard][align=middle]
\starttext
 
\startstandardmakeup
\dontleavehmode\externalfigure[text-icon.pdf]
[scale=5000]
\stopstandardmakeup
 
\startstandardmakeup
\dontleavehmode\startoverlay
  {\externalfigure[text-icon.pdf]
[scale=5000]}{\sfserif\color[red]{✘}}\stopoverlay\stopoverlay
\stopstandardmakeup
 
\stoptext
 
 For some reason unknown to me, the overlay in the second slide has the
 background image slightly lifted. All I have realized is that replacing
 ✘ with x shows no image lift, but I need ✘.
 
 Is there any way to avoid this image lift?

You have to increase the size of the image to mage it bigger than the ✘, you 
can do this
by wrapping it into a frame, e.g. 
\framed[frame=off,offset=1cm]{\externalfigure[…]}.

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] overlay lifts image slightly

2013-07-21 Thread Pablo Rodríguez
On 21/07/13 19:24, Wolfgang Schuster wrote:
 Am 21.07.2013 um 19:13 schrieb Pablo Rodríguez oi...@web.de:
 [...]
 For some reason unknown to me, the overlay in the second slide has the
 background image slightly lifted. All I have realized is that replacing
 ✘ with x shows no image lift, but I need ✘.

 Is there any way to avoid this image lift?
 
 You have to increase the size of the image to mage it bigger than the ✘, you 
 can do this
 by wrapping it into a frame, e.g. 
 \framed[frame=off,offset=1cm]{\externalfigure[…]}.

Many thanks for your gast reply, Wolfgang.

I‘m afraid that the frame itself lifts the image. Frame and overlay lift
the image also. PDF at http://ousia.tk/overlay.pdf.

I must be doing something wrong. Here is my code:

\setuppapersize[S6]
\setupinteraction[state=start]
\setupinteractionscreen[option=max]
\usemodule[simplefonts][size=30pt]
\setmainfont[KerkisSans]
\definesimplefonttypeface[sfserif][Free Serif][scale=10]
\setupmakeup[standard][align=middle]
\starttext

\startstandardmakeup
\dontleavehmode\externalfigure[Documents/Presentations/al-abordaje/text-icon.pdf]
[scale=5000]
\stopstandardmakeup

\startstandardmakeup
\dontleavehmode\framed[frame=on,offset=1cm]{\externalfigure[Documents/Presentations/al-abordaje/text-icon.pdf][scale=5000]}
\stopstandardmakeup

\startstandardmakeup
\dontleavehmode\startoverlay{\framed[frame=on,offset=1cm]{\externalfigure[Documents/Presentations/al-abordaje/text-icon.pdf][scale=5000]}}{\sfserif\color[red]{✘}}\stopoverlay\stopoverlay
\stopstandardmakeup

\stoptext

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] Section in golden ratio?

2013-07-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

thanks Peter and Wolfgang for their answers.

Both following codes work:

 P.
\setuplayout[page]

\define\bef{\page\vbox to\textheight\bgroup\vfill\vfill}
\define\aft{\vfill\vfill\vfill\egroup}

\setuphead[section]
  [before=\bef,after=\aft,
   %commandbefore=\cbef,commandafter=\caft,
   alternative=middle,
  ]

\starttext
  \section{AAA}
\stoptext


 W.
\setuplayout[page]

\definemakeup[section]%[text]
\setupmakeup[section][top=\vfill\vfill,bottom=\vfill\vfill\vfill]

\setuphead[section]
 [before=\startsectionmakeup,
  after=\stopsectionmakeup,
  alternative=middle,
 ]

%\setuplabeltext[section=Section ]

\starttext
  \section{AAA}
\stoptext


@Peter: There were some typos, of course, due to testing; fixed here.

@Wolfgang: What does option [text] in your original 
\definemakeup[section][text] mean? Not much wiser from wiki.

To both:

How to make the label written into one line instead of its number be above the 
section name, i.e.


1 AAA


instead of


 1
AAA


Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

t2.mkiv
Description: Binary data


t2.pdf
Description: Adobe PDF document


t3.mkiv
Description: Binary data


t3.pdf
Description: Adobe PDF document
___
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] Section in golden ratio?

2013-07-03 Thread Wolfgang Schuster

Am 03.07.2013 um 17:13 schrieb Peter Rolf indi...@gmx.net:

 Am 03.07.2013 16:10, schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
 Hello,
 
 I'm trying to setup section to be placed vertically in the golden ratio
 of the page, i.e. cca 2 units above the section and 3 units bellow.
 
 How to achieve this?
 
 My code so far is:
 
 
 \setuplayout[page]
 
 \define\bef{\page\hbox to\textheight\bgroup\vfill\vfill\fi}
 
 - use a \vbox (you need vertical mode here) instead of a \hbox

The makeup environment creates a big \vbox for its content.

\setuplayout[page]

\definemakeup[section][text]

\setupmakeup
  [section]
  [top=\vfill\vfill,bottom=\vfill\vfill\vfill]

\setuphead[section]
 [before=\startsectionmakeup,
  after=\stopsectionmakeup,
  alternative=middle]

\setuplabeltext[section=Section ]

\starttext
\section{AAA}
\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] How to typeset the titlepage and its verso in ConTeXt?

2013-04-16 Thread Tim Li



I try to typeset the titlepage and its verso using ConTeXt, but it always 
generate an empty page on the right if facing. 
 
\setupinteraction
  
   [state=stop,
   
 title=Life in These Days,
   
 author=Tim Li]

\setupinteractionscreen
  
   [option=doublesided]


 
\usetypescript[palatino]

\setupbodyfont[palatino,12pt]


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


 
\setupmakeup
  
   [standard]
  
   [pagestate=start]


 
\starttext


\startfrontmatter

% titlepage

\startmakeup[standard]  %[doublesided=no]

\vskip2in

\midaligned{\switchtobodyfont[36pt]\bf Life in These Days}

\vfill

\midaligned{\switchtobodyfont[20pt]\bf Tim Li}

\blank[medium]

\midaligned{\switchtobodyfont[20pt]\bf January 11, 2013}

\stopmakeup


% its verso

\startmakeup[standard]
  %[page=no]
This document was typeset by using \CONTEXT.

\vfill

\stopmakeup
% dedication
%
preface
% contents
\stopfrontmatter
 
\startbodymatter

% 

\stopbodymatter

\stoptext
 
If add [doubesided=no] to the first \startmakeup[standard] that produce the 
titlepage, it will produce a page with page number 2 at the right of the 
titlepage and the verso of this titlepage will be the next page following page 
2. That's not what I want.
 
How to set the options of the \startmakeup so that I can typeset the titlepage 
with its verso just after it. If so, when  the document is printed, the 
titlepage and its verso will be presented on the same paper like that in the 
ConTeXt manual(if printed, the tiltepage and its verso of the manual will be on 
the same paper).

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

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

Re: [NTG-context] How to typeset the titlepage and its verso in ConTeXt?

2013-04-16 Thread Wolfgang Schuster

Am 16.04.2013 um 17:41 schrieb Tim Li timli2...@outlook.com:

 I try to typeset the titlepage and its verso using ConTeXt, but it always 
 generate an empty page on the right if facing. 
  
 \setupinteraction
 [state=stop,
  title=Life in These Days,
  author=Tim Li] 
 \setupinteractionscreen   
[option=doublesided] 
  
 \usetypescript[palatino] 
 \setupbodyfont[palatino,12pt] 
  
 \setuppagenumbering   
[location={footer,middle},
 alternative=doublesided] 
  
 \setupmakeup   
[standard]   
[pagestate=start]  

\setupmakeup
  [standard]
  [pagestate=start,
   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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] How to typeset the titlepage and its verso in ConTeXt?

2013-04-16 Thread Tim Li
Thanks very much, it works exactly!
 From: schuster.wolfg...@gmail.com
Date: Tue, 16 Apr 2013 17:51:15 +0200
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] How to typeset the titlepage and its verso in
ConTeXt?


Am 16.04.2013 um 17:41 schrieb Tim Li timli2...@outlook.com:





I try to typeset the titlepage and its verso using ConTeXt, but it always 
generate an empty page on the right if facing. 
 
\setupinteraction
  
   [state=stop,
   
 title=Life in These Days,
   
 author=Tim Li]

\setupinteractionscreen
  
   [option=doublesided]


 
\usetypescript[palatino]

\setupbodyfont[palatino,12pt]


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


 
\setupmakeup
  
   [standard]
  
   [pagestate=start]
 
\setupmakeup  [standard]  [pagestate=start,   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  : 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] eliminate blank page.

2013-03-30 Thread Wolfgang Schuster

Am 30.03.2013 um 19:02 schrieb john Culleton j...@wexfordpress.com:

 OK I am trying to be a good boy and use \component instead of
 \input in MKIV but my problem persists. I have a file called title.tex
 which should be followed on the next page (title verso) by the file
 copy.tex. but a blank page occurs between the two. Here is title.tex:
 
 ---
 
 \startstandardmakeup[doublesided=no]
 \vskip .75in 
 \midaligned{\tfd\ss\bf Inkscape}
 \vskip .30in
 \midaligned{\tfc\ss\bf for}
 \vskip .30in
 \midaligned{\tfd\ss\bf  Book Cover Design}
 \vfil
 \midaligned{\tfb\ss\bf Open Source Solutions}
 \vskip .40in
 \midaligned{\tfb\ss\bf \authorname}
 \vskip .30in
 \midaligned{\bf \publisher}
 \stopstandardmakeup
 
 And here is copy.tex:
 
 
 \startstandardmakeup[page=no]
 {\bf \booktitle}
 {\obeylines
 Copyright \copyright\ 2013 \authorname
 
 All rights reserved.
 \ISBN
 \vfil
 \publisher
 \street
 \citystatezip
 }
 
 \stopstandardmakeup
 ---
 
 I have tried \inputting the files and calling the files with
 \component. Can't get the blank page in between to disappear. 


Add this line to your environment file:

\setupmakeup[standard][page=] % default: page=right

This line is necessary because standardmakeup block do force a right page by 
default.

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] eliminate blank page.

2013-03-30 Thread john Culleton
On Sat, 30 Mar 2013 19:09:39 +0100
Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
 Am 30.03.2013 um 19:02 schrieb john Culleton j...@wexfordpress.com:
 
  OK I am trying to be a good boy and use \component instead of
  \input in MKIV but my problem persists. I have a file called
  title.tex which should be followed on the next page (title verso)
  by the file copy.tex. but a blank page occurs between the two. Here
  is title.tex:
  
  ---
  
  \startstandardmakeup[doublesided=no]
  \vskip .75in 
  \midaligned{\tfd\ss\bf Inkscape}
  \vskip .30in
  \midaligned{\tfc\ss\bf for}
  \vskip .30in
  \midaligned{\tfd\ss\bf  Book Cover Design}
  \vfil
  \midaligned{\tfb\ss\bf Open Source Solutions}
  \vskip .40in
  \midaligned{\tfb\ss\bf \authorname}
  \vskip .30in
  \midaligned{\bf \publisher}
  \stopstandardmakeup
  
  And here is copy.tex:
  
  
  \startstandardmakeup[page=no]
  {\bf \booktitle}
  {\obeylines
  Copyright \copyright\ 2013 \authorname
  
  All rights reserved.
  \ISBN
  \vfil
  \publisher
  \street
  \citystatezip
  }
  
  \stopstandardmakeup
  ---
  
  I have tried \inputting the files and calling the files with
  \component. Can't get the blank page in between to disappear. 
 
 
 Add this line to your environment file:
 
 \setupmakeup[standard][page=] % default: page=right
 
 This line is necessary because standardmakeup block do force a right
 page by default.
 
 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
 ___

Thanks. That works. The 2001 manual updated says on page 98 that 
\startstandardmakeup[doublesided=no]
the front
\stopstandardmakeup
\startstandardmakeup[page=no]
...the back
\stopstandardmakeup 
should have eliminated the blank page. Hence my confusion.

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


Re: [NTG-context] standardmakeup...

2012-01-17 Thread Willi Egger
Hi Wolfgang,

thanks for enlighten me! - This works.

Willi
On 16 Jan 2012, at 23:04, Wolfgang Schuster wrote:

 
 Am 16.01.2012 um 22:44 schrieb Willi Egger:
 
 Dear all,
 
 I tried to recompile a booklet. Then I realized that whatever I give for 
 arguments the standardmakeup environment gives me an empty page although it 
 should give only after the first standarmakeup an empty page but not after 
 the second standardmakeup. - This behavior is encountered in all versions of 
 Context I have on my machine based on luatex 0.70, including todays beta.
 
 May be I miss something?
 
 Change
 
   \setupmakeup[standard][bottom=,top=]
 
 to
 
   \setupmakeup[standard][bottom=,top=,page=yes]
 
 BTW: The makeup environment has a align key (you can use this to get rid of 
 all the \centerline and \leftaligned settings) and the font command (\bf, \bs 
 etc.) don’t take argument and you can remove the braces.
 
 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] standardmakeup...

2012-01-16 Thread Wolfgang Schuster

Am 16.01.2012 um 22:44 schrieb Willi Egger:

 Dear all,
 
 I tried to recompile a booklet. Then I realized that whatever I give for 
 arguments the standardmakeup environment gives me an empty page although it 
 should give only after the first standarmakeup an empty page but not after 
 the second standardmakeup. - This behavior is encountered in all versions of 
 Context I have on my machine based on luatex 0.70, including todays beta.
 
 May be I miss something?

Change

   \setupmakeup[standard][bottom=,top=]

to

   \setupmakeup[standard][bottom=,top=,page=yes]

BTW: The makeup environment has a align key (you can use this to get rid of all 
the \centerline and \leftaligned settings) and the font command (\bf, \bs etc.) 
don’t take argument and you can remove the braces.

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] doublesided=no ignored on \startstandardmakeup with the latest beta

2011-11-12 Thread Wolfgang Schuster

Am 12.11.2011 um 10:08 schrieb Marco Pessotto:

 
 Hi!
 
 See the next minimal example (copied from Layout in Context):
 
 
 \setuppagenumbering[alternative=doublesided]
 \starttext
 \startstandardmakeup[doublesided=no]
 ...the front
 \stopstandardmakeup
 \startstandardmakeup[page=no]
 ...the back
 \stopstandardmakeup
 \stoptext
 
 
 The manual says it should generate 2 pages with no page number. With
 current (2011.05.18) this indeed happens. With the latest beta I have 4
 pages:
 
 ...the front
 
 [1]
 
 ...the back
 
 [empty page]
 
 I guess there's a bug somewhere.

The argument of makeup commands are processed after context switch to the right 
page and your setting “page=no” comes to late. Make the changes at the begin of 
the document with \setupmakeup and you don’t get the extra page.

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

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


Re: [NTG-context] doublesided=no ignored on \startstandardmakeup with the latest beta

2011-11-12 Thread Marco Pessotto
Wolfgang Schuster schuster.wolfg...@googlemail.com writes:

 The argument of makeup commands are processed after context switch to
 the right page and your setting “page=no” comes to late. Make the
 changes at the begin of the document with \setupmakeup and you don’t
 get the extra page.


Thanks for your reply. With the following example I still have 4 pages, 

the front 
[empty]
the back
[empty]

%%% start example

\setuppagenumbering[alternative=doublesided]
\setupmakeup[page=no,doublesided=no]

\starttext

\startstandardmakeup
...the front
\stopstandardmakeup
\startstandardmakeup
...the back
\stopstandardmakeup

\stoptext
%%% stop example.

However, defining a custom makeup works.

%%% start working example
\setuppagenumbering[alternative=doublesided]
\definemakeup[mypage][page=no,doublesided=no]

\starttext

\startmypagemakeup
...the front
\stopmypagemakeup
\startmypagemakeup
...the back
\stopmypagemakeup

\stoptext
%%% stop

Best wishes.

-- 
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] doublesided=no ignored on \startstandardmakeup with the latest beta

2011-11-12 Thread Wolfgang Schuster

Am 12.11.2011 um 17:42 schrieb Marco Pessotto:

 Wolfgang Schuster schuster.wolfg...@googlemail.com writes:
 
 The argument of makeup commands are processed after context switch to
 the right page and your setting “page=no” comes to late. Make the
 changes at the begin of the document with \setupmakeup and you don’t
 get the extra page.
 
 
 Thanks for your reply. With the following example I still have 4 pages, 
 
 the front 
 [empty]
 the back
 [empty]
 
 %%% start example
 
 \setuppagenumbering[alternative=doublesided]
 \setupmakeup[page=no,doublesided=no]

\setupmakeup[standard][…]

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] doublesided=no ignored on \startstandardmakeup with the latest beta

2011-11-12 Thread Marco Pessotto
Wolfgang Schuster schuster.wolfg...@googlemail.com writes:

 Am 12.11.2011 um 17:42 schrieb Marco Pessotto:

 Wolfgang Schuster schuster.wolfg...@googlemail.com writes:
 
 The argument of makeup commands are processed after context switch to
 the right page and your setting “page=no” comes to late. Make the
 changes at the begin of the document with \setupmakeup and you don’t
 get the extra page.
 
 
 Thanks for your reply. With the following example I still have 4 pages, 
 
 the front 
 [empty]
 the back
 [empty]
 
 %%% start example
 
 \setuppagenumbering[alternative=doublesided]
 \setupmakeup[page=no,doublesided=no]

 \setupmakeup[standard][…]


This indeed works.

Thanks!


-- 
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] Standardmakeup

2011-10-21 Thread Willi Egger
Thank you Wolfgang.

I do not remember but there was a time where \godown would not work without the 
strut. So I have mistaken this. And indeed the result is ok whithout the start- 
stoplines.

Thanks!

Willi
On 20 Oct 2011, at 15:42, Wolfgang Schuster wrote:

 
 Am 19.10.2011 um 22:03 schrieb Willi Egger:
 
 Hi,
 
 Hans told me, that one needs to set before and after for the lines to nil. 
 Indeed that solves the problem as long as you do not want to insert extra 
 white space between the lines. The effect of moving down the lines occurs 
 also with inserting an empty line.
 
 Add \vfill before \stopstandardmakeup.
 
 \setupmakeup[standard][top=,bottom=]
 \setuplines[before=,after=]
 
 \starttext
 \startstandardmakeup[doublesided=no,page=yes]
  \strut
  \godown[.25\textheight]
  \startalignment[middle]
  \startlines
  {\bfd Der Titel}
  \blank[line]
  {\bf De Untertitel}
  \stoplines
  \stopalignment
 \stopstandardmakeup
 \stoptext 
 
 
 You don’t need the lines environment because with the blank you get two 
 separate lines
 and the \strut is a bad idea because you get at the top a extra line with the 
 command.
 
 \startstandardmakeup[doublesided=no,align=middle,page=yes]
   \godown[.25\textheight]
   {\bfd Der Titel}
   \blank[line]
   {\bf De Untertitel}
   \vfill
 \stopstandardmakeup
 
 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] Standardmakeup

2011-10-20 Thread Wolfgang Schuster

Am 19.10.2011 um 22:03 schrieb Willi Egger:

 Hi,
 
 Hans told me, that one needs to set before and after for the lines to nil. 
 Indeed that solves the problem as long as you do not want to insert extra 
 white space between the lines. The effect of moving down the lines occurs 
 also with inserting an empty line.

Add \vfill before \stopstandardmakeup.

 \setupmakeup[standard][top=,bottom=]
 \setuplines[before=,after=]
 
 \starttext
 \startstandardmakeup[doublesided=no,page=yes]
   \strut
   \godown[.25\textheight]
   \startalignment[middle]
   \startlines
   {\bfd Der Titel}
   \blank[line]
   {\bf De Untertitel}
   \stoplines
   \stopalignment
 \stopstandardmakeup
 \stoptext 


You don’t need the lines environment because with the blank you get two 
separate lines
and the \strut is a bad idea because you get at the top a extra line with the 
command.

\startstandardmakeup[doublesided=no,align=middle,page=yes]
\godown[.25\textheight]
{\bfd Der Titel}
\blank[line]
{\bf De Untertitel}
\vfill
\stopstandardmakeup

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] Standardmakeup

2011-10-19 Thread Willi Egger
Hi,

When using the \startstandardmakeup ... \stopstandardmakeup the text gets 
vertically centered on the page. Normally \setupmakeup[standard][top=,bottom=] 
would produce the text vertically aligned normally. However in the beta of 
today  \setupmakeup[standard][top=,bottom=] has no effect and the text is 
aligned vertically centered. - Do I miss something?

Willi
___
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] Standardmakeup

2011-10-19 Thread Hans Hagen

On 19-10-2011 17:05, Willi Egger wrote:

Hi,

When using the \startstandardmakeup ... \stopstandardmakeup the text gets 
vertically centered on the page. Normally \setupmakeup[standard][top=,bottom=] 
would produce the text vertically aligned normally. However in the beta of 
today  \setupmakeup[standard][top=,bottom=] has no effect and the text is 
aligned vertically centered. - Do I miss something?


afaik nothing has been changes in that code for a while

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

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


Re: [NTG-context] Standardmakeup

2011-10-19 Thread Wolfgang Schuster

Am 19.10.2011 um 17:05 schrieb Willi Egger:

 Hi,
 
 When using the \startstandardmakeup ... \stopstandardmakeup the text gets 
 vertically centered on the page. Normally 
 \setupmakeup[standard][top=,bottom=] would produce the text vertically 
 aligned normally. However in the beta of today  
 \setupmakeup[standard][top=,bottom=] has no effect and the text is aligned 
 vertically centered. - Do I miss something?

Make a example, I can’t reproduce your mentioned results.

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] Standardmakeup

2011-10-19 Thread Hans Hagen

On 19-10-2011 19:54, Wolfgang Schuster wrote:


Am 19.10.2011 um 17:05 schrieb Willi Egger:


Hi,

When using the \startstandardmakeup ... \stopstandardmakeup the text gets 
vertically centered on the page. Normally \setupmakeup[standard][top=,bottom=] 
would produce the text vertically aligned normally. However in the beta of 
today  \setupmakeup[standard][top=,bottom=] has no effect and the text is 
aligned vertically centered. - Do I miss something?


Make a example, I can’t reproduce your mentioned results.


FYI (and setups project): I just mkvi'd the code so we have chaining. 
Also it wil use a defined layout with the same name if defined.


Hans


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

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


Re: [NTG-context] Standardmakeup

2011-10-19 Thread Willi Egger
Hi,

Hans told me, that one needs to set before and after for the lines to nil. 
Indeed that solves the problem as long as you do not want to insert extra white 
space between the lines. The effect of moving down the lines occurs also with 
inserting an empty line.

\setupmakeup[standard][top=,bottom=]
\setuplines[before=,after=]

\starttext
\startstandardmakeup[doublesided=no,page=yes]
\strut
\godown[.25\textheight]
\startalignment[middle]
\startlines
{\bfd Der Titel}
\blank[line]
{\bf De Untertitel}
\stoplines
\stopalignment
\stopstandardmakeup
\stoptext 

Willi
On 19 Oct 2011, at 19:54, Wolfgang Schuster wrote:

 
 Am 19.10.2011 um 17:05 schrieb Willi Egger:
 
 Hi,
 
 When using the \startstandardmakeup ... \stopstandardmakeup the text gets 
 vertically centered on the page. Normally 
 \setupmakeup[standard][top=,bottom=] would produce the text vertically 
 aligned normally. However in the beta of today  
 \setupmakeup[standard][top=,bottom=] has no effect and the text is aligned 
 vertically centered. - Do I miss something?
 
 Make a example, I can’t reproduce your mentioned results.
 
 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
___


[NTG-context] running headers on postponed makeup

2010-12-18 Thread Philipp Gesang
Hi all,

after discovering postponed insertions I encountered a problem
when combining it with the makeup mechanism I am so fond of.

···8

\definemakeup[my]
\setupmakeup[my][
  headerstate=start,
  page=yes,
]

\startbuffer[mkup]
  \startmymakeup
\vfill\externalfigure[cow][width=\hsize]\vfill
  \stopmymakeup
\stopbuffer

\setuppagenumbering[alternative=doublesided,location=footer]
\setupheadertexts [{\getmarking[section]}] [outer] [outer] 
[{\getmarking[section]}]

\starttext

\startpostponing[+2]
  \getbuffer[mkup]
\stoppostponing

\dorecurse{10}{\section{the Don spake} \input knuth }

\stoptext

···8

Is there way to get the running header on the makeup page?
Tweaking the “headerstate” does not seem to have an effect on
this.

Thanks in advance, Philipp


-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


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


[NTG-context] Lost document background

2010-05-24 Thread Wolfgang Schuster

Hi Hans,

under certain circumstances document backgrounds (overlays) are lost.


A minimum real live example is this:

\definelayer[test]

\setuppagenumbering[alternative=doublesided]

\setupmakeup[standard][doublesided=empty] % background is lost
%\setupmakeup[standard][doublesided=yes]   % background is visible

\startsetups[test]
\setlayer[test][hoffset=4cm,voffset=7cm]{\tfd text}
\stopsetups

\setupbackgrounds[page][background=test,setups=test]

\starttext

\startstandardmakeup
text
\stopstandardmakeup

test

\stoptext

With 'doublesided=yes' the background is visible but with 
'doublesided=empty'

no background is shown.


I spend a few hours to find the reason for this and i was able to produce
a shorter example:

\defineoverlay[test][\tfd text]

\setupbackgrounds[page][background=test,state=repeat]

\starttext

text\page\page[blank]\null\page

%\chardef\pageornamentstate\zerocount

text

\stoptext

The problem is that '\page[blank]' sets \pageornamentstate at global 
level to '1'.



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] Lost document background

2010-05-24 Thread Wolfgang Schuster

Am 24.05.10 10:48, schrieb Wolfgang Schuster:

Hi Hans,

under certain circumstances document backgrounds (overlays) are lost.


A minimum real live example is this:

\definelayer[test]

\setuppagenumbering[alternative=doublesided]

\setupmakeup[standard][doublesided=empty] % background is lost
%\setupmakeup[standard][doublesided=yes]   % background is visible

\startsetups[test]
\setlayer[test][hoffset=4cm,voffset=7cm]{\tfd text}
\stopsetups

\setupbackgrounds[page][background=test,setups=test]

\starttext

\startstandardmakeup
text
\stopstandardmakeup

test

\stoptext

With 'doublesided=yes' the background is visible but with 
'doublesided=empty'

no background is shown.


I spend a few hours to find the reason for this and i was able to produce
a shorter example:

\defineoverlay[test][\tfd text]

\setupbackgrounds[page][background=test,state=repeat]

\starttext

text\page\page[blank]\null\page

%\chardef\pageornamentstate\zerocount

text

\stoptext

The problem is that '\page[blank]' sets \pageornamentstate at global 
level to '1'.


I found a fix in a older ConTeXt version:

\def\dopagebreak[#1]% so, page ornaments are reset after a pagebreak 
command, unless set

  {\bgroup
   \flushnotes
   \edef\prevrealpageno{\the\realpageno}%
   \ifcase\pageornamentstate \or
 % disable reset after shipout
 \global\chardef\pageornamentstate\plustwo
   \fi
   \iffirstargument % or if empty i.e. []
 \executepagebreakhandlers{#1}%
   \else % so, no pagebreak when \pagebreak[] ! ! !
 \executepagebreakhandler\v!yes
   \fi
   \ifnum\prevrealpageno\realpageno
 \global\chardef\pageornamentstate\zerocount
   \fi
   \egroup}

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] \startmakeup

2010-05-22 Thread Taco Hoekwater

Vyatcheslav Yatskovsky wrote:

Hi Wolfgang,

  \startmakeup is the internal command for \startstandardmakeup which is
  created with \definemakup[standard].

Thank you for making this more clear.

1) \startstandardmakeup is extensively used but not found in the wiki 
command reference. Why?


Because it is a derived command, and most/all of those are not
in the command reference yet (for example, neither is \startitemize,
which is derived from \defineitemgroup).

2) What \startstandardmakeup do then? And what is the purpose of 
defining custom makeups?


From the source (and I am positive this is also mentioned in the
big manual):

%D A makeup is a separate page, like a title page or colofon.
%D There is one standard makeup page, but you can define more
%D if needed.

As can be seen in

  http://wiki.contextgarden.net/Reference/en/setupmakeup

it is a page type with a special layout / header  footer sections
that last only temporarily. The key point is that such a page
does not (have to) rely on the current page layout style, which
is especially useful for title pages.

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

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


Re: [NTG-context] 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] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
# \processaction
# \processallactionsinset
\processblocks[names][names]
# \processcommacommand
# \processcommalist
# \processfirstactioninset
\processpage[names][yes|no]
# \processXMLbuffer
# \processXMLelement
# \processXMLfile
# \processXMLfilegrouped
# \product
\program[name]
# \project
# \protect
\publication[reference]
\quotation{text}
\quote{text}
\ran{text}
# \readfile
\ref[t|p|r|s|e][reference]
\reference[reference]{text}
\referral[options]
\referraldate
\register[text]{register+register+register}
\reservefloat[options][text][references]{text}
\reset[names]
# \resetlayer
\resetmarking[name]
\rightaligned{text}
\Romannumerals{text}
\romannumerals{text}
\rotate[settings]{text}
# \saveXMLasdata
# \saveXMLdata
# \saveXMLelement
# \sbox
\scale[options]{text}
# \scratchbox
# \scratchcounter
# \scratchdimen
# \scratchskip
\screen
\section[references]{text}
\seeregister[text]{text}{text+text+text}
\selectblocks[names][names][critererium]
\selectpaper[options]
\selectversion
# \setcollector
# \setevalue
# \setevariables
# \setflag
# \setfontstrut
# \setgvalue
# \setgvariables
# \setlayer
# \setlayerframed
# \setlocalhsize
# \setstrut
\settextvariable[name]{text}
\setupalign[options]
\setuparranging[options]
# \setupattachments
\setupbackground[options]
\setupbackgrounds[position][position][state][settings]
\setupblackrules[options]
\setupblank[options]
\setupblock[names][options]
\setupbodyfont[options]
\setupbodyfontenvironment[settings][settings]
\setupbottom[settings][settings]
\setupbottomtexts[text|margin|edge][text|section|date|mark|pagenumber][text|section|date|mark|pagenumber]
\setupbuffer[name][options]
\setupbuttons[state][settings]
\setupcapitals[title=yes|no][sc=yes|no]
\setupcaption[name][settings]
\setupcaptions[options]
\setupclipping[options]
\setupcolor[name]
\setupcolors[options]
\setupcolumns[options]
\setupcombinations[options]
\setupcombinedlist[name][levels and options]
\setupcomment[options]
\setupdescriptions[names][options]
# \setupencoding
\setupenumerations[names][settings]
\setupexternalfigures[options]
\setupfield[name][label|horizontal|vertical|frame][settings]
\setupfields[names][reset|label|horizontal|vertical|frame][options][settings][settings]
\setupfillinlines[options]
\setupfillinrules[options]
\setupfloat[name][options]
\setupfloats[options]
\setupfloatsplitting[options]
# \setupFLOWcharts
# \setupFLOWlines
# \setupFLOWshapes
# \setupfontsynonym
\setupfooter[text|margin|edge][options]
\setupfootertexts[text|margin|edge][text|section|date|mark|pagenumber][text|section|date|mark|pagenumber]
\setupfootnotedefinition[settings]
\setupfootnotes[options]
\setupforms[method=HTML|FDF]
\setupformulae[options]
\setupframed[options]
\setupframedtexts[options]
\setuphead[sections][options]
\setupheader[text|margin|edge][options]
\setupheadertexts[text|margin|edge][text|section|date|mark|pagenumber][text|section|date|mark|pagenumber]
\setupheadnumber[section][number|+number|-number]
\setupheads[options]
\setupheadtext[language code][name=text]
\setuphyphenmark[sign=-|--|---|( )|=|/]
\setupindentations[names][options]
\setupindenting[none|small|medium|big|next|first|normal|odd|even|dimension]
\setupinmargin[left|right|number][options]
\setupinteraction[options]
\setupinteractionbar[options]
\setupinteractionscreen[options]
\setupinterlinespace[reset|small|medium|auto|big|on|off][options]
\setupitemgroup[name][number|each][options][options]
\setupitems[options]
\setuplabeltext[language code][name=text]
\setuplanguage[language code][settings]
# \setuplayer
\setuplayout[options]
\setuplegend[options]
\setuplinenumbering[options]
\setuplines[options]
\setuplinewidth[dimension]
\setuplist[names][options]
\setupmakeup[name][options]
\setupmarginblocks[options]
\setupmarginrules[level=number|rulethickness=dimension]
\setupmarking[name][options]
\setupnarrower[options]
\setupnumbering[options]
\setupoppositeplacing[options]
\setupoutput[names]
\setuppagenumber[number][state=start|stop|keep]
\setuppagenumbering[options]
\setuppagetransitions[options]
\setuppalet[name]
\setuppaper[options]
\setuppapersize[typesetting papersize][printing papersize]
\setupparagraphnumbering[options]
\setupparagraphs[name][number|each][options]
\setuppositioning[options]
\setupprofiles[options]
\setupprograms[directory=text]
\setuppublications[options]
\setupquote[options]
\setupreferencelist[names][options]
\setupreferencing[options]
\setupregister[singular][name][options]
\setuprotate[options]
\setuprule[name][options]
# \setups
\setupscreens[options]
\setupsection[name][name][options]
\setupsectionblock[name][options]
\setupsorting[name][options]
\setupspacing[broad|packed]
\setupstrut[yes|no|cap|text]
\setupsubpagenumber[options]
\setupsymbolset[name]
\setupsynchronization[state=start|stop]
\setupsynchronizationbar[options]
\setupsynonyms[name][options]
\setupsystem[options]
\setuptab[options]
# \setupTABLE
\setuptables[options]
\setuptabulate[name][options]
\setuptext[text|margin|edge][options

Re: [NTG-context] Header unwanted on first page

2007-12-25 Thread Wolfgang Schuster
On Tue, 25 Dec 2007 01:08:41 +0100
Matija Šuklje [EMAIL PROTECTED] wrote:

 Dne sobota 1. decembra 2007 je George N. White III napisal(a):
  \noheaderandfooterlines
  \setupheadertexts[text][XX][YY]
 
 What is the difference between this method and the
 \startstandardmakeup
 \stopstandardmakeup
 
 method?

standardmakeup produce a special page without and headers and footers.

It has by default no pagenumber (could be changed) and is used normally
only for title pages, you could change the parameters with
\setupmakeup and it is always only one single 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Header unwanted on first page

2007-12-25 Thread Matija Šuklje
Dne torek 25. decembra 2007 je Wolfgang Schuster napisal(a):
 It has by default no pagenumber (could be changed) and is used normally
 only for title pages, you could change the parameters with
 \setupmakeup and it is always only one single page.

Thank you for explaining this to me.


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


signature.asc
Description: This is a digitally signed message part.
___
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] Presentation help

2006-08-17 Thread Hans Hagen
Adam Duck wrote:
 So, I showed ConTeXt to a friend of mine.  He said he wanted to try it
 and now -- well, you don't want to know how he swears :).  We're
 trying to do a presentation...

 Anyways, I'm trying to help him...  But I (we) have some problems:

 I managed to write something like this (it's never been so hard to
 write a newline!):

 #v+
 \startsetups{myhead}
 \vbox{%
 \getmarking[sectionnumber]\crlf\getmarking[section]\par
 \hskip12pt\getmarking[subsectionnumber]\crlf\getmarking[subsection]}
 \stopsetups

 \setupheadertexts[]
 \setupheadertexts[\setups{myhead}][pagenumber]
 #v-

 That does, what it should: display section and subsection atop of each
 other.  So, but now, he wants to have an Introduction, which should
 show up in the header but without a number.  I tried \subject but
 \getmarking[section] only returns the section, not the subject (I
 thought they were interlinked somehow, but...).  So, is there any way
 to do this apart from \ifx\getmarking[sectionnumber]{-1} or so?

   
\startfrontmatter

\section{...}

\stopfrontmatter

will provide a mark but not number; so ... provide extra structure
 Next question: is it possbible to align the text of, well, text,
 i.e. the body text, vertically centered on every page?
 \setupbackgrounds won't work here.  On a side note: why does it have
 an align-parameter, then?
   
because it inherits from \framed

\setupmakeup[standard][headerstate=start,align=middle]

\startstandardmakeup
\input tufte
\stopstandardmakeup


 This one is a bonus for me: can someone point me in a direction
 where to start to build a progress meter?  beamerstyle has a nice
 template where it shows the section as text and the subsections as
 open dots (all of them) with the current subsection as a filled dot.

 Well, that would be all, thanks for listening,
   
search for interactionbar 


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

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context