ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Steffen Wolfrum <st.wolfrum@estfiles.de>
Subject: Re: Three basic questions on alignment
Date: Sun, 28 Sep 2003 09:26:33 +0200	[thread overview]
Message-ID: <a05210600bb9c3c1d2f79@[217.184.8.69]> (raw)
In-Reply-To: <a05210604bb97874b5455@[217.184.14.225]>

Hi,

my solution would be like this:

>I have 3 cases where the usual command "align=left|right|... doesn't work:
>
>
>1) \setuppagenumbering [alternative=doublesided,location={header,inmargin}]
>
>The page number is aligned left on a right page and vice versa. 
>How can I change this to align left on left pages and right on right pages?
>(So the page number doesn't rag when flipping from page 1 to 100)

\setupheadertexts[][section][chapter][] % that wasn't too difficult o)

>2) \setupheader[style=\MyStyle] \setupheadertexts[section][][][chapter]
>
>The chapter title behaves like the pagenumber. How can I change the alignment from inner to outer here?

\def\mypagenumber#1{\inframed[width=\marginwidth,frame=on,align={\doifoddpageelse{left}{right}}]{#1}}
\setuppagenumbering [command=\mypagenumber,alternative=doublesided,location={header,inmargin}]


>3) \setupfootnotedefinition[location=inleft]
>
>The footnote's numbers here are aligned left, both on the left and the right page.
>What would be the command to align them right, with a constant distant to the note's text?

\def\myFNnumber#1{\inframed[width=20pt,offset=.0em,frame=on,align=right]{#1}}
\setupfootnotedefinition[command=\myFNnumber,location=left]


Probably not very elaborated - but it's working.

Steffen

      parent reply	other threads:[~2003-09-28  7:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-24 17:48 Steffen Wolfrum
2003-09-27 20:43 ` Patrick Gundlach
2003-09-28  7:26 ` Steffen Wolfrum [this message]

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='a05210600bb9c3c1d2f79@[217.184.8.69]' \
    --to=st.wolfrum@estfiles.de \
    --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).