Re: [NTG-context] Setting up layout - basic questions

2005-02-08 Thread Vit Zyka
cormullion wrote:
Hi there. Im a newcomer to ConTeXt, and Im so far really impressed with the power and 
flexibility I now have access to. Id be grateful for a few tips - Ive been reading the 
documentation over the last few days, and my heads 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 cant 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. Im more of a FrameMaker user up to now, so I may not yet be thinking the ConTeXt way. :-)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Setting up layout - basic questions

2005-02-08 Thread Adam Lindsay
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. Im 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. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Setting up layout - basic questions

2005-02-08 Thread cormullion
Vit Zyka [EMAIL PROTECTED] said on 2005-02-08, 9:31 (+0100 GMT):

 \setuphead
[chapter]
[alternative=inmargin]

Excellent - simple, really! :-)

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


[NTG-context] Setting up layout - basic questions

2005-02-07 Thread cormullion
Hi there. Im a newcomer to ConTeXt, and Im so far really impressed with 
the power and flexibility I now have access to. Id be grateful for a few 
tips - Ive been reading the documentation over the last few days, and my 
heads 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 cant 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. Im more of a FrameMaker user up to now, so I may 
not yet be thinking the ConTeXt way. :-)

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