ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Wolfgang Schuster" <schuster.wolfgang@googlemail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: Heading styles
Date: Wed, 12 Dec 2007 13:04:31 +0100	[thread overview]
Message-ID: <115224fb0712120404v6b8ed40di222d57a80275674c@mail.gmail.com> (raw)
In-Reply-To: <475FCAEF.2090009@aluzina.org>

2007/12/12, Zeus Gómez Marmolejo <zeus@aluzina.org>:
> Hi all,
>
> Two questions concerning heading styles:
>
>  1) How can I control vertical spacing of section headings. I'm doing it
> now with:
>
>  \setuphead
>   [subsection]
>   [before=\vskip -7pt,
>    after=\vskip -20pt]
>
> But I think this is quite clumsy, because I'm adding a negative spacing.
> I only want to remove the "default" spacing...
>
>  2) I want to use a complete different font for headings. My mainface
> family is iwona but I want subsection titles in Palatino. How can I make
> this?
>
> Thanks,
>
> Zeus.

\usetypescript[palatino,iwona]
\setupbodyfont[iwona]
\starttext
\setuphead[section,subsection][style={\switchtotypeface[palatino]}]
\setuphead[subsection][before=,after=]
%\setuphead[subsection][before=\nowhitespace,after=\nowhitespace]
\section{Knuth}
\input knuth
\subsection{Zapf}
\input zapf
\stoptext

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


      reply	other threads:[~2007-12-12 12:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-12 11:50 Zeus Gómez Marmolejo
2007-12-12 12:04 ` Wolfgang Schuster [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=115224fb0712120404v6b8ed40di222d57a80275674c@mail.gmail.com \
    --to=schuster.wolfgang@googlemail.com \
    --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).