![](https://secure.gravatar.com/avatar/30ef4fea8acc9a4c7a392675260cfcb9.jpg?s=120&d=mm&r=g)
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 ] 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? :( Best, Vyatcheslav
![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
Vyatcheslav Yatskovsky wrote:
Hello, I'm puzzled with an odd thing. If I try to adopt CSS-like coding style,
A rather short answer is possible: Don't do that :-) Seriously: if it works, it is by conincidence only. I will note even explain you the (current) rules, because they may change tomorrow. Always make sure that there is no whitespace surrounding your values, nor whitespace trailing a key. Whitespace *before* a key is ignored, but that is the only documented case where whitespace is irrelevant. The inverse is also true, btw. If you actually need a space preceding or trailing a value, you have to wrap the entire requested item in a set of curly braces. There is no guarantee that the space will be retained otherwise. Cheers, Taco
![](https://secure.gravatar.com/avatar/cedc4d83943006afe3994fb0a0455f82.jpg?s=120&d=mm&r=g)
On Sat, 17 Feb 2007, Vyatcheslav Yatskovsky wrote:
\setuplayout[ topspace=0cm, bottomspace=2cm, rightmargin=2cm, width=fit, height=fit ]
fails
Hello, you can use the %-sign: \setuplayout[ topspace=0cm, bottomspace=2cm, rightmargin=2cm, width=fit, height=fit% ] Cheers, Peter -- http://pmrb.free.fr/contact/
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
� wrote:
On Sat, 17 Feb 2007, Vyatcheslav Yatskovsky wrote:
\setuplayout[ topspace=0cm, bottomspace=2cm, rightmargin=2cm, width=fit, height=fit ]
fails
Hello, you can use the %-sign:
\setuplayout[ topspace=0cm, bottomspace=2cm, rightmargin=2cm, width=fit, height=fit% ]
or just add a comma afterthe last fit ----------------------------------------------------------------- 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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
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 -----------------------------------------------------------------
participants (5)
-
Aditya Mahajan
-
Hans Hagen
-
Peter Münster
-
Taco Hoekwater
-
Vyatcheslav Yatskovsky