[NTG-context] Broken \setupexternalfigures in mkIV ?

2010-05-20 Thread Reimund Trost
The setupexternalfigures seems to be broken. In the example below, the first
\placefigure doesnt work, but the second with the entire path does.

I'm running the latest minimals via the GUI installer on winxp.

Best regards
Reimund Trost

Example:

% mptest.tex:
\starttext
\setupcolors [state=start]
\setupexternalfigures [directory={fig}]

\placefigure
[top]
[fig:three-point-setup]
{This is the caption.}
{\externalfigure[figures.1]}


\placefigure
[top]
[fig:three-point-setup]
{This is the caption.}
{\externalfigure[fig/figures.1]}

\stoptext % fig/figures.mp: beginfig(1) pickup pencircle scaled 5bp; draw
(0,0) withcolor (1,0,0); endfig; end
___
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] Help wanted for layers and pagebackgrounds

2010-05-20 Thread Wolfgang Schuster

Am 19.05.10 18:21, schrieb Otared Kavian:

Dear all,

I need to have a special layout, in which a number (which is not a page number 
nor a section number or such) is printed in big size on the right when the 
pagenumber is even (that is on a leftpage) and printed on the left when the 
pagenumber is odd (that is a rightpage). With the help of examples gleaned here 
and there in the manuals, I came up with the following minimal example:

[...]



Good example!


\setupcolors[state=start]

\setuppagenumbering[location=footer,alternative=doublesided]

\definelayer[Number][width=\paperwidth,height=\paperheight,doublesided=yes]

\define[1]\myNumber
  {\setlayer[Number][odd]
 [preset=righttop,voffset=45mm,hoffset=3mm]
 {\offset[location=rt,rightoffset=-3mm]
{\tlap{\color[darkgreen]{\scale[height=30mm,width=22mm]{\ss#1}%
   \setlayer[Number][even]
 [preset=lefttop,voffset=45mm,hoffset=25mm]
 {\offset[location=tl,leftoffset=-3mm]
{\tlap{\color[darkgreen]{\scale[height=30mm,width=22mm]{\ss#1}}

\setupbackgrounds[page][background=Number]

\starttext
\dorecurse{4}{\myNumber{#1}\input knuth \page}
\dorecurse{4}{\myNumber{#1}\dorecurse{6}{\input knuth }\page}
\dorecurse{4}{\myNumber{#1}\dorecurse{3}{\input knuth }\page}
\stoptext

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] Problem with identation

2010-05-20 Thread Marius
Here is more clear example in the attachments.

Indenting looks broken if you are using floats in your document and it
is broken in current and previous versions of ConTeXt too.

There is a tread in this mailing list about indenting [1], but the
given example used the option [here] and my reported issue does not
appear. As soon as float starts to float, the paragraph there it was
placed in the source document is not indented and I can't find a way
to indent it.

If it is designed this way, then how to indent a line after a float?

Is it a bug? If it is, then I will fill an issue here [2].


[1] http://www.ntg.nl/pipermail/ntg-context/2010/046799.html
[2] http://tracker.luatex.org/my_view_page.php

On Wed, May 19, 2010 at 6:30 PM, Marius mariau...@gmail.com wrote:
 Hello,

 \setupfloats[indentnext=yes] has no effect in the example below? I
 expect the line 6 above figure to be indented.


 ==
 \setupindenting[yes,7mm]
 \setupfloats[indentnext=yes]

 \starttext
 \input tufte
 \input knuth

 \placefigure
  [bottom,top][]
  {Title}
  {\externalfigure[cow][width=0.6\textwidth]}

 \input tufte
 \input knuth

 \stoptext
 ==



test2.tex
Description: TeX document


test2.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] Broken \setupexternalfigures in mkIV ?

2010-05-20 Thread Hans Hagen

On 19-5-2010 3:28, Reimund Trost wrote:

The setupexternalfigures seems to be broken. In the example below, the first
\placefigure doesnt work, but the second with the entire path does.

I'm running the latest minimals via the GUI installer on winxp.


in the beta i get two graphics

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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] feauture request - no numbers on blank pages at chapter's end

2010-05-20 Thread Piotr Kopszak
Hello list,

I don't know if it is only an idiosyncrasy of Polish typography but if
a chapter ends with a blank page it should not display its number. It
would be very useful if this could be an option (if not a default
behaviour) of \setuppagenumbering . It's not a huge problem and I
think I will not wait for a solution before sending my next book for
printing, but it would be nice if it appeared in the future.

Best

Piotr
--
http://okle.pl
___
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] Problem with identation

2010-05-20 Thread Hans Hagen

On 20-5-2010 10:51, Marius wrote:

\setupindenting[yes,7mm]

 \setupfloats[indentnext=yes]

 \starttext
 \input tufte
 \input knuth

 \placefigure
   [bottom,top][]
   {Title}
   {\externalfigure[cow][width=0.6\textwidth]}

 \input tufte
 \input knuth



by the time you place the figure at the top, the first paragraph has 
already been typeset


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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] czech language

2010-05-20 Thread Hans Hagen

On 19-5-2010 8:42, Tomáš Pustelník wrote:

Hi,

I add to attachment updated file lang-sla.tex (some heads had wrong translation) and sort-lan files 
(mkii and lua), which now sort czech index as a norm says. There is just minor problem with MkIV 
version. Normally in czech accented characters are sorted as non accented, only when all characters 
are same (eg. byt and být) accented chars. are put after non accented ones. 
In MkII this is completely fine, but MkIV sorts both ways (sometimes it sorts correct, sometimes 
not) Just for case I put in the archive file I use to test czech sorting. Problem I describe here, 
can be seen on words under letter L.


new beta


And just one last question. I was playing with translation of user interface 
(for my bachelor thesis) and I wasn't able to add a new one. I tried to put 
some test translation in mult-def.lua and even modified mtx-interface.lua. I 
was able to generate messages file (mult-m**.tex) for my experiment, but i 
can't figure out how to generete mult-**.tex as well.


later

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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] feauture request - no numbers on blank pages at chapter's end

2010-05-20 Thread Taco Hoekwater

Piotr Kopszak wrote:

Hello list,

I don't know if it is only an idiosyncrasy of Polish typography but if
a chapter ends with a blank page it should not display its number. It
would be very useful if this could be an option (if not a default
behaviour) of \setuppagenumbering . It's not a huge problem and I
think I will not wait for a solution before sending my next book for
printing, but it would be nice if it appeared in the future.


Isn't this what \page[blank,right] is supposed to do?

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] feauture request - no numbers on blank pages at chapter's end

2010-05-20 Thread Wolfgang Schuster

Am 20.05.10 11:07, schrieb Piotr Kopszak:

Hello list,

I don't know if it is only an idiosyncrasy of Polish typography but if
a chapter ends with a blank page it should not display its number. It
would be very useful if this could be an option (if not a default
behaviour) of \setuppagenumbering . It's not a huge problem and I
think I will not wait for a solution before sending my next book for
printing, but it would be nice if it appeared in the future.
   


This is mentioned here: 
http://wiki.contextgarden.net/Titles#Truly_empty_pagebreak_before_chapters


You don't \definepagebreak as mentioned in the wiki because

  \setuphead[chapter][page={header,footer,right}]

is also valid.

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] Register interaction (page references) [mkIV]

2010-05-20 Thread Hans Hagen

On 18-5-2010 4:13, Thomas Floeren wrote:

\setupinteraction[state=start]

\startsectionblockenvironment[bodypart]
\setupuserpagenumber[number=1]
\stopsectionblockenvironment


\starttext
\startfrontmatter
\page[dummy]
\page[dummy]
\stopfrontmatter

\startbodymatter
\page[dummy]
bla\index{bla}
\stopbodymatter

\placeregister[index]
\stoptext


\unprotect

\def\withregisterpagecommand#1#2#3%
  {\def\currentregisterpageindex{#1}%
   \iflocation
 \goto{\registerparameter\c!pagecommand{#3}}[internal(#1)]%
   \else
 \registerparameter\c!pagecommand{#3}%
   \fi}

\protect

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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] How to place a (right) brace in a TABLE?

2010-05-20 Thread Vladimir Lomov
Hi.

(Sorry for unclear question in topic.)

I want to put a brace (right or left isn't matter now) in a TABLE (may
be another table environment) like in below scheme

a11 a12| a13
a21 a22| a23
a31 a32  a33
a41 a42  a43
a51 a52| a53
a61 a62| a63

Here '|' marks place and elements which should be grouped by a brace.

Thanks in advance, Vladimir Lomov.

P.S. I'm new in context and don't have any idea how to achieve this. I
thought about graphics (metapost) to draw a brace or join two cells and
draw big brace. And, yes I use mkiv and latest beta (context minimal).

-- 
Show your affection, which will probably meet with pleasant response.
___
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] feauture request - no numbers on blank pages at chapter's end

2010-05-20 Thread Piotr Kopszak
It would be handy to avoid inserting \page in  this case, I think.

2010/5/20 Taco Hoekwater t...@elvenkind.com:
 Piotr Kopszak wrote:

 Hello list,

 I don't know if it is only an idiosyncrasy of Polish typography but if
 a chapter ends with a blank page it should not display its number. It
 would be very useful if this could be an option (if not a default
 behaviour) of \setuppagenumbering . It's not a huge problem and I
 think I will not wait for a solution before sending my next book for
 printing, but it would be nice if it appeared in the future.

 Isn't this what \page[blank,right] is supposed to do?

 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
 ___




-- 
http://okle.pl
___
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] feauture request - no numbers on blank pages at chapter's end

2010-05-20 Thread Piotr Kopszak
Yes, I know but even if it was working in all cases (and it is not,
for instace I need pagenumbers in the margin and it didn't work in
this case) it looks really, really ugly. Why not wrap something like
this in a definition and give users an option?

2010/5/20 Wolfgang Schuster schuster.wolfg...@googlemail.com:
 Am 20.05.10 11:07, schrieb Piotr Kopszak:

 Hello list,

 I don't know if it is only an idiosyncrasy of Polish typography but if
 a chapter ends with a blank page it should not display its number. It
 would be very useful if this could be an option (if not a default
 behaviour) of \setuppagenumbering . It's not a huge problem and I
 think I will not wait for a solution before sending my next book for
 printing, but it would be nice if it appeared in the future.


 This is mentioned here:
 http://wiki.contextgarden.net/Titles#Truly_empty_pagebreak_before_chapters

 You don't \definepagebreak as mentioned in the wiki because

  \setuphead[chapter][page={header,footer,right}]

 is also valid.

 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
 ___




-- 
http://okle.pl
___
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] feauture request - no numbers on blank pages at chapter's end

2010-05-20 Thread Wolfgang Schuster

Am 20.05.10 12:58, schrieb Piotr Kopszak:

Yes, I know but even if it was working in all cases (and it is not,
for instace I need pagenumbers in the margin and it didn't work in
this case) it looks really, really ugly. Why not wrap something like
this in a definition and give users an option?
   


Make a example and i can try to provide a solution.

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] How to place a (right) brace in a TABLE?

2010-05-20 Thread Wolfgang Schuster

Am 20.05.10 11:45, schrieb Vladimir Lomov:

Hi.

(Sorry for unclear question in topic.)

I want to put a brace (right or left isn't matter now) in a TABLE (may
be another table environment) like in below scheme

a11 a12| a13
a21 a22| a23
a31 a32  a33
a41 a42  a43
a51 a52| a53
a61 a62| a63

Here '|' marks place and elements which should be grouped by a brace.

Thanks in advance, Vladimir Lomov.

P.S. I'm new in context and don't have any idea how to achieve this. I
thought about graphics (metapost) to draw a brace or join two cells and
draw big brace. And, yes I use mkiv and latest beta (context minimal).


You can play with this:

\def\linkeklammer
  {\setbox\scratchbox\hbox{$\left\{\vrule height .5\vsize depth 
.5\vsize width 0pt\relax\right.$}%
   \rightaligned{\hbox to 
.5\wd\scratchbox{\raise\dp\scratchbox\box\scratchbox\hss}}}


\def\rechteklammer
  {\setbox\scratchbox\hbox{$\left.\vrule height .5\vsize depth .5\vsize 
width 0pt\relax\right\}$}%
   \leftaligned{\hbox to 
.5\wd\scratchbox{\hss\raise\dp\scratchbox\box\scratchbox}}}


\defineoverlay[linkeklammer] [\linkeklammer]
\defineoverlay[rechteklammer][\rechteklammer]

\starttext

\bTABLE
  \bTR[align={middle,middle},frame=off,offset=1ex]
\bTD[background=linkeklammer] text \eTD
\bTD text\\text\\text \eTD
\bTD[background=rechteklammer] text \eTD
  \eTR
\eTABLE

\stoptext

and this:

\startuseMPgraphic{accolade}
z1  = (-233,0) ;
z2  = (-220,22) ;
z3  = (-155,211) ;
z4  = (-200,690) ;
z5  = (-142,1033) ;
z6  = (-97,1106) ;
z7  = (-71,1125) ;
z8  = (-61,1104) ;
z9  = (-80,1077) ;
z10 = (-108,1002) ;
z11 = (-129,666) ;
z12 = (-117,207) ;
z13 = (-197,19) ;
z14 = (-208,0) ;
z15 = (-197,-19) ;
z16 = (-117,-207) ;
z17 = (-129,-666) ;
z18 = (-108,-1026) ;
z19 = (-80,-1077) ;
z20 = (-61,-1104) ;
z21 = (-71,-1125) ;
z22 = (-97,-1106) ;
z23 = (-143,-1031) ;
z24 = (-199,-673) ;
z25 = (-155,-211) ;
z26 = (-220,-22) ;
fill z1 for i=2 upto 14: .. z[i] endfor  z14 for j=15 upto 26: .. z[j] 
endfor .. z1  cycle ;

\stopuseMPgraphic

\defineoverlay[leftbrace] [\leftaligned 
{\scale[height=\overlayheight]{\useMPgraphic{accolade}}}]
\defineoverlay[rightbrace][\rightaligned{\mirror{\scale[height=\overlayheight]{\useMPgraphic{accolade] 



\starttext

\framedtext[frame=off,loffset=1em,roffset=1em,background={leftbrace,rightbrace}]{\input 
knuth\par}


\setupTABLE[frame=off,offset=1ex]
\setupTABLE[row][each][align={middle,lohi}]
\bTABLE
  \bTR
\bTD[nr=3,background=leftbrace] drei \eTD
\bTD[nr=2,background=leftbrace] zwei \eTD
\bTD f \eTD
\bTD o \eTD
\bTD u \eTD
\bTD r \eTD
\bTD [nr=3,background=rightbrace] three \eTD
  \eTR
  \bTR
\bTD [background=leftbrace] eins \eTD
\bTD null \eTD
\bTD [background=rightbrace] one \eTD
\bTD [nr=2,background=rightbrace] two \eTD
  \eTR
  \bTR
\bTD v \eTD
\bTD i \eTD
\bTD e \eTD
\bTD r \eTD
  \eTR
\eTABLE

\stoptext

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] feauture request - no numbers on blank pages at chapter's end

2010-05-20 Thread Wolfgang Schuster

Am 20.05.10 12:53, schrieb Piotr Kopszak:

It would be handy to avoid inserting \page in  this case, I think.
   


\setuphead[chapter][page={blank,right}]

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] Help wanted for layers and pagebackgrounds

2010-05-20 Thread Otared Kavian
Thanks Wolfgang!
Somehow I overlooked the two subtleties you are teaching me here:

 \definelayer[Number][width=\paperwidth,height=\paperheight,doublesided=yes]

in which the option doublesided=yes, helps and the options [odd] or [even] in 
\setlayer:
 
 \setlayer[Number][odd]
 \setlayer[Number][even]

I will wikify this later this weekend.

Best regards: OK

On 20 mai 2010, at 10:14, Wolfgang Schuster wrote:

 Good example!
 
 
 \setupcolors[state=start]
 
 \setuppagenumbering[location=footer,alternative=doublesided]
 
 \definelayer[Number][width=\paperwidth,height=\paperheight,doublesided=yes]
 
 \define[1]\myNumber
  {\setlayer[Number][odd]
 [preset=righttop,voffset=45mm,hoffset=3mm]
 {\offset[location=rt,rightoffset=-3mm]
{\tlap{\color[darkgreen]{\scale[height=30mm,width=22mm]{\ss#1}%
   \setlayer[Number][even]
 [preset=lefttop,voffset=45mm,hoffset=25mm]
 {\offset[location=tl,leftoffset=-3mm]
{\tlap{\color[darkgreen]{\scale[height=30mm,width=22mm]{\ss#1}}
 
 \setupbackgrounds[page][background=Number]
 
 \starttext
 \dorecurse{4}{\myNumber{#1}\input knuth \page}
 \dorecurse{4}{\myNumber{#1}\dorecurse{6}{\input knuth }\page}
 \dorecurse{4}{\myNumber{#1}\dorecurse{3}{\input knuth }\page}
 \stoptext
 
 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] feauture request - no numbers on blank pages at chapter's end

2010-05-20 Thread Piotr Kopszak
Many thanks for your help!

First the file according to the wiki example. Works if location=footer
in \setuppagenumbering but not when

\definepagebreak
  [mychapterpagebreak]
  [yes,header,right]

\setuphead
  [chapter]
  [page=mychapterpagebreak,footer=empty]
\setuppagenumbering[alternative=doublesided,location=margin]

\starttext
  \chapter{testA} \dorecurse{10}{\input tufte }
  \chapter{testB} \dorecurse{10}{\input tufte }
  \chapter{testC} \dorecurse{10}{\input tufte }
\stoptext


Changing \setuphead to

\setuphead[chapter][page={blank,right}]

gets rid of the number on the chapter's title page (which I don't
want) and still leaves it on the left empty page facing the title
page. Not to mention the fact that pagenumbers appear only from page
10.

Piotr
2010/5/20 Wolfgang Schuster schuster.wolfg...@googlemail.com:
 Am 20.05.10 12:53, schrieb Piotr Kopszak:

 It would be handy to avoid inserting \page in  this case, I think.


 \setuphead[chapter][page={blank,right}]

 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
 ___




-- 
http://okle.pl
___
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] mkiv typescript and map files

2010-05-20 Thread John Culleton
Recently started working with context minimal and mkiv. I don't 
know how much of the traditional structure still is in play. Where do 
I find the typescript files and the map files applicable to mkiv? I 
mounted the context minimal distro on /opt on my Slackware Linux 
system. 
-- 
John Culleton
Wexford Press
Create Book Covers with Scribus
Printable E-book 38 pages $5.95
http://www.scribd.com/doc/24676863/
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
___


Re: [NTG-context] mkiv typescript and map files

2010-05-20 Thread luigi scarso
On Thu, May 20, 2010 at 4:35 PM, John Culleton j...@wexfordpress.com wrote:
 Recently started working with context minimal and mkiv. I don't
 know how much of the traditional structure still is in play. Where do
 I find the typescript files and the map files applicable to mkiv? I
 mounted the context minimal distro on /opt on my Slackware Linux
 system.
*) for typescript try
minimals/tex/texmf-context/tex/context/base/type-*

*) map files for what ?


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


[NTG-context] Protcode for context

2010-05-20 Thread John Culleton
The following works for pdftex
--
\rm
\pdfadjustspacing=2
\input protcode.tex
\pdfprotrudechars=2
\setprotcode\font
\pdffontexpand\rm 20 20 5 autoexpand
---
but on Context (mkii or mkiv) it gives this error:

(./prot.tex (./protcode.tex)
! Missing font identifier.
to be read again
   \edef
\checkfontclass #1-\edef
  \fontclass {\executeifdefined {\fontclass -#1}{\fo...

\setcurrentfontstyle #1-\checkfontclass {#1}
 \edef \fontstyle {#1}\ifmmode 
\...
l.8 \pdffontexpand\rm
  20 20 5 autoexpand
-
It does not matter whether I use minimals or texlive. 

-- 
John Culleton
Wexford Press

___
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] Protcode for context

2010-05-20 Thread Taco Hoekwater

John Culleton wrote:

The following works for pdftex
--
\rm
\pdfadjustspacing=2
\input protcode.tex
\pdfprotrudechars=2
\setprotcode\font
\pdffontexpand\rm 20 20 5 autoexpand


\rm is not a font identifier in ConTeXt, but a full-blown font
switch, a bit like \rmfamily in latex.

The http://wiki.contextgarden.net/Protrusion  explains how to use
protrusion. The bottom line: if you want protrusion in context,
use context commands, not plain TeX commands.

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] \ldots

2010-05-20 Thread Jan Pohanka

Thanks for the reply,
it helped.

Exploring the math- files I found other questions.

What's the difference between \definemathsymbol and \definemathcharacter?
I expect that [punct] means punctuation character, but what the [inner]  
means? Where can I found what [xx] different characters need?


greetings Jan


Dne Wed, 19 May 2010 20:55:44 +0200 Aditya Mahajan adit...@umich.edu  
napsal(a):



On Wed, 19 May 2010, Jan Pohanka wrote:


Hello,
I discovered that with one font the \ldots command typesets three  
colons (:::).


I found these lines in plain.tex


No, for mkii you should look at math-*.mkii files. The relevant file in  
this case is math-tex.mkii, which defines


\definemathsymbol [ldotp] [punct] [mi] [3A]

saying the \ldots uses character on position 3A. In the font (type 1),  
there is really the semicolon on this position.
How to make context to use proper character (\period), which is on  
position 2E in the font without changing this file?


You need to define a new math encoding (see math-ams.mkii or  
math-eul.mkii).


Or is it possible to use a special glyph for horizontal ellipsis with  
\ldots command? (It exists in the font)


\definemathsymbol [ldots] [inner] [mi] [XX]

where XX is the location of the glyph.

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
___



--
Tato zpráva byla vytvořena převratným poštovním klientem Opery:  
http://www.opera.com/mail/

___
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] Problem with identation

2010-05-20 Thread Aditya Mahajan

On Thu, 20 May 2010, Hans Hagen wrote:


On 20-5-2010 10:51, Marius wrote:

\setupindenting[yes,7mm]

 \setupfloats[indentnext=yes]

 \starttext
 \input tufte
 \input knuth

 \placefigure
   [bottom,top][]
   {Title}
   {\externalfigure[cow][width=0.6\textwidth]}

 \input tufte
 \input knuth



by the time you place the figure at the top, the first paragraph has already 
been typeset


I think that the question is about the *fourth* paragraph (coming from the 
2nd tufte quote). Search the pdf for thrive.


I also find this behaviour to be broken. Why should the next paragraph 
after \placefloat in the source lose its indentation? IMO, only 
\placefigure[left] should affect the indentation, everything else should 
simply leave indentation alone. Or atleast, there should be a way to 
configure the indentation behaviour depending on what type of float we are 
dealing with.


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] \ldots

2010-05-20 Thread Aditya Mahajan

On Thu, 20 May 2010, Jan Pohanka wrote:


Thanks for the reply,
it helped.

Exploring the math- files I found other questions.

What's the difference between \definemathsymbol and \definemathcharacter?


symbol are cs names (\something) that map to a font glyph.

characters are input character (any ascii/unicode value) that map to a 
font glyph


command is a cs name (\something) that maps to a TeX command 
(\somethingelse)


I expect that [punct] means punctuation character, but what the [inner] 
means?


inner is same as ord math class (see the TeX book). ConTeXt uses some 
symbol names which map back to mathclasses. See math-ini.mkii for a list 
(grep for \chardef\math...)



Where can I found what [xx] different characters need?


In the font :-) You can use (in MkII)

\loadmapfile[name.map]
\starttext
\showfont[full-name-of-font]
\stoptext

BTW, which math font are you using?

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
___


[NTG-context] bookmark for index

2010-05-20 Thread Matthias Weber

Dear all,

\completeindex creates the bookmark index . I'd like to have the  
capitalized version Index.

Is there a way to change that?

Thanks,

Matthias
___
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] Problem with identation

2010-05-20 Thread Hans Hagen

On 20-5-2010 5:48, Aditya Mahajan wrote:

On Thu, 20 May 2010, Hans Hagen wrote:


On 20-5-2010 10:51, Marius wrote:

\setupindenting[yes,7mm]

\setupfloats[indentnext=yes]

\starttext
\input tufte
\input knuth

\placefigure
[bottom,top][]
{Title}
{\externalfigure[cow][width=0.6\textwidth]}

\input tufte
\input knuth



by the time you place the figure at the top, the first paragraph has
already been typeset


I think that the question is about the *fourth* paragraph (coming from
the 2nd tufte quote). Search the pdf for thrive.

I also find this behaviour to be broken. Why should the next paragraph
after \placefloat in the source lose its indentation? IMO, only
\placefigure[left] should affect the indentation, everything else should
simply leave indentation alone. Or atleast, there should be a way to
configure the indentation behaviour depending on what type of float we
are dealing with.


\definefloat ..

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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] bookmark for index

2010-05-20 Thread Hans Hagen

On 20-5-2010 6:01, Matthias Weber wrote:

Dear all,

\completeindex creates the bookmark index . I'd like to have the
capitalized version Index.
Is there a way to change that?


\startchapter[title=Index,bookmark=TITLE]
  \placeregister[index]
\stopchapter



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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] bookmark for index

2010-05-20 Thread Matthias Weber

Thanks Hans,

is there a mk2 solution as well?

Matthias


On May 20, 2010, at 1:01 PM, Hans Hagen wrote:


On 20-5-2010 6:01, Matthias Weber wrote:

Dear all,

\completeindex creates the bookmark index . I'd like to have the
capitalized version Index.
Is there a way to change that?


\startchapter[title=Index,bookmark=TITLE]
 \placeregister[index]
\stopchapter



-
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | voip: 087 875 68 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] bookmark for index

2010-05-20 Thread Hans Hagen

On 20-5-2010 7:33, Matthias Weber wrote:


is there a mk2 solution as well?


no, well, you could do macro magic like

\unexpanded\def\mybookmarktitle{\firstofoneargument}
\unexpanded\def\mybookmarktitle{\secondofoneargument}

\title{\mybookmarktitle{Index}{INDEX}}

with the right definition at the right time


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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] \ldots

2010-05-20 Thread Honza Pohanka
Dne Thu, 20 May 2010 17:57:58 +0200 Aditya Mahajan adit...@umich.edu  
napsal(a):



On Thu, 20 May 2010, Jan Pohanka wrote:


Thanks for the reply,
it helped.

Exploring the math- files I found other questions.

What's the difference between \definemathsymbol and  
\definemathcharacter?


symbol are cs names (\something) that map to a font glyph.

characters are input character (any ascii/unicode value) that map to a  
font glyph


command is a cs name (\something) that maps to a TeX command  
(\somethingelse)


I expect that [punct] means punctuation character, but what the [inner]  
means?


inner is same as ord math class (see the TeX book). ConTeXt uses some  
symbol names which map back to mathclasses. See math-ini.mkii for a list  
(grep for \chardef\math...)



Where can I found what [xx] different characters need?


In the font :-) You can use (in MkII)

\loadmapfile[name.map]
\starttext
\showfont[full-name-of-font]
\stoptext

BTW, which math font are you using?



I played with Serapion from Storm foundry. Math is not complete there, but  
some glyphs (as \ldots) are present.



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
___



--
Tato zpráva byla vytvořena převratným poštovním klientem Opery:  
http://www.opera.com/mail/

___
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] Protcode for context

2010-05-20 Thread John Culleton
On Thursday 20 May 2010 11:37:15 Taco Hoekwater wrote:
 John Culleton wrote:
  The following works for pdftex
  --
  \rm
  \pdfadjustspacing=2
  \input protcode.tex
  \pdfprotrudechars=2
  \setprotcode\font
  \pdffontexpand\rm 20 20 5 autoexpand

 \rm is not a font identifier in ConTeXt, but a full-blown font
 switch, a bit like \rmfamily in latex.

 The http://wiki.contextgarden.net/Protrusion  explains how to use
 protrusion. The bottom line: if you want protrusion in context,
 use context commands, not plain TeX commands.

 Best wishes,
 Taco

Thanks much. That handles protrusion. 

I can't find a reference in the wiki for the HZ style of 
expansion/contraction of a font. I searched under HZ, autoexpand 
and so on. What is the keyword for mkiv?
-- 
John Culleton
Wexford Press
Create Book Covers with Scribus
Printable E-book 38 pages $5.95
http://www.scribd.com/doc/24676863/
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
___


Re: [NTG-context] Protcode for context

2010-05-20 Thread John Culleton
On Thursday 20 May 2010 19:56:00 John Culleton wrote:
 On Thursday 20 May 2010 11:37:15 Taco Hoekwater wrote:
  John Culleton wrote:
   The following works for pdftex
   --
   \rm
   \pdfadjustspacing=2
   \input protcode.tex
   \pdfprotrudechars=2
   \setprotcode\font
   \pdffontexpand\rm 20 20 5 autoexpand
 
  \rm is not a font identifier in ConTeXt, but a full-blown font
  switch, a bit like \rmfamily in latex.
 
  The http://wiki.contextgarden.net/Protrusion  explains how to 
use
  protrusion. The bottom line: if you want protrusion in context,
  use context commands, not plain TeX commands.
 
  Best wishes,
  Taco

 Thanks much. That handles protrusion.

 I can't find a reference in the wiki for the HZ style of
 expansion/contraction of a font. I searched under HZ, 
autoexpand
 and so on. What is the keyword for mkiv?
 Never mind, found it under protrusion. 
-- 
John Culleton
Wexford Press
Create Book Covers with Scribus
Printable E-book 38 pages $5.95
http://www.scribd.com/doc/24676863/
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
___


Re: [NTG-context] How to place a (right) brace in a TABLE?

2010-05-20 Thread Vladimir Lomov
** Wolfgang Schuster [2010-05-20 13:04:15 +0200]:

''  = Wolfgang Schuster
'' = Vladimir Lomov

Hi.

(Sorry for unclear question in topic.)

I want to put a brace (right or left isn't matter now) in a TABLE (may
be another table environment) like in below scheme

a11 a12| a13
a21 a22| a23
a31 a32  a33
a41 a42  a43
a51 a52| a53
a61 a62| a63

Here '|' marks place and elements which should be grouped by a brace.

Thanks in advance, Vladimir Lomov.

P.S. I'm new in context and don't have any idea how to achieve this. I
thought about graphics (metapost) to draw a brace or join two cells and
draw big brace. And, yes I use mkiv and latest beta (context minimal).

 You can play with this:

 \def\linkeklammer
   {\setbox\scratchbox\hbox{$\left\{\vrule height .5\vsize depth
 .5\vsize width 0pt\relax\right.$}%
\rightaligned{\hbox to
 .5\wd\scratchbox{\raise\dp\scratchbox\box\scratchbox\hss}}}

 \def\rechteklammer
   {\setbox\scratchbox\hbox{$\left.\vrule height .5\vsize depth
 .5\vsize width 0pt\relax\right\}$}%
\leftaligned{\hbox to
 .5\wd\scratchbox{\hss\raise\dp\scratchbox\box\scratchbox}}}

 \defineoverlay[linkeklammer] [\linkeklammer]
 \defineoverlay[rechteklammer][\rechteklammer]

 \starttext

 \bTABLE
   \bTR[align={middle,middle},frame=off,offset=1ex]
 \bTD[background=linkeklammer] text \eTD
 \bTD text\\text\\text \eTD
 \bTD[background=rechteklammer] text \eTD
   \eTR
 \eTABLE

 \stoptext

 and this:

 \startuseMPgraphic{accolade}
 z1  = (-233,0) ;
 z2  = (-220,22) ;
 z3  = (-155,211) ;
 z4  = (-200,690) ;
 z5  = (-142,1033) ;
 z6  = (-97,1106) ;
 z7  = (-71,1125) ;
 z8  = (-61,1104) ;
 z9  = (-80,1077) ;
 z10 = (-108,1002) ;
 z11 = (-129,666) ;
 z12 = (-117,207) ;
 z13 = (-197,19) ;
 z14 = (-208,0) ;
 z15 = (-197,-19) ;
 z16 = (-117,-207) ;
 z17 = (-129,-666) ;
 z18 = (-108,-1026) ;
 z19 = (-80,-1077) ;
 z20 = (-61,-1104) ;
 z21 = (-71,-1125) ;
 z22 = (-97,-1106) ;
 z23 = (-143,-1031) ;
 z24 = (-199,-673) ;
 z25 = (-155,-211) ;
 z26 = (-220,-22) ;
 fill z1 for i=2 upto 14: .. z[i] endfor  z14 for j=15 upto 26: ..
 z[j] endfor .. z1  cycle ;
 \stopuseMPgraphic

 \defineoverlay[leftbrace] [\leftaligned
 {\scale[height=\overlayheight]{\useMPgraphic{accolade}}}]
 \defineoverlay[rightbrace][\rightaligned{\mirror{\scale[height=\overlayheight]{\useMPgraphic{accolade]


 \starttext

 \framedtext[frame=off,loffset=1em,roffset=1em,background={leftbrace,rightbrace}]{\input
 knuth\par}

 \setupTABLE[frame=off,offset=1ex]
 \setupTABLE[row][each][align={middle,lohi}]
 \bTABLE
   \bTR
 \bTD[nr=3,background=leftbrace] drei \eTD
 \bTD[nr=2,background=leftbrace] zwei \eTD
 \bTD f \eTD
 \bTD o \eTD
 \bTD u \eTD
 \bTD r \eTD
 \bTD [nr=3,background=rightbrace] three \eTD
   \eTR
   \bTR
 \bTD [background=leftbrace] eins \eTD
 \bTD null \eTD
 \bTD [background=rightbrace] one \eTD
 \bTD [nr=2,background=rightbrace] two \eTD
   \eTR
   \bTR
 \bTD v \eTD
 \bTD i \eTD
 \bTD e \eTD
 \bTD r \eTD
   \eTR
 \eTABLE

 \stoptext

Thank you Wolfgang for examples. Now I got idea of background. Nice.

But actually I want something different. I couldn't describe this more
clearly than before so I attach PDF file that shows what I want to do.
(I made it with the help of asymptote: first I made a table in LaTeX,
then the table was put in background and after braces and letters were
placed on top of the table.)

I thought may be there is context (mkiv) way to do this, i.e. one
could specify which rows in a column to be grouped and what symbol will
be put after a brace.

If there is no simple (elegant, context-way?) solution then I have to
use non-elegant (imho, ugly) way: add an additional column with brace
and symbol.

---
WBR, Vladimir Lomov.

P.S. I'm impressed how you made a brace in metapost. I alway wonder how
people could write numbers that gives a nice figure (may be by triali
and error?).

-- 
The reason that every major university maintains a department of
mathematics is that it's cheaper than institutionalizing all those people.


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


[NTG-context] Lua and metapost

2010-05-20 Thread Shiv Shankar Dayal
Hi all,

Since ConTeXt has LuaTeX and it contains Lua interpreter so I wonder if it
is possible to write Lua code which can generate Metapost code for graphics.
MetaLua can also help here. However, I do not know
how to develop a Lua library which can be integrated with ConTeXt but then
again I have not looked in this matter.

As you people may be knowing Prof. John Hobby has written a Haskell frontend
for Metapost which generates Metapost code.

Having a Lua version of same will help a lot. My only concern is using
MetaLua with ConTeXt.

-- 
Best regards,
Shiv Shankar Dayal
___
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] Lua and metapost

2010-05-20 Thread Shiv Shankar Dayal
Hi,

Please discard previous mail as I did not know about MPlib.

On Fri, May 21, 2010 at 12:48 AM, Shiv Shankar Dayal 
shivshankar.da...@gmail.com wrote:

 Hi all,

 Since ConTeXt has LuaTeX and it contains Lua interpreter so I wonder if it
 is possible to write Lua code which can generate Metapost code for graphics.
 MetaLua can also help here. However, I do not know
 how to develop a Lua library which can be integrated with ConTeXt but then
 again I have not looked in this matter.

 As you people may be knowing Prof. John Hobby has written a Haskell
 frontend for Metapost which generates Metapost code.

 Having a Lua version of same will help a lot. My only concern is using
 MetaLua with ConTeXt.

 --
 Best regards,
 Shiv Shankar Dayal




-- 
Best regards,
Shiv Shankar Dayal
___
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
___