ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Idris Samawi Hamid" <ishamid@colostate.edu>
Subject: margin text headings
Date: Fri, 20 Jan 2006 10:37:23 -0700	[thread overview]
Message-ID: <op.s3otwlmvnx1yh1@walayah1.wildblue.com> (raw)

Dear consortium,

In

\setuptexttexts[margin]

it would be nice to have an option for the margin text (used for headings  
here) to start from the top of the textblock, instead of the middle,  
something like

marginposition = top, middle % middle is default

\setuptexttexts[margin][][\setups{text a}][\setups{text b}][]
\setuptext[marginposition=top,state=high,]

As is one has to do alot of guesswork. Can this be implemented (if it is  
not already)?

In any case, is there a better way to do this (see example file)?

Best
Idris

===============================================================
% output=pdf interface=en

%\setuppapersize [A5][A4]

\newdimen\Margin
\Margin=1.5cm

\newdimen\MarginRaise
\MarginRaise=112.6ex % guesswork

\setuptexttexts[margin][][\setups{text a}][\setups{text b}][]
\setuptext[style=\it,state=high]

\startsetups[text a]
\raise\MarginRaise\hbox{\vtop{\hsize=\Margin%
   \startalignment[right]
   Testing Knuth 2
   \stopalignment
}}
\stopsetups

\startsetups[text b]
\raise\MarginRaise\hbox{\vtop{\hsize=\Margin%
   \startalignment[right]
   Testing Knuth 1
   \stopalignment
}} \stopsetups

\setuppagenumbering[alternative=doublesided,
                     location={footer,middle}]

\showframe

\starttext

\dorecurse{20}{\input knuth\par }

\stoptext

===============================================================

-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

                 reply	other threads:[~2006-01-20 17:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=op.s3otwlmvnx1yh1@walayah1.wildblue.com \
    --to=ishamid@colostate.edu \
    --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).