[NTG-context] Custom Numbering Problem

2004-08-11 Thread Salman Khilji
Two problems:

1)  With the following:

\setuphead[section][ownnumber=yes]
\setupbodyfont[cmr,12pt]
\starttext
\completecontent
\section{1a0101}{Objective}
There is no objective at this moment.
\stoptext


There is no spacing between the text "1a0101" and "Objective" in the table of 
contents---this looks really ugly.

However, what I really want is the ownnumber to apply to \title, not a 
\section.  So if I do this:

\setuphead[title][ownnumber=yes]
\setupbodyfont[cmr,12pt]
\starttext
\completecontent
\title{1a0101}{Minimum Radius Turn}
\section{Objective}
There is no objective at this moment.
\stoptext

Then the number 1a0101 does not appear right next to a title. (I only see 
"Minimum Radius Turn" as opposed to the expected "1a0101  Minimum Radius 
Turn".  Also my \section{Objective} has numbering.  I thought numbering was 
turned off by default on \title \section \subsection etc.


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[2]: [NTG-context] no graph after compilation

2004-08-11 Thread Floris van Manen
PG> There is no way to update this automaticalliy.

i think i got lost in the trees...

i got the update from pragma-ade.com, unzipped the files in
c:\texlive\texmf i did run the texexec --make
but i still have texexec 4.0 running...

the texexec.exe doesn't seem to find the most recent version.
i know i'm doing something unintentionally (may that be a lesson to
you :-) yet how do i get out?

thanks!
//f

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] no graph after compilation

2004-08-11 Thread Patrick Gundlach
Hello Floris,

> i guess it might have to do with the versions of the programs
> involved. below you see the output of my version and the contextgarden
> version.

That might be the case. But a year ago things should have worked the
same way.

> i got my LiveTex last week from the web. Any idea how to
> (automatically) update to the most recent versions?

There is no way to update this automaticalliy. But take a look at the
wiki and http://levana.de/context/  (still need to put this into the
wiki).

Patrick
-- 
ConTeXt wiki: http://contextgarden.net
texshow-web:  http://texshow.contextgarden.net
List archive: http://archive.contextgarden.net
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[2]: [NTG-context] no graph after compilation

2004-08-11 Thread Floris van Manen
i guess it might have to do with the versions of the programs
involved. below you see the output of my version and the contextgarden
version.
i got my LiveTex last week from the web. Any idea how to
(automatically) update to the most recent versions?

//f


=
my version:


 TeXExec 4.0 - ConTeXt / PRAGMA ADE 1997-2003

executable : pdfetex
format : cont-en
 inputfile : testtex
output : pdftex
 interface : en
  current mode : none
   TeX run : 1

This is pdfeTeXk, Version 3.141592-1.11b-2.1 (Web2c 7.5.2)
 %&-line parsing enabled.
 (c:/TeXLive/texmf/web2c/cp8bit.tcx)
entering extended mode
(./testtex.tex{c:/TeXLive/texmf-var/pdftex/config/pdftex.cfg}

ConTeXt  ver: 2003.9.25  fmt: 2004.8.6  int: english  mes: english

language   : language en is active

system : cont-new loaded
(c:/TeXLive/texmf/tex/context/base/cont-new.tex
systems: beware: some patches loaded from cont-new.tex!
)
system : cont-old loaded
(c:/TeXLive/texmf/tex/context/base/cont-old.tex
loading: Context Old Macros
)
system : cont-fil loaded
(c:/TeXLive/texmf/tex/context/base/cont-fil.tex
loading: Context File Synonyms
)
system : cont-sys loaded
(c:/TeXLive/texmf/tex/context/user/cont-sys.tex)
bodyfont   : 12pt rm is loaded
language   : patterns 2:2-en-2 8:2-nl-2 loaded
specials   : tex,postscript,rokicki loaded
system : testtex.top loaded
(./testtex.top
specials   : loading definition file tpd
(c:/TeXLive/texmf/tex/context/base/spec-tpd.tex
specials   : loading definition file fdf
(c:/TeXLive/texmf/tex/context/base/spec-fdf.tex  
system (E-TEX) : [line 1907] \ifcsname
 )
specials   : fdf loaded
 )
specials   : fdf,tpd loaded
)


==
contextgarden:





 TeXExec 4.3 - ConTeXt / PRAGMA ADE 1997-2004

executable : pdfetex
format : cont-en
 inputfile : texweb
output : pdftex
 interface : en
  current mode : none
   TeX run : 1

This is pdfeTeX, Version 3.141592-1.20a-rc7.1-2.1 (Web2C 7.5.3)
 (/opt/tetex/20040711/texmf/web2c/natural.tcx)
output format initialized to DVI
entering extended mode
(./texweb.tex

ConTeXt  ver: 2004.6.26  fmt: 2004.7.27  int: english  mes: english

language   : language en is active

system : cont-new loaded
(/opt/tetex/20040711/texmf/tex/context/base/cont-new.tex
systems: beware: some patches loaded from cont-new.tex!
color  : palette rollover is available
system (E-TEX) : [line 599] 
system (E-TEX) : [line 654] 
)
system : cont-old loaded
(/opt/tetex/20040711/texmf/tex/context/base/cont-old.tex
loading: Context Old Macros
)
system : cont-fil loaded
(/opt/tetex/20040711/texmf/tex/context/base/cont-fil.tex
loading: Context File Synonyms
)
system : cont-sys loaded
(/opt/local/texmf/tex/context/cont-sys.tex
specials   : loading definition file tpd
(/opt/tetex/20040711/texmf/tex/context/base/spec-tpd.tex
specials   : loading definition file fdf
(/opt/tetex/20040711/texmf/tex/context/base/spec-fdf.tex 

system (E-TEX) : [line 2270] \ifcsname 
 )
specials   : fdf loaded
 )
specials   : fdf,tpd loaded
)



___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] figure placement and flushbottom

2004-08-11 Thread Peter Münster
On Wed, 11 Aug 2004, Hans Hagen wrote:

> Peter Münster wrote:
> 
> >\let\stoptextO=\stoptext
> >\def\stoptext{\vfilll\stoptextO}
> >  
> I don't know what you want to achieve but this is not working because 0
> is not a character (and therefore not part of a \cs)

It's an O (for "Original"), not a 0 (zero).

> \prependtoks \vfilll \to \everystoptext

Thanks, this looks cleaner.

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
_
FilmSearch engine: http://f-s.sf.net/
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[2]: [NTG-context] no graph after compilation

2004-08-11 Thread Peter Münster
On Wed, 11 Aug 2004, Floris van Manen wrote:

> VZ> Floris, you are not alone. I also have not find the quick solution. So I
> VZ> call texexec two times when working with MP graphics,
> VZ> color definitions, ... :-(
> 
> running it twice is something i can live with, but if it will not
> solve the problem, then it is... what do i do wrong?

Once, I had a similar problem: modifications in the embedded MetaFun code
did not show up in the pdf or ps file, even after 4 or 5 texexec runs.
The solution was, to delete all temporary files (*.mp *.tuo *.tui etc).
Cheers, Peter

-- 
http://pmrb.free.fr/contact/
_
FilmSearch engine: http://f-s.sf.net/
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] figure placement and flushbottom

2004-08-11 Thread Hans Hagen
Peter Münster wrote:
\let\stoptextO=\stoptext
\def\stoptext{\vfilll\stoptextO}
 

I don't know what you want to achieve but this is not working because 0 is not a character (and therefore not part of a \cs) 


\let\Mystoptext\stoptext
\def\stoptext{\vfilll\Mystoptext}
 

could but you may expect funny side effects, so better use:
\prependtoks \vfilll \to \everystoptext
Hans 

-
 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
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] no graph after compilation

2004-08-11 Thread Patrick Gundlach
Hello,

> i did, but it has side-effects...
> it will scale, but the color disappears too.
> try.

This is indeed strange. Any metapost experts?


Patrick
-- 
ConTeXt wiki: http://contextgarden.net
texshow-web:  http://texshow.contextgarden.net
List archive: http://archive.contextgarden.net
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: no graph after compilation

2004-08-11 Thread Patrick Gundlach
Hi Vit,

> cont-sys.tex (without comments):
> \usetypescript [berry] [\defaultencoding]
> \runMPgraphicstrue
> \runMPTEXgraphicstrue
> \useMETAFUNformattrue
> \newprettytrue
> \protectbufferstrue

That looks fine to me.

Patrick
-- 
ConTeXt wiki: http://contextgarden.net
texshow-web:  http://texshow.contextgarden.net
List archive: http://archive.contextgarden.net
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] no graph after compilation

2004-08-11 Thread Vit Zyka
VZ> Floris, you are not alone. I also have not find the quick solution. So I
VZ> call texexec two times when working with MP graphics,
VZ> color definitions, ... :-(
running it twice is something i can live with, but if it will not
solve the problem, then it is... what do i do wrong?

Vit and Floris,
if your TeX source is one file only, please do me a favour: try the
TeX files on live.contextgarden.net and see if the output comes out
right. If it doesn't, I'd like to know about it. If it does, please
report on the list. Do you have write18 (texmf.cnf) enabled? How does your
cont-sys.tex look like? What distribution do you use?
I have (on live..) disabled write18, \runMPgraphicstrue
and \runMPTEXgraphicstrue.
Thank you, Patrick, I will monitor the case and I will let you know if 
it occures again.

I am using two distributions (the case was observed on both):
1) TeX Live 2002/Linux; write18 enabled
2) TeX Live 2003/Win 2K, updated ConTeXt on Win 2000;
   write18 disabled for a long time, but it was enabled a month ago
cont-sys.tex (without comments):
\usetypescript [berry] [\defaultencoding]
\runMPgraphicstrue
\runMPTEXgraphicstrue
\useMETAFUNformattrue
\newprettytrue
\protectbufferstrue
Vit
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[2]: [NTG-context] no graph after compilation

2004-08-11 Thread Floris van Manen
>> PG> currentpicture :=nullpicture;
>> PG> draw pic scaled 3 ;
>> PG> 
>> PG> clears the first picture.
>>
>>
>> but i only intend to draw one picture...
PG> 
PG> is this a question? Did you try the code?


i did, but it has side-effects...
it will scale, but the color disappears too.
try.

-


%% interface=english output=pdftex
\setupcolors[state=start]
\starttext
\startuseMPgraphic{dummy}
drawoptions(withpen pencircle scaled .1pt) ;
w0 := 0cm ; w1 := 1.2cm ; w2 := 2.7 cm ; w3 := 3.0cm ;
ww0 := 0.96cm ; ww1 := 1.2cm ; ww2 := 1.8cm ; ww3 := 2.4cm ;
path p ; p := (w0,w0)--(w0,ww0)--(w1,ww1)--(w3,ww2)--(w3,w0)--cycle ;
drawoptions(withpen pencircle scaled .1pt withcolor .625yellow) ;
draw hlingrid(0, 5, 1, 3cm, 3cm)  ;
draw vlingrid(0, 10, 1, 3cm, 3cm)  ;
drawoptions(withpen pencircle scaled 1mm withcolor black) ;
dotlabel.top ("1" , point 1 of p)  ;
dotlabel.top ("2" , point 2 of p)  ;
dotlabel.top ("3" , point 3 of p)  ;


%   enable/disable this section %%
picture pic ; pic := currentpicture ;
currentpicture := nullpicture ;
draw pic scaled 1.0 ;
%

\stopuseMPgraphic
\useMPgraphic{dummy}
\stoptext

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] no graph after compilation

2004-08-11 Thread Patrick Gundlach
Floris van Manen <[EMAIL PROTECTED]> writes:

> PG> currentpicture :=nullpicture;
> PG> draw pic scaled 3 ;
> PG> 
> PG> clears the first picture.
>
>
> but i only intend to draw one picture...

is this a question? Did you try the code?

Patrick
-- 
ConTeXt wiki: http://contextgarden.net
texshow-web:  http://texshow.contextgarden.net
List archive: http://archive.contextgarden.net
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[2]: [NTG-context] no graph after compilation

2004-08-11 Thread Floris van Manen
PG> You should tell metapost to erase the first picture before drawing
PG> the second one. So:
PG> 
PG> 
PG> currentpicture :=nullpicture;
PG> draw pic scaled 3 ;
PG> 
PG> clears the first picture.


but i only intend to draw one picture...


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] no graph after compilation

2004-08-11 Thread Patrick Gundlach
Hello Floris,

> the line. i see two lines, a single row of dots and two rows of
> labels, one small one large...
> You can tell that i'm not very good in telling the right thing to the
> compiler :-)
> but what should i tell?

You should tell metapost to erase the first picture before drawing
the second one. So:


currentpicture :=nullpicture;
draw pic scaled 3 ;

clears the first picture.

Patrick
-- 
ConTeXt wiki: http://contextgarden.net
texshow-web:  http://texshow.contextgarden.net
List archive: http://archive.contextgarden.net
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] no graph after compilation

2004-08-11 Thread Patrick Gundlach
Hello Floris,

> where do i do this?
> in C:\texLive\texmf\tex\context\user\cont-sys.rme ?
> and what do i type there?

see the wiki:

http://contextgarden.net/Cont-sys.tex
and
http://contextgarden.net/Texmf.cnf

Does this help?

Patrick
-- 
ConTeXt wiki: http://contextgarden.net
texshow-web:  http://texshow.contextgarden.net
List archive: http://archive.contextgarden.net
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[2]: [NTG-context] no graph after compilation

2004-08-11 Thread Floris van Manen
Hi Patrick,

PG> if your TeX source is one file only, please do me a favour: try the
PG> TeX files on live.contextgarden.net and see if the output comes out
PG> right. If it doesn't, I'd like to know about it. If it does, please
PG> report on the list.

yes this works great. every change i make is directly visible after a
single texexec hit.

PG> Do you have write18 (texmf.cnf) enabled? How does your
PG> cont-sys.tex look like? What distribution do you use?

i use the LiveTeX PC version.

PG> I have (on live..) disabled write18, \runMPgraphicstrue
PG> and \runMPTEXgraphicstrue.

where do i do this?
in C:\texLive\texmf\tex\context\user\cont-sys.rme ?
and what do i type there?



Also i noticed a strange thing happening in the following file.
What i expect is a single line with a dotted label on each point of
the line. i see two lines, a single row of dots and two rows of
labels, one small one large...
You can tell that i'm not very good in telling the right thing to the
compiler :-)
but what should i tell?




% interface=english output=pdftex

\setupcolors[state=start]
\starttext

\startuseMPgraphic{dummy}

drawoptions(withpen pencircle scaled .1pt) ;

w0 := 0cm ; w1 := 0.4cm ; w2 := 0.9 cm ; w3 := 1.0cm ;
ww0 := 0.32cm ; ww1 := 0.4cm ; ww2 := 0.6cm ; ww3 := 0.8cm ;

path q ; q := (w0,w0)--(w0,ww0)--(w1,ww1)--(w2,ww2)--(w3,ww3)--(w3,w0)--cycle ;

pickup pencircle scaled 1mm ;
defaultscale := 0.5 ;
dotlabel.bot ("1" , point 1 of q) ;
dotlabel.bot ("2" , point 2 of q) ;
dotlabel.bot ("3" , point 3 of q) ;
dotlabel.bot ("4" , point 4 of q) ;

draw q ;

picture pic ; pic := currentpicture ;
draw pic scaled 3 ;

drawoptions(withpen pencircle scaled .1pt withcolor .625yellow) ;
draw hlingrid(0, 5, 1, 3cm, 3cm) ;
draw vlingrid(0, 10, 1, 3cm, 3cm) ;

\stopuseMPgraphic

\useMPgraphic{dummy}

\stoptext










Floris van Manen <[EMAIL PROTECTED]> writes:

> VZ> Floris, you are not alone. I also have not find the quick solution. So I
> VZ> call texexec two times when working with MP graphics,
> VZ> color definitions, ... :-(
>
> running it twice is something i can live with, but if it will not
> solve the problem, then it is... what do i do wrong?

Vit and Floris,



Patrick
-- 
ConTeXt wiki: http://contextgarden.net
texshow-web:  http://texshow.contextgarden.net
List archive: http://archive.contextgarden.net
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] no graph after compilation

2004-08-11 Thread Patrick Gundlach
Floris van Manen <[EMAIL PROTECTED]> writes:

> VZ> Floris, you are not alone. I also have not find the quick solution. So I
> VZ> call texexec two times when working with MP graphics,
> VZ> color definitions, ... :-(
>
> running it twice is something i can live with, but if it will not
> solve the problem, then it is... what do i do wrong?

Vit and Floris,

if your TeX source is one file only, please do me a favour: try the
TeX files on live.contextgarden.net and see if the output comes out
right. If it doesn't, I'd like to know about it. If it does, please
report on the list. Do you have write18 (texmf.cnf) enabled? How does your
cont-sys.tex look like? What distribution do you use?

I have (on live..) disabled write18, \runMPgraphicstrue
and \runMPTEXgraphicstrue.


Patrick
-- 
ConTeXt wiki: http://contextgarden.net
texshow-web:  http://texshow.contextgarden.net
List archive: http://archive.contextgarden.net
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[2]: [NTG-context] no graph after compilation

2004-08-11 Thread Floris van Manen
VZ> Floris, you are not alone. I also have not find the quick solution. So I
VZ> call texexec two times when working with MP graphics,
VZ> color definitions, ... :-(

running it twice is something i can live with, but if it will not
solve the problem, then it is... what do i do wrong?

//f

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] no graph after compilation

2004-08-11 Thread Vit Zyka
Floris van Manen wrote:
PR> it seems that you haven't reached page 307
well i did.
as far as i understand it, the best way to deal with compiling is to
call texexec.
and i do get graphics in my pdf, but sometimes i need to do en extra
texexec cycle to see the changes come through. and sometimes i don't
get anything into my pdf. that is what makes me uncertain...
Floris, you are not alone. I also have not find the quick solution. So I 
call texexec two times when working with MP graphics,
color definitions, ... :-(

Vit Zyka
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[2]: [NTG-context] no graph after compilation

2004-08-11 Thread Floris van Manen
PR> it seems that you haven't reached page 307

well i did.
as far as i understand it, the best way to deal with compiling is to
call texexec.
and i do get graphics in my pdf, but sometimes i need to do en extra
texexec cycle to see the changes come through. and sometimes i don't
get anything into my pdf. that is what makes me uncertain...

//f

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] no graph after compilation

2004-08-11 Thread Peter Rolf
Hello Floris,
it seems that you haven't reached page 307
Have fun,
   Peter
Floris van Manen wrote:
i'm working through the metafun manual.
i noticed at some point that changes to the source do not appear in
the pdf output. sometimes after another texexec round, sometimes not
at all until i do something different in the tex file...
how come (or how to work around :-)
thanks!
//f
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context
 

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] figure placement and flushbottom

2004-08-11 Thread Peter Münster
Hello,
in general, the suggested method to get LaTeX \flushbottom behaviour, shown
on http://contextgarden.net/Flush_bottom, works quite well.
But here I have a situation, where I do not understand, why the first page
is not filled:

\setupwhitespace[0pt plus 1fill]
\defineblank[aroundfloat][0.8\lineheight plus 3fill minus 0.2\lineheight]
\setupfloats[spacebefore=aroundfloat,spaceafter=aroundfloat]
\let\stoptextO=\stoptext
\def\stoptext{\vfilll\stoptextO}

%\setupfloats[default={top,bottom,page}]% same as [EMAIL PROTECTED] in LaTeX?

\starttext
bla

\section{bla}% strange: if there is no table, then the figure placement is ok.
\starttable[|c|]
\NC bla\NC\AR
\stoptable

bla
\placefigure{bla}{\framed[height=10cm]{bla}}

\dorecurse{30}{\dorecurse{30}{bla }\par}
\stoptext


TIA for any hint, Peter

-- 
http://pmrb.free.fr/contact/
_
FilmSearch engine: http://f-s.sf.net/
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: howto overlayers on section head

2004-08-11 Thread Patrick Gundlach
Hello,

one addition,

you can always use the great debugging commands like

\showframe 

and 

\showmakeup

The latter is pretty complex to read, but in many cases you get a
grasp of what is going on without understanding every detail.

Patrick
-- 
ConTeXt wiki: http://contextgarden.net
texshow-web:  http://texshow.contextgarden.net
List archive: http://archive.contextgarden.net
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: howto overlayers on section head

2004-08-11 Thread Patrick Gundlach
Hello,

[...]

> hope this back and forth will not be just a waste, but something out
> of which we can both/all learned to improuve.

I think so, too. It has been a long time since I used ConTeXt. So I
have to refresh my rusty knowledge :-)

> "define your own command" , but you have to know THE (default) command
> fist, otherwise it is hard to obtain a result (.pdf) from something
> that is not just a copy of someonelse .tex

Right, but I'd guess that the default command is quite tricky. All
ConTeXt commands are quite tricky.

> \def\HeadTitle#1#2{\hbox to \hsize%
>  {\hfil%
>   {#1#2}\hfil}}
>
> \setuphead [chapter]
>[command=\HeadTitle]
>
> \starttext
> \chapter{ciao}
> \stoptext
>
> the two ex-s  are not the same , because spacing between the number
> and the title and allignment, why?

There is no horizontal "space" command between #1 (number) and #2
(title). But "space" is not just a simple " ". It can be many things.
I don't know if there is any good reading about these kind of spaces,
but let me show you a few:

( )regular space is pretty small, but can be stretched
\enspace   fixed space 0.5em  
\enskipspace .5em  (so called "skip")
\quad  space 1em  "
\qquad space 2em  "
\kern xx   space xx 
\hfil, \hfill  "very long" and "very very long" space

> Moving your howto overlay example, indeed very useful, from subject to
> chapter seems to me more subtle than just changing  section names

It is more a matter of section numbers/no section numbers. 

Patrick

-- 
ConTeXt wiki: http://contextgarden.net
texshow-web:  http://texshow.contextgarden.net
List archive: http://archive.contextgarden.net
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: howto overlayers on section head

2004-08-11 Thread Eros Albertazzi
thanks again for the summary.
hope this back and forth will not be just a waste, but something out of 
which we can both/all learned to improuve.

Patrick Gundlach wrote:
This is partly high level ConTeXt (\framed, background) and low level
TeX (hfill,...).
"partially high and low"... Here laid  my question not easy to untungle 
for a beginner (and believe me I have read the docs, although I do not 
claim to remember or understand all)

Summary: define a metapost graphic, use \defineoverlay to access
the mp graphic and use \framed{} to access the overlay
(background=...) and use \setuphead (command=somecommand) to define
your own command that acesses the \framed[background=...].
"define your own command" , but you have to know THE (default) command 
fist, otherwise it is hard to obtain a result (.pdf) from something that 
is not just a copy of someonelse .tex

let me start basic, ex-1
\starttext
\chapter{ciao}
\stoptext
let me remove \framed from your command, ex-2
\def\HeadTitle#1#2{\hbox to \hsize%
{\hfil%
{#1#2}\hfil}}
\setuphead [chapter]
  [command=\HeadTitle]
\starttext
\chapter{ciao}
\stoptext
the two ex-s  are not the same , because spacing between the number and 
the title and allignment, why?
Moving your howto overlay example, indeed very useful, from subject to 
chapter seems to me more subtle than just changing  section names
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Disappearing headers -- belated followup

2004-08-11 Thread Hans Hagen
Matt Gushee wrote:
On Tue, Aug 10, 2004 at 09:03:20PM +0200, Hans Hagen wrote:
 

i need a small doc with dummy text to see the effect -)
   

\setupheader[state=empty]
 

those seems redundant to me (since you set up the chapter head anyway)
   

Without that, headers were appearing on the first page of the chapter.
I expected there would be a global setup to suppress headers in such
places, but I couldn't find it. Did I miss something?
 

\setuphead[chapter][header=empty]
is understandable to someone not very familiar with ConTeXt internals)?
If the chapter and title headings are coupled, that implies (doesn't
it?) that they will appear or not appear in pairs everywhere. Yet in my
document, the title stopped appearing on one page and failed to reappear
for the rest of the book, whereas the chapter headings continued.
I may not absolutely need to know this, but it will help me understand
ConTeXt a little better.
 

a title is officially a chapter without number; so, title is part of the chapter reset chain (but not the reverse) 

Hans 

-
 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
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] The last line

2004-08-11 Thread Hans Hagen
Steffen Wolfrum wrote:
that means \placefigure{top,left}, WITH text around it, won't be doable in ConTeXt?
not even in your idea of ConTeXt4?
 

never say never, so far i managed to do more than i expected to be possible with tex 
so ...
Hans  

-
 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
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context