[NTG-context] Can not register the callback functions in MkIV

2010-02-18 Thread Yanrui Li
Hi,

Now it seems that we have not allowed to register the callback functions
since beta 2010.02.18.

For example:

\startluacode

local old_pre_linebreak_filter = callback.find ('pre_linebreak_filter')

local function my_pre_linebreak_filter (head, groupcode)
if old_pre_linebreak_filter then
old_pre_linebreak_filter (head, groupcode)
end
print ('This is my pre_linebreak_callback')
return true
end

callback.register ('pre_linebreak_filter', my_pre_linebreak_filter)

\stopluacode

\starttext

This is just a test!

\stoptext

The 'my_pre_linebreak_filter' function can not work again. Is this a bug?

-- 
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
___


[NTG-context] Metafun does not change color

2010-02-18 Thread Xan

Hi,

I have the following code (see at final). I define SquareText to be 
darkblue in framecolor, but metafun use darkred. Why? Any ideas?


Xan.

\page
\section{Tectònica de plaques}

\subsection{Com es formen els relleus?}

\setupFLOWcharts[width=.4\textwidth]

\startFLOWchart[fixistes]
\startFLOWcell
 \name {Fonts}
 \location {1,1}
 \text {Algunes teories es basaven en relats bíblics.  Atribuïen al 
diluvi universal la causa d'alguns relleus i la presència de fòssils 
marins a les muntanyes.}

 \connection [rl] {fixistes}
 \shape{procedure}
\stopFLOWcell
\startFLOWcell
 \name {fixistes}
 \location{2,1}
 \text {Altres suposaven que la Terra s'ha anat arrugat progressivament 
en refredar-se i que els relleus són arrugues provocades per l'escorça 
en contracció.}

 \shape{decision}
\stopFLOWcell
\stopFLOWchart



\defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}]
\defineframedtext[FunnyText][frame=off,background=FunnyFrame]
\def\StartFrame{\startFunnyText}
\def\StopFrame {\stopFunnyText }
\def\FrameTitle#1%
 {\setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut#1\hss}}}
\setMPtext{FunnyFrame}{} % initialize the text variable

\startuseMPgraphic{FunnyFrame}
 picture p ; numeric o ; path a, b ; pair c ;
 p := textext.rt(\MPstring{FunnyFrame}) ;
 o := BodyFontSize ;
 a := unitsquare xyscaled(OverlayWidth,OverlayHeight) ;
 p := p shifted (2o,OverlayHeight-ypart center p) ;
 pickup pencircle scaled OverlayLineWidth ;
 b := a superellipsed .95 ;
 fill b withcolor OverlayColor ;
 draw b withcolor OverlayLineColor ;
 b := (boundingbox p) superellipsed .95 ;
 fill b withcolor OverlayColor ;
 draw b withcolor OverlayLineColor ;
 draw p withcolor black ;
 setbounds currentpicture to a ;
\stopuseMPgraphic

\setupframedtexts
 [FunnyText]
 [backgroundcolor=lightgray,
  framecolor=darkred,
  rulethickness=2pt,
  offset=\bodyfontsize,
  before={\blank[big,medium]},
  after={\blank[big]},
  width=\textwidth]



\FrameTitle{Teories fixistes}
\StartFrame
Al llarg del segle XIX i el començament del XX, es crearen diverses 
teories que intentaven explicar l'origen de les serrelades i el 
plegament dels estrats, que no podem explicar fàcilment.


Totes aquestes teories tenen com a {\bf principi} que els continents i 
els oceans han ocupat les {\em mateixes posicions} des de l'origen de la 
Terra fins ara.

\StopFrame

\FLOWchart[fixistes]

\defineoverlay[SquareFrame][\useMPgraphic{SquareFrame}]
\defineframedtext[SquareText][frame=off,background=SquareFrame]
\def\StartSquareFrame{\startSquareText}
\def\StopSquareFrame {\stopSquareText }
\def\SquareTitle#1%
 {\setMPtext{SquareFrame}{\hbox spread 1em{\hss\strut#1\hss}}}
\setMPtext{SquareFrame}{} % initialize the text variable

\startuseMPgraphic{SquareFrame}
 picture p ; numeric o ; path a, b ; pair c ;
 p := textext.rt(\MPstring{SquareFrame}) ;
 a := unitsquare xyscaled(OverlayWidth,OverlayHeight) ;
 o := BodyFontSize ;
 p := p shifted (2o,OverlayHeight-ypart center p) ;
 drawoptions (withpen pencircle scaled 1pt withcolor .625red) ;
 b := a randomized (o/2) ;
 fill b withcolor .85white ; draw b ;
 c := center p ;
 c := b intersectionpoint (c shifted (0,-o)--c shifted(0,o)) ;
 p := p shifted (c-center p) ;
 b := (boundingbox p) randomized (o/8) ;
 fill b withcolor .85white ; draw b ;
 draw p withcolor black;
 setbounds currentpicture to a ;
\stopuseMPgraphic


\setupframedtexts
 [SquareText]
 [backgroundcolor=screen,
  framecolor=darkblue,
  rulethickness=2pt,
  offset=\bodyfontsize,
  before={\blank[big,medium]},
  after={\blank[big]},
  width=\textwidth]


\SquareTitle{Mobilisme}
\StartSquareFrame
El 1912, Alfred Wegener proposa una teoria revolucionària
\StopSquareFrame

___
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] Flowchart module--> height proportional to text

2010-02-18 Thread Xan

Hi,

I use flowchart module for doing a simple chart (see attach files) but 
the text is over the node ("Fonts"). Is there anyway for doing node 
ocupies all text?


And is there any way for align the itemize within to left?

Thanks in advance,
Xan,

PS; I use MKII. And please, CCme.


\section{Tectònica de plaques}

\subsection{Com es formen els relleus?}

\setupFLOWcharts[nx=2,ny=1,width=.4\textwidth]

\startFLOWchart[fixistes]
\startFLOWcell
 \name {Fonts}
 \location {1,1}
 \text {{\bf Fonts}

\startitemize[1]
\item Algunes teories es basaven en relats bíblics.  Atribuïen al diluvi 
universal la causa d'alguns relleus i la presència de fòssils marins a 
les muntanyes.
\item Altres suposaven que la Terra s'ha anat arrugat progressivament en 
refredar-se i que els relleus són arrugues provocades per l'escorça en 
contracció.

\stopitemize
}
 \connection [rl] {fixistes}
 \shape{loop}
\stopFLOWcell
\startFLOWcell
 \name {fixistes}
 \location{2,1}
 \text {Teories fixistes: Els continents i els oceans han ocupat les 
mateixes posicions des de l'origen de la Terra.}

\stopFLOWcell
\stopFLOWchart



\defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}]
\defineframedtext[FunnyText][frame=off,background=FunnyFrame]
\def\StartFrame{\startFunnyText}
\def\StopFrame {\stopFunnyText }
\def\FrameTitle#1%
 {\setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut#1\hss}}}
\setMPtext{FunnyFrame}{} % initialize the text variable

\startuseMPgraphic{FunnyFrame}
 picture p ; numeric o ; path a, b ; pair c ;
 p := textext.rt(\MPstring{FunnyFrame}) ;
 o := BodyFontSize ;
 a := unitsquare xyscaled(OverlayWidth,OverlayHeight) ;
 p := p shifted (2o,OverlayHeight-ypart center p) ;
 pickup pencircle scaled OverlayLineWidth ;
 b := a superellipsed .95 ;
 fill b withcolor OverlayColor ;
 draw b withcolor OverlayLineColor ;
 b := (boundingbox p) superellipsed .95 ;
 fill b withcolor OverlayColor ;
 draw b withcolor OverlayLineColor ;
 draw p withcolor black ;
 setbounds currentpicture to a ;
\stopuseMPgraphic

\setupframedtexts
 [FunnyText]
 [backgroundcolor=lightgray,
  framecolor=darkred,
  rulethickness=2pt,
  offset=\bodyfontsize,
  before={\blank[big,medium]},
  after={\blank[big]},
  width=\textwidth]



\FrameTitle{Teories fixistes}
\StartFrame
Al llarg del segle XIX i el començament del XX, es crearen diverses 
teories que intentaven explicar l'origen de les serrelades i el 
plegament dels estrats, que no podem explicar fàcilment.


Totes aquestes teories tenen com a {\bf principi} que els continents i 
els oceans han ocupat les {\em mateixes posicions} des de l'origen de la 
Terra fins ara.

\StopFrame

\FLOWchart[fixistes]





sortida pdf
Description: Adobe PDF document
___
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] Framed text with arrows

2010-02-18 Thread Willi Egger
Definitely out of the box there is no possibility to place titles.  
But since the chart module has the option to use overlays in the  
shapes, with tweaking  the Metapost-graphic as on page 138 in the  
Metafun manual you might get this in place.
Without studying the sources it might be difficult to use shapes as  
those presented on page 242 of the Metafun manual.


Willi
On Feb 18, 2010, at 8:22 PM, Xan wrote:


Thanks,
But is there any possibility of having charts with titles, as in  
page 138 of Metafun manual (Zapf example)? And choose border form  
like in page 242 of Metafun manual?


Really, I need the title. Putting section in chart is a temporal  
solution but it's not the same...


Xavi.


En/na Willi Egger ha escrit:

Hi Xan,

Did you consider the use of the FLOWchart module? There is a nice  
manual at the pragma-ade site (Charts).


Willi
On Feb 18, 2010, at 5:13 PM, Xan wrote:


Hi,

I'm a novice yet. I just want to put framed long texts  
(paragraphs) with arrows connecting these. I want to decorate  
these frames (background, beaty border, etc.). Like entity- 
relationship diagrams but more beauty and that I could put long  
text in each node.


Is this possible? Do I must use metafun?

Can you provide a simple example?

Thanks a lot,
Xan.

PS: Please, CCme.
 
___
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
 
___




__ 
_
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
__ 
_


___
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] Framed text with arrows

2010-02-18 Thread Xan

En/na Willi Egger ha escrit:

Hi Xan,

Did you consider the use of the FLOWchart module? There is a nice 
manual at the pragma-ade site (Charts).


Willi
On Feb 18, 2010, at 5:13 PM, Xan wrote:
Is there any way of specifying the width and height of _only one_ chart 
(not for all charts) \setupFLOWcharts change all charts. I want one 
modify the width of a **single node** in one chart.


Xan.
___
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] Framed text with arrows

2010-02-18 Thread Xan

Thanks,
But is there any possibility of having charts with titles, as in page 
138 of Metafun manual (Zapf example)? And choose border form like in 
page 242 of Metafun manual?


Really, I need the title. Putting section in chart is a temporal 
solution but it's not the same...


Xavi.


En/na Willi Egger ha escrit:

Hi Xan,

Did you consider the use of the FLOWchart module? There is a nice 
manual at the pragma-ade site (Charts).


Willi
On Feb 18, 2010, at 5:13 PM, Xan wrote:


Hi,

I'm a novice yet. I just want to put framed long texts (paragraphs) 
with arrows connecting these. I want to decorate these frames 
(background, beaty border, etc.). Like entity-relationship diagrams 
but more beauty and that I could put long text in each node.


Is this possible? Do I must use metafun?

Can you provide a simple example?

Thanks a lot,
Xan.

PS: Please, CCme.
___ 

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
___ 





___
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] Magazine imposition.

2010-02-18 Thread Aditya Mahajan

On Wed, 17 Feb 2010, John Culleton wrote:


A person has asked for a solution to this problem: print a dual magazine where
the first half is a regular magazine, but the second half is a magazine with
the pages upside down with respect to the  first half. In other words the back
cover is really the front cover of the second magazine.  I assume that the
page counts of each magazine are equal.

I know that Context has an extensive imposition capability but I don't think
this particular problem has been addressed.


No imposition, but I have added a reverse feature in a module that I am 
working on.


http://github.com/adityam/cut-n-paste

\usemodule[cut-n-paste]

\starttext

\processcutNpaste[name={file1}]
\processcutNpaste[name={file2},rotation=180, alternative=reverse]

\stoptext

Due to a bug in \getfigureddimensions in MkIV, this only works correctly 
in MkII. To use MkIV, you have to add


\setupcutNpaste[width=..., height=...]

Aditya
___
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] Framed text with arrows

2010-02-18 Thread Willi Egger

Hi Xan,

Did you consider the use of the FLOWchart module? There is a nice  
manual at the pragma-ade site (Charts).


Willi
On Feb 18, 2010, at 5:13 PM, Xan wrote:


Hi,

I'm a novice yet. I just want to put framed long texts (paragraphs)  
with arrows connecting these. I want to decorate these frames  
(background, beaty border, etc.). Like entity-relationship diagrams  
but more beauty and that I could put long text in each node.


Is this possible? Do I must use metafun?

Can you provide a simple example?

Thanks a lot,
Xan.

PS: Please, CCme.
__ 
_
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
__ 
_


___
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] LuaTeX error :1: '' expected near '\'.

2010-02-18 Thread Peter Münster
On Thu, Feb 18 2010, Hans Hagen wrote:

> so, indeed we need a small example

Hello Hans,

Finally it took me less time. Here is it:

\usemodule[pre-stepwise]
\def\startC{%
  \bgroup
  \whitespace
  \obeylines
  \activatespacehandler{yes}%
  \strut}
\def\stopC{\egroup}
\setupinteraction[state=start]
\setuppapersize[S6][S6]
\setupwhitespace[big]
\starttext
\startcolumns\placelist[chapter]\stopcolumns
\startC
bla
bla
bla
bla
bla
bla
bla
bla
bla
bla
bla
bla
bla
bla
bla
\stopC
\stoptext

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] Magazine imposition.

2010-02-18 Thread Willi Egger
Great, nicely packed in a joke! - This has not come to my mind as a  
solution and I am sure that I will need this idea later on!

Thanks!

Willi
On Feb 18, 2010, at 4:52 PM, luigi scarso wrote:


On Thu, Feb 18, 2010 at 2:35 PM, Willi Egger  wrote:

So, that is a short cut!

I did not know weather the magazine was in context or not.
Anyway is there a possibility to rotate pages in a already typeset  
pdf?



like a rolling stone ?

%%test-willy
\starttext
\dorecurse{5}{\startTEXpage\framed[width=10cm,align=right]{\ss \input
knuth\relax}\stopTEXpage}
\stoptext



\starttext
\startTEXpage
\dorecurse{5}{%
\rotate[rotation=\numexpr 72 *
(\recurselevel-1)\relax]{\externalfigure[test-willy][page= 
\recurselevel]}%

}
\stopTEXpage
\stoptext


--
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
__ 
_


___
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] Framed text with arrows

2010-02-18 Thread Xan

Hi,

I'm a novice yet. I just want to put framed long texts (paragraphs) with 
arrows connecting these. I want to decorate these frames (background, 
beaty border, etc.). Like entity-relationship diagrams but more beauty 
and that I could put long text in each node.


Is this possible? Do I must use metafun?

Can you provide a simple example?

Thanks a lot,
Xan.

PS: Please, CCme.
___
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] Magazine imposition.

2010-02-18 Thread luigi scarso
On Thu, Feb 18, 2010 at 2:35 PM, Willi Egger  wrote:
> So, that is a short cut!
>
> I did not know weather the magazine was in context or not.
> Anyway is there a possibility to rotate pages in a already typeset pdf?
>
like a rolling stone ?

%%test-willy
\starttext
\dorecurse{5}{\startTEXpage\framed[width=10cm,align=right]{\ss \input
knuth\relax}\stopTEXpage}
\stoptext



\starttext
\startTEXpage
\dorecurse{5}{%
\rotate[rotation=\numexpr 72 *
(\recurselevel-1)\relax]{\externalfigure[test-willy][page=\recurselevel]}%
}
\stopTEXpage
\stoptext


-- 
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] Magazine imposition.

2010-02-18 Thread Alan BRASLAU
On Thursday 18 February 2010 14:35:00 Willi Egger wrote:
> So, that is a short cut!
> 
> I did not know weather the magazine was in context or not.
> Anyway is there a possibility to rotate pages in a already typeset pdf?
> 
> Kind regards
> 
> Willi

pdftk is a pretty powerful tool:
http://www.accesspdf.com/pdftk/

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] [OT] ASCII text output

2010-02-18 Thread Roger Mason
Hello Aditya,

Aditya Mahajan  writes:

> If you are willing to add more markup, then TeX can do the parsing for
> you.
>
> \startquestion[title={Ruby coloured by}, points=1, difficulty=1]
>   A ruby is a gem of corundum colored
>   \startoptions
> \option Rutile
> \option Calcium
> \correctoption Chrumium
> \option Iron and Titanium
>   \stopoptions
>   \starthint
> 
>   \stophint
>   \startfeedback
>...
>   \stopfeedback
> \stopquestion
>
> You can create a mode for ascii output that redefines all the
> environments to *typeset* the correct output, which you can then
> convert to text using pdftotext.
>
> Another option is to write everything in XML (it is almost the same ...)
> 
>A ruby .. 
>   
>  ... 
>  ... 
>  ... 
>  ... 
>   
>   
>
>   
>   
>...
>   
> 
>
> With a few setup commands, ConTeXt can directly typeset an xml
> file. Parsing the xml file to generate ascii text can be done using
> your favourite programming language (or using ConTeXt by typesetting
> the desired output and using pdftotext).
>

Thank you very much.  I will work on this over the next week and decide
which method I like best.

I really appreciate you taking the time to help.

Best wishes,
Roger
___
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] Magazine imposition.

2010-02-18 Thread Hans Hagen

On 18-2-2010 14:35, Willi Egger wrote:

So, that is a short cut!

I did not know weather the magazine was in context or not.
Anyway is there a possibility to rotate pages in a already typeset pdf?


externalfigure has no rotation key, and this does not work out well

\defineoverlay[realdirty][{\rotate[rotation=180]{\foregroundbox}}]

\framed{\externalfigure[cow.pdf][background=realdirty]}

(no time now)


-
  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
-
___
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] combiation trickery again now with attachement - sorry

2010-02-18 Thread Willi Egger

Hi,

that is indeed trickery. Though I did not try it, possibly using a  
layer where the pictures and the captions are arranged could also be  
used. The advantage of a layer would be, that it contains all the  
pics and one would be able to move it as a hole to the spot intended.


Willi
On Feb 18, 2010, at 1:22 PM, Bernhard Rosensteiner wrote:


Am 16.02.2010 um 21:12 schrieb Peter Rolf:


Am 16.02.2010 19:40, schrieb Bernhard Rosensteiner:

Hi,

in the attachment is an example file which describes best what i  
want do. The method with \offset and \clip to place the figures  
where i want is really brutal force i think.  Especially fiddling  
around with dimension to get the "right fit“ is tedious. Is there  
a better solution to do such a start/stopcombination?
Floatplacing is also influenced by the offset command but i  
compensated this with *hang - nevertheless all in all i think no  
good solution. Please help.



Hi Bernhard,

that was fun. :)


yeah - thanks. Really nice. This gives me the motivation to read  
The TeXbook.


best regards
Bernhard

__ 
_
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
__ 
_


___
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] Magazine imposition.

2010-02-18 Thread Willi Egger

So, that is a short cut!

I did not know weather the magazine was in context or not.
Anyway is there a possibility to rotate pages in a already typeset pdf?

Kind regards

Willi
On Feb 18, 2010, at 1:19 PM, Hans Hagen wrote:


On 18-2-2010 10:29, Willi Egger wrote:

Hi John,

I do not have the complete answer to your question. The problem  
lies in

the fact that one should have the second document in a rotated form.
Once you have one document upright and the second rotated, you  
could use

the mechanisms described in page-imp.mkII/mkiv to create a single
document from the two base-documents.
Once the two documents are combined into one you could invoke  
arranging.


You can do things like:

\definepapersize
[offset=15pt]
\setuppapersize
[A5,landscape][A4,portrait]
\setuplayout
[backspace=0pt,
topspace=0pt,
width=middle,
height=middle,
location=middle,
header=0pt,
footer=0pt]

\setuppagenumbering[location=,alternative=doublesided]
\setuparranging[2DOWN]
\starttext
% \copypages
% [the-review.pdf]
% [scale=1000,
% offset=0pt]
% \filterpages
% [the-review.pdf][1:16][width=0pt]
\insertpages[the-review.pdf][width=0pt]
\stoptext


I wonder how this imposes

\starttext
\setuppapersize[A4]
\dorecurse{10}{test\page}
\setuppapersize[A4,rotated,180]
\dorecurse{10}{test\page}
\stoptext


-
  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
-
__ 
_
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
__ 
_


___
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] CritTeXt

2010-02-18 Thread Martin Schröder
2010/2/18 Hans Hagen :
> On 18-2-2010 8:22, Daniel Stender wrote:
>> I've tried to get into contact with Idris Hamid but got no reply so far.
>
> he's on this list

And he'll come to DANTE2010 in Dortmund (as will Hans and Taco):
http://www.dante.de/events/dante2010/programm.html

Best
Martin
___
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] combiation trickery again now with attachement - sorry

2010-02-18 Thread Bernhard Rosensteiner
Am 16.02.2010 um 21:12 schrieb Peter Rolf:

> Am 16.02.2010 19:40, schrieb Bernhard Rosensteiner:
>> Hi,
>> 
>> in the attachment is an example file which describes best what i want do. 
>> The method with \offset and \clip to place the figures where i want is 
>> really brutal force i think.  Especially fiddling around with dimension to 
>> get the "right fit“ is tedious. Is there a better solution to do such a 
>> start/stopcombination?
>> Floatplacing is also influenced by the offset command but i compensated this 
>> with *hang - nevertheless all in all i think no good solution. Please help.
>> 
> Hi Bernhard,
> 
> that was fun. :)

yeah - thanks. Really nice. This gives me the motivation to read The TeXbook.

best regards
Bernhard

___
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] Magazine imposition.

2010-02-18 Thread Hans Hagen

On 18-2-2010 10:29, Willi Egger wrote:

Hi John,

I do not have the complete answer to your question. The problem lies in
the fact that one should have the second document in a rotated form.
Once you have one document upright and the second rotated, you could use
the mechanisms described in page-imp.mkII/mkiv to create a single
document from the two base-documents.
Once the two documents are combined into one you could invoke arranging.

You can do things like:

\definepapersize
[offset=15pt]
\setuppapersize
[A5,landscape][A4,portrait]
\setuplayout
[backspace=0pt,
topspace=0pt,
width=middle,
height=middle,
location=middle,
header=0pt,
footer=0pt]

\setuppagenumbering[location=,alternative=doublesided]
\setuparranging[2DOWN]
\starttext
% \copypages
% [the-review.pdf]
% [scale=1000,
% offset=0pt]
% \filterpages
% [the-review.pdf][1:16][width=0pt]
\insertpages[the-review.pdf][width=0pt]
\stoptext


I wonder how this imposes

\starttext
\setuppapersize[A4]
\dorecurse{10}{test\page}
\setuppapersize[A4,rotated,180]
\dorecurse{10}{test\page}
\stoptext


-
  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
-
___
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] LuaTeX error :1: '' expected near '\'.

2010-02-18 Thread Hans Hagen

On 18-2-2010 13:05, Peter Münster wrote:

Hello,

With the latest version, I get the following error:

MTXrun | executing: vim  -u NONE -e -C -n -c "set tabstop=4" -c "syntax on"
-c "set syntax=c" -c "let contextstartline=1" -c "let contextstopline=0" -c
"source /opt/context/tex/texmf-context/tex/context/third/vim/2context.vim"
-c wqa c-course-vimsyntax.tmp
MTXrun |
MTXrun |
  (c-course-vimsyntax.tmp-vimsyntax.tmp
! LuaTeX error:1: '' expected near '\'.
l.3 }

\dolocationpagecheck ...eferences.expandcurrent()}
   \fi \ifx
   \@@iaclosepageact...
  ...onstartup \dolocationpagecheck
   \synchronizepaperdimension...
\actualshipout ...mptytoks \fi \the \everyshipout
   \relax \ifnum \realpageno
   ...
\myshipout ...\@@ppmethod }\gobbleoneargument {#1}
   \setnextrealpageno
   \afters...
\dofinaloutput ...hbox {\vbox {\dopagebody #1#2}}}
   \the \everyaftershipout
   \a...

l.1 ...{char}\s[]{ uc = }\s[Constant]{0x80}\s[]{;}

?


This is the file c-course-vimsyntax.tmp-vimsyntax.tmp:

\s[Type]{unsigned}\s[]{ }\s[Type]{char}\s[]{ uc =
}\s[Constant]{0x80}\s[]{;}
\s[Type]{unsigned}\s[]{ }\s[Type]{long}\s[]{ ul = }\s[Constant]{0}\s[]{;}
\s[]{ul {\letterbar}= uc {\letterless}{\letterless} }\s[Constant]{8}\s[]{ *
(}\s[Statement]{sizeof}\s[]{(}\s[Type]{int}\s[]{) -
}\s[Constant]{1}\s[]{);}
\s[]{printf(}\s[Constant]{{\letterdoublequote}0x}\s[Special]{{\letterpercent}lx}\s[Special]{{\letterbackslash}n}\s[Constant]{{\letterdoublequote}}\s[]{,
ul);}


I get this error, when compiling my product. When components are compiled
one by one, there is no such error.


my guess is that t-vim is doing something funny with catcodes and that 
can interfere with pagebreaks and the pagebuilding


normally codes are reset when the otr is invoked

so, indeed we need a small example

maybe just something

\starttext

\start \initializevimmode

\input that temp file that has multiple pages

\stop

\stoptext

-
  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
-
___
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] LuaTeX error :1: '' expected near '\'.

2010-02-18 Thread Peter Münster
Hello,

With the latest version, I get the following error:

MTXrun | executing: vim  -u NONE -e -C -n -c "set tabstop=4" -c "syntax on"
-c "set syntax=c" -c "let contextstartline=1" -c "let contextstopline=0" -c
"source /opt/context/tex/texmf-context/tex/context/third/vim/2context.vim"
-c wqa c-course-vimsyntax.tmp
MTXrun |
MTXrun |
 (c-course-vimsyntax.tmp-vimsyntax.tmp
! LuaTeX error :1: '' expected near '\'.
l.3 }
 
\dolocationpagecheck ...eferences.expandcurrent()}
  \fi \ifx
  \@@iaclosepageact...
 ...onstartup \dolocationpagecheck 
  \synchronizepaperdimension...
\actualshipout ...mptytoks \fi \the \everyshipout 
  \relax \ifnum \realpageno
  ...
\myshipout ...\@@ppmethod }\gobbleoneargument {#1}
  \setnextrealpageno
  \afters...
\dofinaloutput ...hbox {\vbox {\dopagebody #1#2}}}
  \the \everyaftershipout
  \a...
...
l.1 ...{char}\s[]{ uc = }\s[Constant]{0x80}\s[]{;}
  
? 


This is the file c-course-vimsyntax.tmp-vimsyntax.tmp:

\s[Type]{unsigned}\s[]{ }\s[Type]{char}\s[]{ uc =
}\s[Constant]{0x80}\s[]{;}
\s[Type]{unsigned}\s[]{ }\s[Type]{long}\s[]{ ul = }\s[Constant]{0}\s[]{;}
\s[]{ul {\letterbar}= uc {\letterless}{\letterless} }\s[Constant]{8}\s[]{ *
(}\s[Statement]{sizeof}\s[]{(}\s[Type]{int}\s[]{) -
}\s[Constant]{1}\s[]{);}
\s[]{printf(}\s[Constant]{{\letterdoublequote}0x}\s[Special]{{\letterpercent}lx}\s[Special]{{\letterbackslash}n}\s[Constant]{{\letterdoublequote}}\s[]{,
ul);}


I get this error, when compiling my product. When components are compiled
one by one, there is no such error.

I use pre-stepwise. Without this module, there is no such error.

I would like to help, finding the reason for the problem, but the last
time, I've spent more than 2 hours to build a minimal example.
So, I would be glad, if there are other, not so time consuming ways, to
track down the problem.

If there is no other way, I'll build a minimal example of course.

TIA for any hints!
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] Magazine imposition.

2010-02-18 Thread Willi Egger

Hi John,

I do not have the complete answer to your question. The problem lies  
in the fact that one should have the second document in a rotated form.
Once you have one document upright and the second rotated, you could  
use the mechanisms described in page-imp.mkII/mkiv to create a single  
document from the two base-documents.

Once the two documents are combined into one you could invoke arranging.

You can do things like:

\definepapersize
  [offset=15pt]
\setuppapersize
  [A5,landscape][A4,portrait]
\setuplayout
  [backspace=0pt,
  topspace=0pt,
  width=middle,
  height=middle,
  location=middle,
  header=0pt,
  footer=0pt]

\setuppagenumbering[location=,alternative=doublesided]
\setuparranging[2DOWN]
\starttext
% \copypages
%   [the-review.pdf]
%   [scale=1000,
%   offset=0pt]
% \filterpages
%   [the-review.pdf][1:16][width=0pt]
\insertpages[the-review.pdf][width=0pt]
\stoptext


On Feb 18, 2010, at 12:41 AM, John Culleton wrote:

A person has asked for a solution to this problem: print a dual  
magazine where
the first half is a regular magazine, but the second half is a  
magazine with
the pages upside down with respect to the  first half. In other  
words the back
cover is really the front cover of the second magazine.  I assume  
that the

page counts of each magazine are equal.

I know that Context has an extensive imposition capability but I  
don't think

this particular problem has been addressed.
--
John Culleton
"Create Book Covers with Scribus"
Printable E-book 38 pages $5.95
http://www.booklocker.com/books/4055.html
__ 
_
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
__ 
_


___
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] CritTeXt

2010-02-18 Thread Hans Hagen

On 18-2-2010 8:22, Daniel Stender wrote:


I've tried to get into contact with Idris Hamid but got no reply so far.


he's on this list


Can anybody tell what's the status of the CritTeXt packet? Is there already 
anything to play around
with?


it's no so much a package as functionality will show up in mkiv ... bits 
and pieces are already implemented



Are there any alternatives for critical editing, would it be possible to get 
old Edmac running wit
ConTeXt for example?


no, although i don't now a byte of edmac i assume that crititical 
edition packages mess around with almost all subsystems so it's no option


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
-
___
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
___