ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Beta: bug in \setuphead[chapter]
Date: Tue, 3 Jan 2012 14:17:39 +0100	[thread overview]
Message-ID: <3629FD3B-D87C-44B2-BC96-D3BB4EEB7FDB@gmail.com> (raw)
In-Reply-To: <CE05D1A7-9CFE-4825-B707-71038FF61654@googlemail.com>

Thanks to both of you, Wolfgang and Aditya, for the explanantions.
After applying the patch Wolfgang sent to Aditya, the error message is gone.

I guess the patch will be in the next beta.

Best regards: OK

On 3 janv. 2012, at 14:06, Wolfgang Schuster wrote:

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

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


      reply	other threads:[~2012-01-03 13:17 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
2012-01-03 13:17       ` Otared Kavian [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=3629FD3B-D87C-44B2-BC96-D3BB4EEB7FDB@gmail.com \
    --to=otared@gmail.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).