ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Setting up layout - basic questions
@ 2005-02-07 22:20 cormullion
  2005-02-08  8:31 ` Vit Zyka
  0 siblings, 1 reply; 4+ messages in thread
From: cormullion @ 2005-02-07 22:20 UTC (permalink / raw)


Hi there. I’m a newcomer to ConTeXt, and I’m so far really impressed with the power and flexibility I now have access to. I’d be grateful for a few tips - I’ve been reading the documentation over the last few days, and my head’s getting full. Please excuse me if these questions are obvious.

I want to make headings in a sans serif font, such as Helvetica, and keep the body text in serif font (such as Times). (I use these font names loosely, I have no idea which fonts I can actually use, since I can’t get XeTeX working yet.) I know that I should do something like this:

\setuphead
    [chapter]
    [number=yes, 
    style=\ss]

\setuphead
    [section]
    [number=no, 
    style=\ss]

but the sizes of the different levels of heading are lost... So something like 16pt for chapter, 14pt for section, 12 point for subsection?

Also, is it generally possible to make all the headings start at the left margin, with everything else (eg paragraphs, lists, etc) indented? Eg:

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. :-)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Setting up layout - basic questions
  2005-02-07 22:20 Setting up layout - basic questions cormullion
@ 2005-02-08  8:31 ` Vit Zyka
  2005-02-08 11:47   ` Adam Lindsay
  2005-02-08 12:46   ` cormullion
  0 siblings, 2 replies; 4+ messages in thread
From: Vit Zyka @ 2005-02-08  8:31 UTC (permalink / raw)


cormullion wrote:
> Hi there. I’m a newcomer to ConTeXt, and I’m so far really impressed with the power and flexibility I now have access to. I’d be grateful for a few tips - I’ve been reading the documentation over the last few days, and my head’s getting full. Please excuse me if these questions are obvious.
> 
> I want to make headings in a sans serif font, such as Helvetica, and keep the body text in serif font (such as Times). (I use these font names loosely, I have no idea which fonts I can actually use, since I can’t get XeTeX working yet.) I know that I should do something like this:
> 
> \setuphead
>     [chapter]
>     [number=yes, 
>     style=\ss]

       style=\ssc

> 
> \setuphead
>     [section]
>     [number=no, 
>     style=\ss]

       style=\ssa

You can choose from 7 sizes: \ssxx, \ssx, \ss, \ssa, \ssb, ssc, \ssd

Vit Zyka
> 
> but the sizes of the different levels of heading are lost... So something like 16pt for chapter, 14pt for section, 12 point for subsection?
> 
> 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]

Vit Zyka

> 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. :-)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Setting up layout - basic questions
  2005-02-08  8:31 ` Vit Zyka
@ 2005-02-08 11:47   ` Adam Lindsay
  2005-02-08 12:46   ` cormullion
  1 sibling, 0 replies; 4+ messages in thread
From: Adam Lindsay @ 2005-02-08 11:47 UTC (permalink / raw)


[-- 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Setting up layout - basic questions
  2005-02-08  8:31 ` Vit Zyka
  2005-02-08 11:47   ` Adam Lindsay
@ 2005-02-08 12:46   ` cormullion
  1 sibling, 0 replies; 4+ messages in thread
From: cormullion @ 2005-02-08 12:46 UTC (permalink / raw)


Vit Zyka <vit.zyka@seznam.cz> said on 2005-02-08, 9:31 (+0100 GMT):

> \setuphead
>    [chapter]
>    [alternative=inmargin]

Excellent - simple, really! :-)

Thanks

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-02-08 12:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-07 22:20 Setting up layout - basic questions cormullion
2005-02-08  8:31 ` Vit Zyka
2005-02-08 11:47   ` Adam Lindsay
2005-02-08 12:46   ` cormullion

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).