ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: Yatskovsky <yatskovsky@gmail.com>,
	 mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: CSS-like coding style
Date: Sat, 17 Feb 2007 13:55:11 -0500 (EST)	[thread overview]
Message-ID: <alpine.WNT.0.82.0702171353310.2848@nqvgln> (raw)
In-Reply-To: <1195309941.20070217180852@gmail.com>

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.

Aditya

  parent reply	other threads:[~2007-02-17 18:55 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 [this message]
2007-02-19  9:28     ` Hans Hagen
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=alpine.WNT.0.82.0702171353310.2848@nqvgln \
    --to=adityam@umich.edu \
    --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).