ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Hod do I get the page number in the left margin (not in the footer)?
Date: Fri, 26 Jun 2009 10:05:39 +0200	[thread overview]
Message-ID: <93D323AB-7050-46A4-A2D0-DC0E7F84E997@gmail.com> (raw)
In-Reply-To: <F3DF7DAB-BDF5-40CD-80C9-0139F79A1721@rna.nl>


Am 26.06.2009 um 09:51 schrieb Gerben Wierda:

> On 25 Jun 2009, at 23:15, Gerben Wierda wrote:
>
>> On 25 Jun 2009, at 14:38, Carlos Breton Besnier wrote:
>>
>>> I think because the footer is 0 mm.
>>
>> But doesn't inleft mean the page number is in the left margin, not  
>> the footer?
>
> Apparently not. It is still in the footer. OK, if I set the footer  
> to 10mm I get a page number in the footer (in this case in the same  
> horizontal location as the line numbers)
>
> But I want to have as much vertical space as possible for the text.  
> Is it possible to get the page number in the left marging, somewhere  
> in the middle of the page?
>
> And while I'm at it, if I want a heading in the left margin as well,  
> but I want it 90 degrees rotated, how do I do that?

\setuplayout
   [leftmargin=1cm,
    leftmargindistance=5mm]

\startsetups header:margin

   \framed
     [frame=off,
      orientation=90,
      width=\leftmarginwidth,
      height=\textheight,
      align={middle,middle}]
     {My document\hfil\pagenumber\hfil My name}

\stopsetups

\defineoverlay[header:margin][\setups{header:margin}]

\setupbackgrounds[text][leftmargin][background={header:margin}]

\starttext

...

\stoptext

Wolfgang

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

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


  reply	other threads:[~2009-06-26  8:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-25  5:41 Why no page numbering here? Gerben Wierda
2009-06-25 12:38 ` Carlos Breton Besnier
2009-06-25 21:15   ` Gerben Wierda
2009-06-26  7:51     ` Hod do I get the page number in the left margin (not in the footer)? Gerben Wierda
2009-06-26  8:05       ` Wolfgang Schuster [this message]
2009-06-26  8:47         ` Gerben Wierda
2009-06-28 16:13           ` Solution. Only one problem left ($ in file name) Gerben Wierda
2009-06-26  8:09     ` Why no page numbering here? Wolfgang Schuster
2009-06-26  8:30     ` Carlos Breton Besnier
2009-06-26  8:36     ` luigi scarso

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=93D323AB-7050-46A4-A2D0-DC0E7F84E997@gmail.com \
    --to=schuster.wolfgang@googlemail.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).