Re: [NTG-context] nomarking function in MKIV

2010-07-01 Thread Alan BRASLAU
On Thursday 01 July 2010 00:35:44 Wolfgang Schuster wrote:
 Am 30.06.10 10:19, schrieb Alan BRASLAU:
  
  Additionally,
  \chapter [title={First chapter},list={First}]
  does not work. Logically this should work just as \startchapter.
 
 This won't happen

So it is not a good idea?
Or just complicated to implement, currently?

 but what you can do is to write a macro which accepts
 different values for
 headers/footers, the running text and the toc (i know the entries in the
 toc and text are wrong).

There is an entire class of users who will not get involved
writing macros, for whom \unprotect \protect is unknown.
I know that this is certainly *not* your case.

Following is a (somewhat long) reflection:

Functionality such as the subject of this thread
should be available by default, without having to mess with macros.
In particular, functionality present in LaTeX for quite some time
should be possible within ConTeXt rather easily, the ConTeXt way,
of course.

Thus,
  \chapter[toc-entry]{title}
of LaTeX should have its equivalent in ConTeXt,
and this would be logically something like:
  \chapter [title={title},list={toc-entry}]

Furthermore,
  \chapter*{title}
of LaTeX should also have its simple equivalent in ConTeXt,
and this would be logically something like:
  \chapter [number=no] {title}


Considering figures, tables, etc., in LaTeX we have:
  \begin{figure}[where]
figure
\caption[lof-entry]{figure caption}
\label{fig:reference}
  \end{figure}
and in ConTeXt:
  \placefigure [where] [fig:reference]
{caption}
{figure}
which could very logically be:
  \placefigure [where] [fig:reference] [caption=no]
{figure}
and 
  \placefigure [where] [fig:reference] [caption={caption},list={lof-entry}]
{figure}
the ConTeXt way!

Alan

P.S. While on the subject, in TeX, LaTeX and ConTeXt we have:
  $$ displayed math $$
and additionally in LaTeX, we have:
  \begin*{equation}
displayed math
  \end{equation}
while in ConTeXt we have
  \placeformula [-]
$$ displayed math $$
or, alternately (to get spacing right)
  \placeformula [-]
\startformula
  displayed math
\stopformula  

Whereas I understand \placelist, \placecontent, etc.
I don't really understand the logic of
  \placeformula, \placefigure, \placetable
for floats.
Especially now that I just discovered the existence of
  \startfiguretext \stopfiguretext
OK, there are different mechanisms behind \startfiguretext
and \placefigure: it is not a float but a box:
  \startfiguretext [left] {none}
{\externalfigure [figure] [width=w]}
text
  \stopfiguretext  
akin to
  \placesidebyside
{\externalfigure [figure] [width=w]}
{\framed [frame=no,width=\textwidth-w,align=text] {text}}

Would not
  \startfloatfigure [where] [fig:reference] [caption={text}]
figure
  \stopfloatfigure
and
  \startfloattable [where] [tab:reference] [caption={text}]
figure
  \stopfloattable
etc. be much more logical, coherent?
Furthermore, we could have:
  \startformula [where] [eqn:reference] [number=no]
displayed math
  \stopformula
where where could be here, inline, etc. 
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] nomarking function in MKIV

2010-07-01 Thread Wolfgang Schuster

Am 01.07.10 10:16, schrieb Alan BRASLAU:

On Thursday 01 July 2010 00:35:44 Wolfgang Schuster wrote:
   

Am 30.06.10 10:19, schrieb Alan BRASLAU:
 

Additionally,
\chapter [title={First chapter},list={First}]
does not work. Logically this should work just as \startchapter.
   

This won't happen
 

So it is not a good idea?
Or just complicated to implement, currently?
   


It's possible but Hans answer is he will not implement this. Since he 
also removed
the paragraph delimited versions of the header commands (\chapter 
...\par) your

chances for extensions are very low.


but what you can do is to write a macro which accepts
different values for
headers/footers, the running text and the toc (i know the entries in the
toc and text are wrong).
 

There is an entire class of users who will not get involved
writing macros, for whom \unprotect \protect is unknown.
I know that this is certainly *not* your case.
   


What i tried to show with my example this what's possible to get around
with the limitations but my code does not work and won't work with the
help of Hans because it needs hocks in the list macros (there is currently
no automated way to tell whether you're in a list or not).

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] blurred shadow on images?

2010-07-01 Thread Henning Hraban Ramm

Am 2010-06-30 um 22:47 schrieb Wolfgang Schuster:

You can change the boundingbox in the metapost graphic (the white  
background was required

for the cow figure because it has a transparent background)


Thank you! I used an opaque picture for my tests.

I played a bit with different shapes, I like my rounded rectangle best:

\startuniqueMPgraphic{mpshadow}
ox := -7 ; % offset x
oy := -7 ; % offset y
bx := 5 ; % bleed x
by := 5 ; % bleed y
rx := 7 ; % corner radius x
ry := 7 ; % corner radius y
for dx = 0 upto 40:
dy := dx ;
xa := dx + ox - bx/2;
xb := \overlaywidth - dx + ox + bx/2;
ya := dy + oy - by/2;
yb := \overlayheight - dy + oy + by/2;

%   % rectangle
%   fill (xa,ya)--(xb,ya)--(xb,yb)--(xa,yb)--cycle
%   withcolor transparent(normal, .04, black) ;

% rounded rectangle
fill (xa, ya + ry)---
(xa, yb - ry)..
(xa + rx, yb)---
(xb - rx, yb)..
(xb, yb - ry)---
(xb, ya + ry)..
(xb - rx, ya)---
(xa + rx, ya)..cycle
withcolor transparent(normal, .04, black) ;

%   % super ellipse
%   hx := xb / 2;
%   hy := yb / 2;
%   fill (xa + rx, ya + ry)...
%   (xa, ya + hy)...
%   (xa + rx, yb - ry)...
%   (xa + hx, yb)...
%   (xb - rx, yb - ry)...
%   (xb, ya + hy)...
%   (xb - rx, ya + ry)...
%   (xa + hx, ya)...cycle
%   withcolor transparent(normal, .04, black) ;
endfor;
setbounds currentpicture to OverlayBox ;
\stopuniqueMPgraphic

\defineoverlay[shadow][\useMPgraphic{mpshadow}]

\starttext

\rotate[rotation=12]{%
\externalfigure[koe][width=50mm,background=shadow]
}

\stoptext




Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] nomarking function in MKIV

2010-07-01 Thread Peter Münster
On Thu, Jul 01 2010, Alan BRASLAU wrote:

 Functionality such as the subject of this thread
 should be available by default, without having to mess with macros.
 In particular, functionality present in LaTeX for quite some time
 should be possible within ConTeXt rather easily, the ConTeXt way,
 of course.

The ConTeXt way is now: \startchapter[...] \stopchapter
When you don't need the extra functionality, you can use the old \chapter
command, but when you need it, the just use the new environment.

 Thus,
   \chapter[toc-entry]{title}
 of LaTeX should have its equivalent in ConTeXt,
 and this would be logically something like:
   \chapter [title={title},list={toc-entry}]

Why? LaTeX is not the reference for ConTeXt.
It could also be like this:
\startsection[type=chapter, title=my title, ...]
\stopsection

 Furthermore,
   \chapter*{title}
 of LaTeX should also have its simple equivalent in ConTeXt,
 and this would be logically something like:
   \chapter [number=no] {title}

This should be simple enough:
\startchapter[number=no]
\stopchapter

 which could very logically be:
   \placefigure [where] [fig:reference] [caption=no]
 {figure}
 and 
   \placefigure [where] [fig:reference] [caption={caption},list={lof-entry}]
 {figure}
 the ConTeXt way!

Or:
\placefigure[where=here, label=fig:label, caption=my caption, ...]{figure}

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] nomarking function in MKIV

2010-07-01 Thread Alan BRASLAU
On Thursday 01 July 2010 11:23:01 Peter Münster wrote:
 On Thu, Jul 01 2010, Alan BRASLAU wrote:
  Functionality such as the subject of this thread
  should be available by default, without having to mess with macros.
  In particular, functionality present in LaTeX for quite some time
  should be possible within ConTeXt rather easily, the ConTeXt way,
  of course.
 
 The ConTeXt way is now: \startchapter[...] \stopchapter
 When you don't need the extra functionality, you can use the old \chapter
 command, but when you need it, the just use the new environment.

This is an unsatisfactory statement, indeed.

No one has answered my question about to what belongs any text
between a proceding \stopchapter and a following \startchapter, as in
\startchapter{title}
\stopchapter
some text
\startchapter{next title} 
\stopchapter

There remains thus some logical/structural problem with this new scheme.
(This does not mean, at all, that I dislike the \start \stop syntax.)


  Thus,
  
\chapter[toc-entry]{title}
  
  of LaTeX should have its equivalent in ConTeXt,
  
  and this would be logically something like:
\chapter [title={title},list={toc-entry}]
 
 Why? LaTeX is not the reference for ConTeXt.

So you/we have nothing to learn from years of experience and use of LaTeX?
It is indeed not a reference, but an indicator.

Do not forget, as well, that many new ConTeXt users will be coming from 
LaTeX...

Alan
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] centralized bib database

2010-07-01 Thread Jean Magnan de Bornier
Hi all,

AFAIK with the bib module one can't specify the database by an URL. I
believe such feature would be great in allowing users to centralise all
the bibliographical stuff in one place even when they work on several
machines/places. 

regards,
-- 
Jean
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] nomarking function in MKIV

2010-07-01 Thread luigi scarso
On Thu, Jul 1, 2010 at 11:44 AM, Alan BRASLAU alan.bras...@cea.fr wrote:
 On Thursday 01 July 2010 11:23:01 Peter Münster wrote:
 On Thu, Jul 01 2010, Alan BRASLAU wrote:
  Functionality such as the subject of this thread
  should be available by default, without having to mess with macros.
  In particular, functionality present in LaTeX for quite some time
  should be possible within ConTeXt rather easily, the ConTeXt way,
  of course.

 The ConTeXt way is now: \startchapter[...] \stopchapter
 When you don't need the extra functionality, you can use the old \chapter
 command, but when you need it, the just use the new environment.

 This is an unsatisfactory statement, indeed.

 No one has answered my question about to what belongs any text
 between a proceding \stopchapter and a following \startchapter, as in
 \startchapter{title}
 \stopchapter
 some text
 \startchapter{next title}
 \stopchapter

 There remains thus some logical/structural problem with this new scheme.
 (This does not mean, at all, that I dislike the \start \stop syntax.)

\starttext

\input knuth %%% what about this ?

\chapter{Foo}
\input tufte %% ok it's in ch. Foo

%% what about these ?
\startstandardmakeup
foo \page boo \page goo \page
\stopstandardmakeup

\chapter{Goo}
\input tufte %% ok it's in ch. Goo

\stoptext

New schema  Old schema

-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] centralized bib database

2010-07-01 Thread Taco Hoekwater

On 07/01/2010 11:51 AM, Jean Magnan de Bornier wrote:

Hi all,

AFAIK with the bib module one can't specify the database by an URL. I
believe such feature would be great in allowing users to centralise all
the bibliographical stuff in one place even when they work on several
machines/places.


There is a simple reason for that: bibtex cannot read URLs.

Best wishes,
Taco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] nomarking function in MKIV

2010-07-01 Thread Thomas A. Schmitz

On Jul 1, 2010, at 11:44 AM, Alan BRASLAU wrote:

 No one has answered my question about to what belongs any text
 between a proceding \stopchapter and a following \startchapter, as in
 \startchapter{title}
 \stopchapter
 some text
 \startchapter{next title} 
 \stopchapter

Excuse me, but your question is just plain nonsense. What you show us is sloppy 
writing. Why should ConTeXt or any other system cater to this? You're asking 
where does text belong that doesn't belong to any hierarchical structure of my 
document? The answer is obvious: this text doesn't belong anywhere. 

Thomas
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] nomarking function in MKIV

2010-07-01 Thread Henning Hraban Ramm

Am 2010-07-01 um 11:44 schrieb Alan BRASLAU:

No one has answered my question about to what belongs any text
between a proceding \stopchapter and a following \startchapter, as in
\startchapter{title}
\stopchapter
some text
\startchapter{next title}
\stopchapter


If you write such, you must know what you mean.

Compare with HTML:

psomething/p
what's this?
pother stuff/p

While in the olde days we used to write

somethingp
other stuffp

this incomplete syntax is gone now. Similar to ConTeXt's evolution.

There remains thus some logical/structural problem with this new  
scheme.


Nothing is ever perfect.
The old scheme wasn't better, see e.g. Lugi's post.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] nomarking function in MKIV

2010-07-01 Thread luigi scarso
On Thu, Jul 1, 2010 at 12:00 PM, Thomas A. Schmitz
thomas.schm...@uni-bonn.de wrote:

 On Jul 1, 2010, at 11:44 AM, Alan BRASLAU wrote:

 No one has answered my question about to what belongs any text
 between a proceding \stopchapter and a following \startchapter, as in
 \startchapter{title}
 \stopchapter
 some text
 \startchapter{next title}
 \stopchapter

 Excuse me, but your question is just plain nonsense. What you show us is 
 sloppy writing. Why should ConTeXt or any other system cater to this? You're 
 asking where does text belong that doesn't belong to any hierarchical 
 structure of my document? The answer is obvious: this text doesn't belong 
 anywhere.
well, to avoid black hole we can say  that
some text
belongs to  the parent  section of chapter (part in this case or section0)
which actually is  virtual , ie almost doesn't influences output.
So one can think to an endless chain
... section-2  section-1  section0 aka 'part'   section1 'aka' chapter ...

where 'a  b' mean a is parent of b


For virtual consider
\starttext
\chapter{foo}
\subsection{goo}
\stoptext

where there is a virtual \section .

More or less (maybe less than more) .


-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] centralized bib database

2010-07-01 Thread Andreas Schneider
Jean Magnan de Bornier wrote:

 Hi all,
 
 AFAIK with the bib module one can't specify the database by an URL. I
 believe such feature would be great in allowing users to centralise all
 the bibliographical stuff in one place even when they work on several
 machines/places.
 
 regards,

I personally use Zotero for that - nice interface, online sync, file 
database and of course: it can export to bibtex.

Mendeley might also work, but I had lots of problems with their bibtex 
export (simply because it wasn't really bibtex, saving fields that aren't in 
the specs, etc.)

Best Regards,
Andreas.

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] centralized bib database

2010-07-01 Thread Jean Magnan de Bornier
Le 01 juillet à 11:58:11 Taco Hoekwater t...@elvenkind.com écrit notamment:

| On 07/01/2010 11:51 AM, Jean Magnan de Bornier wrote:
|  Hi all,
| 
|  AFAIK with the bib module one can't specify the database by an URL. I
|  believe such feature would be great in allowing users to centralise all
|  the bibliographical stuff in one place even when they work on several
|  machines/places.

| There is a simple reason for that: bibtex cannot read URLs.

I see..

According to some messages from Hans, mkiv will someday be freed from
bibtex, is that right? Will we then have this feature?


As to zotero I know and use it, but it always requires some manipulations.

cheers,
-- 
Jean
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] centralized bib database

2010-07-01 Thread Taco Hoekwater

On 07/01/2010 01:35 PM, Jean Magnan de Bornier wrote:

Le 01 juillet à 11:58:11 Taco Hoekwatert...@elvenkind.com  écrit notamment:

| On 07/01/2010 11:51 AM, Jean Magnan de Bornier wrote:
|  Hi all,
|
|  AFAIK with the bib module one can't specify the database by an URL. I
|  believe such feature would be great in allowing users to centralise all
|  the bibliographical stuff in one place even when they work on several
|  machines/places.



| There is a simple reason for that: bibtex cannot read URLs.

I see..

According to some messages from Hans, mkiv will someday be freed from
bibtex, is that right? Will we then have this feature?


Probably yes, as the new system will be in-lined and using lua.

Best wishes,
Taco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] XY arranging

2010-07-01 Thread Henning Hraban Ramm

Is XY arranging supposed to work in MkIV?
I call context --arrange myfile, but get only one paper per sheet.  
Other imposition schemas are working ok.



\setuppapersize [A7][A4]
\setuparranging [XY]
\setuppaper[nx=2,ny=2]
\setuppagenumbering [alternative=doublesided,location=footer]
\setuplayout [margin=0pt,width=fit]
\setupbackgrounds [text][text][background=screen,backgroundscreen=0.7]
\setuplayout [location=middle,marking=on]

\def\Style{[XY 2*2]}


\startbuffer[Fakepage]
\strut
\blank
\midaligned{\Style}
\vfill
\midaligned{This is page \recurselevel}
\vfill
\stopbuffer

\setupheadertexts[\CONTEXT]

\starttext
\dorecurse{16}{\getbuffer[Fakepage]\page}

\stoptext



Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] nomarking function in MKIV

2010-07-01 Thread Alan BRASLAU
On Thursday 01 July 2010 12:00:45 Thomas A. Schmitz wrote:
 On Jul 1, 2010, at 11:44 AM, Alan BRASLAU wrote:
  No one has answered my question about to what belongs any text
  between a proceding \stopchapter and a following \startchapter, as in
  \startchapter{title}
  \stopchapter
  some text
  \startchapter{next title}
  \stopchapter
 
 Excuse me, but your question is just plain nonsense. What you show us is
 sloppy writing. Why should ConTeXt or any other system cater to this?
 You're asking where does text belong that doesn't belong to any
 hierarchical structure of my document? The answer is obvious: this text
 doesn't belong anywhere.

This is a very good answer.

Now, think about robustness. So called sloppy writing
can easily happen in a very big project, or more likely
by an inexperienced user. ConTeXt is pretty good in handling
this, but not perfect. How many times have we tried options
that do not exist and which are simply ignored in silence.

Now try:
  \input knuth
  \starttext
  What about this?
  \stoptext

Sometimes our errors, ignored in silence, end up having
strange side effects that are long to debug. I came across
this, for example, using by mistake \cite{reference}
rather then \cite[reference].

Back to robustness, I once wrote a very big system used to run
expriments. It *had* to be robust. Luckly, to insure this,
I had a collegue who was very good in doing every thing wrong.
For example, if the program asked how many cycles to run,
he was capable of typing yes. Why not?
The program still had to handle this correctly.
Should be the same for typesetting.

I hope that you all *never* make mistakes.
Remember, *real* unix users only use cat;
All other text editors are for sissys.

Alan
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] XY arranging

2010-07-01 Thread Wolfgang Schuster

Am 01.07.10 15:34, schrieb Henning Hraban Ramm:

Is XY arranging supposed to work in MkIV?
I call context --arrange myfile, but get only one paper per sheet. 
Other imposition schemas are working ok.



\setuppapersize [A7][A4]
\setuparranging [XY]
\setuppaper[nx=2,ny=2]
\setuppagenumbering [alternative=doublesided,location=footer]
\setuplayout [margin=0pt,width=fit]
\setupbackgrounds [text][text][background=screen,backgroundscreen=0.7]
\setuplayout [location=middle,marking=on]


Move \setuparranging to the end:

\setuppapersize [A7][A4]
\setuppaper[nx=2,ny=2]
\setuppagenumbering [alternative=doublesided,location=footer]
\setuplayout [margin=0pt,width=fit]
\setupbackgrounds [text][text][background=screen,backgroundscreen=0.7]
\setuplayout [location=middle,marking=on]
\setuparranging [XY]


\def\Style{[XY 2*2]}


\startbuffer[Fakepage]
\strut
\blank


\blank[force,...]

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Shaded frame with colored text

2010-07-01 Thread Tom
I haven't had any luck filling in the background of a frame with any color
other than black and with changing the color of the text in the frame to
white or gray. What needs to be added to this mkii code?

\def\MyChapterCommand#1#2% #1 is number, #2 is text
  {\framed[frame=on,align=middle]
 {\vbox{\headtext{chapter} #1\blank#2}}} 

\setuphead[chapter]
 [command=\MyChapterCommand,textstyle=\ss\bf,
  header=empty,footer=chapter,
  numbercommand=\ss\bf\em\tfd,after=\vskip 0.5in,before=\vskip 1.0in]
 
\starttext
\chapter{Test Chapter}
\input knuth
\stoptext

Thanks,

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey






___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Shaded frame with colored text

2010-07-01 Thread Wolfgang Schuster

Am 02.07.10 00:42, schrieb Tom:

I haven't had any luck filling in the background of a frame with any color
other than black and with changing the color of the text in the frame to
white or gray. What needs to be added to this mkii code?
   


Colors are disabled in MkII, to enable them include

\setupcolors[state=start]

to your document.

\def\MyChapterCommand#1#2% #1 is number, #2 is text
   {\framed[frame=on,align=middle]
  {\vbox{\headtext{chapter} #1\blank#2}}}
   

\framed
  [..,
   background=color,
   backgroundcolor=red,
   foregroundcolor=blue,
   ...]
  {...}

\setuphead[chapter]
  [command=\MyChapterCommand,textstyle=\ss\bf,
   header=empty,footer=chapter,
   numbercommand=\ss\bf\em\tfd,after=\vskip 0.5in,before=\vskip 1.0in]
   

use 'numberstyle' instead of 'numbercommand' for style related settings
and replace your \vskip settings with \blank

  before={\blank[force,1.0in]},
  after={\blank[0.5in]},

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] mtxrun error

2010-07-01 Thread 李延瑞
2010/6/30 luigi scarso luigi.sca...@gmail.com:
 On Wed, Jun 30, 2010 at 9:36 AM, Alan BRASLAU alan.bras...@cea.fr wrote:
 Latest minimals:

 mtxrun:9289: attempt to concatenate local 'v' (a table value)
 confirmed on my linux 32 box too


it seems that the following commands can solved this problem.

sed -i 's/t\[vv.v\]/t\[vv\]/g'  $TEXMFOS/bin/luatools
sed -i 's/t\[vv.v\]/t\[vv\]/g'  $TEXMFOS/bin/mtxrun



-- 
Best regards,

Li Yanrui (李延瑞)
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] mtxrun error

2010-07-01 Thread 李延瑞
2010/7/2 Li Yanrui (李延瑞) liyanrui...@gmail.com:
 2010/6/30 luigi scarso luigi.sca...@gmail.com:
 On Wed, Jun 30, 2010 at 9:36 AM, Alan BRASLAU alan.bras...@cea.fr wrote:
 Latest minimals:

 mtxrun:9289: attempt to concatenate local 'v' (a table value)
 confirmed on my linux 32 box too


 it seems that the following commands can solved this problem.

 sed -i 's/t\[vv.v\]/t\[vv\]/g'  $TEXMFOS/bin/luatools
 sed -i 's/t\[vv.v\]/t\[vv\]/g'  $TEXMFOS/bin/mtxrun


sorry, i'm wrong.


-- 
Best regards,

Li Yanrui (李延瑞)
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___