From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context@ntg.nl
Subject: Re: Special layout
Date: Tue, 23 Oct 2001 11:39:36 +0200 [thread overview]
Message-ID: <5.1.0.14.1.20011023113743.03dc9d58@server-1> (raw)
In-Reply-To: <1003746848.3bd3f620877d5@temp5.medped.gu.se>
At 12:34 PM 10/22/2001 +0200, hegardt@medstud.gu.se wrote:
>Hello!
>
>I've just started using ConTeXt (some previous experience with LaTeX, but not
>much) and have a question.
>
>Every year my students union produce a book containing information about the
>union and a collection of addresses of the members. Previously this book has
>been made by hand in Adobe Indesign. Now I have written a PHP-script that
>outputs a ConTeXt-file that I then convert to pdf. However, previously we
>have
>used a layout where information has been put in the outer and inner columns
>depending on if it's a lefthand- or righthand page.
>It looks like this:
>
>---------------------------------------------
>| info1 | text1 || text3 | info3 |
>| | || | |
>| | || | |
>| | || | |
>| | || | |
>| info2 | text2 || text4 | info4 |
>| | || | |
>| | || | |
>| | || | |
>| 1 | || | 2 |
>----------------------------------------------
>
>In 'info' we put information about 'text'. This 'info' needs the same
>width as
>the text and also some formatting.
>
>
>I have tried solving this by using \inmargin and \startmarginblock, but
>nothing
>gives a good result.
>
>Does anyone have any idea if this is possible to solve? (If you want I can
>send
>you a pdf showing how it lokks like in inDesign).
You may be looking for something like this:
% output=pdftex
\setuplayout
[backspace=2cm,cutspace=1cm,width=fit,
margin=10cm,margindistance=.5cm]
\setuppagenumbering
[alternative=doublesided]
\setupinmargin
[1][width=4cm,align=middle,style=slanted]
\setupinmargin
[2][distance=4.5cm,width=3cm,align=middle]
\starttext
\dorecurse
{100}
{\margintitle{Did you know that you can stack 'm?}
\margintitle[2]{I guess that you didn't -)}
Marginal notes are seldom meant to be marginal, otherwise
one would not let them stand out that way.\par}
\stoptext
things can automatically align inner/outer/left/right/middle
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
prev parent reply other threads:[~2001-10-23 9:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-12 10:06 Questions and answers and coupling s. knypstra
2001-10-22 7:25 ` Hans Hagen
2001-10-22 10:34 ` Special layout hegardt
2001-10-23 9:39 ` Hans Hagen [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=5.1.0.14.1.20011023113743.03dc9d58@server-1 \
--to=pragma@wxs.nl \
--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).