ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Help on centering text inside the standard makeup
@ 2011-11-11 12:27 Marco Pessotto
  2011-11-11 12:59 ` Andreas Harder
  2011-11-11 13:33 ` Wolfgang Schuster
  0 siblings, 2 replies; 5+ messages in thread
From: Marco Pessotto @ 2011-11-11 12:27 UTC (permalink / raw)
  To: ntg-context


Hello!

I have some problem centering the text inside the standardmakeup.  The
resulting alignment is centered, yes, but relative to the text block of
the defined layout, and being a doublesided document, the left space is
lesser then the right space (which is not what I wanted, as it's
supposed to be the cover of a booklet).

For example:

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

\starttext

\startstandardmakeup
  \raggedcenter
  This should be the long title
\stopstandardmakeup

\input tufte

\stoptext
%%%%%%%%%


The \showframe still shows the defined layout for the whole document.

I'm reading from Layouts in Context that the standard makeup should
“exclude text from the standard pagebody and its layout”.

The other solution could using frames, layers and the backgrounds, but
I'm pretty sure I'm missing something here and that using the makups is
the right thing to do.

Setting width=\paperwidth,height=\paperheight makes the thing
worse. It's like the width starts at the text block of the defined
layout.

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

\definemakeup[titlepage][width=\paperwidth,
        height=\paperheight,voffset=0mm,hoffset=0mm]

\starttext

\starttitlepagemakeup
  \raggedcenter
  \bfc This should be the long, long, very long title
\stoptitlepagemakeup

\input tufte

\stoptext
%%%%%%%%%

Thanks in advance.

Cheers

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Help on centering text inside the standard makeup
  2011-11-11 12:27 Help on centering text inside the standard makeup Marco Pessotto
@ 2011-11-11 12:59 ` Andreas Harder
  2011-11-11 13:33   ` Marco Pessotto
  2011-11-11 13:33 ` Wolfgang Schuster
  1 sibling, 1 reply; 5+ messages in thread
From: Andreas Harder @ 2011-11-11 12:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users


On 11.11.2011, at 13:27, Marco Pessotto wrote:

> 
> Hello!
> 
> I have some problem centering the text inside the standardmakeup.  The
> resulting alignment is centered, yes, but relative to the text block of
> the defined layout, and being a doublesided document, the left space is
> lesser then the right space (which is not what I wanted, as it's
> supposed to be the cover of a booklet).
> 
> For example:
> 
> %%%%%%%%%
> \setuppagenumbering[alternative=doublesided]
> \showframe
> 
> \starttext
> 
> \startstandardmakeup
>  \raggedcenter
>  This should be the long title
> \stopstandardmakeup
> 
> \input tufte
> 
> \stoptext
> %%%%%%%%%

Hi,

there is also a page makeup

\startpagemakeup[align=center]
  {\bfc This should be the long title}
\stoppagemakeup


Regards
	Andreas
___________________________________________________________________________________
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] 5+ messages in thread

* Re: Help on centering text inside the standard makeup
  2011-11-11 12:27 Help on centering text inside the standard makeup Marco Pessotto
  2011-11-11 12:59 ` Andreas Harder
@ 2011-11-11 13:33 ` Wolfgang Schuster
  2011-11-11 14:43   ` Marco Pessotto
  1 sibling, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2011-11-11 13:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 11.11.2011 um 13:27 schrieb Marco Pessotto:

> 
> Hello!
> 
> I have some problem centering the text inside the standardmakeup.  The
> resulting alignment is centered, yes, but relative to the text block of
> the defined layout, and being a doublesided document, the left space is
> lesser then the right space (which is not what I wanted, as it's
> supposed to be the cover of a booklet).
> 
> For example:
> 
> %%%%%%%%%
> \setuppagenumbering[alternative=doublesided]
> \showframe
> 
> \starttext
> 
> \startstandardmakeup
>  \raggedcenter
>  This should be the long title
> \stopstandardmakeup
> 
> \input tufte
> 
> \stoptext
> %%%%%%%%%
> 
> 
> The \showframe still shows the defined layout for the whole document.
> 
> I'm reading from Layouts in Context that the standard makeup should
> “exclude text from the standard pagebody and its layout”.
> 
> The other solution could using frames, layers and the backgrounds, but
> I'm pretty sure I'm missing something here and that using the makups is
> the right thing to do.
> 
> Setting width=\paperwidth,height=\paperheight makes the thing
> worse. It's like the width starts at the text block of the defined
> layout.
> 
> %%%%%%%%%
> \setuppagenumbering[alternative=doublesided]
> \showframe
> 
> \definemakeup[titlepage][width=\paperwidth,
>        height=\paperheight,voffset=0mm,hoffset=0mm]
> 
> \starttext
> 
> \starttitlepagemakeup
>  \raggedcenter
>  \bfc This should be the long, long, very long title
> \stoptitlepagemakeup
> 
> \input tufte
> 
> \stoptext

As a new feature in MkIV there is also a layout with the same name as the makeup
environment and you can control the margins of your new title page environment
with \setuplayout[titlepage][…].

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Help on centering text inside the standard makeup
  2011-11-11 12:59 ` Andreas Harder
@ 2011-11-11 13:33   ` Marco Pessotto
  0 siblings, 0 replies; 5+ messages in thread
From: Marco Pessotto @ 2011-11-11 13:33 UTC (permalink / raw)
  To: ntg-context

Andreas Harder <aharder@uni-koblenz.de> writes:

> On 11.11.2011, at 13:27, Marco Pessotto wrote:
>
>> 
>> Hello!
>> 
>> I have some problem centering the text inside the standardmakeup.  The
>> resulting alignment is centered, yes, but relative to the text block of
>> the defined layout, and being a doublesided document, the left space is
>> lesser then the right space (which is not what I wanted, as it's
>> supposed to be the cover of a booklet).
>> 
>> For example:
>> 
>> %%%%%%%%%
>> \setuppagenumbering[alternative=doublesided]
>> \showframe
>> 
>> \starttext
>> 
>> \startstandardmakeup
>>  \raggedcenter
>>  This should be the long title
>> \stopstandardmakeup
>> 
>> \input tufte
>> 
>> \stoptext
>> %%%%%%%%%
>
> Hi,
>
> there is also a page makeup
>
> \startpagemakeup[align=center]
>   {\bfc This should be the long title}
> \stoppagemakeup
>
>
> Regards
> 	Andreas

That did the trick! I've updated the wiki at http://wiki.contextgarden.net/Simple_Cover_Page

Thanks a lot

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Help on centering text inside the standard makeup
  2011-11-11 13:33 ` Wolfgang Schuster
@ 2011-11-11 14:43   ` Marco Pessotto
  0 siblings, 0 replies; 5+ messages in thread
From: Marco Pessotto @ 2011-11-11 14:43 UTC (permalink / raw)
  To: ntg-context

Wolfgang Schuster <schuster.wolfgang@googlemail.com> writes:

> As a new feature in MkIV there is also a layout with the same name as the makeup
> environment and you can control the margins of your new title page environment
> with \setuplayout[titlepage][…].
>
> Wolfgang
>

This looks like the real right solution(tm). Thanks Wolfgang.

(Also updated http://wiki.contextgarden.net/Simple_Cover_Page)

Thanks again

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-11-11 14:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-11 12:27 Help on centering text inside the standard makeup Marco Pessotto
2011-11-11 12:59 ` Andreas Harder
2011-11-11 13:33   ` Marco Pessotto
2011-11-11 13:33 ` Wolfgang Schuster
2011-11-11 14:43   ` Marco Pessotto

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).