ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Marco Pessotto <melmothx@gmail.com>
To: ntg-context@ntg.nl
Subject: Help on centering text inside the standard makeup
Date: Fri, 11 Nov 2011 13:27:45 +0100	[thread overview]
Message-ID: <87bosij132.fsf@universe.krase.net> (raw)


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
___________________________________________________________________________________

             reply	other threads:[~2011-11-11 12:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-11 12:27 Marco Pessotto [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bosij132.fsf@universe.krase.net \
    --to=melmothx@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).