* Layout for the first page
@ 2010-12-30 14:42 Sam Qasbah
2010-12-30 14:53 ` Vianney le Clément
0 siblings, 1 reply; 7+ messages in thread
From: Sam Qasbah @ 2010-12-30 14:42 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 666 bytes --]
>
> On Thu, Dec 30, 2010 at 01:32, Sam Qasbah <samqasbah at gmail.com <http://www.ntg.nl/mailman/listinfo/ntg-context>> wrote:
> >* I'm working on a document that must have a layout for the first page and a
*> >* different layout for all the other pages.
*>
> This works for me:
>
> \setuplayout[...=...] % global layout
> \definelayout[first][...=...] % layout for the first page
> \definelayout[2][reset]
> \setuplayout[first]
>
Sorry Vianney, I don't understand how it works your code. Please can you type
some lines more? Something with
%
% here goes Vianney's code
%
\starttext
\showframe
\dorecurse{40}{\input knuth \par}
\stoptext
Many thanks.
Sam Qasbah
[-- Attachment #1.2: Type: text/html, Size: 848 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Layout for the first page
2010-12-30 14:42 Layout for the first page Sam Qasbah
@ 2010-12-30 14:53 ` Vianney le Clément
2010-12-30 15:05 ` Hans Hagen
0 siblings, 1 reply; 7+ messages in thread
From: Vianney le Clément @ 2010-12-30 14:53 UTC (permalink / raw)
To: mailing list for ConTeXt users
> Sorry Vianney, I don't understand how it works your code. Please can you
> type
> some lines more? Something with
Even simpler than before, using your example:
\setuplayout[% default layout for all the pages
backspace=1cm,
width=middle]
\definelayout[1][% set this layout on the first page
backspace=6cm]
\definelayout[2][reset] % reset to the default layout starting from
the second page
\starttext
\showframe
\dorecurse{20}{\input dawkins \par \input knuth \par}
\stoptext
Vianney
___________________________________________________________________________________
If your question is of interest to others as well, please add an 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Layout for the first page
2010-12-30 14:53 ` Vianney le Clément
@ 2010-12-30 15:05 ` Hans Hagen
2010-12-30 21:30 ` Vianney le Clément
0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2010-12-30 15:05 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 30-12-2010 3:53, Vianney le Clément wrote:
>> Sorry Vianney, I don't understand how it works your code. Please can you
>> type
>> some lines more? Something with
>
> Even simpler than before, using your example:
>
> \setuplayout[% default layout for all the pages
> backspace=1cm,
> width=middle]
>
> \definelayout[1][% set this layout on the first page
> backspace=6cm]
>
> \definelayout[2][reset] % reset to the default layout starting from
> the second page
>
> \starttext
> \showframe
> \dorecurse{20}{\input dawkins \par \input knuth \par}
> \stoptext
maybe good to put this on the wiki
-----------------------------------------------------------------
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Layout for the first page
@ 2010-12-30 15:19 Sam Qasbah
0 siblings, 0 replies; 7+ messages in thread
From: Sam Qasbah @ 2010-12-30 15:19 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 584 bytes --]
>>* Sorry Vianney, I don't understand how it works your code. Please can you
*>>* type
*>>* some lines more? Something with
*>
> Even simpler than before, using your example:
>
> \setuplayout[% default layout for all the pages
> backspace=1cm,
> width=middle]
>
> \definelayout[1][% set this layout on the first page
> backspace=6cm]
>
> \definelayout[2][reset] % reset to the default layout starting from
> the second page
>
> \starttext
> \showframe
> \dorecurse{20}{\input dawkins \par \input knuth \par}
> \stoptext
>
> Vianney
It works like a charm! Many thanks.
Sam Qasbah
[-- Attachment #1.2: Type: text/html, Size: 789 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Layout for the first page
@ 2010-12-30 0:32 Sam Qasbah
2010-12-30 14:27 ` Vianney le Clément
0 siblings, 1 reply; 7+ messages in thread
From: Sam Qasbah @ 2010-12-30 0:32 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 675 bytes --]
Hello to all of you.
I'm working on a document that must have a layout for the first page and a
different layout for all the other pages.
On this mailing list Hans Hagen said that the technique to set up a layout
for the first page of a document is
\setuplayout[1][key=value, ... ]
I tried that code in this way:
\definelayout[1][% layout for the first page
backspace=6cm,
cutspace=6cm,
width=middle]
\definelayout[% global layout for all the other other pages
backspace=1cm,
cutspace=1cm,
width=middle]
\setuplayout
\starttext
\showframe
\dorecurse{20}{\input dawkins \par \input knuth \par}
\stoptext
this code doesn't work.
Where am I in fault?
Sam Qasbah
[-- Attachment #1.2: Type: text/html, Size: 840 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-12-30 21:30 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-30 14:42 Layout for the first page Sam Qasbah
2010-12-30 14:53 ` Vianney le Clément
2010-12-30 15:05 ` Hans Hagen
2010-12-30 21:30 ` Vianney le Clément
-- strict thread matches above, loose matches on Subject: below --
2010-12-30 15:19 Sam Qasbah
2010-12-30 0:32 Sam Qasbah
2010-12-30 14:27 ` Vianney le Clément
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).