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: Beta: bug in \setuphead[chapter]
Date: Tue, 3 Jan 2012 14:06:15 +0100	[thread overview]
Message-ID: <CE05D1A7-9CFE-4825-B707-71038FF61654@googlemail.com> (raw)
In-Reply-To: <63847A47-0EA0-418C-BB6A-B190990CDD98@gmail.com>


Am 03.01.2012 um 13:58 schrieb Otared Kavian:

> On 3 janv. 2012, at 08:38, Wolfgang Schuster wrote:
> 
>> […]
>> You need a command after “align=middle” because you assign “middle ” (with a space) to the align key.
> 
> Hi Wolfgang,
> 
> I didn't get exactly what you mean, but saying either of the following:
> 
> 	\setuphead[chapter][header=high,align=middle]
> or
> 	\setuphead[chapter][align=middle,header=high]
> or
> 	\setuphead[chapter][align=middle,
> 	 header=high]
> or
> 	\setuphead[chapter][header=high,
> 	align=middle
> 	]
> 
> results in an error. While 
> 
> 	\setuphead[chapter][align=middle, 
> 	 header=high
> 	 ]
> 
> works fine… 

It’s a typo in the core, see Adityas mail but in the last case you need a comma after the high otherwise you pass the value “high ” (with a space at the end) to context.

Here is a simple example where you can that spaces matter:

\definehighlight[one][color=red ]
\definehighlight[two][color=blue]
\starttext
\one{Red} \two{Blue}
\stoptext

In the first definition i pass “red ” with a space at the end which is different from “red” (without a space).

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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  parent reply	other threads:[~2012-01-03 13:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-03  5:41 Otared Kavian
2012-01-03  7:38 ` Wolfgang Schuster
2012-01-03 12:58   ` Otared Kavian
2012-01-03 13:05     ` Aditya Mahajan
2012-01-03 13:06     ` Wolfgang Schuster [this message]
2012-01-03 13:17       ` Otared Kavian

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=CE05D1A7-9CFE-4825-B707-71038FF61654@googlemail.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).