Re: [NTG-context] How to do this in ConTeXt

2006-01-04 Thread FabriceL.

Hi,

   Hans, it's so instructive to read yout post... I have learned from 
this last post 2 new commands !
However, I think the original poster wish a line who run to the right 
margin, so I added to your code
in the defineenumeration a inbetween=\vskip-4pt{\hrule height 
1.5pt}\blank. This is not very elegant,
but this works. By the way, I'm interested to know if there is a better 
solution.


 Hans wrote:
 one of you has to wikify this answer ...

I'm not sure how to do this, but I can try how this works.
The complete code follows.
FL.

\setupcolors[state=start]
\setupbackgrounds[text][text][background=color,backgroundcolor=darkred,backgroundoffset=3pt]

\defineenumeration
 [example]
 [way=bychapter,
  separator=\compoundhyphen,
  chapternumber=yes,
  color=white,
  command=\exampleframed,
  inbetween=\vskip-4pt{\hrule height 1.5pt}\blank]

\defineframed
 [exampleframed]
 [background=color,
  backgroundcolor=black,
  foregroundcolor=white,
  style=bold,
  frame=off]

\starttext

\chapter{One}

\input tufte

\startexample
   \input tufte
\stopexample

\input tufte

\stoptext

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Closing PDF file at each run

2006-02-28 Thread FabriceL.

Hooman Javidnia a écrit :

 Hi,

 When compiling a file in SciTE using F7, if the file, is already open in
 Adobe Acrobat, the compilation stops and asks for a new file name to write
 the PDF file to. I think the normal behavior would be to automatically
 close the current instance of the file in Acrobat and compile it again.

 Is there something wrong with my installation, or this is a bug?
 Regards, -- Hooman

Hi. This is interesting, since I have the same problem with WinEdt and 
Acrobat (on Windows). I had notice
that is there is not input file in my ConTeXt file, then, when I compile 
by WinEdt interface,
the pdf file is closed with no problem. If I use an \input file.tex 
command in the ConTeXt file,
then one ask me a file name for the pdf, since the file can not be 
closed automatically. I had
consult WinEdt mailing  list too, and no solution there. I have no 
solution, but from the symtom
I describe, I suspect this is a ConTeXt thing...

Fabrice.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context