ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Adam Lindsay" <atl@comp.lancs.ac.uk>
Subject: Re: Setting up layout - basic questions
Date: Tue, 8 Feb 2005 11:47:46 +0000	[thread overview]
Message-ID: <20050208114746.11043@mail.comp.lancs.ac.uk> (raw)
In-Reply-To: <420878F2.6030905@seznam.cz>

[-- Attachment #1: Type: text/plain, Size: 2518 bytes --]

Vit Zyka said this at Tue, 8 Feb 2005 09:31:46 +0100:

>> Also, is it generally possible to make all the headings start at the
>>left margin, with everything else (eg paragraphs, lists, etc) indented? Eg:
>
>something like
>
>\setuphead
>   [chapter]
>   [alternative=inmargin]

Actually, I think I know what cormullion is after: this is almost
precisely the layout I used when setting my Masters thesis in Framemaker
(9 years ago, sigh). I remember it fondly because it first got me
interested in structured typesetting...

This is my interpretation. It uses some undocumented stuff, and a lot of
this is new to me:

% First we set up some `virtual' dimensions.
\newdimen\HeadOutdent        % distance from Heading to text body
         \HeadOutdent=20mm
\newdimen\HeadBackspace      % inner margin, including head
         \HeadBackspace=35mm
\newdimen\HeadCutspace       % outer margin, including head
         \HeadCutspace=45mm
\definelayout[fm]  [backspace=\dimexpr(\HeadBackspace+\HeadOutdent),
                    cutspace=\HeadCutspace,
                    width=middle]
\definelayout[even][backspace=\HeadBackspace,
                    cutspace=\dimexpr(\HeadCutspace+\HeadOutdent),
                    width=middle]
% Hans: this was made a bit tougher because horoffset wasn't respected in the 
% even layout... why?
\setuplayout[fm]
\setuphead[section]   [margin=-\HeadOutdent,
                       style=\ssc] 
                      %different sections could be outdented differently, etc.
\setuppagenumbering[alternative=doublesided] % hmmm...
\showframe
\starttext
\section{Hi there}
\subsection{Ho there}
\input knuth \page
\subsection{Hey there}
\subsubsection{Ha there}
\input knuth 
\stoptext


>> Chapter X
>>                Paragraph
>> Section X
>>                Paragraph
>> Subsection y
>>                Paragraph
>>               
>> Thanks for any pointers. I’m more of a FrameMaker user up to now, so I
>>may not yet be thinking the ConTeXt way. :-)

It's not too tough a transition, so long as you're not afraid of a little
math. 
(Welcome to the ConTeXt list... I noticed your posts to the MacTeX list
earlier...)
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept.     atl@comp.lancs.ac.uk
 Lancaster University, InfoLab21        +44(0)1524/510.514
 Lancaster, LA1 4WA, UK             Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

  reply	other threads:[~2005-02-08 11:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-07 22:20 cormullion
2005-02-08  8:31 ` Vit Zyka
2005-02-08 11:47   ` Adam Lindsay [this message]
2005-02-08 12:46   ` cormullion

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=20050208114746.11043@mail.comp.lancs.ac.uk \
    --to=atl@comp.lancs.ac.uk \
    --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).