ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Patrick Gundlach" <patrick@gundla.ch>
Subject: Re: howto overlayers on section head
Date: 11 Aug 2004 12:36:06 +0200	[thread overview]
Message-ID: <m2n012vu5l.fsf@levana.de> (raw)
In-Reply-To: <4119EC7E.9050406@bo.imm.cnr.it> (Eros Albertazzi's message of "Wed, 11 Aug 2004 11:53:02 +0200")

Hello,

[...]

> hope this back and forth will not be just a waste, but something out
> of which we can both/all learned to improuve.

I think so, too. It has been a long time since I used ConTeXt. So I
have to refresh my rusty knowledge :-)

> "define your own command" , but you have to know THE (default) command
> fist, otherwise it is hard to obtain a result (.pdf) from something
> that is not just a copy of someonelse .tex

Right, but I'd guess that the default command is quite tricky. All
ConTeXt commands are quite tricky.

> \def\HeadTitle#1#2{\hbox to \hsize%
>          {\hfil%
> 	{#1#2}\hfil}}
>
> \setuphead [chapter]
>    [command=\HeadTitle]
>
> \starttext
> \chapter{ciao}
> \stoptext
>
> the two ex-s  are not the same , because spacing between the number
> and the title and allignment, why?

There is no horizontal "space" command between #1 (number) and #2
(title). But "space" is not just a simple " ". It can be many things.
I don't know if there is any good reading about these kind of spaces,
but let me show you a few:

( )        regular space is pretty small, but can be stretched
\enspace   fixed space 0.5em  
\enskip    space .5em      (so called "skip")
\quad      space 1em          "
\qquad     space 2em          "
\kern xx   space xx 
\hfil, \hfill  "very long" and "very very long" space

> Moving your howto overlay example, indeed very useful, from subject to
> chapter seems to me more subtle than just changing  section names

It is more a matter of section numbers/no section numbers. 

Patrick

-- 
ConTeXt wiki: http://contextgarden.net
texshow-web:  http://texshow.contextgarden.net
List archive: http://archive.contextgarden.net

  reply	other threads:[~2004-08-11 10:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-10  8:41 Eros Albertazzi
2004-08-10  9:43 ` Patrick Gundlach
2004-08-10 11:54   ` Eros Albertazzi
2004-08-10 22:37     ` Patrick Gundlach
2004-08-11  9:53       ` Eros Albertazzi
2004-08-11 10:36         ` Patrick Gundlach [this message]
2004-08-11 10:38         ` Patrick Gundlach

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=m2n012vu5l.fsf@levana.de \
    --to=patrick@gundla.ch \
    --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).