ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Yatskovsky <yatskovsky@gmail.com>
Subject: Re: CSS-like coding style
Date: Mon, 19 Feb 2007 10:28:58 +0100	[thread overview]
Message-ID: <45D96DDA.1090301@wxs.nl> (raw)
In-Reply-To: <alpine.WNT.0.82.0702171353310.2848@nqvgln>

Aditya Mahajan wrote:
> On Sat, 17 Feb 2007, Vyatcheslav Yatskovsky wrote:
>
>   
>> Hello,
>> I'm puzzled with an odd thing. If I try to adopt CSS-like coding style,
>>
>> \setuptyping[
>> 	before={
>> 	\blank[2*big]
>> 	\setupinterlinespace[line=1ex]
>> 	},
>> 	after={}
>> ]
>>     
>
>   
>> \setuppagenumbering[
>> 	location=bottom
>> ]
>>     
>
> I am not sure this will work. Maybe, since footer is the default, it 
> is hard to notice the difference between footer and bottom.
>
>
>   
>> works perfectly. But
>>
>> \setuplayout[
>> 	topspace=0cm,
>> 	bottomspace=2cm,
>> 	rightmargin=2cm,
>> 	width=fit,
>> 	height=fit
>> ]
>>
>> fails and accepts only
>>
>> \setuplayout[
>> 	topspace=0cm,
>> 	bottomspace=2cm,
>> 	rightmargin=2cm,
>> 	width=fit,
>> 	height=fit]
>>
>> What is the rule behind this? :(
>>     
>
> The general rule of thumb, add a comma at the end of all your values,
>
> so
>
> \setuplayout[
>    ....
>    height=fit,
> ]
>
> will work perfectly.
>   
\startsetups mine 

all kind of code 

\stopsetups 

\setups[mine]

also works ok, since in setups mode, spaces are ignores (so when needed, use \space) 

\startsetups footer
	pagenumber: \pagenumber
	\quad
	Okay
\stopsetups

\setupfootertexts[\setups{footer}]

\doifelse {whatever} {value} { 
	...
} { 
	...
} 

also works out ok in setups (no funny spaces) 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

  reply	other threads:[~2007-02-19  9:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1264.1171692908.17432.ntg-context@ntg.nl>
2007-02-17 16:08 ` Vyatcheslav Yatskovsky
2007-02-17 16:42   ` Taco Hoekwater
2007-02-17 18:47   ` Peter Münster
2007-02-19  9:26     ` Hans Hagen
2007-02-17 18:55   ` Aditya Mahajan
2007-02-19  9:28     ` Hans Hagen [this message]
2007-02-17 22:26 ` replacing symbols Vyatcheslav Yatskovsky

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=45D96DDA.1090301@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    --cc=yatskovsky@gmail.com \
    /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).