Re: [NTG-context] Pull quote between two column - trial

2022-05-28 Thread jbf via ntg-context
That is progress, Garulfo, and real progress! I'm sorry I have not been 
any help to you in achieving this... a bit beyond my skill set. But I 
have long regarded this particular 'feature' to be a quite important 
'missing' feature of ConTeXt, since I occasionally get requests from 
authors as to the possibility of including such pull quotes in 
multi-column presentations, and I have to tell them that to do so I need 
to use another program where that is more easily achieved.


So, I just wanted you to know that someone out there appreciates your 
efforts with this, one of many I am sure.


Julian

On 29/5/22 04:25, Garulfo via ntg-context wrote:

some progress... if it can help.

No more issue with nonsymetrical behavior, and \framed are properly 
aligned with the grid.


Garulfo

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Pull quote between two column - trial

2022-05-28 Thread Garulfo via ntg-context

some progress... if it can help.

No more issue with nonsymetrical behavior, and \framed are properly 
aligned with the grid.


Garulfo


getshapetext_for_pullquote.pdf
Description: Adobe PDF document
\setuplayout [grid=yes]

\showgrid

\definecolor [transparentred]  [r=1,t=.5,a=1]

\def\numA{18}
\def\numB{4}
\def\numC{8}
\def\numD{14}
\def\mygap{0.001pt}

%===

\startMPinclusions
path pleft ; path pright ;

numeric LA ; LA := (\numA-1)*LineHeight + StrutHeight + StrutDepth + \mygap ;
numeric LB ; LB :=  \numB   *LineHeight - StrutHeight - StrutDepth + \mygap ;
numeric LC ; LC :=  \numC   *LineHeight - StrutHeight - StrutDepth - \mygap ;
numeric LD ; LD :=  \numD   *LineHeight ;
numeric LE ; LE := 2cm ;

pleft := (0cm , 0cm) --
 (LD  , 0cm) --
 (LD  , LA - LC) --
 (LD - LE , LA - LC) --
 (LD - LE , LA - LB) --
 (LD  , LA - LB) --
 (LD  , LA ) --
 (0cm , LA ) --
 cycle  ;

pright := pleft reflectedabout ((LD/2,0cm) , (LD/2,1cm));

\stopMPinclusions

\startuseMPgraphic{mytest1}  % column on the left of the pull quote
lmt_parshape [path = pleft ] ;
fill pleft withcolor \MPcolor{transparentred} ;
\stopuseMPgraphic

\startuseMPgraphic{mytest2}  % column on the right of the pull quote
lmt_parshape [path = pright] ;
fill pright withcolor \MPcolor{transparentred} ;
\stopuseMPgraphic

\defineoverlay[myOL1][\useMPgraphic{mytest1}]
\defineoverlay[myOL2][\useMPgraphic{mytest2}]

%===

\defineframed
  [MyBigFrame]
  [offset=-0.26pt,
   frameoffset=0pt,
   frame=off,
   strut=yes,
   before=,
   location=top,
   height=\dimexpr(\numA\lineheight),
   width=\textwidth,
   align=normal,]

\defineframed
  [MyFrame]
  [MyBigFrame]
  [location=high,
   width=\dimexpr(\numD\lineheight),
   after=\dontleavehmode,]

%===

\starttext

{\bf Before}   %

\startshapetext[mytest1,mytest2]
\strut\samplefile{douglas}
\stopshapetext

\MyBigFrame{%
\MyFrame[background=myOL1]{\getshapetext}%
\hfill%
\MyFrame[background=myOL2]{\getshapetext}}

{\bf Between}  %

\startshapetext[mytest1,mytest2]
\strut\samplefile{knuth}\par\samplefile{knuth}
\stopshapetext

\MyBigFrame{%
\MyFrame[background=myOL1]{\getshapetext}%
\hfill%
\MyFrame[background=myOL2]{\getshapetext}}

{\bf After}%

\stoptext
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Offseting the baseline grid, and irregular columnsets

2022-05-27 Thread Stefan Nedeljkovic via ntg-context
Thanks Rik, that fixed the issue with at which line the text begins, but I
still get the grid offset.

On Fri, May 27, 2022 at 6:33 PM Rik Kabel via ntg-context <
ntg-context@ntg.nl> wrote:

> You left out the comma after the backspace setting. WIth that in, all is
> well.
> On 2022-05-27 12:03, Stefan Nedeljkovic via ntg-context wrote:
>
> Thank you very much Aditya for looking into this. But I still have the
> same baseline grid offset problem. Interestingly, when I remove the
> columns, the text shifts downwards by two lines.
> My code:
>
> \definemeasure[xheight][0.1in]
>
> \definemeasure[base][3\measured{xheight}]
>
> % Since all distances are in terms of base units, specify the paper size
> in those
>
> % terms as well.
>
> \definepapersize[slide][width=26\measured{base},height=20\measured{base}]
>
> \setuppapersize[slide]
>
> \setupinterlinespace[line=\measure{base}]
>
> \setuplayout
>
> [
>
> topspace=2\measured{base},
>
> header=\zeropoint,
>
> headerdistance=\zeropoint,
>
> height=middle, % Space for 20-4=16 lines
>
> footerdistance=\zeropoint,
>
> footer=\zeropoint,
>
> bottomspace=2\measured{base},
>
> %
>
> cutspace=2\measured{base},
>
> leftmargin=\zeropoint,
>
> leftmargindistance=\zeropoint,
>
> width=middle, % space for 26-4=22 col
>
> rightmargindistance=\zeropoint,
>
> rightmargin=\zeropoint,
>
> backspace=2\measured{base}
>
> grid=yes,
>
> ]
>
> \showframe
>
> \showgrid
>
> \starttext
>
> \input tufte
>
> \stoptext
>
> I'm attaching the pdf output.
>
> On Fri, May 27, 2022 at 5:00 PM Aditya Mahajan  wrote:
>
>> On Wed, 25 May 2022, Stefan Nedeljkovic via ntg-context wrote:
>>
>> > Dear list,
>> >
>> > My adventures into the world of grids continue. In the linked file
>> > (slide_grid_overlay.pdf) there are two things I cannot yet achieve:
>> >
>> > 1. I want the baseline grid to evenly (vertically) divide the text
>> > area, but my code produces a smaller height of the first line and an
>> > additional space at the bottom.
>>
>> You did not set footerdistance to zero. So, that takes up some space.
>>
>> > 2. The number of columns is 21.5, that is the first column is 0.5
>> units
>> > wide and the rest are 1 unit wide.
>>
>> I believe that columns has to be an integer. Why do you want fractional
>> columns? Columns are useful because you can say:
>>
>> \setlayer[name][line=2,column=3]{}
>>
>> for absolute positioning of layers. So, you can always use:
>>
>> \setlayer[name][line=2,column=3,x=0.5\measured{base}]{}
>>
>> to move everything to the right by 0.5 units.
>>
>> Another option is not to use columns at all, and simply do:
>>
>> \setlayer[name][line=2,x=3.5\measured{base}]
>>
>> which will place the layer at 3.5 units from the left edge of the text
>> area.
>>
>> > Here is what I got right now:
>>
>> Currently your textwidth is not a multiple of base units. I have tweaked
>> the code below so that it is.
>>
>> \definemeasure[xheight][0.1in]
>> \definemeasure[base][3\measured{xheight}]
>>
>> % Since all distances are in terms of base units, specify the paper size
>> in those
>> % terms as well.
>> \definepapersize[slide][width=26\measured{base},height=20\measured{base}]
>> \setuppapersize[slide]
>>
>> \setupinterlinespace[line=\measure{base}]
>>
>> \setuplayout
>> [
>>   topspace=2\measured{base},
>>   header=\zeropoint,
>>   headerdistance=\zeropoint,
>>   height=middle, % Space for 20-4=16 lines
>>   footerdistance=\zeropoint,
>>   footer=\zeropoint,
>>   bottomspace=2\measured{base},
>>   %
>>   cutspace=2\measured{base},
>>   leftmargin=\zeropoint,
>>   leftmargindistance=\zeropoint,
>>   width=middle, % space for 26-4=22 col
>>   rightmargindistance=\zeropoint,
>>   rightmargin=\zeropoint,
>>   backspace=2\measured{base},
>>   %
>>   columns=22,
>>   columndistance=1pt,
>>   %
>>   grid=yes,
>> ]
>>
>>
>> \showframe
>> \showgrid
>>
>> \starttext
>> \input tufte
>> \stoptext
>>
>>
>> Aditya
>>
>
> ___
> If your question is of interest to others as well, please ad

Re: [NTG-context] Offseting the baseline grid, and irregular columnsets

2022-05-27 Thread Rik Kabel via ntg-context
You left out the comma after the backspace setting. WIth that in, all is 
well.


On 2022-05-27 12:03, Stefan Nedeljkovic via ntg-context wrote:
Thank you very much Aditya for looking into this. But I still have the 
same baseline grid offset problem. Interestingly, when I remove the 
columns, the text shifts downwards by two lines.

My code:

\definemeasure[xheight][0.1in]

\definemeasure[base][3\measured{xheight}]

% Since all distances are in terms of base units, specify the paper 
size in those


% terms as well.

\definepapersize[slide][width=26\measured{base},height=20\measured{base}]

\setuppapersize[slide]

\setupinterlinespace[line=\measure{base}]

\setuplayout

[

topspace=2\measured{base},

header=\zeropoint,

headerdistance=\zeropoint,

height=middle, % Space for 20-4=16 lines

footerdistance=\zeropoint,

footer=\zeropoint,

bottomspace=2\measured{base},

%

cutspace=2\measured{base},

leftmargin=\zeropoint,

leftmargindistance=\zeropoint,

width=middle, % space for 26-4=22 col

rightmargindistance=\zeropoint,

rightmargin=\zeropoint,

backspace=2\measured{base}

grid=yes,

]

\showframe

\showgrid

\starttext

\input tufte

\stoptext

I'm attaching the pdf output.


On Fri, May 27, 2022 at 5:00 PM Aditya Mahajan  wrote:

On Wed, 25 May 2022, Stefan Nedeljkovic via ntg-context wrote:

> Dear list,
>
> My adventures into the world of grids continue. In the linked file
> (slide_grid_overlay.pdf) there are two things I cannot yet achieve:
>
>     1. I want the baseline grid to evenly (vertically) divide
the text
> area, but my code produces a smaller height of the first line and an
> additional space at the bottom.

You did not set footerdistance to zero. So, that takes up some space.

>     2. The number of columns is 21.5, that is the first column
is 0.5 units
> wide and the rest are 1 unit wide.

I believe that columns has to be an integer. Why do you want
fractional columns? Columns are useful because you can say:

    \setlayer[name][line=2,column=3]{}

for absolute positioning of layers. So, you can always use:

    \setlayer[name][line=2,column=3,x=0.5\measured{base}]{}

to move everything to the right by 0.5 units.

Another option is not to use columns at all, and simply do:

\setlayer[name][line=2,x=3.5\measured{base}]

which will place the layer at 3.5 units from the left edge of the
text area.

> Here is what I got right now:

Currently your textwidth is not a multiple of base units. I have
tweaked the code below so that it is.

\definemeasure[xheight][0.1in]
\definemeasure[base][3\measured{xheight}]

% Since all distances are in terms of base units, specify the
paper size in those
% terms as well.
\definepapersize[slide][width=26\measured{base},height=20\measured{base}]
\setuppapersize[slide]

\setupinterlinespace[line=\measure{base}]

\setuplayout
    [
      topspace=2\measured{base},
      header=\zeropoint,
      headerdistance=\zeropoint,
      height=middle, % Space for 20-4=16 lines
      footerdistance=\zeropoint,
      footer=\zeropoint,
      bottomspace=2\measured{base},
      %
      cutspace=2\measured{base},
      leftmargin=\zeropoint,
      leftmargindistance=\zeropoint,
      width=middle, % space for 26-4=22 col
      rightmargindistance=\zeropoint,
      rightmargin=\zeropoint,
      backspace=2\measured{base},
      %
      columns=22,
      columndistance=1pt,
      %
      grid=yes,
    ]


\showframe
\showgrid

\starttext
\input tufte
\stoptext


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://context.aanhet.net
archive  :https://bitbucket.org/phg/context-mirror/commits/
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Offseting the baseline grid, and irregular columnsets

2022-05-27 Thread Stefan Nedeljkovic via ntg-context
Thank you very much Aditya for looking into this. But I still have the same
baseline grid offset problem. Interestingly, when I remove the columns, the
text shifts downwards by two lines.
My code:

\definemeasure[xheight][0.1in]

\definemeasure[base][3\measured{xheight}]


% Since all distances are in terms of base units, specify the paper size in
those

% terms as well.

\definepapersize[slide][width=26\measured{base},height=20\measured{base}]

\setuppapersize[slide]


\setupinterlinespace[line=\measure{base}]


\setuplayout

[

topspace=2\measured{base},

header=\zeropoint,

headerdistance=\zeropoint,

height=middle, % Space for 20-4=16 lines

footerdistance=\zeropoint,

footer=\zeropoint,

bottomspace=2\measured{base},

%

cutspace=2\measured{base},

leftmargin=\zeropoint,

leftmargindistance=\zeropoint,

width=middle, % space for 26-4=22 col

rightmargindistance=\zeropoint,

rightmargin=\zeropoint,

backspace=2\measured{base}

grid=yes,

]



\showframe

\showgrid


\starttext

\input tufte

\stoptext


I'm attaching the pdf output.

On Fri, May 27, 2022 at 5:00 PM Aditya Mahajan  wrote:

> On Wed, 25 May 2022, Stefan Nedeljkovic via ntg-context wrote:
>
> > Dear list,
> >
> > My adventures into the world of grids continue. In the linked file
> > (slide_grid_overlay.pdf) there are two things I cannot yet achieve:
> >
> > 1. I want the baseline grid to evenly (vertically) divide the text
> > area, but my code produces a smaller height of the first line and an
> > additional space at the bottom.
>
> You did not set footerdistance to zero. So, that takes up some space.
>
> > 2. The number of columns is 21.5, that is the first column is 0.5
> units
> > wide and the rest are 1 unit wide.
>
> I believe that columns has to be an integer. Why do you want fractional
> columns? Columns are useful because you can say:
>
> \setlayer[name][line=2,column=3]{}
>
> for absolute positioning of layers. So, you can always use:
>
> \setlayer[name][line=2,column=3,x=0.5\measured{base}]{}
>
> to move everything to the right by 0.5 units.
>
> Another option is not to use columns at all, and simply do:
>
> \setlayer[name][line=2,x=3.5\measured{base}]
>
> which will place the layer at 3.5 units from the left edge of the text
> area.
>
> > Here is what I got right now:
>
> Currently your textwidth is not a multiple of base units. I have tweaked
> the code below so that it is.
>
> \definemeasure[xheight][0.1in]
> \definemeasure[base][3\measured{xheight}]
>
> % Since all distances are in terms of base units, specify the paper size
> in those
> % terms as well.
> \definepapersize[slide][width=26\measured{base},height=20\measured{base}]
> \setuppapersize[slide]
>
> \setupinterlinespace[line=\measure{base}]
>
> \setuplayout
> [
>   topspace=2\measured{base},
>   header=\zeropoint,
>   headerdistance=\zeropoint,
>   height=middle, % Space for 20-4=16 lines
>   footerdistance=\zeropoint,
>   footer=\zeropoint,
>   bottomspace=2\measured{base},
>   %
>   cutspace=2\measured{base},
>   leftmargin=\zeropoint,
>   leftmargindistance=\zeropoint,
>   width=middle, % space for 26-4=22 col
>   rightmargindistance=\zeropoint,
>   rightmargin=\zeropoint,
>   backspace=2\measured{base},
>   %
>   columns=22,
>   columndistance=1pt,
>   %
>   grid=yes,
> ]
>
>
> \showframe
> \showgrid
>
> \starttext
> \input tufte
> \stoptext
>
>
> Aditya
>


slide.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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Offseting the baseline grid, and irregular columnsets

2022-05-27 Thread Aditya Mahajan via ntg-context
On Wed, 25 May 2022, Stefan Nedeljkovic via ntg-context wrote:

> Dear list,
> 
> My adventures into the world of grids continue. In the linked file
> (slide_grid_overlay.pdf) there are two things I cannot yet achieve:
> 
> 1. I want the baseline grid to evenly (vertically) divide the text
> area, but my code produces a smaller height of the first line and an
> additional space at the bottom.

You did not set footerdistance to zero. So, that takes up some space.

> 2. The number of columns is 21.5, that is the first column is 0.5 units
> wide and the rest are 1 unit wide.

I believe that columns has to be an integer. Why do you want fractional 
columns? Columns are useful because you can say:

\setlayer[name][line=2,column=3]{}

for absolute positioning of layers. So, you can always use:

\setlayer[name][line=2,column=3,x=0.5\measured{base}]{}

to move everything to the right by 0.5 units.  

Another option is not to use columns at all, and simply do:

\setlayer[name][line=2,x=3.5\measured{base}]

which will place the layer at 3.5 units from the left edge of the text area. 

> Here is what I got right now:

Currently your textwidth is not a multiple of base units. I have tweaked the 
code below so that it is.

\definemeasure[xheight][0.1in]
\definemeasure[base][3\measured{xheight}]

% Since all distances are in terms of base units, specify the paper size in 
those
% terms as well.
\definepapersize[slide][width=26\measured{base},height=20\measured{base}]
\setuppapersize[slide]

\setupinterlinespace[line=\measure{base}]

\setuplayout
[
  topspace=2\measured{base},
  header=\zeropoint,
  headerdistance=\zeropoint,
  height=middle, % Space for 20-4=16 lines
  footerdistance=\zeropoint,
  footer=\zeropoint,
  bottomspace=2\measured{base},
  %
  cutspace=2\measured{base},
  leftmargin=\zeropoint,
  leftmargindistance=\zeropoint,
  width=middle, % space for 26-4=22 col
  rightmargindistance=\zeropoint,
  rightmargin=\zeropoint,
  backspace=2\measured{base},
  %
  columns=22,
  columndistance=1pt,
  %
  grid=yes,
]


\showframe
\showgrid

\starttext
\input tufte
\stoptext


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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Offseting the baseline grid, and irregular columnsets

2022-05-25 Thread Stefan Nedeljkovic via ntg-context
Dear list,

My adventures into the world of grids continue. In the linked file
(slide_grid_overlay.pdf) there are two things I cannot yet achieve:

1. I want the baseline grid to evenly (vertically) divide the text
area, but my code produces a smaller height of the first line and an
additional space at the bottom.
2. The number of columns is 21.5, that is the first column is 0.5 units
wide and the rest are 1 unit wide.

How would I achieve this?
Here is what I got right now:

\definemeasure[xheight][0.1in]
\definemeasure[base][3\measured{xheight}]

\definepapersize[slide][width=80\measured{xheight},height=60\measured{xheight}]
\setuppapersize[slide]

\setupinterlinespace[line=\measure{base},top=1]

\setuplayout[
leftedge=\zeropoint,
rightedge=\measure{zero},
leftedgedistance=\zeropoint,
rightedgedistance=\zeropoint,
leftmargin=\zeropoint,
rightmargin=\zeropoint,
leftmargindistance=\zeropoint,
rightmargindistance=\zeropoint,
width=middle,
cutspace=2\measured{base},
backspace=2\measured{base},
topspace=2\measured{base},
header=\zeropoint,
height=middle,
bottomspace=2\measured{base},
footer=\zeropoint,
grid=yes,
columndistance=1pt,
columns=21.5]


\showframe
\showgrid

\starttext
\input tufte
\stoptext

Link to file:
https://drive.google.com/drive/folders/1KpYbDlukvSCirKkFvJICOX3wABl_83bW?usp=sharing

Sincerely,
Stefan
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problems with column sets?

2022-05-25 Thread Ben Moon via ntg-context
I've had a similar issue since December (posted here: 
https://www.mail-archive.com/ntg-context@ntg.nl/msg101228.html) and trying the 
examples from the columnsets manual today and the version that worked for 
Hraban I get the same error (ConTeXt version  2022.05.02, macOS 12.4).

Ben


On Tue, 24 May 2022, at 20:42, T. Kurt Bond via ntg-context wrote:
> Sigh.  I should have mentioned that that I reinstalled LMTX from scratch on 
> both machines, and that my mac is running macOS Monterey 12.3.1.
> 
> On Tue, May 24, 2022 at 3:40 PM T. Kurt Bond  wrote:
>> Huh.  I tried it on a Linux box, and that worked.  But on my main machine, a 
>> Intel 64 bit mac, I get the original result.  Oh, I changed to use this 
>> input:
>>> \definecolumnset[TwoColumns][n=2]
>>> \startcolumnset [TwoColumns]
>>>   \input knuth
>>> \stopcolumnset
>> 
>> On Tue, May 24, 2022 at 3:09 PM Henning Hraban Ramm via ntg-context 
>>  wrote:
>>> Am 24.05.22 um 20:43 schrieb T. Kurt Bond via ntg-context:
>>> > Given the following file that uses definecolumnset and 
>>> > startcolumnset/stopcolumnset (largely from the wiki 
>>> > ) for input:
>>> > 
>>> > 
>>> > 
>>> > \setuppapersize[letter]
>>> > \definecolumnset[TwoColumns][n=2]
>>> > \startcolumnset [TwoColumns]
>>> >\title{Test page}
>>> >\framed
>>> >  [frame=off,
>>> >   bottomframe=on,
>>> >   width=\textwidth,
>>> >   frameoffset=1mm,
>>> >   foregroundstyle=small,
>>> >  ]{\copyright\ \date[][year] Donald E. Knuth}
>>> >\input knuth
>>> > \stopcolumnset
>>> > 
>>> > 
>>> 
>>> That’s not a minimal example, but it works for me (even if the text 
>>> starts only on the second page):
>>> 
>>> \definecolumnset[TwoColumns][n=2]
>>> 
>>> \starttext
>>> \startcolumnset [TwoColumns]
>>>\title{Test page}
>>>\framed
>>>  [frame=off,
>>>   bottomframe=on,
>>>   width=\textwidth,
>>>   frameoffset=1mm,
>>>   foregroundstyle=small,
>>>  ]{\copyright\ \date[][year] Donald E. Knuth}
>>>\samplefile{knuth}
>>> \stopcolumnset
>>> \stoptext
>>> 
>>> Hraban
>>> ___
>>> 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://context.aanhet.net
>>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>>> wiki : http://contextgarden.net
>>> ___
>> 
>> 
>> -- 
>> T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io
> 
> 
> -- 
> T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problems with column sets?

2022-05-24 Thread T. Kurt Bond via ntg-context
Sigh.  I should have mentioned that that I reinstalled LMTX from scratch on
both machines, and that my mac is running macOS Monterey 12.3.1.

On Tue, May 24, 2022 at 3:40 PM T. Kurt Bond  wrote:

> Huh.  I tried it on a Linux box, and that worked.  But on my main machine,
> a Intel 64 bit mac, I get the original result.  Oh, I changed to use this
> input:
>
> \definecolumnset[TwoColumns][n=2]
> \startcolumnset [TwoColumns]
>   \input knuth
> \stopcolumnset
>
>
> On Tue, May 24, 2022 at 3:09 PM Henning Hraban Ramm via ntg-context <
> ntg-context@ntg.nl> wrote:
>
>> Am 24.05.22 um 20:43 schrieb T. Kurt Bond via ntg-context:
>> > Given the following file that uses definecolumnset and
>> > startcolumnset/stopcolumnset (largely from the wiki
>> > ) for input:
>> >
>> >
>>  
>> 
>> > \setuppapersize[letter]
>> > \definecolumnset[TwoColumns][n=2]
>> > \startcolumnset [TwoColumns]
>> >\title{Test page}
>> >\framed
>> >  [frame=off,
>> >   bottomframe=on,
>> >   width=\textwidth,
>> >   frameoffset=1mm,
>> >   foregroundstyle=small,
>> >  ]{\copyright\ \date[][year] Donald E. Knuth}
>> >\input knuth
>> > \stopcolumnset
>> >
>>  
>> 
>>
>> That’s not a minimal example, but it works for me (even if the text
>> starts only on the second page):
>>
>> \definecolumnset[TwoColumns][n=2]
>>
>> \starttext
>> \startcolumnset [TwoColumns]
>>\title{Test page}
>>\framed
>>  [frame=off,
>>   bottomframe=on,
>>   width=\textwidth,
>>   frameoffset=1mm,
>>   foregroundstyle=small,
>>  ]{\copyright\ \date[][year] Donald E. Knuth}
>>\samplefile{knuth}
>> \stopcolumnset
>> \stoptext
>>
>> Hraban
>>
>> ___
>> 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://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : http://contextgarden.net
>>
>> ___
>>
>
>
> --
> T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io
>


-- 
T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problems with column sets?

2022-05-24 Thread T. Kurt Bond via ntg-context
Huh.  I tried it on a Linux box, and that worked.  But on my main machine,
a Intel 64 bit mac, I get the original result.  Oh, I changed to use this
input:

\definecolumnset[TwoColumns][n=2]
\startcolumnset [TwoColumns]
  \input knuth
\stopcolumnset


On Tue, May 24, 2022 at 3:09 PM Henning Hraban Ramm via ntg-context <
ntg-context@ntg.nl> wrote:

> Am 24.05.22 um 20:43 schrieb T. Kurt Bond via ntg-context:
> > Given the following file that uses definecolumnset and
> > startcolumnset/stopcolumnset (largely from the wiki
> > ) for input:
> >
> >
>  
> 
> > \setuppapersize[letter]
> > \definecolumnset[TwoColumns][n=2]
> > \startcolumnset [TwoColumns]
> >\title{Test page}
> >\framed
> >  [frame=off,
> >   bottomframe=on,
> >   width=\textwidth,
> >   frameoffset=1mm,
> >   foregroundstyle=small,
> >  ]{\copyright\ \date[][year] Donald E. Knuth}
> >\input knuth
> > \stopcolumnset
> >
>  
> 
>
> That’s not a minimal example, but it works for me (even if the text
> starts only on the second page):
>
> \definecolumnset[TwoColumns][n=2]
>
> \starttext
> \startcolumnset [TwoColumns]
>\title{Test page}
>\framed
>  [frame=off,
>   bottomframe=on,
>   width=\textwidth,
>   frameoffset=1mm,
>   foregroundstyle=small,
>  ]{\copyright\ \date[][year] Donald E. Knuth}
>\samplefile{knuth}
> \stopcolumnset
> \stoptext
>
> Hraban
>
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>


-- 
T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problems with column sets?

2022-05-24 Thread Henning Hraban Ramm via ntg-context

Am 24.05.22 um 20:43 schrieb T. Kurt Bond via ntg-context:
Given the following file that uses definecolumnset and 
startcolumnset/stopcolumnset (largely from the wiki 
) for input:




\setuppapersize[letter]
\definecolumnset[TwoColumns][n=2]
\startcolumnset [TwoColumns]
   \title{Test page}
   \framed
     [frame=off,
      bottomframe=on,
      width=\textwidth,
      frameoffset=1mm,
      foregroundstyle=small,
     ]{\copyright\ \date[][year] Donald E. Knuth}
   \input knuth
\stopcolumnset




That’s not a minimal example, but it works for me (even if the text 
starts only on the second page):


\definecolumnset[TwoColumns][n=2]

\starttext
\startcolumnset [TwoColumns]
  \title{Test page}
  \framed
[frame=off,
 bottomframe=on,
 width=\textwidth,
 frameoffset=1mm,
 foregroundstyle=small,
]{\copyright\ \date[][year] Donald E. Knuth}
  \samplefile{knuth}
\stopcolumnset
\stoptext

Hraban
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Problems with column sets?

2022-05-24 Thread T. Kurt Bond via ntg-context
Given the following file that uses definecolumnset and
startcolumnset/stopcolumnset (largely from the wiki
) for input:


\setuppapersize[letter]
\definecolumnset[TwoColumns][n=2]
\startcolumnset [TwoColumns]
  \title{Test page}
  \framed
[frame=off,
 bottomframe=on,
 width=\textwidth,
 frameoffset=1mm,
 foregroundstyle=small,
]{\copyright\ \date[][year] Donald E. Knuth}
  \input knuth
\stopcolumnset


Why does context fail, producing an empty .log and .pdf, with the following
information to the terminal:

resolvers   | formats | executing runner 'run luametatex format':
/usr/local/sw/versions/context-osx-64/tex/texmf-osx-64/bin/luametatex
--jobname="./x.ctx"
--fmt=/usr/local/sw/versions/context-osx-64/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt
--lua=/usr/local/sw/versions/context-osx-64/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui
 --c:currentrun=1 --c:fulljobname="./x.ctx" --c:input="./x.ctx"
--c:kindofrun=1 --c:maxnofruns=9
--c:texmfbinpath="/usr/local/sw/versions/context-osx-64/tex/texmf-osx-64/bin"
system  >
system  > ConTeXt  ver: 2022.05.11 11:36 LMTX  fmt: 2022.5.24  int:
english/english
system  >
system  > 'cont-new.mkxl' loaded
open source > level 1, order 1, name
'/usr/local/sw/versions/context-osx-64/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 1, order 1, name
'/usr/local/sw/versions/context-osx-64/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > files > jobname './x', input './x.ctx', result './x'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 1, order 2, name './x.ctx'
mtx-context | fatal error: return code: 1

-- 
T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Pull quote between two column - trial

2022-05-21 Thread Garulfo via ntg-context

Hi all,

hope you are all doing well.

I am still trying to display pull quote between two columns.

lmt_parshape is really helpfull.


I need to add a 1pt gap to make the left column behave correctly,
but the right column remains shifted one line below the intended one.

Question1: any clue ?

Question2: is there a way to use the columnset system to produce a 
similar output ?


Thanks again for your feedbacks,
Garulfo
\setuplayout
  [grid=yes,
   headerdistance=5mm,
   margindistance=5mm,
   backspace=17.5mm,
   margin=10mm,
   topspace=40mm,
   height=23cm,
   header=10mm,
   footer=10mm,
   width=17.5cm]

%\showframe
%\showgrid
\usemodule [visual]

\setupbodyfont [palatino,11pt]

\definecolor [transparentred]  [r=1,t=.5,a=1]
\definecolor [transparentgreen][g=1,t=.5,a=1]

%

\def\posA{10}
\def\posB{20}
\def\mygap{1pt}
\def\mypen{1pt}
\def\PQhalfwith{20mm}

%

\startuseMPgraphic{mytest0}   % for basic straight column
begingroup ;
save p ; path p ;
p := (0,0)  --
 (0.3*TextWidth,0cm) --
 (0.3*TextWidth,TextHeight) --
 (0cm,TextHeight) --cycle  ;
lmt_parshape [path = p] ;
draw p withpen pencircle scaled \mypen ;
endgroup ;
\stopuseMPgraphic

\startuseMPgraphic{mytest1}  % column on the left of the pull quote
begingroup ;
save p ; path p ;
p := (0,0)  --
 (0.3*TextWidth,0cm) --
 (0.3*TextWidth,TextHeight+\mygap-\posB*LineHeight) --
 (0.3*TextWidth-\PQhalfwith,TextHeight+\mygap-\posB*LineHeight) --
 (0.3*TextWidth-\PQhalfwith,TextHeight-\mygap-\posA*LineHeight) --
 (0.3*TextWidth,TextHeight-\mygap-\posA*LineHeight) --
 (0.3*TextWidth,TextHeight) --
 (0cm,TextHeight) --cycle  ;
lmt_parshape [path = p] ;
draw p withpen pencircle scaled \mypen ;
endgroup ;
\stopuseMPgraphic

\startuseMPgraphic{mytest2}   % column on the right of the pull quote
begingroup ;
save p ; path p ;
p := (0,0)  --
 (0.3*TextWidth,0cm) --
 (0.3*TextWidth,TextHeight) --
 (0cm,TextHeight) --
 (0.0*TextWidth,TextHeight-\mygap-\posA*LineHeight) --
 (0.0*TextWidth+\PQhalfwith,TextHeight-\mygap-\posA*LineHeight) --
 (0.0*TextWidth+\PQhalfwith,TextHeight+\mygap-\posB*LineHeight) --
 (0.0*TextWidth,TextHeight+\mygap-\posB*LineHeight) --
 cycle  ;
lmt_parshape [path = p] ;
draw p withpen pencircle scaled \mypen ;
endgroup ;
\stopuseMPgraphic

\defineoverlay[myOL1][\useMPgraphic{mytest1}]
\defineoverlay[myOL2][\useMPgraphic{mytest2}]

%

\defineframed
  [FramePage]
  [align=width,
   frame=off,
   location=high,
   strut=yes,
   offset=0pt,
   width=\textwidth,
   height=\textheight,
   before=]

\defineframed
  [FrameColumn]
  [FramePage]
  [background=color,
   backgroundcolor=transparentred,
   width=0.3\textwidth,
   after=\dontleavehmode]

%

\definelayer % used to display the pull quote on the page
  [test]
  [x=0mm,
   y=0mm,
   width=\paperwidth,
   height=\paperheight]

%===

\starttext

\startshapetext[mytest1,mytest2,mytest0,mytest0]%
\strut%
\dorecurse{3}{\samplefile{douglas}
\blank[1*line]}%
\stopshapetext

%
% First page

\FramePage{%
\FrameColumn[background={color,myOL1}]{\getshapetext}\hfill
\FrameColumn[background={color,myOL2}]{\getshapetext}\hfill
\FrameColumn{empty}}


% and the pull quote

\setlayer
  [test]
  [hoffset=\backspace+0.3\textwidth-\PQhalfwith+0.2pt,
   voffset=\dimexpr(\topspace+\headerheight+\headerdistance+\posA\baselineskip-0.4pt)]
 {\framed[
background=color,
backgroundcolor=transparentgreen,
frame=off,
strut=yes,
offset=0pt,
width=\dimexpr(0.05\textwidth)+\PQhalfwith+\PQhalfwith,
height=\dimexpr(\posB\baselineskip-\posA\baselineskip)]{\bfd PULL QUOTE\\TRIAL}}

\setupbackgrounds[page][background={foreground,test}]

%
% Second page just to demonstrate that \getshapetext continue to work

\page

\FramePage{%
\FrameColumn{\getshapetext}\hfill
\FrameColumn{\getshapetext}\hfill
\FrameColumn{empty}}


\stoptext



pullquote_between_column_v01.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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Can I just put a footnote without marking in the main text?

2022-05-18 Thread Ross via ntg-context
I found a way to wrap everything before \startdocument, so I think this
looks like a template more or less:

In case anyone is interested, here's the MWE:

\definenote[address]
\setupnote[address][rule=off,location=text]


\setupnotation[footnote][numberconversion=numerals]

\definenote[putjustmark]
\setupnote[putjustmark][location=none]
\setupnotation[putjustmark][numberconversion=set 2]


\definenote[putjustnote][footnote]
\setupnote[putjustnote][textcommand=\gobbleoneargument]
\setupnotation[putjustnote][numberconversion=set 2]

\newif\ifnoteintitle
\newtoks\titlefootnotes

\titlefootnotes\emptytoks


\def\thanks#1{\noteintitletrue\putjustmark{#1}\doglobal\appendtoks
\putjustnote{#1} \to \titlefootnotes}
\def\email#1{\noteintitletrue\putjustmark{#1}\doglobal\appendtoks
\putjustnote{#1} \to \titlefootnotes}

\def\unskipfunnylines{\ifnoteintitle\endgraf\kern-2\lineheight\fi}


\definenamespace
   [addr]
   [type=module,
name=address,
command=yes,
setup=list,
parent=addr,
  ]

\define[1]\useaddress
{\setnotetext[address][#1]{\namedaddressparameter{#1}{name}}}



\setupaddress[style=italic]
\defineaddress[fst][name={Name of Institute or Affiliation, City, Country}]
\defineaddress[snd][name={Name of Secondary Institute or Affiliation, City,
Country}]
\defineaddress[thd][name={Name of Third Institute or Affiliation, City,
Country}]

\processcommacommand[fst,snd,thd]\useaddress



\startsetups [document:start]
The Title\dorecurse{10}{\expanded{\thanks{Work supported by fund
\recurselevel.}}}
\endgraf

Me\dorecurse{10}{\expanded{\email{\tt my.name@mailbox.\recurselevel.com
}}\high{,}}\note[address][fst]\high{,}\note[address][snd]\high{,}\note[address][thd]
\endgraf

\placenotes[address]

\blank[medium]
  \startcolumns\hyphenpenalty1000

  \the\titlefootnotes\relax

  \setcounter[footnote][0]

  \unskipfunnylines

\stopsetups

\startsetups [document:stop]
  \stopcolumns
\stopsetups



\startdocument


test\footnote{test}

\input knuth

\input knuth

\input knuth

\input knuth

\stopdocument



On Wed, May 18, 2022 at 10:02 PM Ross  wrote:

> After some visualisations, I found that my token \titlefootnotes will
> ALWAYS generate two lines if there is/are any non-zero number of footnotes
> there. Interesting. So I need a \newif that each time a \thanks or \email
> is invoked, it'll set to true and I'll unskip the 2\lineheight afterwards.
>
> I still don't know why this \kern macro won't have any effect if it's
> inside a token or a \startsetup.
>
> On Wed, May 18, 2022 at 4:56 PM Ross  wrote:
>
>> Hi Massi,
>>
>> You are a champion!
>>
>> On Wed, May 18, 2022 at 4:41 PM mf  wrote:
>>
>>> I hope I got the point now:
>>>
>>> ...
>>> \startcolumns
>>>
>>> \the\titlefootnotes
>>>
>>> \kern-\rawcountervalue[address]\lineheight % dirty trick
>>>
>>> test\footnote{test}
>>>
>>> \input knuth
>>>
>>> \stopcolumns
>>> ...
>>>
>>> Massi
>>>
>>> Il 18/05/22 10:07, Ross ha scritto:
>>> > Dear Massi,
>>> >
>>> > Thanks for your solution. But the thing may be related to the
>>> > \appendtoks macro. It doesn't work to put just \setnotetext there.
>>> > \note works fine, so that's the reason I need the "full functional
>>> macro".
>>> >
>>> > Maybe I didn't get the point, so if it's not too much to ask, could
>>> you
>>> > do it on my MWE?
>>> >
>>> > PS: sorry I have to use another email account because my institute
>>> > mailbox took forever to get the message before my government (China)
>>> > finishes auditing it.
>>> >
>>> > Best wishes,
>>> > Zhichu
>>> >
>>> > On Wed, May 18, 2022 at 3:36 PM mf via ntg-context >> > <mailto:ntg-context@ntg.nl>> wrote:
>>> >
>>> > Is this what you mean?
>>> >
>>> > \starttext
>>> > Hello\footnotetext{Footnote without mark}.
>>> > \stoptext
>>> >
>>> > Kind regards,
>>> > Massi
>>> >
>>> > Il 18/05/22 07:55, Zhichu Chen via ntg-context ha scritto:
>>> >  > Hi everybody,
>>> >  >
>>> >  >
>>> >  > After some attempts to put footnotes in a mixed 1&2 columns
>>> > layout, I
>>> >  > decide to put marks in the one-column environment and flush them
>>> > when
>>> >  > entering the two-column environment.
>>> >  >
>>> >  >
>>> >  > The code

Re: [NTG-context] Can I just put a footnote without marking in the main text?

2022-05-18 Thread Ross via ntg-context
After some visualisations, I found that my token \titlefootnotes will
ALWAYS generate two lines if there is/are any non-zero number of footnotes
there. Interesting. So I need a \newif that each time a \thanks or \email
is invoked, it'll set to true and I'll unskip the 2\lineheight afterwards.

I still don't know why this \kern macro won't have any effect if it's
inside a token or a \startsetup.

On Wed, May 18, 2022 at 4:56 PM Ross  wrote:

> Hi Massi,
>
> You are a champion!
>
> On Wed, May 18, 2022 at 4:41 PM mf  wrote:
>
>> I hope I got the point now:
>>
>> ...
>> \startcolumns
>>
>> \the\titlefootnotes
>>
>> \kern-\rawcountervalue[address]\lineheight % dirty trick
>>
>> test\footnote{test}
>>
>> \input knuth
>>
>> \stopcolumns
>> ...
>>
>> Massi
>>
>> Il 18/05/22 10:07, Ross ha scritto:
>> > Dear Massi,
>> >
>> > Thanks for your solution. But the thing may be related to the
>> > \appendtoks macro. It doesn't work to put just \setnotetext there.
>> > \note works fine, so that's the reason I need the "full functional
>> macro".
>> >
>> > Maybe I didn't get the point, so if it's not too much to ask, could you
>> > do it on my MWE?
>> >
>> > PS: sorry I have to use another email account because my institute
>> > mailbox took forever to get the message before my government (China)
>> > finishes auditing it.
>> >
>> > Best wishes,
>> > Zhichu
>> >
>> > On Wed, May 18, 2022 at 3:36 PM mf via ntg-context > > <mailto:ntg-context@ntg.nl>> wrote:
>> >
>> > Is this what you mean?
>> >
>> > \starttext
>> > Hello\footnotetext{Footnote without mark}.
>> > \stoptext
>> >
>> > Kind regards,
>> > Massi
>> >
>> > Il 18/05/22 07:55, Zhichu Chen via ntg-context ha scritto:
>> >  > Hi everybody,
>> >  >
>> >  >
>> >  > After some attempts to put footnotes in a mixed 1&2 columns
>> > layout, I
>> >  > decide to put marks in the one-column environment and flush them
>> > when
>> >  > entering the two-column environment.
>> >  >
>> >  >
>> >  > The code is ugly but the result is acceptable. Except that the
>> > invisible
>> >  > footnote marks do generate something in the main text, so
>> there's a
>> >  > blank line for each footnote.
>> >  >
>> >  >
>> >  > Here's an MWE:
>> >  >
>> >  >
>> >  > =
>> >  >
>> >  > \definenote[address]
>> >  > \setupnote[address][rule=off,location=text]
>> >  >
>> >  >
>> >  >
>> >  > \definenote[putjustmark]
>> >  > \setupnote[putjustmark][location=none]
>> >  > \setupnotation[putjustmark][numberconversion=set 2]
>> >  >
>> >  >
>> >  > \definenote[putjustnote]%[footnote] % if footnotes need to be
>> > grouped,
>> >  > uncomment the second argument and the line after
>> \the\titlefootnotes
>> >  > \setupnote[putjustnote][textcommand=\gobbleoneargument]
>> >  > \setupnotation[putjustnote][numberconversion=set 2]
>> >  >
>> >  >
>> >  > \newtoks\titlefootnotes
>> >  >
>> >  >
>> >  > \def\thanks#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to
>> >  > \titlefootnotes}
>> >  > \def\email#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to
>> >  > \titlefootnotes}
>> >  >
>> >  >
>> >  > \appendtoks
>> >  >\setcounter[footnote][0] % this looks stupid because it has no
>> > effect
>> >  >%\setupnotation[footnote][numberconversion=numerals]
>> >  > \to \titlefootnotes
>> >  >
>> >  > \definenamespace
>> >  > [addr]
>> >  > [type=module,
>> >  >  name=address,
>> >  >  command=yes,
>> >  >  setup=list,
>> >  >  parent=addr,
>> >  >]
>> >  >
>> >  > \define[1]\use

Re: [NTG-context] Can I just put a footnote without marking in the main text?

2022-05-18 Thread Ross via ntg-context
Hi Massi,

You are a champion!

On Wed, May 18, 2022 at 4:41 PM mf  wrote:

> I hope I got the point now:
>
> ...
> \startcolumns
>
> \the\titlefootnotes
>
> \kern-\rawcountervalue[address]\lineheight % dirty trick
>
> test\footnote{test}
>
> \input knuth
>
> \stopcolumns
> ...
>
> Massi
>
> Il 18/05/22 10:07, Ross ha scritto:
> > Dear Massi,
> >
> > Thanks for your solution. But the thing may be related to the
> > \appendtoks macro. It doesn't work to put just \setnotetext there.
> > \note works fine, so that's the reason I need the "full functional
> macro".
> >
> > Maybe I didn't get the point, so if it's not too much to ask, could you
> > do it on my MWE?
> >
> > PS: sorry I have to use another email account because my institute
> > mailbox took forever to get the message before my government (China)
> > finishes auditing it.
> >
> > Best wishes,
> > Zhichu
> >
> > On Wed, May 18, 2022 at 3:36 PM mf via ntg-context  > <mailto:ntg-context@ntg.nl>> wrote:
> >
> > Is this what you mean?
> >
> > \starttext
> > Hello\footnotetext{Footnote without mark}.
> > \stoptext
> >
> > Kind regards,
> > Massi
> >
> > Il 18/05/22 07:55, Zhichu Chen via ntg-context ha scritto:
> >  > Hi everybody,
> >  >
> >  >
> >  > After some attempts to put footnotes in a mixed 1&2 columns
> > layout, I
> >  > decide to put marks in the one-column environment and flush them
> > when
> >  > entering the two-column environment.
> >  >
> >  >
> >  > The code is ugly but the result is acceptable. Except that the
> > invisible
> >  > footnote marks do generate something in the main text, so there's
> a
> >  > blank line for each footnote.
> >  >
> >  >
> >  > Here's an MWE:
> >  >
> >  >
> >  > =
> >  >
> >  > \definenote[address]
> >  > \setupnote[address][rule=off,location=text]
> >  >
> >  >
> >  >
> >  > \definenote[putjustmark]
> >  > \setupnote[putjustmark][location=none]
> >  > \setupnotation[putjustmark][numberconversion=set 2]
> >  >
> >  >
> >  > \definenote[putjustnote]%[footnote] % if footnotes need to be
> > grouped,
> >  > uncomment the second argument and the line after
> \the\titlefootnotes
> >  > \setupnote[putjustnote][textcommand=\gobbleoneargument]
> >  > \setupnotation[putjustnote][numberconversion=set 2]
> >  >
> >  >
> >  > \newtoks\titlefootnotes
> >  >
> >  >
> >  > \def\thanks#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to
> >  > \titlefootnotes}
> >  > \def\email#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to
> >  > \titlefootnotes}
> >  >
> >  >
> >  > \appendtoks
> >  >\setcounter[footnote][0] % this looks stupid because it has no
> > effect
> >  >%\setupnotation[footnote][numberconversion=numerals]
> >  > \to \titlefootnotes
> >  >
> >  > \definenamespace
> >  > [addr]
> >  > [type=module,
> >  >  name=address,
> >  >  command=yes,
> >  >  setup=list,
> >  >  parent=addr,
> >  >]
> >  >
> >  > \define[1]\useaddress
> >  >  {\setnotetext[address][#1]{\namedaddressparameter{#1}{name}}}
> >  >
> >  >
> >  > \starttext
> >  >
> >  >
> >  >
> >  > \defineaddress[fst][name={Name of Institute or Affiliation, City,
> > Country}]
> >  > \defineaddress[snd][name={Name of Secondary Institute or
> > Affiliation,
> >  > City, Country}]
> >  >
> >  > \processcommacommand[fst,snd]\useaddress
> >  >
> >  >
> >  > The Title\thanks{Work supported by somebody.}
> >  >
> >  >
> > Me\email{myemail@some.where
> }\high{,}\note[address][fst]\high{,}\note[address][snd]
> >
> >  >
> >  >
> >  >
> >  > \placenotes[address]
> >  >
> >  

Re: [NTG-context] Can I just put a footnote without marking in the main text?

2022-05-18 Thread Ross via ntg-context
Dear Massi,

Thanks for your solution. But the thing may be related to the \appendtoks
macro. It doesn't work to put just \setnotetext there.
\note works fine, so that's the reason I need the "full functional macro".

Maybe I didn't get the point, so if it's not too much to ask, could you do
it on my MWE?

PS: sorry I have to use another email account because my institute mailbox
took forever to get the message before my government (China) finishes
auditing it.

Best wishes,
Zhichu

On Wed, May 18, 2022 at 3:36 PM mf via ntg-context 
wrote:

> Is this what you mean?
>
> \starttext
> Hello\footnotetext{Footnote without mark}.
> \stoptext
>
> Kind regards,
> Massi
>
> Il 18/05/22 07:55, Zhichu Chen via ntg-context ha scritto:
> > Hi everybody,
> >
> >
> > After some attempts to put footnotes in a mixed 1&2 columns layout, I
> > decide to put marks in the one-column environment and flush them when
> > entering the two-column environment.
> >
> >
> > The code is ugly but the result is acceptable. Except that the invisible
> > footnote marks do generate something in the main text, so there's a
> > blank line for each footnote.
> >
> >
> > Here's an MWE:
> >
> >
> > =
> >
> > \definenote[address]
> > \setupnote[address][rule=off,location=text]
> >
> >
> >
> > \definenote[putjustmark]
> > \setupnote[putjustmark][location=none]
> > \setupnotation[putjustmark][numberconversion=set 2]
> >
> >
> > \definenote[putjustnote]%[footnote] % if footnotes need to be grouped,
> > uncomment the second argument and the line after \the\titlefootnotes
> > \setupnote[putjustnote][textcommand=\gobbleoneargument]
> > \setupnotation[putjustnote][numberconversion=set 2]
> >
> >
> > \newtoks\titlefootnotes
> >
> >
> > \def\thanks#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to
> > \titlefootnotes}
> > \def\email#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to
> > \titlefootnotes}
> >
> >
> > \appendtoks
> >\setcounter[footnote][0] % this looks stupid because it has no effect
> >%\setupnotation[footnote][numberconversion=numerals]
> > \to \titlefootnotes
> >
> > \definenamespace
> > [addr]
> > [type=module,
> >  name=address,
> >  command=yes,
> >  setup=list,
> >  parent=addr,
> >]
> >
> > \define[1]\useaddress
> >  {\setnotetext[address][#1]{\namedaddressparameter{#1}{name}}}
> >
> >
> > \starttext
> >
> >
> >
> > \defineaddress[fst][name={Name of Institute or Affiliation, City,
> Country}]
> > \defineaddress[snd][name={Name of Secondary Institute or Affiliation,
> > City, Country}]
> >
> > \processcommacommand[fst,snd]\useaddress
> >
> >
> > The Title\thanks{Work supported by somebody.}
> >
> > Me\email{myemail@some.where}\high{,}\note[address][fst]\high{,}\note[address][snd]
>
> >
> >
> >
> > \placenotes[address]
> >
> > \blank[medium]
> >
> > \startcolumns
> >
> >
> > \the\titlefootnotes
> >
> > %\setcounter[footnote][0] % why it's necessary to set the counter
> > outside the token if I define [putjustnote] as [footnote]?
> >
> >
> > test\footnote{test}
> >
> > \input knuth
> >
> >
> >
> > \stopcolumns
> >
> > \stoptext
> >
> > =
> >
> >
> ___
>
> >
> > 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://context.aanhet.net
> > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>


-- 
Best Regards
Chen
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Can I just put a footnote without marking in the main text?

2022-05-18 Thread mf via ntg-context

Is this what you mean?

\starttext
Hello\footnotetext{Footnote without mark}.
\stoptext

Kind regards,
Massi

Il 18/05/22 07:55, Zhichu Chen via ntg-context ha scritto:

Hi everybody,


After some attempts to put footnotes in a mixed 1&2 columns layout, I 
decide to put marks in the one-column environment and flush them when 
entering the two-column environment.



The code is ugly but the result is acceptable. Except that the invisible 
footnote marks do generate something in the main text, so there's a 
blank line for each footnote.



Here's an MWE:


=

\definenote[address]
\setupnote[address][rule=off,location=text]



\definenote[putjustmark]
\setupnote[putjustmark][location=none]
\setupnotation[putjustmark][numberconversion=set 2]


\definenote[putjustnote]%[footnote] % if footnotes need to be grouped, 
uncomment the second argument and the line after \the\titlefootnotes

\setupnote[putjustnote][textcommand=\gobbleoneargument]
\setupnotation[putjustnote][numberconversion=set 2]


\newtoks\titlefootnotes


\def\thanks#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to 
\titlefootnotes}
\def\email#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to 
\titlefootnotes}



\appendtoks
   \setcounter[footnote][0] % this looks stupid because it has no effect
   %\setupnotation[footnote][numberconversion=numerals]
\to \titlefootnotes

\definenamespace
    [addr]
    [type=module,
     name=address,
     command=yes,
     setup=list,
     parent=addr,
   ]

\define[1]\useaddress
     {\setnotetext[address][#1]{\namedaddressparameter{#1}{name}}}


\starttext



\defineaddress[fst][name={Name of Institute or Affiliation, City, Country}]
\defineaddress[snd][name={Name of Secondary Institute or Affiliation, 
City, Country}]


\processcommacommand[fst,snd]\useaddress


The Title\thanks{Work supported by somebody.}

Me\email{myemail@some.where}\high{,}\note[address][fst]\high{,}\note[address][snd] 




\placenotes[address]

\blank[medium]

\startcolumns


\the\titlefootnotes

%\setcounter[footnote][0] % why it's necessary to set the counter 
outside the token if I define [putjustnote] as [footnote]?



test\footnote{test}

\input knuth



\stopcolumns

\stoptext

=

___ 

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Can I just put a footnote without marking in the main text?

2022-05-17 Thread Zhichu Chen via ntg-context

Hi everybody,


After some attempts to put footnotes in a mixed 1&2 columns layout, I 
decide to put marks in the one-column environment and flush them when 
entering the two-column environment.



The code is ugly but the result is acceptable. Except that the invisible 
footnote marks do generate something in the main text, so there's a 
blank line for each footnote.



Here's an MWE:


=

\definenote[address]
\setupnote[address][rule=off,location=text]



\definenote[putjustmark]
\setupnote[putjustmark][location=none]
\setupnotation[putjustmark][numberconversion=set 2]


\definenote[putjustnote]%[footnote] % if footnotes need to be grouped, 
uncomment the second argument and the line after \the\titlefootnotes

\setupnote[putjustnote][textcommand=\gobbleoneargument]
\setupnotation[putjustnote][numberconversion=set 2]


\newtoks\titlefootnotes


\def\thanks#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to 
\titlefootnotes}
\def\email#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to 
\titlefootnotes}



\appendtoks
  \setcounter[footnote][0] % this looks stupid because it has no effect
  %\setupnotation[footnote][numberconversion=numerals]
\to \titlefootnotes

\definenamespace
   [addr]
   [type=module,
    name=address,
    command=yes,
    setup=list,
    parent=addr,
  ]

\define[1]\useaddress
    {\setnotetext[address][#1]{\namedaddressparameter{#1}{name}}}


\starttext



\defineaddress[fst][name={Name of Institute or Affiliation, City, Country}]
\defineaddress[snd][name={Name of Secondary Institute or Affiliation, 
City, Country}]


\processcommacommand[fst,snd]\useaddress


The Title\thanks{Work supported by somebody.}

Me\email{myemail@some.where}\high{,}\note[address][fst]\high{,}\note[address][snd] 




\placenotes[address]

\blank[medium]

\startcolumns


\the\titlefootnotes

%\setcounter[footnote][0] % why it's necessary to set the counter 
outside the token if I define [putjustnote] as [footnote]?



test\footnote{test}

\input knuth



\stopcolumns

\stoptext

=

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Table breaks incorrectly between pages

2022-05-14 Thread Stefan Nedeljkovic via ntg-context
Wow, thank you very, very much!

On Sun, 15 May 2022, 05:35 śrīrāma,  wrote:

> On 5/13/22 12:30 PM Stefan Nedeljkovic via ntg-context wrote:
> > Dear list I need your help with a table that seems to completely screw up
> > the page when it spans across multiple pages. I'm attaching all the
> > necessary files.
> >
> > Kind regards,
> > Stefan
>
> This seems to be a known issue for quite a while, see here:
>   https://www.mail-archive.com/ntg-context@ntg.nl/msg69827.html
>
> As Wolfgang suggested there, you can use framed instead of TABLE in your
> header. I have modified your example file (see attached). With that you
> get the
> attached PDF.
>
> By the way, your example was missing a \bTABLEhead. Moreover, I believe
> cells
> in TABLE head entries should be enclosed by \bTH \eTH instead of \(b|e)TD.
> I
> have made these changes as well.
>
> [Also, I hope you are aware that you can use style=\tt, style=\bf per row/
> column/cell with \setupTABLE; that will significantly reduce markup in
> your
> file]
>
> Best,
>   Sreeram
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Table breaks incorrectly between pages

2022-05-14 Thread śrīrāma via ntg-context
On 5/13/22 12:30 PM Stefan Nedeljkovic via ntg-context wrote:
> Dear list I need your help with a table that seems to completely screw up
> the page when it spans across multiple pages. I'm attaching all the
> necessary files.
> 
> Kind regards,
> Stefan

This seems to be a known issue for quite a while, see here:
  https://www.mail-archive.com/ntg-context@ntg.nl/msg69827.html

As Wolfgang suggested there, you can use framed instead of TABLE in your 
header. I have modified your example file (see attached). With that you get the 
attached PDF.

By the way, your example was missing a \bTABLEhead. Moreover, I believe cells 
in TABLE head entries should be enclosed by \bTH \eTH instead of \(b|e)TD. I 
have made these changes as well.

[Also, I hope you are aware that you can use style=\tt, style=\bf per row/
column/cell with \setupTABLE; that will significantly reduce markup in your 
file]

Best,
  Sreeram% kate: hl ctx

\input fonts

\usetypescript[ibmplex][uc]
\setupbodyfont[ibmplex,rm,9pt]

\setuppapersize[A4]
\setuplayout[
leftedge=\dimexpr0cm,
rightedge=\dimexpr0cm,
leftedgedistance=\dimexpr0cm,
rightedgedistance=\dimexpr0cm,
leftmargin=\dimexpr0cm,
rightmargin=\dimexpr0cm,
leftmargindistance=\dimexpr0cm,
rightmargindistance=\dimexpr0cm,
width=middle,
cutspace=\dimexpr1.5cm,
backspace=\dimexpr1.5cm,
topspace=\dimexpr1.5cm,
header=\dimexpr4cm,
height=middle,
bottomspace=\dimexpr0cm,
footer=\dimexpr0.5cm]

\setupheadertexts[\directsetup{fheader}]

\definehspace[tnumber][0.5em]

\startsetups [fheader]
\startframed[width=max,frame=off]
\startoverlay
{\leftaligned{\framedtext[location=top,frame=off,width=fit,offset=0ex]{„ДОЛИНА” Д.О.О. Београд\\
  ПЈ за прераду меса\\
  ПИБ: СР 100029284\\
  МБ: 06434517\\
  Текући рачун: 205-157956-65\\
  Email: dolin...@gmail.com}}}
{\rightaligned{\framedtext[location=top,frame=off,width=fit,offset=0ex]{%
  Булевар Краља Александра 334, 11000 Београд\\
  011\hspace[tnumber]3806\hspace[tnumber]007\\
  011\hspace[tnumber]3820\hspace[tnumber]457\\
  011\hspace[tnumber]2419\hspace[tnumber]078\\
  \vskip 2em
  Жике Поповића бб, 12220, Велико Градиште\\
  012\hspace[tnumber]662\hspace[tnumber]016}}}
\stopoverlay
\stopframed
\stopsetups

\startsetups [headertable]
\setupTABLE[frame=off]
\setupTABLE[column][1][align=flushleft]
\setupTABLE[column][2][align=flushright]
\stopsetups

\startsetups headertext
\start
\bTABLE[setups=headertable,option=stretch]
\bTR
\bTD
„ДОЛИНА” Д.О.О. Београд\\
ПЈ за прераду меса\\
ПИБ: СР 100029284\\
МБ: 06434517\\
Текући рачун: 205-157956-65\\
Email: dolin...@gmail.com
\eTD
\bTD
Булевар Краља Александра 334, 11000 Београд\\
011\hspace[tnumber]3806\hspace[tnumber]007\\
011\hspace[tnumber]3820\hspace[tnumber]457\\
011\hspace[tnumber]2419\hspace[tnumber]078\\
\vskip 2em
Жике Поповића бб, 12220, Велико Градиште\\
012\hspace[tnumber]662\hspace[tnumber]016\\
\eTD
\eTR
\eTABLE
\stop
\stopsetups

\setuppagenumbering[location=]
\setupfootertexts[][\midaligned{\userpagenumber/\lastuserpage}]
\starttext
\switchtobodyfont[18pt]
\definehspace[hspacing][0.15em]
О\hspace[hspacing]Т\hspace[hspacing]П\hspace[hspacing]Р\hspace[hspacing]Е\hspace[hspacing]М\hspace[hspacing]Н\hspace[hspacing]И\hspace[hspacing]Ц\hspace[hspacing] А\\
\switchtobodyfont[9pt]
{\bf РАЧУН БРОЈ 3180/09}\\
\vskip 3em
Купац: ХЛАДНИ ИЗВОР\\
Место: РИПАЊ, Авалска бр. 261\\
ПИБ: 103358290\\
МБ: 17556711\\
\vskip 3em
Место издавања рачуна: Велико Градиште\\
Датум издавања рачуна: 04.06.2020. 11:13:03\\
Датум промета: 05.06.2020\\
Датум плаћања: 05.06.2020\\
\vskip 3em\start
\startsetups[maintable]
\setupTABLE[frame=off]
\setupTABLE[row][*][height=7.25mm]
\setupTABLE[column][1][align=flushleft]
\setupTABLE[column][2][align=flushleft]
\setupTABLE[column][3][align=flushleft]
\setupTABLE[column][4][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\setupTABLE[column][5][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\setupTABLE[column][6][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\setupTABLE[column][7][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\setupTABLE[column][8][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\setupTABLE[column][9][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\setupTABLE[column][10][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\setupTABLE[column][11][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\setupTABLE[column][12][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\stopsetups
\switchtobodyfont[6pt]
\startalignment[middle]
\bTABLE[setups=maintable,option=stretch,split=repeat]
\bTABLEhead
\bTR[bottomframe=on, rulethickness=2pt,offset=0.25pt]
\bTH\bf Рб \eTH
\bTH\bf Шифра артикла \eTH
\bTH\bf Назив артикла \eTH
\bTH\bf Јединица мере \eTH
\bTH\bf Количина \eTH
\bTH\bf Цена \eTH
\bTH\bf Износ \eTH
\bTH\bf Попуст \eTH
\bTH\bf Основа за ПДВ \eTH
\bTH\bf Порез \eTH
\bTH\bf Износ пореза \eTH
\bTH\bf О

[NTG-context] Table breaks incorrectly between pages

2022-05-14 Thread Stefan Nedeljkovic via ntg-context
Dear list I need your help with a table that seems to completely screw up
the page when it spans across multiple pages. I'm attaching all the
necessary files.

Kind regards,
Stefan
\input fonts

\usetypescript[ibmplex][uc]
\setupbodyfont[ibmplex,rm,9pt]

\setuppapersize[A4]
\setuplayout[
leftedge=\dimexpr0cm,
rightedge=\dimexpr0cm,
leftedgedistance=\dimexpr0cm,
rightedgedistance=\dimexpr0cm,
leftmargin=\dimexpr0cm,
rightmargin=\dimexpr0cm,
leftmargindistance=\dimexpr0cm,
rightmargindistance=\dimexpr0cm,
width=middle,
cutspace=\dimexpr1.5cm,
backspace=\dimexpr1.5cm,
topspace=\dimexpr1.5cm,
header=\dimexpr4cm,
height=middle,
bottomspace=\dimexpr0cm,
footer=\dimexpr0.5cm]


\setupheadertexts[\setups{headertext}]

\definehspace[tnumber][0.5em]

\startsetups [headertable]
\setupTABLE[frame=off]
\setupTABLE[column][1][align=flushleft]
\setupTABLE[column][2][align=flushright]
\stopsetups

\startsetups headertext
\start
\bTABLE[setups=headertable,option=stretch]
\bTR
\bTD
„ДОЛИНА” Д.О.О. Београд\\
ПЈ за прераду меса\\
ПИБ: СР 100029284\\
МБ: 06434517\\
Текући рачун: 205-157956-65\\
Email: dolin...@gmail.com
\eTD
\bTD
Булевар Краља Александра 334, 11000 Београд\\
011\hspace[tnumber]3806\hspace[tnumber]007\\
011\hspace[tnumber]3820\hspace[tnumber]457\\
011\hspace[tnumber]2419\hspace[tnumber]078\\
\vskip 2em
Жике Поповића бб, 12220, Велико Градиште\\
012\hspace[tnumber]662\hspace[tnumber]016\\
\eTD
\eTR
\eTABLE
\stop
\stopsetups

\setuppagenumbering[location=]
\setupfootertexts[][\midaligned{\userpagenumber/\lastuserpage}]
\starttext
\switchtobodyfont[18pt]
\definehspace[hspacing][0.15em]
О\hspace[hspacing]Т\hspace[hspacing]П\hspace[hspacing]Р\hspace[hspacing]Е\hspace[hspacing]М\hspace[hspacing]Н\hspace[hspacing]И\hspace[hspacing]Ц\hspace[hspacing] А\\
\switchtobodyfont[9pt]
{\bf РАЧУН БРОЈ 3180/09}\\
\vskip 3em
Купац: ХЛАДНИ ИЗВОР\\
Место: РИПАЊ, Авалска бр. 261\\
ПИБ: 103358290\\
МБ: 17556711\\
\vskip 3em
Место издавања рачуна: Велико Градиште\\
Датум издавања рачуна: 04.06.2020. 11:13:03\\
Датум промета: 05.06.2020\\
Датум плаћања: 05.06.2020\\
\vskip 3em\start
\startsetups[maintable]
\setupTABLE[frame=off]
\setupTABLE[row][*][height=7.25mm]
\setupTABLE[column][1][align=flushleft]
\setupTABLE[column][2][align=flushleft]
\setupTABLE[column][3][align=flushleft]
\setupTABLE[column][4][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\setupTABLE[column][5][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\setupTABLE[column][6][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\setupTABLE[column][7][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\setupTABLE[column][8][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\setupTABLE[column][9][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\setupTABLE[column][10][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\setupTABLE[column][11][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\setupTABLE[column][12][alignmentcharacter={.},aligncharacter=yes,align=flushright]
\stopsetups
\switchtobodyfont[6pt]
\startalignment[middle]
\bTABLE[setups=maintable,option=stretch,split=yes,header=repeat]
\bTR[bottomframe=on, rulethickness=2pt,offset=0.25pt]
\bTD\bf Рб \eTD
\bTD\bf Шифра артикла \eTD
\bTD\bf Назив артикла \eTD
\bTD\bf Јединица мере \eTD
\bTD\bf Количина \eTD
\bTD\bf Цена \eTD
\bTD\bf Износ \eTD
\bTD\bf Попуст \eTD
\bTD\bf Основа за ПДВ \eTD
\bTD\bf Порез \eTD
\bTD\bf Износ пореза \eTD
\bTD\bf Основа за ПДВ + ПДВ \eTD
\eTR
\eTABLEhead
\bTABLEbody
\bTR[bottomframe=on,rulethickness=.25pt,offset=2pt]
\bTD\tt 1 \eTD
\bTD\tt 011 \eTD
\bTD ПЕЧЕНИЦА \eTD
\bTD kg \eTD
\bTD\tt 4.22 \eTD
\bTD\tt 1,000.00 \eTD
\bTD\tt 4,220.00 \eTD
\bTD\tt 0.15 \eTD
\bTD\tt 3,587.00 \eTD
\bTD\tt 0.2 \eTD
\bTD\tt 717.40 \eTD
\bTD\tt 4,304.40 \eTD
\eTR\bTR[bottomframe=on,rulethickness=.25pt,offset=2pt]
\bTD\tt 2 \eTD
\bTD\tt 013 \eTD
\bTD ВРАТ \eTD
\bTD kg \eTD
\bTD\tt 1.77 \eTD
\bTD\tt 900.00 \eTD
\bTD\tt 1,593.00 \eTD
\bTD\tt 0.15 \eTD
\bTD\tt 1,354.05 \eTD
\bTD\tt 0.2 \eTD
\bTD\tt 270.81 \eTD
\bTD\tt 1,624.86 \eTD
\eTR\bTR[bottomframe=on,rulethickness=.25pt,offset=2pt]
\bTD\tt 3 \eTD
\bTD\tt 016 \eTD
\bTD ШПИЦ РЕБРА \eTD
\bTD kg \eTD
\bTD\tt 10.45 \eTD
\bTD\tt 490.00 \eTD
\bTD\tt 5,120.50 \eTD
\bTD\tt 0.10 \eTD
\bTD\tt 4,608.45 \eTD
\bTD\tt 0.2 \eTD
\bTD\tt 921.69 \eTD
\bTD\tt 5,530.14 \eTD
\eTR\bTR[bottomframe=on,rulethickness=.25pt,offset=2pt]
\bTD\tt 4 \eTD
\bTD\tt 021 \eTD
\bTD ПИКАНТ СЛАНИНА \eTD
\bTD kg \eTD
\bTD\tt 2.57 \eTD
\bTD\tt 767.00 \eTD
\bTD\tt 1,971.19 \eTD
\bTD\tt 0.15 \eTD
\bTD\tt 1,675.51 \eTD
\bTD\tt 0.2 \eTD
\bTD\tt 335.10 \eTD
\bTD\tt 2,010.61 \eTD
\eTR\bTR[bottomframe=on,rulethickness=.25pt,offset=2pt]
\bTD\tt 5 \eTD
\bTD\tt 042 \eTD
\bTD ДОМАЋА КОБАСИЦА \eTD
\bTD kg \eTD
\bTD\tt 5 \eTD
\bTD\tt 350.00 \eTD
\bTD\tt 1,750.00 \eTD
\bTD\tt 0.20 \eTD
\bTD\tt 1,400.00 \eTD
\bTD\tt 0.2 \eTD
\bTD\tt 280.00 \eTD
\bTD\tt 1,680.00 \eTD
\eTR\bTR[bottomframe

[NTG-context] \placenotes ends up in wrong place when mixing one- and two- column layouts.

2022-05-10 Thread Zhichu Chen via ntg-context

Thanks Hans, works perfectly.


Sorry for the late reply. Still working on the template and got another 
one. Again, sorry.



The journal is in two-column form and the title, authors, and addresses 
are spanned to


the full width. Very common. But the title may acknowledge to some 
fund(s) and the


authors may have email addresses. If I use \note[thanks] and 
\note[email] to do that,


only the markers are shown. That's expected. So I tried to put 
\postponenotes before


the title and insert\placenotes[thanks] and \placenotes[email] after 
\startcolumns. The


notes did show up but in wrong position.


I hope there's another magic switch, or I have to put the marks in the 
title head and


put "real" but invisible notes in the two-column texts.



Thanks again, Hans.


Yours,

Zhichu


MWE (not that minimal):

===

\definenote[address]
\setupnote[address][rule=off,location=text]

\definenote[thanks]
\setupnote[thanks][location=firstcolumn]
\setupnotation[thanks][numberconversion=set 2]
\definenote[email][thanks]


\definenamespace
   [addr]
   [type=module,
    name=address,
    command=yes,
    setup=list,
    parent=addr,
  ]

\define[1]\useaddress
    {\edef\currentaddress{#1}%
 {\setnotetext[address][#1]{\addressparameter{name}}}%
    \endgraf
    }

\starttext


\setupaddress[style=italic]
\defineaddress[fst][name={Name of Institute or Affiliation, City, Country}]
\defineaddress[snd][name={Name of Secondary Institute or Affiliation, 
City, Country}]


\processcommacommand[fst,snd]\useaddress

\postponenotes

The Title\thanks{Work supported by somebody.}

%\startlocalnotes[address]
Me\email{myemail@some.where}\high{,}\note[address][fst]\high{,}\note[address][snd]
%\placelocalnotes[address]
%\stoplocalnotes

\placenotes[address]

\startcolumns

\placenotes[thanks]
\placenotes[email]


\input knuth
\stopcolumns

\stoptext

===


On 5/8/22 17:20, Hans Hagen via ntg-context wrote:

On 5/8/2022 6:55 AM, Zhichu via ntg-context wrote:

Hi,

I am going to convince the Board of a journal to consider ConTeXt as 
an additional option.
I want to make a module before I say anything. Right now I have this 
title problem.


The journal requires the titles to be CAPITALISED, except for the 
acronyms. I'm currently
using backticks`...`to wrap it and replace it with\egroup 
...\WORD\bgroup{} with
lpeg. This kinda works, but that's so ugly. Besides, the actual story 
is that I also want to

add markdown as an option, so the backticks actually have meanings.

I also checked thetypo-cap.luafile to get a clue. But I used to use 
TeX exclusively

and I have to admit that it's so overwhelming for a newbie.

I really like the way wherebibtextreats words enclosed in curly 
braces are ignored.
Or are there something that's less aggressive than\WORDso the LaTeX 
trick works:

\def\NoCaseChange#1{\noexpand\NoCaseChange{\noexpand#1}}

\starttext

\protected\def\casing[#1]{\groupedcommand{\setcharactercasing[#1]}{}}
    \protected\def\nocasing 
{\groupedcommand{\setcharactercasing[reset]}{}}


    \setuphead[chapter][textstyle=\WORD]

    \chapter{some \nocasing{kept} text or \casing[Word]{more} text}

\stoptext

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Simple question

2022-05-10 Thread Henning Hraban Ramm via ntg-context

Am 10.05.22 um 00:15 schrieb Gerben Wierda via ntg-context:
What is the easiest way to have a ‘database’ of translations for strings 
and maybe links?


I now have 4 languages and 2 versions so 8 documents, but I’d like to 
have all translatable strings together so I can maintain these in a 
single file. Ideally I can do a file where the key of the translation is 
one language (say English) and the translations are part of that.


Something I can call like this

\translatephrase[English phrase][nl]
\translatelocation[../LMTX-Output/without-ids/en/file.pdf][nl][simple]

and where I can maintain all the translations a bit like this:

\translationentry[English phrase]{
\definetranslatephrase[nl]Nederlandse frase]
\definetranslatephrase[fr][Phrase français]
}
}

\translatelocation[../LMTX-Output/without-ids/en/file.pdf][simple][nl][../LMTX-Output/without-ids/nl/file-simple.pdf]]
\translatelocation[../LMTX-Output/without-ids/en/file.pdf][none][nl][../LMTX-Output/without-ids/nl/file.pdf]]


Where the \translatelocation command can be used inside an 
\externalfigure command and \translatephrase can be used as as text.


In the end I’d like to compile with

context language=fr mode=simple mainfile.tex

Doable?

Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>)
R IT Strategy <https://ea.rna.nl/> (main site)
Book: Chess and the Art of Enterprise Architecture 
<https://ea.rna.nl/the-book/>

Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>



Hi Gerben,

a lot is doable, it depends on by whom ;)
But this looks like a quite easy case.

Of course the answer is always “Lua tables”, but I guess the 
translations would be most easy to maintain in a CSV file (you can edit 
it in LibreOffice or Excel, while the latter often botches the encoding).


It could look like:

key;en;de;nl
yes;yes;ja;ja
LANG;English;Deutsch;Nederlands

i.e. the first column is the keyword and the other columns contain the 
translated term (so you can also change the “original” version).


(We’re using the same in a LaTeX3 project made by Marei.)

Without researching I assume there are already Lua functions to read a 
CSV file into a Lua table, and the lookup is easy – since I’m not fluent 
in Lua, I won’t provide the function(s) for you.


BTW there is already \translate 
(https://wiki.contextgarden.net/Command/translate) that changes text 
depending on the current language.


And there is the translate module that changes terms within the whole 
text: 
https://source.contextgarden.net/tex/context/modules/mkiv/m-translate.mkiv


Other options like .po files might be more versatile but also much more 
involved.


This covers \translatephrase; for your figures I’d just just a language 
variable in the path, like \externalfigure[images/\LANG/cow.pdf]

If this is always the current language, use \currentlanguage.
You can also setup the language dependent directory in 
\setupexternalfigures.


Regarding modes, the current language is set as a system mode (*en, 
*nl), and of course you can query modes with one of the many \doif 
macros. (https://wiki.contextgarden.net/Modes)
Since it doesn’t make sense to try 
\externalfigure[path/\currentmode/cow] (you never know how many modes 
are active), you can set a macro or variable depending on a mode:


\doifmode{simple}{\setvariable{gerben}{level}{simple}}
and then
\externalfigure[images/\getvariable{gerben}{level}/\currentlanguage/cow]

Hraban
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] recursion in a table

2022-05-01 Thread Aditya Mahajan via ntg-context
On Sun, 1 May 2022, Henning Hraban Ramm via ntg-context wrote:

> Hi,
> I was playing with the example from 
> https://wiki.contextgarden.net/Scaling_Rotating_Mirroring_Clipping#Location_parameter
>  
> and tried to put it in a tabulate:
> 
> 
> \useMPlibrary[dum]
> \setupexternalfigures[width=3em,height=2em,frame=on,]
> 
> %\def\TXT{\ruledhbox{\bf(XyX)}}
> \def\TXT{\externalfigure[pic]}
> 
> \starttabulate[|l|l|l|l|l|l|]
>  \NC\NC normal\NC depth\NC fit\NC broad\NC high\NC\NR
>  \HL
> \dostepwiserecurse{0}{359}{45}{%
> %\expanded{\setuprotate[rotation=\recurselevel]}
>  \NC{\expanded{\recurselevel}˚}%

Untested, but I think that you might need:

\expanded{\NC \recurselevel \noexpand\NC ... }

> This works, but \recurselevel is always 0. I know I must expand it (like 
> in the original example), but I can’t make it work within the tabulation.
> In the first column, \expanded{\recurselevel} stays 0, and 
> rotation=\expanded{\recurselevel} gives an error, while the \setuprotate 
> line has no effect (if I remove "rotation=\recurselevel", of course).
> 
> How would that work?

Remind me of a more-than-a-decade-old discussion on the mailing list, 
summarized here:

https://adityam.github.io/context-blog/post/tex-programming/

> Also, \HL doesn’t work at the end, and the second line of the error 
> message makes no sense:

I find that in such cases, using Lua (CLD) is the simplest solution

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] recursion in a table

2022-05-01 Thread Henning Hraban Ramm via ntg-context

Hi,
I was playing with the example from 
https://wiki.contextgarden.net/Scaling_Rotating_Mirroring_Clipping#Location_parameter 
and tried to put it in a tabulate:



\useMPlibrary[dum]
\setupexternalfigures[width=3em,height=2em,frame=on,]

%\def\TXT{\ruledhbox{\bf(XyX)}}
\def\TXT{\externalfigure[pic]}

\starttabulate[|l|l|l|l|l|l|]
\NC\NC normal\NC depth\NC fit\NC broad\NC high\NC\NR
\HL
\dostepwiserecurse{0}{359}{45}{%
%\expanded{\setuprotate[rotation=\recurselevel]}
\NC{\expanded{\recurselevel}˚}%

\NC{\ruledhbox{X\rotate[location=normal,rotation=\recurselevel]{\TXT}X}}%
\NC{\ruledhbox{X\rotate[location=depth,rotation=\recurselevel] 
{\TXT}X}}%
\NC{\ruledhbox{X\rotate[location=fit,rotation=\recurselevel] 
{\TXT}X}}%
\NC{\ruledhbox{X\rotate[location=broad,rotation=\recurselevel] 
{\TXT}X}}%
\NC{\ruledhbox{X\rotate[location=high,rotation=\recurselevel] 
{\TXT}X}}%

  \NC\NR}
%\HL % error
\stoptabulate


This works, but \recurselevel is always 0. I know I must expand it (like 
in the original example), but I can’t make it work within the tabulation.
In the first column, \expanded{\recurselevel} stays 0, and 
rotation=\expanded{\recurselevel} gives an error, while the \setuprotate 
line has no effect (if I remove "rotation=\recurselevel", of course).


How would that work?

Also, \HL doesn’t work at the end, and the second line of the error 
message makes no sense:

"""
I expect to see \noalign only after the \cr of an alignment.
Proceed, and I'll ignore this case.
mtx-context | fatal error: return code: 1
"""

Hraban
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] xmlpos values doubled

2022-04-20 Thread Ben Moon via ntg-context
Hello again,

I wonder whether anyone has some thoughts to help with my problem? Either why 
\xmlpos gives double values or alternatives to arrange my table format?

Best wishes,
Ben


On Mon, 28 Mar 2022, at 10:44, Ben Moon via ntg-context wrote:
> Hello All,
> 
> I'm trying to render a table stored in XML JATS format 
> (https://jats.nlm.nih.gov/archiving/) and eventually want to use the 
>  tag to setup column aligning from the @align attribute, e.g.,
> 
>     \setupTABLE [column] [\xmlpos{#1}] [align=\xmlatt{#1}{align}]
> 
> Including \xmlpos{#1} I get double the value returned, i.e.: the first 
> element in colgroup returns 2, the second returns 4 etc.
> 
> Below is a MWE to show my issue. I show \xmlpos for each  tag in 
>   above the table, which returns 2, 4, 6, 8 but I expected 1, 2, 3, 
> 4. Am I missing something or is there another way I could do this?
> 
> 
> \startbuffer[table]
>   
> 
>   
> 
> 
> 
> 
>   
>   
> 
>   H1 (centre)
>   H2 (right)
>   H3
>   H4
> 
>   
>   
> 
>   A1
>   A2
>   A3
>   A4
> 
> 
>   B1
>   B2
>   B3
>   B4
> 
>   
> 
>   
> \stopbuffer
> 
> \startxmlsetups xml:tabletestsetups
> \xmlsetsetup{#1}{*}{-}
> % tables
> \xmlsetsetup{#1}{table-wrap|table}{xml:*}
> \xmlsetsetup{#1}{thead|tbody|tr|th|td}{xml:table:*}
> \xmlsetsetup{#1}{colgroup|col}{xml:*}
> \stopxmlsetups
> 
> \xmlregistersetup{xml:tabletestsetups}
> 
> \startxmlsetups xml:table-wrap
> \startplacetable
> % \contextversion \par
> \xmlflush{#1}
> \stopplacetable
> \stopxmlsetups
> 
> \startxmlsetups xml:table
> \bTABLE
> \xmlflush{#1}
> \eTABLE
> \stopxmlsetups
> 
> \startxmlsetups xml:colgroup
> \xmlflush{#1}
> \stopxmlsetups
> 
> \startxmlsetups xml:col
> \xmlpos{#1} \xmlatt{#1}{align}\par
> \stopxmlsetups
> 
> \startxmlsetups xml:table:thead
> \bTABLEhead
> \xmlflush{#1}
> \eTABLEhead
> \stopxmlsetups
> 
> \startxmlsetups xml:table:tr
> \bTR
> \xmlflush{#1}
> \eTR
> \stopxmlsetups
> 
> \startxmlsetups xml:table:th
> \bTH
> \xmlflush{#1}
> \eTH
> \stopxmlsetups
> 
> \startxmlsetups xml:table:tbody
> \bTABLEbody
> \xmlflush{#1}
> \eTABLEbody
> \stopxmlsetups
> 
> \startxmlsetups xml:table:td
> \bTC
> \xmlflush{#1}
> \eTC
> \stopxmlsetups
> 
> \xmlprocessbuffer{main}{table}{}
> 
> 
> All the best,
> Ben
> 
> 
> Ben Moon
> b...@themoons.uk
> 
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] new upload

2022-04-19 Thread Jeong Dal via ntg-context
Dear Hans,

I can use "\blank[9cm]” in column mode but I have to adjust the value to make 
space evenly.
Since it was working well last December, I guess that there is something 
changed in \startcolumns … \stopcolumns after last December.

Thank you. 

Best regards,

Dalyoung

> 2022. 4. 20. 오전 4:18, Jeong Dal via ntg-context  작성:
> 
> Dear Hans,
> 
> A new upload solves the math font problem in MetaFun. The code
>   label(textext("$\sin\theta$”),origin);
> is working well.
> Also, your sample file adaptive-001.tex is also working without error which 
> is not compiled before.
> However, \vfill is not working in column mode while it provides the same 
> vertical spaces properly not in column mode. 
> The following code is compiled well but no vertical spaces between items. If 
> I comment out \startcolumns … \column … \stopcolumns, it provides the same 
> vertical spaces for each items.
>   \starttext
>   \startcolumns
>   \startitemize[n]
>   \item 
>   \vfill
>   \item
>   \vfill
>   \column
>   \item 
>   \vfill
>   \item
>   \vfill
>   \stopitemize
>   \stopcolumns
>   \stoptext
> 
> This code was working in last December. 
> 
> Thank you for your fix.
> 
> Best regards,
> 
> Dalyoung
> 
> 
>> 2022. 4. 20. 오전 3:23, Hans Hagen via ntg-context > <mailto:ntg-context@ntg.nl>> 작성:
>> 
>> Hi,
>> 
>> I uploaded a new lmtx. Some more adaptive magic ... I'm not sure how usefull 
>> it is but users always find ways to apply such things. I attached a test 
>> file.
>> 
>> Hans
>> 
>> -
>>  Hans Hagen | PRAGMA ADE
>>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>>   tel: 038 477 53 69 | www.pragma-ade.nl <http://www.pragma-ade.nl/> | 
>> www.pragma-pod.nl <http://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 <mailto:ntg-context@ntg.nl> / 
>> http://www.ntg.nl/mailman/listinfo/ntg-context 
>> <http://www.ntg.nl/mailman/listinfo/ntg-context>
>> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / 
>> http://context.aanhet.net <http://context.aanhet.net/>
>> archive  : https://bitbucket.org/phg/context-mirror/commits/ 
>> <https://bitbucket.org/phg/context-mirror/commits/>
>> wiki : http://contextgarden.net <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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] new upload

2022-04-19 Thread Jeong Dal via ntg-context
Dear Hans,

A new upload solves the math font problem in MetaFun. The code
label(textext("$\sin\theta$”),origin);
is working well.
Also, your sample file adaptive-001.tex is also working without error which is 
not compiled before.
However, \vfill is not working in column mode while it provides the same 
vertical spaces properly not in column mode. 
The following code is compiled well but no vertical spaces between items. If I 
comment out \startcolumns … \column … \stopcolumns, it provides the same 
vertical spaces for each items.
\starttext
\startcolumns
\startitemize[n]
\item 
\vfill
\item
\vfill
\column
\item 
\vfill
\item
\vfill
\stopitemize
\stopcolumns
\stoptext

This code was working in last December. 

Thank you for your fix.

Best regards,

Dalyoung


> 2022. 4. 20. 오전 3:23, Hans Hagen via ntg-context  작성:
> 
> Hi,
> 
> I uploaded a new lmtx. Some more adaptive magic ... I'm not sure how usefull 
> it is but users always find ways to apply such things. I attached a test file.
> 
> Hans
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] right item marks for associative questions?

2022-04-11 Thread śrīrāma via ntg-context
On 4/12/22 12:16 AM Damien Thiriet via ntg-context wrote:
> Hi!
> 
> I am used to giving associative questions to my pupils,
> something like
> 
> * connect the author with its ideas
> 
> Friedrich Nietzsche *  * "God is dead"
> Woody Allen *  * "Nietzsche is dead, God is dead 
>   and I don't feel so good"
> God *  * "Nietzsche is dead"
> 
> I design it as a two-cells xtable with itemized lists inside.
> How can I have the item mark on the right side?

If you are certain that the there will be no multi-line item (i.e. item text is 
short enough that it fits in slightly less than half of textwidth) you can use 
an enumeration, and put the contents inside a two-column layout:

%%% start example-1
  \define[1]\aitemcmd{\inframed[width=1cm,align=flushright,frame=off]{(#1)}}
  \defineenumeration
[aitem]
  \setupenumeration
[aitem]
[text=,
alternative=empty,
headstyle=normal,
width=fit,
align=flushright,
closesymbol={\getnumber[aitem]},
closecommand=\aitemcmd]

  \starttext
  \startcolumns[distance=1cm]
  \startitemize[n]
  \dorecurse{5}{
\startaitem
  whatever left
\stopaitem
  }
  \stopitemize

  \startitemize[a][left=(,right=),stopper=,width=1cm]
  \dorecurse{5}{
\startitem
  whatever right
\stopitem
  }
  \stopitemize
  \stopcolumns
  \stoptext
%%% stop example-1

[You can tweak the alternative, align, closesymbol, closecommand to get exactly 
what you want; the example above will give a somewhat symmetric layout]

More generally, if the text can multi-line, then I think TABLE (with proper 
alignment options) might be better-suited:

%%% start example-2
  \define\startItemize{
\bTABLE\setupTABLE[frame=on,align=lohi]
\setupTABLE[2][distance=1cm,align={flushright,lohi}]
\setupTABLE[2,3][width=0.05\textwidth]
\setupTABLE[1][align=flushright,width=0.4\textwidth]
\setupTABLE[4][align=flushleft,width=0.4\textwidth]
  }
  \define\stopItemize{\eTABLE}
  \define[1]\metI{\bTR \bTD #1 \eTD \bTD (\character{\currentTABLErow}) \eTD}
  \define[1]\Item{\bTD (\currentTABLErow) \eTD \bTD #1 \eTD  \eTR}

  \starttext
  \startItemize
  \dorecurse{5}{
  \metI {whatever here on the left}
  \Item {whatever here on the right}
  }
  \stopItemize
  \stoptext
%%% stop example-2

Best,
  Sreeram


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Fwd: \vfill doesn't work in this example

2022-04-11 Thread Taco Hoekwater via ntg-context
Hi,

Message below forwarded on behalf of Dalyoung , who has problems submitting 
messages.

Best wishes,
Taco

> Begin forwarded message:

> 
> Hi,
> 
> To add the same vertical space in column mode,
> I usually use \vfill as in the following sample before.
> But this example doen’t add spaces after first item.
> How to locate the two subitems evenly spaced in vertically?
> 
> Thank you for reading.
> 
> Best regards,
> 
> Dalyoung
> 
> 
> %%
> \starttext
> \startcolumns[n=2]
> \startitemize[n]
> \item 111
>   \startitemize[a]
>   \item 1-1
>   \vfill
>   \item 1-2
>   \vfill
>   \stopitemize
> 
> \column
> 
> \item 222
>   \startitemize[a]
>   \item 2-1
>   \vfil
>   \item 2-2
>   \vfil
>   \stopitemize
> 
> \column
> 
> \stopitemize
> \stopcolumns
> \stoptext
> 
>> 2022. 4. 8. 오후 6:33, Taco Hoekwater > <mailto:t...@bittext.nl>> 작성:
>> 
>> Hi Dalyoung,
>> 
>> 
>>>  Forwarded Message 
>>> Subject:Re: \vfill doesn't work in this example
>>> Date:   Fri, 8 Apr 2022 15:00:21 +0900
>>> From:   Jeong Dal mailto:hak...@icloud.com>>
>>> To: ntg-context-ow...@ntg.nl <mailto:ntg-context-ow...@ntg.nl>
>>> 
>>> Hi,
>>> 
>>> I received the following mail.
>>> But I think that my message is rejected in error.
>>> 
>>> I have an account in this list for long time.
>>> 
>>> The email address of this mail may cause the error.
>>> I used email address given from Mac.com <http://mac.com/> <http://Mac.com 
>>> <http://mac.com/>>.
>>> 
>>> hak...@mac.com <mailto:hak...@mac.com> <mailto:hak...@mac.com 
>>> <mailto:hak...@mac.com>>, hak...@me.com 
>>> <mailto:hak...@me.com><mailto:hak...@me.com <mailto:hak...@me.com>>, and 
>>> hak...@icloud.com <mailto:hak...@icloud.com><mailto:hak...@icloud.com 
>>> <mailto:hak...@icloud.com>> are actually the same address.
>> 
>> Well, the mailing list did not know that. Only hak...@mac.com 
>> <mailto:hak...@mac.com> was actually subscribed. I have now added the two 
>> aliases.
>> 
>> Best wishes,
>> Taco
>> 
>> — 
>> Taco Hoekwater  E: t...@bittext.nl <mailto:t...@bittext.nl>
>> genderfluid (all pronouns)
> 

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] processdatabasefile styling of table cells

2022-04-06 Thread Bruce Horrocks via ntg-context


> On 6 Apr 2022, at 12:18, juh+ntg-context--- via ntg-context 
>  wrote:
> 
> 
> Hi all,
> 
> I include tables via csv files like this
> 
> \processdatabasefile[test][test.csv]
> 
> I was able to style the tables with this:
> 
> \setupTABLE [ split=yes, header=repeat, option=stretch,
> loffset=.5ex,roffset=.5ex]
> 
> \setupTABLE [row] [odd]
> [background=color,backgroundcolor=hs-hellblau,]
> 
> \setupTABLE [start] [spaceinbetween=25pt]
> 
> \defineseparatedlist
>   [preislistecsv]
>   [separator={;}, % tab
>before=\bTABLE,after=\eTABLE,
>first=\bTR,last=\eTR,
>left=\bTD,right=\eTD]
> 
> Is it possible to align decimal numbers in cells to the right?

This previous announcement from Hans might help.
<https://www.mail-archive.com/ntg-context@ntg.nl/msg99681.html>

> The data differs a lot. Sometimes only the last column contains decimal 
> numbers, sometimes the last two columns.
Not sure what will happen here - try it and see. Whenever my table layouts go 
wildly wrong, Context usually manages to display something rather than fail 
with an error code. :-)

—
Bruce Horrocks
Hampshire, UK

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] processdatabasefile styling of table cells

2022-04-06 Thread juh+ntg-context--- via ntg-context


Hi all,

I include tables via csv files like this

\processdatabasefile[test][test.csv]

I was able to style the tables with this:

\setupTABLE [ split=yes, header=repeat, option=stretch,
loffset=.5ex,roffset=.5ex]

\setupTABLE [row] [odd]
[background=color,backgroundcolor=hs-hellblau,]

\setupTABLE [start] [spaceinbetween=25pt]

\defineseparatedlist
   [preislistecsv]
   [separator={;}, % tab
before=\bTABLE,after=\eTABLE,
first=\bTR,last=\eTR,
left=\bTD,right=\eTD]

Is it possible to align decimal numbers in cells to the right?


The data differs a lot. Sometimes only the last column contains decimal 
numbers, sometimes the last two columns.


juh
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] xmlpos values doubled

2022-03-28 Thread Ben Moon via ntg-context
Hello All,

I'm trying to render a table stored in XML JATS format 
(https://jats.nlm.nih.gov/archiving/) and eventually want to use the  
tag to setup column aligning from the @align attribute, e.g.,

\setupTABLE [column] [\xmlpos{#1}] [align=\xmlatt{#1}{align}]

Including \xmlpos{#1} I get double the value returned, i.e.: the first element 
in colgroup returns 2, the second returns 4 etc.

Below is a MWE to show my issue. I show \xmlpos for each  tag in 
  above the table, which returns 2, 4, 6, 8 but I expected 1, 2, 3, 
4. Am I missing something or is there another way I could do this?


\startbuffer[table]
  

  




  
  

  H1 (centre)
  H2 (right)
  H3
  H4

  
  

  A1
  A2
  A3
  A4


  B1
  B2
  B3
  B4

  

  
\stopbuffer

\startxmlsetups xml:tabletestsetups
\xmlsetsetup{#1}{*}{-}
% tables
\xmlsetsetup{#1}{table-wrap|table}{xml:*}
\xmlsetsetup{#1}{thead|tbody|tr|th|td}{xml:table:*}
\xmlsetsetup{#1}{colgroup|col}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:tabletestsetups}

\startxmlsetups xml:table-wrap
\startplacetable
% \contextversion \par
\xmlflush{#1}
\stopplacetable
\stopxmlsetups

\startxmlsetups xml:table
\bTABLE
\xmlflush{#1}
\eTABLE
\stopxmlsetups

\startxmlsetups xml:colgroup
\xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:col
\xmlpos{#1} \xmlatt{#1}{align}\par
\stopxmlsetups

\startxmlsetups xml:table:thead
\bTABLEhead
\xmlflush{#1}
\eTABLEhead
\stopxmlsetups

\startxmlsetups xml:table:tr
\bTR
\xmlflush{#1}
\eTR
\stopxmlsetups

\startxmlsetups xml:table:th
\bTH
\xmlflush{#1}
\eTH
\stopxmlsetups

\startxmlsetups xml:table:tbody
\bTABLEbody
\xmlflush{#1}
\eTABLEbody
\stopxmlsetups

\startxmlsetups xml:table:td
\bTC
\xmlflush{#1}
\eTC
\stopxmlsetups

\xmlprocessbuffer{main}{table}{}


All the best,
Ben

Ben Moon
b...@themoons.uk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problems with itemize with several columns

2022-02-25 Thread Xavier B. via ntg-context
It seems that putting \column before itemize of 'c', forces 'c' together with 
this content. Repeating this step produces what I want:

\startexercici[exercici:operacions-amb-fraccions-2]{multiplicació i divisió} 
Opereu:
\startitemize[a, columns, three]
\item \startformula 3 \cdot \frac{5}{3} \stopformula
\item \startformula \frac{3}{4} \cdot \frac{2}{5} \stopformula
\column
\item \startformula \frac{1}{3} \cdot \frac{3}{4} \div \frac{1}{5} \stopformula
\item \startformula 5 \div \frac{7}{10} \cdot 7 \div \frac{2}{5} \stopformula
\column
\item \startformula \frac{1}{2} \cdot \frac{1}{2} \stopformula
\item \startformula \frac{3}{2} \div \frac{2}{3} \div \frac{5}{4} \stopformula
\column
\item \startformula \frac{2}{3} \colon \frac{2}{5} \stopformula
\item \startformula \frac{3}{4} \colon \frac{1}{2} \cdot 6 \stopformula
\item \startformula \frac{2}{3} \colon \frac{3}{4} \cdot \frac{1}{2} 
\stopformula
\stopitemize
\stopexercici

@fv leung said I have to replace frac for dfrac, but it mess up the following 
content in my book.

Thanks all,


On Thu, 24 Feb 2022 23:04:43 +
Bruce Horrocks  ha escrit:

> 
> 
> > On 24 Feb 2022, at 22:10, Xavier B. via ntg-context  
> > wrote:
> > 
> > Even if I change 
> > \startexercici[exercici:operacions-amb-fraccions-2]{multiplicació i 
> > divisió} Opereu:
> > \startitemize[a, columns, three]
> > 
> > 
> > for
> > 
> > \startexercici[exercici:operacions-amb-fraccions-2]{multiplicació i 
> > divisió} Opereu:
> > \startitemize[a, columns]
> > 
> > 
> > the 'c' jumps.
> > 
> > Isn't ConTeXt capable of handle that?
> 
> Please see the attached PDF.
> 
> The green line shows how much space is needed to fully print item (b).  Item 
> (c) will need the same amount of space, shown by the red line. However, this 
> would take you into the footer area (shown by the blue arrows), so item (c) 
> is split: the item label fits into the space at the bottom of the column and 
> so is printed there; the fraction doesn't fit and so is moved to the next 
> column.
> 
> The solution to your problem would be some way of forcing the item body to 
> stay with the label. I don't know what that command is - hopefully someone 
> here does know.
> 
> —
> Bruce Horrocks
> Hampshire, UK
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problems with itemize with several columns

2022-02-25 Thread Xavier B. via ntg-context
Thanks, Bruce, for clarifying this. But can we put 'c' character in the second 
column. So 'c' and its math content were together.
The annoying thing is that the letter is in one column and its content in 
another.

Thanks,

On Thu, 24 Feb 2022 23:04:43 +
Bruce Horrocks  ha escrit:

> 
> 
> > On 24 Feb 2022, at 22:10, Xavier B. via ntg-context  
> > wrote:
> > 
> > Even if I change 
> > \startexercici[exercici:operacions-amb-fraccions-2]{multiplicació i 
> > divisió} Opereu:
> > \startitemize[a, columns, three]
> > 
> > 
> > for
> > 
> > \startexercici[exercici:operacions-amb-fraccions-2]{multiplicació i 
> > divisió} Opereu:
> > \startitemize[a, columns]
> > 
> > 
> > the 'c' jumps.
> > 
> > Isn't ConTeXt capable of handle that?
> 
> Please see the attached PDF.
> 
> The green line shows how much space is needed to fully print item (b).  Item 
> (c) will need the same amount of space, shown by the red line. However, this 
> would take you into the footer area (shown by the blue arrows), so item (c) 
> is split: the item label fits into the space at the bottom of the column and 
> so is printed there; the fraction doesn't fit and so is moved to the next 
> column.
> 
> The solution to your problem would be some way of forcing the item body to 
> stay with the label. I don't know what that command is - hopefully someone 
> here does know.
> 
> —
> Bruce Horrocks
> Hampshire, UK
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problems with itemize with several columns

2022-02-25 Thread Bruce Horrocks via ntg-context

> On 24 Feb 2022, at 22:10, Xavier B. via ntg-context  
> wrote:
> 
> Even if I change 
> \startexercici[exercici:operacions-amb-fraccions-2]{multiplicació i divisió} 
> Opereu:
> \startitemize[a, columns, three]
> 
> 
> for
> 
> \startexercici[exercici:operacions-amb-fraccions-2]{multiplicació i divisió} 
> Opereu:
> \startitemize[a, columns]
> 
> 
> the 'c' jumps.
> 
> Isn't ConTeXt capable of handle that?

Please see the attached PDF which is your sample with the command 
\showmakeup[vbox] added after \starttext

The green line shows how much space is needed to fully print item (b).  Item 
(c) will need the same amount of space, shown by the red line. However, this 
would take you into the footer area (shown by the blue arrows), so item (c) is 
split: the item label fits into the space at the bottom of the column and so is 
printed there; the fraction doesn't fit and so is moved to the next column.

We can confirm this theory by setting the footer to nothing with the command 
\setuplayout[footer=0mm] and then the columns are as you wish. However that 
only works for this example and the situation would inevitably arise again.

The solution to your problem would be some way of forcing the item body to stay 
with the label. I don't know what that command is - hopefully someone here can 
tell us.

—
Bruce Horrocks
Hampshire, UK


columns annotated.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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problems with itemize with several columns

2022-02-24 Thread fv leung via ntg-context
Avoid using \startformula \stopformula in itemize. Use \dfrac to get
display style fraction.


\defineenumeration
  [exercici]
  [alternative=serried, before={\blank[medium]\testpage[1]},
text={Exercici}, stopper={.\space}, width=fit, headstyle=\ss,
distance=0.25em, width=fit, headcolor=exercici_color, title=yes,
titlestyle=\ss, titledistance=0em, left={\bgroup\bf}, right={\egroup},
after={\blank[big]}, prefix=yes, prefixsegments=section, way=section]
\starttext

\section{Operacions amb fraccions}

\subject{Preguntes}

\startexercici[exercici:operacions-amb-fraccions-1]{suma i resta} Opereu:
\startitemize[a, columns, three]
\item\m{\dfrac{2}{7} + \dfrac{6}{7} - \dfrac{1}{7}}
\item\m{\dfrac{5}{8} + \dfrac{9}{8}}
\item\m{\dfrac{1}{4} + 5 - \dfrac{1}{4}}
\item\m{\dfrac{3}{5} - \dfrac{2}{5} + \dfrac{11}{5}}
\item\m{\dfrac{2}{3} + \dfrac{1}{4}}
\item\m{5 + \dfrac{4}{5}}
\item\m{\dfrac{2}{3} + \dfrac{5}{8} - \dfrac{1}{9}}
\item\m{10 - \dfrac{1}{6} + \dfrac{6}{8}}
\item\m{\dfrac{3}{10} + \dfrac{7}{12}}
\stopitemize
\stopexercici

\startexercici[exercici:operacions-amb-fraccions-2]{multiplicació i
divisió} Opereu:
\startitemize[a, columns, three]
\item\m{3 \cdot \dfrac{5}{3}}
\item\m{\dfrac{3}{4} \cdot \dfrac{2}{5}}
\item\m{\dfrac{1}{3} \cdot \dfrac{3}{4} \div \dfrac{1}{5}}
%\column
\item\m{5 \div \dfrac{7}{10} \cdot 7 \div \dfrac{2}{5}}
\item\m{\dfrac{1}{2} \cdot \dfrac{1}{2}}
\item\m{\dfrac{3}{2} \div \dfrac{2}{3} \div \dfrac{5}{4}}
%\column
\item\m{\dfrac{2}{3} \colon \dfrac{2}{5}}
\item\m{\dfrac{3}{4} \colon \dfrac{1}{2} \cdot 6}
\item\m{\dfrac{2}{3} \colon \dfrac{3}{4} \cdot \dfrac{1}{2}}
\stopitemize
\stopexercici

\startexercici[exercici:operacions-amb-fraccions-3]{operacions combinades}
\startitemize[a, columns, three]
\item\m{\dfrac{3}{4} + \dfrac{2}{5} \cdot \dfrac{1}{2}}
\item\m{\dfrac{2}{5} \div \dfrac{3}{5} - \dfrac{1}{4}}
\item\m{\left( 2 + \dfrac{3}{5} \right) \div \dfrac{4}{3}}
\item\m{\dfrac{2}{3} - \dfrac{5}{6}\cdot 8}
\item\m{4 + \dfrac{3}{5} - \left(2 - \dfrac{1}{2}\right)}
\item\m{4 \cdot \left(\dfrac{5}{6} - \dfrac{1}{4} + \dfrac{4}{9}\right)}
\item\m{\dfrac{5}{6} - \left(\dfrac{1}{5} + \dfrac{1}{3}\right)}
\item\m{\dfrac{5}{6} \div \left( \dfrac{2}{5} - \dfrac{1}{10}\right)}
\item\m{4 \cdot \dfrac{2}{3} \cdot \left(\dfrac{2}{4} \div
\dfrac{8}{10}\right)}
\item\m{\dfrac{3}{4} + \dfrac{1}{2} \cdot \dfrac{4}{10}}
\item\m{\dfrac{10}{12} - \left(\dfrac{1}{10} + \dfrac{3}{8}\right)}
\item\m{\left(\dfrac{1}{2} + 2\right) \cdot \left(2 - \dfrac{1}{4}\right)}
\item\m{\left(\dfrac{3}{4} + \dfrac{1}{4}\right) \div \left(\dfrac{5}{6} -
\dfrac{1}{3}\right)}
\item\m{5 + 10 - \dfrac{1}{10} + 25}
\item\m{\dfrac{1}{3} + \dfrac{1}{2} - \dfrac{2}{5}}
\item\m{\left(\dfrac{1}{2} + \dfrac{2}{10}\right) \cdot \dfrac{2}{6}}
\item\m{5 + \dfrac{1}{3} \cdot \dfrac{5}{3}}
\item\m{\left( 5 + \dfrac{1}{3} \right) \cdot \dfrac{5}{3}}
\stopitemize
\stopexercici
\stoptext


Xavier B. via ntg-context  於 2022年2月25日 週五 上午6:10寫道:

> Even if I change
> \startexercici[exercici:operacions-amb-fraccions-2]{multiplicació i
> divisió} Opereu:
> \startitemize[a, columns, three]
>
>
> for
>
> \startexercici[exercici:operacions-amb-fraccions-2]{multiplicació i
> divisió} Opereu:
> \startitemize[a, columns]
>
>
> the 'c' jumps.
>
> Isn't ConTeXt capable of handle that?
>
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problems with itemize with several columns

2022-02-23 Thread Luis Montgomery via ntg-context
Try joinedup option in \startitemize.

Space problem?

L.  Montgomery

El mié., 23 de febrero de 2022 3:09, Xavier B. via ntg-context <
ntg-context@ntg.nl> escribió:

> Hi,
>
> I try to solve this, but I could not. Can you please help me.
> I make a math problem sheet. In "Exercici 1.2", I put a itemize with three
> columns, but the 'c' exercise jumps to second column. I want that a, b, c
> remains in the first column, d, e, f in the second and g, h, i in the third.
>
> I tried \column command but it's worse.
>
> I attached the source and generated pdf.
>
> My version of context is:
>  context --version
> mtx-context | ConTeXt Process Management 1.04
> mtx-context |
> mtx-context | main context file:
> /usr/share/texmf-dist/tex/context/base/mkiv/context.mkiv
> mtx-context | current version: 2021.03.05 19:11
> mtx-context | main context file:
> /usr/share/texmf-dist/tex/context/base/mkxl/context.mkxl
> mtx-context | current version: 2021.03.05 19:11
>
>
> Thanks in advance,
>
> Xavier
>
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problems with itemize with several columns

2022-02-23 Thread Xavier B. via ntg-context
In my previous post 
[https://mailman.ntg.nl/pipermail/ntg-context/2022/105138.html], I don't know 
the reason, but the attached code des not display very well in mailing list. I 
put it here:

\defineenumeration
  [exercici]
  [alternative=serried, before={\blank[medium]\testpage[1]}, text={Exercici}, 
stopper={.\space}, width=fit, headstyle=\ss, distance=0.25em, width=fit, 
headcolor=exercici_color, title=yes, titlestyle=\ss, titledistance=0em, 
left={\bgroup\bf}, right={\egroup}, after={\blank[big]}, prefix=yes, 
prefixsegments=section, way=section]

\starttext

\section{Operacions amb fraccions}

\subject{Preguntes}

\startexercici[exercici:operacions-amb-fraccions-1]{suma i resta} Opereu:
\startitemize[a, columns, three]
\item \startformula \frac{2}{7} + \frac{6}{7} - \frac{1}{7} \stopformula
\item \startformula \frac{5}{8} + \frac{9}{8} \stopformula
\item \startformula \frac{1}{4} + 5 - \frac{1}{4} \stopformula
\item \startformula \frac{3}{5} - \frac{2}{5} + \frac{11}{5} \stopformula
\item \startformula \frac{2}{3} + \frac{1}{4} \stopformula
\item \startformula 5 + \frac{4}{5} \stopformula
\item \startformula \frac{2}{3} + \frac{5}{8} - \frac{1}{9} \stopformula
\item \startformula 10 - \frac{1}{6} + \frac{6}{8} \stopformula
\item \startformula \frac{3}{10} + \frac{7}{12} \stopformula
\stopitemize
\stopexercici

\startexercici[exercici:operacions-amb-fraccions-2]{multiplicació i divisió} 
Opereu:
\startitemize[a, columns, three]
\item \startformula 3 \cdot \frac{5}{3} \stopformula
\item \startformula \frac{3}{4} \cdot \frac{2}{5} \stopformula
\item \startformula \frac{1}{3} \cdot \frac{3}{4} \div \frac{1}{5} \stopformula
%\column
\item \startformula 5 \div \frac{7}{10} \cdot 7 \div \frac{2}{5} \stopformula
\item \startformula \frac{1}{2} \cdot \frac{1}{2} \stopformula
\item \startformula \frac{3}{2} \div \frac{2}{3} \div \frac{5}{4} \stopformula
%\column
\item \startformula \frac{2}{3} \colon \frac{2}{5} \stopformula
\item \startformula \frac{3}{4} \colon \frac{1}{2} \cdot 6 \stopformula
\item \startformula \frac{2}{3} \colon \frac{3}{4} \cdot \frac{1}{2} 
\stopformula
\stopitemize
\stopexercici

\startexercici[exercici:operacions-amb-fraccions-3]{operacions combinades}
\startitemize[a, columns, three]
\item \startformula \frac{3}{4} + \frac{2}{5} \cdot \frac{1}{2} \stopformula
\item \startformula \frac{2}{5} \div \frac{3}{5} - \frac{1}{4} \stopformula
\item \startformula \left( 2 + \frac{3}{5} \right) \div \frac{4}{3} \stopformula
\item \startformula \frac{2}{3} - \frac{5}{6}\cdot 8 \stopformula
\item \startformula 4 + \frac{3}{5} - \left(2 - \frac{1}{2}\right) \stopformula
\item \startformula 4 \cdot \left(\frac{5}{6} - \frac{1}{4} + 
\frac{4}{9}\right) \stopformula
\item \startformula \frac{5}{6} - \left(\frac{1}{5} + \frac{1}{3}\right) 
\stopformula
\item \startformula \frac{5}{6} \div \left( \frac{2}{5} - \frac{1}{10}\right) 
\stopformula
\item \startformula 4 \cdot \frac{2}{3} \cdot \left(\frac{2}{4} \div 
\frac{8}{10}\right) \stopformula
\item \startformula \frac{3}{4} + \frac{1}{2} \cdot \frac{4}{10} \stopformula
\item \startformula \frac{10}{12} - \left(\frac{1}{10} + \frac{3}{8}\right) 
\stopformula
\item \startformula \left(\frac{1}{2} + 2\right) \cdot \left(2 - 
\frac{1}{4}\right) \stopformula
\item \startformula \left(\frac{3}{4} + \frac{1}{4}\right) \div 
\left(\frac{5}{6} - \frac{1}{3}\right) \stopformula
\item \startformula 5 + 10 - \frac{1}{10} + 25 \stopformula
\item \startformula \frac{1}{3} + \frac{1}{2} - \frac{2}{5} \stopformula
\item \startformula \left(\frac{1}{2} + \frac{2}{10}\right) \cdot \frac{2}{6} 
\stopformula
\item \startformula 5 + \frac{1}{3} \cdot \frac{5}{3} \stopformula
\item \startformula \left( 5 + \frac{1}{3} \right) \cdot \frac{5}{3} 
\stopformula
\stopitemize
\stopexercici

\stoptext


I re-attach the resulting pdf

Thanks,



On Wed, 23 Feb 2022 09:59:58 +0100
"Xavier B."  ha escrit:

> Hi,
> 
> I try to solve this, but I could not. Can you please help me.
> I make a math problem sheet. In "Exercici 1.2", I put a itemize with three 
> columns, but the 'c' exercise jumps to second column. I want that a, b, c 
> remains in the first column, d, e, f in the second and g, h, i in the third.
> 
> I tried \column command but it's worse.
> 
> I attached the source and generated pdf.
> 
> My version of context is:
>  context --version
> mtx-context | ConTeXt Process Management 1.04
> mtx-context |
> mtx-context | main context file: 
> /usr/share/texmf-dist/tex/context/base/mkiv/context.mkiv
> mtx-context | current version: 2021.03.05 19:11
> mtx-context | main context file: 
> /usr/share/texmf-dist/tex/context/base/mkxl/context.mkxl
> mtx-context | current version: 2021.03.05 19:11
> 
> 
> Thanks in advance,
> 
> Xavier
> 
> PS: Please CCme
> 


a.pdf
Description: Adobe PDF document
___

[NTG-context] Problems with itemize with several columns

2022-02-23 Thread Xavier B. via ntg-context
Hi,

I try to solve this, but I could not. Can you please help me.
I make a math problem sheet. In "Exercici 1.2", I put a itemize with three 
columns, but the 'c' exercise jumps to second column. I want that a, b, c 
remains in the first column, d, e, f in the second and g, h, i in the third.

I tried \column command but it's worse.

I attached the source and generated pdf.

My version of context is:
 context --version
mtx-context | ConTeXt Process Management 1.04
mtx-context |
mtx-context | main context file: 
/usr/share/texmf-dist/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2021.03.05 19:11
mtx-context | main context file: 
/usr/share/texmf-dist/tex/context/base/mkxl/context.mkxl
mtx-context | current version: 2021.03.05 19:11


Thanks in advance,

Xavier

PS: Please CCme



a.context
Description: Binary data


a.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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bug in alignment with LMTX version 2022.01.15 17:32

2022-01-18 Thread Otared Kavian via ntg-context
Hi Hans and Aditya,

Thanks for the clarification. Since for some documents I still use mkiv, I 
ended up using a definition which depends on whether one is using mkiv or lmtx, 
as in the example below. I wonder if there is a better solution.

Best regards: Otared
% begin bug-aligned-solved.tex
\doifmode{mkiv}{\definemathmatrix[alignedcases]
[align={right,left,left},
distance=3pt,
left={\left\{},
right={\right.},
style=\displaystyle]}

\doifmode{mkiv}{\definemathmatrix[matrix]
[align={right,left,left}]}

\doifmode{lmtx}{\definemathmatrix[alignedcases]
[align={1:right,2:left,3:left},
distance=3pt,
left={\left\{},
right={\right.},
style=\displaystyle]}

\doifmode{lmtx}{\definemathmatrix[matrix]
[align={1:right,2:left,3:left}]}

\starttext

\doifelsemode{lmtx}{We are using LMTX}{We are using mkiv}

\placeformula[eq:1]
\startformula
\startalignedcases
\NC  \partial_{t} u  \NC = \Delta u + \epsilon^{-2}f(u) \NC\qquad\text{in }\, 
\Omega\times (0,+\infty) \NR
\NC {\partial\phi(u) \over \partial{\bi n}} \NC = 0 \NC\qquad\text{on }\,  
\partial \Omega\times (0,+\infty)\NR
\NC u(x,0) \NC = u_{0}(x)\NC\qquad\text{in }\, \Omega.\NR
\stopalignedcases
\stopformula

\startformula
 \startmatrix
\NC ABC\NC ABC\NC ABC\NR
\NC AA \NC AA \NC AA \NR
  \stopmatrix
\stopformula
% end bug-aligned-solved.tex

> On 17 Jan 2022, at 23:53, Hans Hagen via ntg-context  
> wrote:
> 
> On 1/17/2022 11:35 PM, Aditya Mahajan via ntg-context wrote:
>> On Mon, 17 Jan 2022, Aditya Mahajan via ntg-context wrote:
>>> I confirm that this is a bug, which was not there in the version from mid 
>>> Dec.
>> Not a bug, but new interface. You need:
>> \definemathmatrix[matrix]
>>  [align={1:right,2:left,3:left}]
>> It is also possible to say: align={all:middle}. Combination of the two don't 
>> seem to work.
> basically we increment each element but a number sets the column so one can 
> go to a specific column; empty (whatever non number will start again at zero)
> 
> Hans
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bug in alignment with LMTX version 2022.01.15 17:32

2022-01-17 Thread Hans Hagen via ntg-context

On 1/17/2022 11:35 PM, Aditya Mahajan via ntg-context wrote:

On Mon, 17 Jan 2022, Aditya Mahajan via ntg-context wrote:


I confirm that this is a bug, which was not there in the version from mid Dec.


Not a bug, but new interface. You need:

\definemathmatrix[matrix]
  [align={1:right,2:left,3:left}]

It is also possible to say: align={all:middle}. Combination of the two don't 
seem to work.
basically we increment each element but a number sets the column so one 
can go to a specific column; empty (whatever non number will start again 
at zero)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Itemize columns with MPgraphics: another vertical spacing puzzle

2022-01-14 Thread Gavin via ntg-context
Hi List,

I need to itemize graphics when I use those graphics as the choices in a 
multiple choice question. When I do that in columns, I am getting excess space 
below the graphics. See example code and output below. Any suggestions for how 
I get rid of this space?

I’m not sure if this is related to the itemize column spacing in my previous 
comment.

Thanks, again!
Gavin


\starttext

\defineitemgroup[choices]
\setupchoices [each] [A,joinedup] [left=(, right=), width=1.7em, stopper=,]
\define\choice{\item}

\def\mycolor{.625red}

\startuseMPgraphic{name}
  fill fullcircle scaled 40pt withcolor \mycolor;
\stopuseMPgraphic

\define[1]\mycolordot{\def\mycolor{#1}\framed[location=top,offset=0pt,frame=off]{\useMPgraphic{name}}}

What is your favorite color? (There is too much space after these choices.)
\startchoices[columns,four]
  \choice \mycolordot{.625red}
  \choice \mycolordot{.625blue}
  \choice \mycolordot{.625green}
  \choice \mycolordot{.625magenta}
\stopchoices

A ruledhboxs show the extra space is in the itemize, but not in the item 
contents.

\ruledhbox{\startchoices[columns, four]
  \choice \ruledhbox{\mycolordot{.625red}}
  \choice \mycolordot{.625blue}
  \choice \mycolordot{.625green}
  \choice \mycolordot{.625magenta}
\stopchoices}

Putting a ruledhbox around the first item shows that each item has extra space 
that is not part of the item contents. (The ruledhbox also messes with the 
horizontal alignment, but I don't care about that.)
\startchoices[columns]
  \ruledhbox{\choice \mycolordot{.625red}}
  \choice \mycolordot{.625blue}
  \choice \mycolordot{.625green}
  \choice \mycolordot{.625magenta}
\stopchoices

The extra space is not present without columns.
\startchoices
  \choice \mycolordot{.625red}
  \choice \mycolordot{.625blue}
  \choice \mycolordot{.625green}
  \choice \mycolordot{.625magenta}
\stopchoices

\ruledhbox{My favorite color is:\def\mycolor{.625blue}
\framed[location=top,offset=0pt,frame=on] {\useMPgraphic{name}}}

\stoptext



PastedGraphic-1.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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Spacing issue in itemize

2022-01-14 Thread Gavin via ntg-context
Hi Hans, Aditya, and all,

Let me add another case to this discussion. For multiple choice questions, it 
is nice to have the columns option. However, this produces somewhat 
inconsistent results. In the code below, without Aditya's tweak, there is space 
before the choices in the first two cases, which use columns, but not the last. 
Aditya’s  tweak makes them more consistent.

Adding [columns, one] to the last \startchoices makes the results consistent. 
When doing that, I noticed that the spacing between column rows is slightly 
larger than the spacing between items without columns. So, I am happy using 
[columns, one] as a solution for multiple choice problems, just somewhat 
surprised by the difference.

Gavin


\starttext

%\unprotect
%\c_strc_itemgroups_spacing_mode\plusone
%\protect

\defineitemgroup[questions]
\setupquestions [1] [n]
\define\question{\item}

\defineitemgroup[choices]
\setupchoices [each] [A] [left=(, right=), width=1.7em, stopper=,]
\define\choice{\item}

Here are a few great looking multiple choice questions about colors.
\startquestions
\question What is your favorite color?
\startchoices[columns,four]
  \item Red
  \item Blue
  \item Green
  \item Magenta
\stopitemize
\question What is your least favorite color?
\startchoices[columns]
  \item Red
  \item Blue
  \item Green
  \item Magenta
\stopitemize
\question Toward which colors do you feel indifferent?
\startchoices
  \item Red
  \item Blue
  \item Green
  \item Magenta
\stopitemize
\stopquestions
That's it for questions about colors!

\stoptext
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Critical Editions?

2022-01-06 Thread Jean-Pierre Delange via ntg-context
 need a
strong background in computer science (programming).

In that case, it is really hard to use computers to achieve rich and
complex goals.


4. However, ConTeXt is wonderful for processing xml.
Hence: keep the input source and the processing separate. Code in
TEI xml (or a subset of it) and develop a ConTeXt stylesheet to
process it.

I am used to TeX-code, and so I'd rather stick to that and let
ekdosis do the conversion, if necessary.

A light–weight markup language for critical editions would be something
to consider, in that case. (But it is something to be developed, if it
makes sense at all.)


But in publication practice in my field, most of this is just for
private entertainment. Almost all publishers still expect a Word
file, so the tool of choice is pandoc to downgrade from TeX to docx.
Sorry to end on this depressing note.

Word documents for critical editions? In that case, publishers will have
to typeset the book themselves, won’t they?


As far as I know, some publishers in Humanities in France (e.g. 
Librairie Philosophique Vrin and many others, like Dunod) prefer that 
editor/authors provide a Word processing text (even with a special style 
sheet) than a PDF ready to print ("bon à tirer"). The "Librairie 
philosophique Vrin" has his own style sheet which give a PDF output, but 
Dunod publisher has (for example) build since 15 years an external 
working flow on a distant (and private server) : the Word text is 
revised with Word tags (title, chapter, etc.) and send to a server which 
automatically apply some XML, LateX and Perl procedures. Then the output 
is in PDF (ready to print) and HTML formats. The typessetting is made by 
publisher.


But, publishing in Humanities is not, AMHO, to print a simple essay with 
6 or 12 chapters and a TOC with a backmatter bibliography. Therefore, 
even if this kind of book is rare (e.g. a text in 3 languages : Greek, 
latin, and a translation in modern language on the even page, with 
footnotes, and a commentary on the odd page, or some essay on the 
different levels of text written by Montaigne since the first edition of 
"Les essais", with the different states of text on the even page, or in 
a column, and the commentary in a parallell column or page) may be 
tricky. Pablo is right : scholars in some research fields have to learn 
computing. That's why there is sometimes a proposal to learn some 
technical language (like Tei-XML here : 
https://cesr.cnrs.fr/actualites/actualites-scientifiques/stage-initiation-%C3%A0-lencodage-xml-tei-des-textes-patrimoniaux 
and here 
http://www.bvh.univ-tours.fr/actualites/2011.01_stage_tei_CESR.pdf).


The question of funding computing tools is an issue : it is true in a 
private situation when you want to write a manuscript with versioning 
(you have to know how it works), but it is more relevant within an 
academic field of research : who wants to buy days of education for 
scholars for their learning in computing or for XML Oxygen and other tools ?


As allways, needs create tools : but it is possible in a cooperative 
spirit, as Pablo truely point it out.



Many thanks for your insightful comments,

Pablo
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


--
Jean-Pierre Delange
Agrégé de philosophie
Ancients
"Few discoveries are more irritating than those which expose the pedigree of 
ideas" - Lord Acton

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Critical Editions?

2022-01-03 Thread Jean-Pierre Delange via ntg-context

Hello dear "critical edition" scholars !

I do remember who was the French geek on reledmac and reledpar (LaTeX) : 
he is Maieul Rouquette (please read this page 
https://github.com/maieul/ledmac).


We (Pablo Rodriguez mainly and I) have tried few years ago to somehow 
follow a possible path within CTX in order to clarify what was possible 
with critical edition, which means : 1) a main text with 2) several 
levels of footnotes showing different version of this text (mainly 
differences or alterations of the main text, mainly in  words 
occurences, specially within Medieval copies of the same text). It may 
be useful to have the original text (say : Ancient Greek or whatever) on 
the left column, with the translation on the right column (say : Latin 
or whatever), and the 'criticus apparatus' in the different level of 
footnotes. This kind of page suppose to have under the hand 
(zuhandenheit or vorhandenheit ?) some tools/commands in order to deal 
with the text extension in the column at right ...


Pablo has proposed a MWE, but since I made previously a mistake among 
files I have send to the list, I am going back with a MWE as attached 
file (I send the *.tex & *.pdf files), produced under mtx-context | 
current version: 2020.01.30 (!).


I hope this may give some help to those who want to clarify how CTX/LMTX 
may be useful in such topic.


JP

Le 03/01/2022 à 10:43, hanneder--- via ntg-context a écrit :


Dear Bruce and Hans,

thanks for you responses and I apologize for the lengthy post, which 
is just to give you an
impression of the current practice in my field (Sanskrit Studies, 
Indology).


For the last two decades edmac and its further developments (now 
reledmac) have become the standard
for critical editions. In my experience the basic requirements for 
typesetting critical editions

were and are:

- footnotes have to be formatted in paragraphs
- multiple footnotes layers stacked below the critical text must be 
possible

- automatic reference to linenumbers
- or: manual references to verse numbers
- language specific requirements (more complicated, see below)

In the last years new requirements have been added:

- some funding institutions in the academic world practically enforce 
online editions

- data have to be made available in TEI xml format

This is where a new (LuaTeX) package called ekdosis, currently being 
developed by Robert Alessi,
comes in. It produces a printed version and in the same TeX run an xml 
file. In an ongoing
editorial project we are using this method and it works very well. 
While the system is ingenious
and a great relief (for we do not have to work with xml directly), I 
am also critical about these
new demands, because they force us to use a fairly complex system for 
sometimes quite simple tasks.
I am a Sanskritist, we do not have huge budgets or a large staff, so 
efficiency is an issue. We
also do not have the resources for the long-term care for data such as 
online editions, but this is

another problem.

In a previous project, a large edition (3 verses, 15 years), I 
tried to use the easiest
method. It turned out that edmac was not even necessary and not using 
it made the main file from
which we are working very readable and greatly simplified daily work. 
Just to give you an
impression from our input file: The first two lines in the next 
paragraph are the Sanskrit text in
transcription, \var produces a variant with reference to the verse 
number and verse quarter
(a-d). So no line numbering was even necessary. The \lem produces the 
sign that divides the
critical text and its witnesses from the variants, usually "]", the 
rest are sigla, like S1, S3

etc.

mumukṣuvyavahāroktimayāt prakaraṇād anu   \danda
athotpattiprakaraṇaṃ mayedaṃ parikathyate  \sloka{1.5}
   \var{5b}{anu \Sseven \Sft \lem \emph{param} \Sone \Sthree \Snine 
\Ntwelve \Ntw}


I used pdflatex and memoir, which has paragraphed footnotes. Here is 
the relevant section from the

preamble:

\renewcommand*{\@makefnmark}{}
\newfootnoteseries{P}
\paragraphfootstyle{P}
\renewcommand{\thefootnoteP}{}
\footmarkstyleP{}
\renewcommand{\@makefnmarkP}{\hskip-2.2pt}
\renewcommand{\footnoterule}{}
\setlength{\stockheight}{6in}
\renewcommand{\linenumberfont}{\normalfont\tiny}
\setlength{\linenumbersep}{0pt}\setlength{\linenumberwidth}{0pt}\modulolinenumbers[2] 


\setlength{\footmarkwidth}{0em}
\setlength{\footmarksep}{-\footmarkwidth}
\addtolength{\skip\footins}{2mm plus 1mm}
\leftskip=.2cm    % indent of the verses
\def\var#1#2{\footnoteP{#1 #2}}  % footnotes


This is what I compiled from different examples (I am not a 
programmer), but it worked -- the

edition has produced quite a few volumes and is almost finished!

Working with this file was easy, because one could easily read the 
text.  The usual edmac code
would have required us to identify an lemma with \edtext and then 
write the variant directly into
the text. This may not matter in 

Re: [NTG-context] local notes, "serried" (paragraph) or column style.

2022-01-03 Thread Youssef Cherem via ntg-context
Hi again,

As a follow-up, I just found some weird behavior when typesetting
local/text notes using columns. The code below describes the issue. (As the
notes are counted by page I really didn't need to use localnotes, so the
problem of footnotes disappearing is solved.)

\definenote[afiliação]%[numberconversion=set 2]

\setupnote[afiliação][

%paragraph=yes,

rule=off,

location=text,

]

\setupnotation[afiliação][numberconversion=a, way=bypage,

%location=text,

%alternative=serried, % no effect

alternative=hanging,

width=fit, % broad

%distance=.5em,

%display=no

] % or set 1

% n=3 doesn’t work


\setupnotation[footnote][location={bottom,left},alternative=hanging,distance=.5em]



\starttext


Note\footnote{This should be at the bottom, but if I use columns it goes
just below the columns.}


%{% local notes have to be enclosed, otherwise footenotes below don’t appear

Author 1\afiliação{asdf} Author 2\afiliação{asdf}
\dorecurse{5}{\afiliação{Nota explicativa.}}


\startcolumns[n=3]

\placenotes[afiliação]

\stopcolumns

%}

% end local notes



\blank[big]


This footnote will disapear completely if I use localnotes and don’t
enclose them.\footnote{Where does it go?}




\stoptext

ons. 29. des. 2021 kl. 10:40 skrev Marco Patzer via ntg-context <
ntg-context@ntg.nl>:

> On Wed, 29 Dec 2021 08:29:34 -0300
> Youssef Cherem via ntg-context  wrote:
>
> > I've tried to implement some sort of affiliation description with
> > local notes. I'd like them to be either in a single paragraph or in
> > columns (e.g., 3), but the options `serried` or  `n=3` don't seem to
> > work for text notes (they do work for notes at the bottom).
> >
> > […]
> >
> > \placelocalnotes[afiliação]
>
> Maybe this helps:
>
> \startcolumns [n=3]
>   \placelocalnotes[afiliação]
> \stopcolumns
>
> Marco
>
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] aligning Malayalam horizontally across column

2022-01-02 Thread Hans Hagen via ntg-context

On 1/2/2022 8:08 AM, Ajith R via ntg-context wrote:


Thanks for this. But, I changed to natural tables as suggested by
Kausika and that solved my problems.


if it's only text, \starttabulate works ok too (and often better)
 Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] aligning Malayalam horizontally across column

2022-01-01 Thread Ajith R via ntg-context
On Sat, 1 Jan 2022 11:12:14 +0100
Hans Hagen via ntg-context  wrote:

> On 12/31/2021 1:55 PM, Ajith R via ntg-context wrote:
> > Hi,
> > I am trying to prepare a moderate sized document in Malayalam using
> > Context. Overall I have been successful. However, there are a few
> > rough edges for which I need help. This is the second problem I
> > face.
> > 
> > I have some 300 group of short sentences placed in five columns
> > using \startcolumns[n=5]
> > \input aCharTable.tex
> > \stopcolumns
> > 
> > The aCharTex generated by a shell script contains the 300 plus
> > commands with the structure
> > 
> > \tfa{  \bold{variable} \par  (12 - 0.13) } \blank
> > 
> > The problems are that - a) the group, with the two short paras get
> > separated into different columns and sometimes pages. How can I
> > prevent that? In other words, how do I tell Context that this
> > should be treated as cohesive unit? b) The horizontal space doesn't
> > align across columns. This probably is because the different
> > conjuncts in each of these lines have different heights. How can I
> > ask Context to treat each of these cohesive units as having the
> > same height?  
> 
> But isn't the \par breaking it?

Yes, it is. I wanted them as two lines, but one below the other. If I
don't use \par, they become one line. May be you will be able to
understand my requirement if I tell what these are. The first of the
pair is one of the many syllables in a text analysed, the numbers
inside the parentheses are its rank and frequency proportion. So, to
make sense, they have to be together. And, it looks pretty if the pairs
are lined up nicely.

> \dontleavehmode\hbox{\tfa\bold{variable} (12 - 0.13)}

Thanks for this. But, I changed to natural tables as suggested by
Kausika and that solved my problems.

> we need a better example (just a snippet of actual source that gets 
> rendered to see the issue)

I am afraid this example is a bit long. The last pair in the first and
third columns gets split.And, overall, the lines are not aligned.

\definefontfamily
  [malayalam]
  [serif]
  [RIT Rachana][features=malayalam-two]

\setupbodyfont[malayalam]
\starttext
\startcolumns[n=5]
 \tfa{  \bold{നാ} \par  (42 - 0.43) }  \blank
 \tfa{  \bold{ണ} \par  (43 - 0.42) }  \blank
 \tfa{  \bold{ള്ള} \par  (44 - 0.42) }  \blank
 \tfa{  \bold{മു} \par  (45 - 0.41) }  \blank
 \tfa{  \bold{ഗ} \par  (46 - 0.39) }  \blank
 \tfa{  \bold{രാ} \par  (47 - 0.38) }  \blank
 \tfa{  \bold{റ} \par  (48 - 0.36) }  \blank
 \tfa{  \bold{സി} \par  (49 - 0.36) }  \blank
 \tfa{  \bold{റി} \par  (50 - 0.36) }  \blank
 \tfa{  \bold{പ്പെ} \par  (51 - 0.34) }  \blank
 \tfa{  \bold{നു} \par  (52 - 0.34) }  \blank
 \tfa{  \bold{ശ} \par  (53 - 0.34) }  \blank
 \tfa{  \bold{ടി} \par  (54 - 0.33) }  \blank
 \tfa{  \bold{കു} \par  (55 - 0.33) }  \blank
 \tfa{  \bold{ക്ക} \par  (56 - 0.32) }  \blank
 \tfa{  \bold{ലി} \par  (57 - 0.31) }  \blank
 \tfa{  \bold{കൾ} \par  (58 - 0.31) }  \blank
 \tfa{  \bold{സ്} \par  (59 - 0.30) }  \blank
 \tfa{  \bold{വാ} \par  (60 - 0.30) }  \blank
\tfa{  \bold{സം} \par  (61 - 0.30) }  \blank
\tfa{  \bold{തു} \par  (62 - 0.30) }  \blank
\tfa{  \bold{ചെ} \par  (63 - 0.30) }  \blank
\tfa{  \bold{ളി} \par  (64 - 0.30) }  \blank
\tfa{  \bold{താ} \par  (65 - 0.29) }  \blank
\tfa{  \bold{ജ} \par  (66 - 0.29) }  \blank
\tfa{  \bold{ങ്ങൾ} \par  (67 - 0.29) }  \blank
\tfa{  \bold{വർ} \par  (68 - 0.28) }  \blank
\tfa{  \bold{ള} \par  (69 - 0.28) }  \blank
\tfa{  \bold{മി} \par  (70 - 0.27) }  \blank
\tfa{  \bold{ലാ} \par  (71 - 0.27) }  \blank
\tfa{  \bold{ത്തിൽ} \par  (72 - 0.27) }  \blank
\tfa{  \bold{യിൽ} \par  (73 - 0.27) }  \blank
\tfa{  \bold{ച്ചു} \par  (74 - 0.26) }  \blank
\tfa{  \bold{ഈ} \par  (75 - 0.25) }  \blank
\tfa{  \bold{ച്ച} \par  (76 - 0.25) }  \blank
\tfa{  \bold{ത്ത} \par  (77 - 0.25) }  \blank
\tfa{  \bold{പി} \par  (78 - 0.25) }  \blank
\stopcolumns
\stoptext

Thanks,
ajith

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] aligning Malayalam horizontally across column

2022-01-01 Thread Ajith R via ntg-context
On Fri, 31 Dec 2021 20:49:30 +0530
kauśika  wrote:

> If the height varies due to the formation of conjuncts, I 
> think you are better off using "(natural) tables" :
> https://wiki.contextgarden.net/TABLE
> In particular, setting align=lohi for the two columns concerned
> should work. Again, your example is not clear enough for me to
> suggest much

Hi Kausika,

I used natural tables as you suggested and it has solved both my
problems.

Thanks again for all your help,
Have a wonderful year ahead,
ajith
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] aligning Malayalam horizontally across column

2022-01-01 Thread Hans Hagen via ntg-context

On 12/31/2021 1:55 PM, Ajith R via ntg-context wrote:

Hi,
I am trying to prepare a moderate sized document in Malayalam using
Context. Overall I have been successful. However, there are a few rough
edges for which I need help. This is the second problem I face.

I have some 300 group of short sentences placed in five columns using
\startcolumns[n=5]
\input aCharTable.tex
\stopcolumns

The aCharTex generated by a shell script contains the 300 plus commands
with the structure

\tfa{  \bold{variable} \par  (12 - 0.13) } \blank

The problems are that - a) the group, with the two short paras get
separated into different columns and sometimes pages. How can I prevent
that? In other words, how do I tell Context that this should be treated
as cohesive unit? b) The horizontal space doesn't align across columns.
This probably is because the different conjuncts in each of these lines
have different heights. How can I ask Context to treat each of these
cohesive units as having the same height?


But isn't the \par breaking it?

\dontleavehmode\hbox{\tfa\bold{variable} (12 - 0.13)}

we need a better example (just a snippet of actual source that gets 
rendered to see the issue)


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] aligning Malayalam horizontally across column

2021-12-31 Thread kauśika via ntg-context
On Friday, December 31, 2021 6:25:01 PM IST Ajith R via ntg-context wrote:
> The problems are that - a) the group, with the two short paras get
> separated into different columns and sometimes pages. How can I prevent
> that? In other words, how do I tell Context that this should be treated
> as cohesive unit? b) The horizontal space doesn't align across columns.
> This probably is because the different conjuncts in each of these lines
> have different heights. How can I ask Context to treat each of these
> cohesive units as having the same height?

Your example is not clear enough for me to address b). I think I understand 
what problem you have described in a).

If you want to explicitly typeset paragraphs into a columnar format, use 
'paragraphs':

\defineparagraphs[mypar][n=5]
\setupparagraphs[mypar][1][width=…]
\setupparagraphs[mypar][2][width=…]
\setupparagraphs[mypar][3][width=…]
\setupparagraphs[mypar][4][width=…]
\setupparagraphs[mypar][5][width=…]

Now, you can do
\startmypar
this is the first column
\mypar
and here is the second column
\mypar
the third column is here
\mypar
and the fourth column is here
\mypar
and the last (fifth) column
\stopmypar

[If you end up using this you will have to "denote columns" in your script-
generated file by using \mypar]

Look into the options of \setupparagraphs for more details (there is a height 
option as well). If the height varies due to the formation of conjuncts, I 
think you are better off using "(natural) tables" :
https://wiki.contextgarden.net/TABLE
In particular, setting align=lohi for the two columns concerned should work. 
Again, your example is not clear enough for me to suggest much.

kauśika


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] aligning Malayalam horizontally across column

2021-12-31 Thread Ajith R via ntg-context
Hi,
I am trying to prepare a moderate sized document in Malayalam using
Context. Overall I have been successful. However, there are a few rough
edges for which I need help. This is the second problem I face.

I have some 300 group of short sentences placed in five columns using
\startcolumns[n=5]
\input aCharTable.tex
\stopcolumns

The aCharTex generated by a shell script contains the 300 plus commands
with the structure

\tfa{  \bold{variable} \par  (12 - 0.13) } \blank

The problems are that - a) the group, with the two short paras get
separated into different columns and sometimes pages. How can I prevent
that? In other words, how do I tell Context that this should be treated
as cohesive unit? b) The horizontal space doesn't align across columns.
This probably is because the different conjuncts in each of these lines
have different heights. How can I ask Context to treat each of these
cohesive units as having the same height?

Thanks,
ajith
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Table of Contents Header?

2021-12-30 Thread kauśika via ntg-context
On Friday, December 31, 2021 7:53:08 AM IST Michael Urban via ntg-context 
wrote:
> Or is there some more foolproof way of getting those headers into the right
> place?

Here is something I quickly wrote up:

First, define some labels for the columns of the ToC —
\definesynonyms[toclabel][toclabel][\TOCLabel]
\setupsynonyms[toclabel][textstyle=\sc]
\toclabel{TOCNumberLabel}{Chapter}
\toclabel{TOCTitleLabel}{Title}
\toclabel{TOCPageLabel}{Page}
Then compute the width of the chapter-number and page-number labels
\setwidthof\TOCLabel{TOCNumberLabel}\to\TOCNumberLabelWidth
\setwidthof\TOCLabel{TOCPageLabel}\to\TOCPageLabelWidth
and define a 'paragraphs' block with 3 columns with a separation of 1em between 
each column
\defineparagraphs
[TOCpar]
[n=3]
\setupparagraphs
[TOCpar]
[each]
[distance=1em]
Set the width of the first column to the width of the label (and center chapter 
number)
\setupparagraphs
[TOCpar]
[1]
[width=\dimexpr\TOCNumberLabelWidth,
 align=middle]
and similarly for the third column (and center the page number)
\setupparagraphs
[TOCpar]
[3]
[width=\dimexpr\TOCPageLabelWidth,
 align=middle]
Finally, wrap it all up in the macro 
\define[3]\TOCEntry{%
\startTOC
#1 \TOCpar #2 \TOCpar #3%
\stopTOC%
}
and indicate the command to use in the setup 
\setuplist
[chapter]
[alternative=interactive,
 command=\TOCEntry,
 after=\endgraf] % required

The ToC along with column labels is placed with 
\TOCLabel{TOCNumberLabel}%
\hfill\TOCLabel{TOCTitleLabel}\hfill%
\TOCLabel{TOCPageLabel}
\placecontent

Of course, you can choose to not set the 'align' keys in \setupparagraphs[TOC] 
if center alignment is not required/desired.

Hope this helps.

Best,
kauśika


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] local notes, "serried" (paragraph) or column style.

2021-12-29 Thread Youssef Cherem via ntg-context
Marco

Thanks a lot.  It works. Such a solution had briefly crossed my mind but I
had left it aside, hoping there was some feature I had missed.

Em qua., 29 de dez. de 2021 10:40, Marco Patzer via ntg-context <
ntg-context@ntg.nl> escreveu:

> On Wed, 29 Dec 2021 08:29:34 -0300
> Youssef Cherem via ntg-context  wrote:
>
> > I've tried to implement some sort of affiliation description with
> > local notes. I'd like them to be either in a single paragraph or in
> > columns (e.g., 3), but the options `serried` or  `n=3` don't seem to
> > work for text notes (they do work for notes at the bottom).
> >
> > […]
> >
> > \placelocalnotes[afiliação]
>
> Maybe this helps:
>
> \startcolumns [n=3]
>   \placelocalnotes[afiliação]
> \stopcolumns
>
> Marco
>
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] local notes, "serried" (paragraph) or column style.

2021-12-29 Thread Marco Patzer via ntg-context
On Wed, 29 Dec 2021 08:29:34 -0300
Youssef Cherem via ntg-context  wrote:

> I've tried to implement some sort of affiliation description with
> local notes. I'd like them to be either in a single paragraph or in
> columns (e.g., 3), but the options `serried` or  `n=3` don't seem to
> work for text notes (they do work for notes at the bottom).
>
> […]
>
> \placelocalnotes[afiliação]

Maybe this helps:

\startcolumns [n=3]
  \placelocalnotes[afiliação]
\stopcolumns

Marco
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] local notes, "serried" (paragraph) or column style.

2021-12-29 Thread Youssef Cherem via ntg-context
I've tried to implement some sort of affiliation description with local
notes. I'd like them to be either in a single paragraph or in columns
(e.g., 3), but the options `serried` or  `n=3` don't seem to work for text
notes (they do work for notes at the bottom). Any help would be much
appreciated.



\definenote[afiliação]%[numberconversion=set 2]

\setupnote[afiliação][

%paragraph=yes,

rule=off,

location=text,

]

\setupnotation[afiliação][numberconversion=a, way=bypage,

%location=text,

%alternative=serried, % no effect

alternative=hanging,

width=fit, % broad

%distance=.5em,

%display=no

] % or set 1

% n=3 doesn’t work



\starttext

\startlocalnotes

Author 1\afiliação{asdf} Author 2\afiliação{asdf}
\dorecurse{5}{\afiliação{Nota explicativa.}}


\placelocalnotes[afiliação]

\stoplocalnotes


\stoptext



___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Gap in rows if tabulate includes a startitemize

2021-12-20 Thread Jorge Manuel via ntg-context
Good morning to all.

A new and best example.
On 19 Dec 2021, 12:18 +, Hans Hagen via ntg-context , 
wrote:
> On 12/19/2021 9:39 AM, Jorge Manuel via ntg-context wrote:
> > The attach.
>
> yout example works ok here but it's not the same as in the picture so we
> need a better test to see the issue
>
> > Jorge Magalhães
> >
> > On 19 Dec 2021, 08:18 +, Jorge Manuel , wrote:
> > > Dear Sirs
> > >
> > > I try to tabulate information in two columns: in the first a have a
> > > text sentence in the second I need to include a list of itens. My
> > > approach is like this:
> > >
> > > \starttabulate[|p(4cm)|p|]
> > >  \FL
> > >  \NC Objetivos \NC Estratégias \NC\NR
> > >  \LL
> > >  \NC Melhorar a qualidade do sucesso educativo \NC
> > >  \startitemize
> > > \item one
> > > \item two
> > > \stopitemize
> > > \NC\NR
> > > \HL
> > > \stoptabulate
> > >
> > > On some cases the text and the list are correctly confined to the
> > > limits (\LL and \HL). But, in other cases, in the second column is
> > > inserted a gap (see the attach). How can I fix this.
> > >
> > > Thanks in advance.
> > >
> > > Jorge Magalhães
> > >
> > > Jorge Magalhães
> > >
> >
> > ___
> > 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://context.aanhet.net
> > archive : https://bitbucket.org/phg/context-mirror/commits/
> > wiki : http://contextgarden.net
> > ___
>
>
> --
>
> -
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___


exter.pdf
Description: Binary data


exter.tex
Description: Binary data
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Gap in rows if tabulate includes a startitemize

2021-12-19 Thread Hans Hagen via ntg-context

On 12/19/2021 9:39 AM, Jorge Manuel via ntg-context wrote:

The attach.


yout example works ok here but it's not the same as in the picture so we 
need a better test to see the issue



Jorge Magalhães
 
On 19 Dec 2021, 08:18 +, Jorge Manuel , wrote:

Dear Sirs

I try to tabulate information in two columns: in the first a have a 
text sentence in the second I need to include a list of itens. My 
approach is like this:


\starttabulate[|p(4cm)|p|]
 \FL
 \NC Objetivos \NC Estratégias \NC\NR
 \LL
 \NC Melhorar a qualidade do sucesso educativo \NC
 \startitemize
\item one
\item two
\stopitemize
\NC\NR
\HL
\stoptabulate

On some cases the text and the list are correctly confined to the 
limits (\LL and \HL). But, in other cases, in the second column is 
inserted a gap (see the attach). How can I fix this.


Thanks in advance.

Jorge Magalhães

Jorge Magalhães



___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___



--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Gap in rows if tabulate includes a startitemize

2021-12-19 Thread Jorge Manuel via ntg-context
The attach.

Jorge Magalhães



On 19 Dec 2021, 08:18 +, Jorge Manuel , wrote:
> Dear Sirs
>
> I try to tabulate information in two columns: in the first a have a text 
> sentence in the second I need to include a list of itens. My approach is like 
> this:
>
> \starttabulate[|p(4cm)|p|]
>  \FL
>  \NC Objetivos \NC Estratégias \NC\NR
>  \LL
>  \NC Melhorar a qualidade do sucesso educativo \NC
>  \startitemize
> \item one
> \item two
> \stopitemize
> \NC\NR
> \HL
> \stoptabulate
>
> On some cases the text and the list are correctly confined to the limits (\LL 
> and \HL). But, in other cases, in the second column is inserted a gap (see 
> the attach). How can I fix this.
>
> Thanks in advance.
>
> Jorge Magalhães
>
> Jorge Magalhães
>
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Gap in rows if tabulate includes a startitemize

2021-12-19 Thread Jorge Manuel via ntg-context
Dear Sirs

I try to tabulate information in two columns: in the first a have a text 
sentence in the second I need to include a list of itens. My approach is like 
this:

\starttabulate[|p(4cm)|p|]
 \FL
 \NC Objetivos \NC Estratégias \NC\NR
 \LL
 \NC Melhorar a qualidade do sucesso educativo \NC
 \startitemize
\item one
\item two
\stopitemize
\NC\NR
\HL
\stoptabulate

On some cases the text and the list are correctly confined to the limits (\LL 
and \HL). But, in other cases, in the second column is inserted a gap (see the 
attach). How can I fix this.

Thanks in advance.

Jorge Magalhães

Jorge Magalhães

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] \startcolumnset ... \stopcolumnset fatal error: return code 11

2021-12-16 Thread Jeong Dal via ntg-context
Hi,

I have used newcolumnset module to make a test sheet. It was made by the help 
of experts in the list.
It worked fine a month ago and also worked via TeXlive 2021.
But I got error using the recent version.
Thanks Nicola and John for testing.

I have listed it before and tried to find out the cause.
I have test the following file in the editors,  vscode, vim, atom and even in 
the terminal.
It might be an apple binary problem as Hans suspected.
I’d like to know that it is the only problem for Mac users.

Here is the code and the part of error message:
It was tested in vscode, vim and terminal too.

I am using Mac OSX, 
ConTeXt  ver: 2021.12.03 15:20 LMTX  fmt: 2021.12.9  int: english/english

Thank you for reading.
Best regards,

Dalyoung

%%%
\startuseMPgraphic{verticalrule0}
  if CurrentColumn < NOfColumns :
draw rightboundary OverlayBox shifted (4mm,0);
setbounds currentpicture to OverlayBox enlarged 2.5mm;
  fi;
\stopuseMPgraphic

\startuseMPgraphic{squareBox}
   draw topboundary OverlayBox leftenlarged 1mm rightenlarged 1mm;
   draw rightboundary OverlayBox shifted (1mm,0); %if CurrentColumn = 1: 
shifted(-2mm,0) fi ;
   draw leftboundary OverlayBox shifted (-1mm,0); %if CurrentColumn = 2: 
shifted(2mm,0) fi ;  
   draw bottomboundary OverlayBox leftenlarged 1mm rightenlarged 1mm;
 \stopuseMPgraphic
\defineoverlay
  [headerBox]
  [\useMPgraphic{squareBox}]

\startuseMPgraphic{verticalrule3}
   draw rightboundary OverlayBox shifted (1mm,0); %if CurrentColumn = 1: 
shifted(-2mm,0) fi ;
   draw leftboundary OverlayBox shifted (-1mm,0); %if CurrentColumn = 2: 
shifted(2mm,0) fi ;  
   draw bottomboundary OverlayBox leftenlarged 1mm rightenlarged 1mm;
 \stopuseMPgraphic

\defineoverlay
  [verticalrule]
  [\useMPgraphic{verticalrule3}]

\definecolumnset
  [exam]
  [n=2,
   background=verticalrule]


\setuplayout[width=19cm, height=26cm, header=1cm, footer=.5cm,backspace=1cm]
\setupheader[before=\vfil, after=\vfil]
\setupbackgrounds[header][text][frame=off, background=headerBox, 
align=lohi]%topframe=
\setupbackgrounds[footer][text][frame=off, background=screen]

\define[3]\headTitle{\setupheadertexts[][\bf #1  \hfill #2  \hfill #3  \hfill 
ID:  \hskip 2cm Name: \hskip 2cm]}

\setupmathematics[autopunctuation=no, integral=nolimits]

\setupbodyfont[rm,10pt]
\setuppagenumbering[location=footer]
\setupcolors[state=start]
%\setupexternalfigure[directory={/Users/graph/Documents/figures,}]

\headTitle{2021. 12. 9.}{Set Theory}{Final Exam}

\usemodule[newcolumnsets]

\starttext

%\startcolumns[rule=on,n=2,leftframe=on]
\startcolumnset[exam]

\startitemize[n]
  \item The first problem.
  \vfill
  \column

  \item The second problem.
  \vfill
  \column

  \item The third problem.
  \vfill
  \column

\stopitemize

\stopcolumnset
%\stopcolumns
\stoptext


%%
…
open source > level 2, order 3, name 
‘/Users/graph/ConTeXtLM/tex/texmf-context/tex/context/base/mkiv/m-newcolumnsets.mkiv'
close source> level 2, order 3, name 
'/Users/graph/ConTeXtLM/tex/texmf-context/tex/context/base/mkiv/m-newcolumnsets.mkiv'
mtx-context | fatal error: return code: 11
The terminal process "zsh '-c', 'mtxrun --autogenerate --script context 
--autopdf --purge '/Users/graph/Library/Mobile 
Documents/com~apple~CloudDocs/texMain/ColumnsetTest.tex''" terminated with exit 
code: 1.

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] using the newcolumnsets module

2021-12-09 Thread Jeong Dal via ntg-context

Dear all,

I made an exam form by the help of the experts in this list.
However, it was not working after recent update.
Here is a code which I made for the test.
If I use “\startcolumns \stopcolumns”, then it has no problem.
But using “\startcolumnset[exam] … \stopcolumnset” produces error message 
“return code 11”.
It loads “m-newcolumnset.tex” without problem.

What is the cause of this error?

Thank you for reading.

Best regards,

Dalyoung

\startuseMPgraphic{verticalrule0}
  if CurrentColumn < NOfColumns :
draw rightboundary OverlayBox shifted (4mm,0);
setbounds currentpicture to OverlayBox enlarged 2.5mm;
  fi;
\stopuseMPgraphic

\startuseMPgraphic{squareBox}
   draw topboundary OverlayBox leftenlarged 1mm rightenlarged 1mm;
   draw rightboundary OverlayBox shifted (1mm,0); %if CurrentColumn = 1: 
shifted(-2mm,0) fi ;
   draw leftboundary OverlayBox shifted (-1mm,0); %if CurrentColumn = 2: 
shifted(2mm,0) fi ;  
   draw bottomboundary OverlayBox leftenlarged 1mm rightenlarged 1mm;
 \stopuseMPgraphic
\defineoverlay
  [headerBox]
  [\useMPgraphic{squareBox}]

\startuseMPgraphic{verticalrule3}
   draw rightboundary OverlayBox shifted (1mm,0); %if CurrentColumn = 1: 
shifted(-2mm,0) fi ;
   draw leftboundary OverlayBox shifted (-1mm,0); %if CurrentColumn = 2: 
shifted(2mm,0) fi ;  
   draw bottomboundary OverlayBox leftenlarged 1mm rightenlarged 1mm;
 \stopuseMPgraphic

\defineoverlay
  [verticalrule]
  [\useMPgraphic{verticalrule3}]

\definecolumnset
  [exam]
  [n=2,
   background=verticalrule]


\setuplayout[width=19cm, height=26cm, header=1cm, footer=.5cm,backspace=1cm]
\setupheader[before=\vfil, after=\vfil]
\setupbackgrounds[header][text][frame=off, background=headerBox, 
align=lohi]%topframe=
\setupbackgrounds[footer][text][frame=off, background=screen]

\define[3]\headTitle{\setupheadertexts[][\bf #1  \hfill #2  \hfill #3  \hfill 
ID:  \hskip 2cm Name: \hskip 2cm]}

\setupmathematics[autopunctuation=no, integral=nolimits]

\setupbodyfont[rm,10pt]
\setuppagenumbering[location=footer]
\setupcolors[state=start]
%\setupexternalfigure[directory={/Users/graph/Documents/figures,}]

\headTitle{2021. 12. 9.}{Set Theory}{Final Exam}

\usemodule[newcolumnsets]

\starttext

\startcolumns[rule=on,n=2,leftframe=on]
%\startcolumnset[exam]

\startitemize[n]
  \item The first problem.
  \vfill
  \column

  \item The second problem.
  \vfill
  \column

  \item The third problem.
  \vfill
  \column

\stopitemize

%\stopcolumnset
\stopcolumns
\stoptext


error messages:
system  > ConTeXt  ver: 2021.11.30 19:49 LMTX  fmt: 2021.12.1  int: 
english/english
system  > 
system  > 'cont-new.mkxl' loaded
open source > level 1, order 1, name 
'/Users/graph/ConTeXtL/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 1, order 1, name 
'/Users/graph/ConTeXtL/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > files > jobname '/Users/graph/Library/Mobile 
Documents/com~apple~CloudDocs/texMain/ColumnsetTest', input 
'/Users/graph/Library/Mobile 
Documents/com~apple~CloudDocs/texMain/ColumnsetTest.tex', result 
'/Users/graph/Library/Mobile 
Documents/com~apple~CloudDocs/texMain/ColumnsetTest'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 1, order 2, name '/Users/graph/Library/Mobile 
Documents/com~apple~CloudDocs/texMain/ColumnsetTest.tex'
fonts   > preloading latin modern fonts (third stage)
fonts   > 'fallback modern-designsize rm 10pt' is loaded
colors  > 'rgb' color space is supported
colors  > 'cmyk' color space is supported
modules > 'newcolumnsets' is loaded
open source > level 2, order 3, name 
'/Users/graph/ConTeXtL/tex/texmf-context/tex/context/base/mkiv/m-newcolumnsets.mkiv'
close source> level 2, order 3, name 
'/Users/graph/ConTeXtL/tex/texmf-context/tex/context/base/mkiv/m-newcolumnsets.mkiv'
mtx-context | fatal error: return code: 11
The terminal process "zsh '-c', 'export 
PATH=~/ConTeXtL/tex/texmf-osx-64/bin:$PATH;mtxrun --autogenerate --script 
context --autopdf --purge '/Users/graph/Library/Mobile 
Documents/com~apple~CloudDocs/texMain/ColumnsetTest.tex''" terminated with exit 
code: 1.

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Caption with hanging figure label

2021-11-30 Thread Ben Moon via ntg-context
Hi,

I’d like to create a caption with the first line hanging/outdented compared to 
the lines afterwards, like this:

> Figure 1. Here is the line of text
>that goes on to a second line. The
>first line is hanging.

I’ve posted this question here: 
<https://tex.stackexchange.com/q/623782/257399>, but was suggested to post on 
the mailing list.

I have also seen the `hang=yes` option (from this post 
<https://tex.stackexchange.com/a/522242/257399>), which gives the figure label 
in its own ‘column’.

The difference that I want is that the Figure label is in-line with the body of 
the caption and not in a separate column. 

Do you have suggestions for how to do this?

Ben
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Have a cell span multiple columns with tabulate

2021-11-28 Thread Hans Hagen via ntg-context

On 11/28/2021 9:26 AM, Denis Maier via ntg-context wrote:

Ok, did some tests: Now I understand what was meant with the limitation that 
this only supports single line cells:

%
\starttext

% this works
\starttabulate[|l|l|]
\NS[1][c] Manuskript X \NC\NR
\NC foo \NC bar  \NC\NR
\stoptabulate

% this does not work
\starttabulate[|p|p|]
\NS[1][c] Manuskript X \NC\NR
\NC foo \NC bar  \NC\NR
\stoptabulate
\stoptext
%

Changing the column definitions from l,c,r to p breaks it.
indeed, i check if that can be handled but it's too intrusive (for now) 
so i leave that as limitation


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Have a cell span multiple columns with tabulate

2021-11-28 Thread Denis Maier via ntg-context
Ok, did some tests: Now I understand what was meant with the limitation that 
this only supports single line cells:

%
\starttext

% this works
\starttabulate[|l|l|]
\NS[1][c] Manuskript X \NC\NR
\NC foo \NC bar  \NC\NR
\stoptabulate

% this does not work
\starttabulate[|p|p|]
\NS[1][c] Manuskript X \NC\NR
\NC foo \NC bar  \NC\NR
\stoptabulate
\stoptext
%

Changing the column definitions from l,c,r to p breaks it.

Denis

> -Ursprüngliche Nachricht-
> Von: ntg-context  Im Auftrag von Denis Maier
> via ntg-context
> Gesendet: Sonntag, 28. November 2021 08:42
> An: ntg-context@ntg.nl
> Cc: Maier, Denis Christian (UB) 
> Betreff: Re: [NTG-context] Have a cell span multiple columns with tabulate
> 
> Thanks, Hraban. That's really helpful. I'll have a look at this feature.
> 
> Denis
> 
> > -Ursprüngliche Nachricht-
> > Von: ntg-context  Im Auftrag von Henning
> > Hraban Ramm via ntg-context
> > Gesendet: Samstag, 27. November 2021 22:23
> > An: ntg-context@ntg.nl
> > Cc: Henning Hraban Ramm 
> > Betreff: Re: [NTG-context] Have a cell span multiple columns with
> > tabulate
> >
> > Am 27.11.21 um 21:49 schrieb Denis Maier via ntg-context:
> > > Hans added a short while ago a span feature to tabulate but it works
> > > only for simple tables (e.g. single line cells).
> > >
> > > You mean every cell has to be a single line cell? Or the ones where
> > > this span features applies ? That would be enough for me – at least ATM.
> > >
> > > How does that feature work? I couldn’t find information about it.
> >
> > Now it’s documented:
> > https://wiki.contextgarden.net/Tabulate
> >
> > Hraban
> >
> __
> > _
> > 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://context.aanhet.net archive
> :
> > https://bitbucket.org/phg/context-mirror/commits/
> > 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://context.aanhet.net archive  :
> https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Title for tabulate

2021-11-28 Thread Denis Maier via ntg-context
Hi,

when trying out different options for my last question regarding column spans 
I've tried out the the option regarding titles for the tabulate environment. 
Consider this example (adapted from the wiki):

%%
\setuppapersize[A6]

\starttext
\setuptabulate
   [
header=text,
split=yes,
title={Fenchurch St. Paul},
]

\starttabulate[|p|p|]
\dorecurse{6}{
  \NC  Bells:  \NC  Tin tan din dan bim bam bom bo \NC\NR
  \HL
  \NC  Name:  \NC  Tailor Paul \NC \NR
  \HL
}
\stoptabulate

\stoptext
%%

A couple of questions :
- Is it possible to have the title be typeset only once? I.e., it should not 
repeat on each page.
- How do you change the alignment of the title? (There's an align key, but that 
does change the alignment of the entries. Not of the title. There are headstyle 
and headcolor, but nothing about alignment. (\setupalign[middle] in headstyle 
doesn't do anything.)
- How can you add bit more space after the title?

Best,
Denis
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Neste itemize in table (or vice-versa?)

2021-11-20 Thread Wolfgang Schuster via ntg-context

Alexandre Christe via ntg-context schrieb am 20.11.2021 um 16:19:

Dear all,

I'm trying something out in LMTX, which is to combine itemize with a 
table. Application could be to put a question and the answer in the 
next column.


A minimal example would be:

[...]

The numbering unfortunately starts with i) instead of a). Any 
recommendation which approach shall be preferred?


Use \itemtag to display the itemize counter, the commands ensures you 
get the correct value because most table environments process the cell 
content multiple times which lead to wrong counters.


\starttext

\startsetups [alexandre:1]
    \setupTABLE [start] [frame=off]
    \setupTABLE [c] [1] [width=.3\textwidth]
    \setupTABLE [c] [2] [width=.6\textwidth]
\stopsetups

\startitemize [a] [right=),stopper=]
\bTABLE[setups=alexandre:1]
\bTR \bTD \dontleavehmode\itemtag\quad Something \eTD \bTD Something 
\eTD \eTR
\bTR \bTD \dontleavehmode\itemtag\quad Something \eTD \bTD Something 
\eTD \eTR
\bTR \bTD \dontleavehmode\itemtag\quad Something \eTD \bTD Something 
\eTD \eTR
\bTR \bTD \dontleavehmode\itemtag\quad Something \eTD \bTD Something 
\eTD \eTR

\eTABLE
\stopitemize

\startsetups [alexandre:2]
    \setupTABLE [start] [frame=off]
    \setupTABLE [c] [2] [width=.2\textwidth]
    \setupTABLE [c] [3] [width=.6\textwidth]
\stopsetups

\startitemize [a] [right=),stopper=]
\bTABLE[setups=alexandre:2]
\bTR \bTD \itemtag \eTD \bTD Something \eTD \bTD Something \eTD \eTR
\bTR \bTD \itemtag \eTD \bTD Something \eTD \bTD Something \eTD \eTR
\bTR \bTD \itemtag \eTD \bTD Something \eTD \bTD Something \eTD \eTR
\bTR \bTD \itemtag \eTD \bTD Something \eTD \bTD Something \eTD \eTR
\eTABLE
\stopitemize

\startitemize [a] [right=),stopper=]
\starttabulate[|l|lw(.2\textwidth)|p|]
\NC \itemtag \NC Something \NC Something \NC\NR
\NC \itemtag \NC Something \NC Something \NC\NR
\NC \itemtag \NC Something \NC Something \NC\NR
\NC \itemtag \NC Something \NC Something \NC\NR
\stoptabulate
\stopitemize

\startitemize [a] [right=),stopper=]
\starttabulate[|l|lw(.2\textwidth)|p|]
\NI Something \NC Something \NC\NR
\NI Something \NC Something \NC\NR
\NI Something \NC Something \NC\NR
\NI Something \NC Something \NC\NR
\stoptabulate
\stopitemize

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Neste itemize in table (or vice-versa?)

2021-11-20 Thread Alexandre Christe via ntg-context
Dear all,

I'm trying something out in LMTX, which is to combine itemize with a table.
Application could be to put a question and the answer in the next column.

A minimal example would be:

\starttext
\startitemize [a] [right=),stopper=]
\bTABLE[frame=off]
  \setupTABLE[column][1] [width=.3\textwidth]
  \setupTABLE[column][2] [width=.6\textwidth]
\bTR
  \bTD \item Something \eTD
  \bTD Something \eTD
\eTR
\bTR
  \bTD \item Something \eTD
  \bTD Something \eTD
\eTR
\bTR
  \bTD \item Something \eTD
  \bTD Something \eTD
\eTR
\bTR
  \bTD \item Something \eTD
  \bTD Something \eTD
\eTR
\eTABLE
\stopitemize
\stoptext

The numbering unfortunately starts with i) instead of a). Any
recommendation which approach shall be preferred?

Thanks in advance!
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question on style-italic vs style=italicface

2021-10-24 Thread Wolfgang Schuster via ntg-context

Henning Hraban Ramm via ntg-context schrieb am 02.10.2021 um 11:46:

Am 02.10.2021 um 10:34 schrieb Wolfgang Schuster via ntg-context 
:

Rik Kabel via ntg-context schrieb am 27.09.2021 um 00:49:

Wolfgang (off-list),

It is simply wrong to say that \italicface as defined gives only \it or \bi as 
a result. Look at the definition. If the current fontalternative is it \it it 
will give a \tf result. It is sensitive to the current state in a similar way 
that \em and \emph are, but it will always give an italic or roman result.


If we leave the comparisons between \em and \italicface aside and talk only 
about the results from \italicface we have a common ground.

You're right the results from \italicface aren't predictable and a fix is 
needed but the same applies also to \boldface, \slantedface and \typeface.

Attached is the output from a modified version of the styling command (the \sc 
column is the fallback style). \swapface is unchanged and I'm not sure about 
its output because it uses the \em code for italic and slanted which means 
\setupbodyfontenvironment[default][em=blue] affects also the \swapface results.

Thank you very much for attacking and clarifying this! It confused me from the 
beginning...


Just a short update on the topic. The following four font switches 
result now in predictable output (e.g. \typeface produces always upright 
text which is either \tf or \bf):


    - \typeface
    - \italicface
    - \slantedface
    - \boldface

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Converting LaTeX math to ConTeXt

2021-10-10 Thread Jason Ross via ntg-context

On 10/10/21 3:23 AM, Hans Hagen wrote:


what do you mean with 'quite different'

Hans


Hi Hans,

My current stumbling block is dealing with the `align` environment.
I replace `\begin{align}/\end{align}` with
`\startmathalignment/\stopmathalignment`, and replace all `&` characters
with `\NC` and `\\` with `\NR`, which is simple enough.
However, the two commands work differently - `align` doesn't care
how many columns you have, but `mathalignment` does. This makes dealing
with aligned equations containing matrices hard - you can't just count
how many `&`s you see before you get to a `\\`, because you might be
inside of a matrix in which case they don't count.

Also, `mathalignment` and `matrix` want a leading `\NC` to start each
column, while LaTeX `align` and `matrix` just want `&` as a column
separator.

These are just a couple examples, but in general it's not enough to do
naive string substitution in LaTeX and get valid ConTeXt back, and my
patchwork solutions are starting to smell.

Thanks,

Jason
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Something smells rotten in the state of luametatex...

2021-10-08 Thread Hans Hagen via ntg-context

On 10/8/2021 6:09 PM, Thomas A. Schmitz via ntg-context wrote:


Hi all,

I have a document here for one of my classes: xml processed via context, 
some layers, some two column paragraphs, a bibliography, nothing out of 
the ordinary. With mkiv, it compiles cleanly:


mkiv lua stats  > used engine: luatex version: 1.13, functionality 
level: 7420, banner: this is luatex, version 1.13.0 (tex live 2021)

mkiv lua stats  > used hash slots: 48846 of 65536 + 25
mkiv lua stats  > lua properties: engine: lua 5.3, used memory: 212 MB, 
ctx: 210 MB, max: unknown MB, hash chars: min(64,40), symbol mask: utf 
(τεχ)
mkiv lua stats  > runtime: 2.775 seconds, 119 processed pages, 119 
shipped pages, 42.883 pages/second

system  | total runtime: 5.996 seconds

When I compile the same document with luametatex, things slow down to a 
crawl:


mkiv lua stats  > used engine: luametatex version: 2.0921, functionality 
level: 20210903, format id: 594, compiler: gcc
mkiv lua stats  > tex properties: 740039 hash slots used of 2097152, 
48372 control sequences, approximate memory usage: 36 MB
mkiv lua stats  > lua properties: engine: lua 5.4, used memory: 100 MB, 
ctx: 93 MB, max: 138 MB, symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 27.509 seconds, 119 processed pages, 119 
shipped pages, 4.326 pages/second

system  | total runtime: 139.458 seconds of 139.493 seconds

So, it takes more than 20 times as long... The CPU of my computer goes 
up to 100 %, and the entire machine sometimes becomes unresponsive 
during the run. Obviously, I can't provide a MWE, but this seems 
bizarre. One thing I see on my terminal: there are hundreds of lines 
like this


Overfull \hbox (0.8pt too wide) in paragraph at lines 18--18
6:17:  [glue][glue][glue][boundary][hlist][penalty][glue][hlist][penalty] >[glue][glue]


It's almost like some debug setting has been triggered. But that may be 
a red herring. Anyway, I just wanted to report this; maybe some bigger 
problem (with the binary or the format?) is lurking somewhere.
no, that's just a more verbose 'overfull box' message ... does adding 
\dontcomplain help? (After all you can live with .8pt which smells like 
2 * .4pt which is the default rule width so maybe some frame stricks out)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Something smells rotten in the state of luametatex...

2021-10-08 Thread Thomas A. Schmitz via ntg-context


Hi all,

I have a document here for one of my classes: xml processed via context, 
some layers, some two column paragraphs, a bibliography, nothing out of 
the ordinary. With mkiv, it compiles cleanly:


mkiv lua stats  > used engine: luatex version: 1.13, functionality 
level: 7420, banner: this is luatex, version 1.13.0 (tex live 2021)

mkiv lua stats  > used hash slots: 48846 of 65536 + 25
mkiv lua stats  > lua properties: engine: lua 5.3, used memory: 212 MB, 
ctx: 210 MB, max: unknown MB, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 2.775 seconds, 119 processed pages, 119 
shipped pages, 42.883 pages/second

system  | total runtime: 5.996 seconds

When I compile the same document with luametatex, things slow down to a 
crawl:


mkiv lua stats  > used engine: luametatex version: 2.0921, functionality 
level: 20210903, format id: 594, compiler: gcc
mkiv lua stats  > tex properties: 740039 hash slots used of 2097152, 
48372 control sequences, approximate memory usage: 36 MB
mkiv lua stats  > lua properties: engine: lua 5.4, used memory: 100 MB, 
ctx: 93 MB, max: 138 MB, symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 27.509 seconds, 119 processed pages, 119 
shipped pages, 4.326 pages/second

system  | total runtime: 139.458 seconds of 139.493 seconds

So, it takes more than 20 times as long... The CPU of my computer goes 
up to 100 %, and the entire machine sometimes becomes unresponsive 
during the run. Obviously, I can't provide a MWE, but this seems 
bizarre. One thing I see on my terminal: there are hundreds of lines 
like this


Overfull \hbox (0.8pt too wide) in paragraph at lines 18--18
6:17:  [glue][glue][glue][boundary][hlist][penalty][glue][hlist][penalty] >[glue][glue]


It's almost like some debug setting has been triggered. But that may be 
a red herring. Anyway, I just wanted to report this; maybe some bigger 
problem (with the binary or the format?) is lurking somewhere.


All best

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question on style-italic vs style=italicface

2021-10-02 Thread Henning Hraban Ramm via ntg-context

> Am 02.10.2021 um 10:34 schrieb Wolfgang Schuster via ntg-context 
> :
> 
> Rik Kabel via ntg-context schrieb am 27.09.2021 um 00:49:
>> 
>> Wolfgang (off-list),
>> 
>> It is simply wrong to say that \italicface as defined gives only \it or \bi 
>> as a result. Look at the definition. If the current fontalternative is it 
>> \it it will give a \tf result. It is sensitive to the current state in a 
>> similar way that \em and \emph are, but it will always give an italic or 
>> roman result.
>> 
> 
> If we leave the comparisons between \em and \italicface aside and talk only 
> about the results from \italicface we have a common ground.
> 
> You're right the results from \italicface aren't predictable and a fix is 
> needed but the same applies also to \boldface, \slantedface and \typeface.
> 
> Attached is the output from a modified version of the styling command (the 
> \sc column is the fallback style). \swapface is unchanged and I'm not sure 
> about its output because it uses the \em code for italic and slanted which 
> means \setupbodyfontenvironment[default][em=blue] affects also the \swapface 
> results.

Thank you very much for attacking and clarifying this! It confused me from the 
beginning...

Hraban
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Question on style-italic vs style=italicface

2021-10-02 Thread Wolfgang Schuster via ntg-context

Rik Kabel via ntg-context schrieb am 27.09.2021 um 00:49:


Wolfgang (off-list),

It is simply wrong to say that \italicface as defined gives only \it 
or \bi as a result. Look at the definition. If the current 
fontalternative is it \it it will give a \tf result. It is sensitive 
to the current state in a similar way that \em and \emph are, but it 
will always give an italic or roman result.




If we leave the comparisons between \em and \italicface aside and talk 
only about the results from \italicface we have a common ground.


You're right the results from \italicface aren't predictable and a fix 
is needed but the same applies also to \boldface, \slantedface and 
\typeface.


Attached is the output from a modified version of the styling command 
(the \sc column is the fallback style). \swapface is unchanged and I'm 
not sure about its output because it uses the \em code for italic and 
slanted which means \setupbodyfontenvironment[default][em=blue] affects 
also the \swapface results.


Wolfgang



emphasis.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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] tabulate with lp columns

2021-09-19 Thread Henning Hraban Ramm via ntg-context


> Am 19.09.2021 um 13:27 schrieb Wolfgang Schuster via ntg-context 
> :
> 
> Henning Hraban Ramm via ntg-context schrieb am 19.09.2021 um 13:14:
>>> Am 19.09.2021 um 13:01 schrieb Wolfgang Schuster via ntg-context 
>>> :
>>> 
>>> Henning Hraban Ramm via ntg-context schrieb am 19.09.2021 um 12:44:
>>>> There are some problems in the following MWEs.
>>>> 
>>>> First example looks the same with MkIV and LMTX, second uses \NS that is 
>>>> only in LMTX.
>>>> 
>>>> The first column is justified even if it’s defined as left aligned; this 
>>>> happens also with a simple "l" column. With "p" the width is ignored.
>>> You're missing a \NC at the start of each row.
>> You’re right; in testing I got an empty column when I started with \NC (and 
>> wasn’t sure any more if something changed that I forgot), but I probably 
>> missed one line or something.
>> 
>> The problem with \NS remains:
>> 
>> \starttabulate[|lp(.2\textwidth)|lp(.2\textwidth)|lp(.2\textwidth)|lp(.2\textwidth)|]
>> \NC Default \NC Linux \NC MacOS \NC Windows \NC\NR
>> \HL
>> \NC Text processor \NS[3][l] LibreOffice or else \NC\NR
>> \NC Drawing\NS[2][lp(.4\textwidth)] Inkscape \NC Corel Draw \NC\NR
>> \NC Simple Editor  \NC Nano \NC TextEdit \NC Notepad \NC\NR
>> \stoptabulate
> 
> You have to pass the number of additional columns are argument.

Ah, i.e. one less than I was expecting from any other column span syntax...

Thank you!

Hraban
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] tabulate with lp columns

2021-09-19 Thread Wolfgang Schuster via ntg-context

Henning Hraban Ramm via ntg-context schrieb am 19.09.2021 um 13:14:

Am 19.09.2021 um 13:01 schrieb Wolfgang Schuster via ntg-context 
:

Henning Hraban Ramm via ntg-context schrieb am 19.09.2021 um 12:44:

There are some problems in the following MWEs.

First example looks the same with MkIV and LMTX, second uses \NS that is only 
in LMTX.

The first column is justified even if it’s defined as left aligned; this happens also with a simple 
"l" column. With "p" the width is ignored.

You're missing a \NC at the start of each row.

You’re right; in testing I got an empty column when I started with \NC (and 
wasn’t sure any more if something changed that I forgot), but I probably missed 
one line or something.

The problem with \NS remains:

\starttabulate[|lp(.2\textwidth)|lp(.2\textwidth)|lp(.2\textwidth)|lp(.2\textwidth)|]
\NC Default \NC Linux \NC MacOS \NC Windows \NC\NR
\HL
\NC Text processor \NS[3][l] LibreOffice or else \NC\NR
\NC Drawing\NS[2][lp(.4\textwidth)] Inkscape \NC Corel Draw \NC\NR
\NC Simple Editor  \NC Nano \NC TextEdit \NC Notepad \NC\NR
\stoptabulate


You have to pass the number of additional columns are argument.

\starttext

\starttabulate[|*{4}{lp|}]
\NC Default    \NC Linux \NC MacOS    \NC Windows    \NC\NR
\HL
\NC Text processor \NS[2][p] LibreOffice or else \NC\NR
\NC Drawing    \NS[1][p]Inkscape  \NC Corel Draw \NC\NR
\NC Simple Editor  \NC Nano  \NC TextEdit \NC Notepad    \NC\NR
\stoptabulate

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] tabulate with lp columns

2021-09-19 Thread Henning Hraban Ramm via ntg-context

> Am 19.09.2021 um 13:01 schrieb Wolfgang Schuster via ntg-context 
> :
> 
> Henning Hraban Ramm via ntg-context schrieb am 19.09.2021 um 12:44:
>> There are some problems in the following MWEs.
>> 
>> First example looks the same with MkIV and LMTX, second uses \NS that is 
>> only in LMTX.
>> 
>> The first column is justified even if it’s defined as left aligned; this 
>> happens also with a simple "l" column. With "p" the width is ignored.
> 
> You're missing a \NC at the start of each row.

You’re right; in testing I got an empty column when I started with \NC (and 
wasn’t sure any more if something changed that I forgot), but I probably missed 
one line or something.

The problem with \NS remains:

\starttabulate[|lp(.2\textwidth)|lp(.2\textwidth)|lp(.2\textwidth)|lp(.2\textwidth)|]
\NC Default \NC Linux \NC MacOS \NC Windows \NC\NR
\HL
\NC Text processor \NS[3][l] LibreOffice or else \NC\NR
\NC Drawing\NS[2][lp(.4\textwidth)] Inkscape \NC Corel Draw \NC\NR
\NC Simple Editor  \NC Nano \NC TextEdit \NC Notepad \NC\NR
\stoptabulate


Hraban
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] tabulate with lp columns

2021-09-19 Thread Wolfgang Schuster via ntg-context

Henning Hraban Ramm via ntg-context schrieb am 19.09.2021 um 12:44:

There are some problems in the following MWEs.

First example looks the same with MkIV and LMTX, second uses \NS that is only 
in LMTX.

The first column is justified even if it’s defined as left aligned; this happens also with a simple 
"l" column. With "p" the width is ignored.


You're missing a \NC at the start of each row.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] tabulate with lp columns

2021-09-19 Thread Henning Hraban Ramm via ntg-context
There are some problems in the following MWEs.

First example looks the same with MkIV and LMTX, second uses \NS that is only 
in LMTX.


The first column is justified even if it’s defined as left aligned; this 
happens also with a simple "l" column. With "p" the width is ignored.

With \NS the alignment is also wrong in the same way.


\starttext

\starttabulate[|lp(.2\textwidth)|lp(.2\textwidth)|lp(.2\textwidth)|lp(.2\textwidth)|]
Default \NC Linux \NC MacOS \NC Windows \NC\NR
\HL
Text Proc \NC LibreOffice \NC Apple Pages   \NC MS Office (Word) \NC\NR
PDF Viewer\NC Evince  \NC Preview   \NC Edge \NC\NR
\stoptabulate


\starttabulate[|lp(.2\textwidth)|lp(.2\textwidth)|lp(.2\textwidth)|lp(.2\textwidth)|]
Default \NC Linux \NC MacOS \NC Windows \NC\NR
\HL
Text processor \NS[3][l] LibreOffice or else \NC\NR
Drawing\NS[2][lp(.4\textwidth)] Inkscape \NC Corel Draw \NC\NR
Simple Editor  \NC Nano \NC TextEdit \NC Notepad \NC\NR
\stoptabulate


\stoptext


Additional question: How would I define those columns to use the whole 
\textwidth ?


Hraban
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] update

2021-09-13 Thread Hans Hagen via ntg-context

On 9/13/2021 10:14 PM, Henning Hraban Ramm wrote:



Am 13.09.2021 um 11:12 schrieb Hans Hagen :

On 9/13/2021 10:37 AM, Henning Hraban Ramm wrote:

Am 13.09.2021 um 10:07 schrieb Hans Hagen via ntg-context :

Hi,

I uploaded a new lmtx (had forgotten to to it friday) . There are not that many 
visible changes but on is that i'm playing with some 'improvements' to inserts. 
Hopefully there are no side effects but the idea is to have somewhat better 
(more robust and predictable) support for e.g. footnotes in situations that are 
not natural to tex (like columns). The first mechanism to benefit from that is 
page columns but all that is a stepwise process. I keep track of that in yet 
another lowlevel manual. These column things are on the agenda for next month 
and beyond.

(In a next upload the new marking and tabulate optimization might become 
default but for now i test that locally.)

Hi, thank you!
I’m looking forward to these improvements, even if they won’t be in effect for 
my talk in Bassenge.
Running a project with this version, I get tons of messages like:
4:10:  
\penalty[userpenalty][color=1,colormodel=4,marks=334,snapmethod=3,breakpoint=1] 
1
4:10:  
\glue[userskip][color=1,colormodel=4,marks=334,snapmethod=3,breakpoint=1] 0.0pt 
plus 0.83287pt minus 0.41644pt
4:10:  
\penalty[userpenalty][color=1,colormodel=4,marks=334,snapmethod=3,breakpoint=1] 
1
4:10:  \glyph[32768][color=1,colormodel=4,marks=334,snapmethod=3,breakpoint=1], hyphenationmode 
"79F3F, options "80, font <36: lmmono10-regular @ 10.0pt>, glyph U+70 p
4:10:  
\penalty[userpenalty][color=1,colormodel=4,marks=334,snapmethod=3,breakpoint=1] 
1
Is this some debugging leftover or am I supposed to understand what’s wrong? ;)

hm, what command triggers that?


I don’t know yet. It seems to start in the middle of a section title in the 
first chapter of my book.


Oveefull boxes?


The footnotes unfortunately became only worse so far – often they’re 
overprinted by the running text, even without columns or grid.

I’ll try to come up with good examples, but this week is quite stuffed.

Ok.

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] update

2021-09-13 Thread Henning Hraban Ramm via ntg-context

> Am 13.09.2021 um 11:12 schrieb Hans Hagen :
> 
> On 9/13/2021 10:37 AM, Henning Hraban Ramm wrote:
>>> Am 13.09.2021 um 10:07 schrieb Hans Hagen via ntg-context 
>>> :
>>> 
>>> Hi,
>>> 
>>> I uploaded a new lmtx (had forgotten to to it friday) . There are not that 
>>> many visible changes but on is that i'm playing with some 'improvements' to 
>>> inserts. Hopefully there are no side effects but the idea is to have 
>>> somewhat better (more robust and predictable) support for e.g. footnotes in 
>>> situations that are not natural to tex (like columns). The first mechanism 
>>> to benefit from that is page columns but all that is a stepwise process. I 
>>> keep track of that in yet another lowlevel manual. These column things are 
>>> on the agenda for next month and beyond.
>>> 
>>> (In a next upload the new marking and tabulate optimization might become 
>>> default but for now i test that locally.)
>> Hi, thank you!
>> I’m looking forward to these improvements, even if they won’t be in effect 
>> for my talk in Bassenge.
>> Running a project with this version, I get tons of messages like:
>> 4:10:  
>> \penalty[userpenalty][color=1,colormodel=4,marks=334,snapmethod=3,breakpoint=1]
>>  1
>> 4:10:  
>> \glue[userskip][color=1,colormodel=4,marks=334,snapmethod=3,breakpoint=1] 
>> 0.0pt plus 0.83287pt minus 0.41644pt
>> 4:10:  
>> \penalty[userpenalty][color=1,colormodel=4,marks=334,snapmethod=3,breakpoint=1]
>>  1
>> 4:10:  
>> \glyph[32768][color=1,colormodel=4,marks=334,snapmethod=3,breakpoint=1], 
>> hyphenationmode "79F3F, options "80, font <36: lmmono10-regular @ 10.0pt>, 
>> glyph U+70 p
>> 4:10:  
>> \penalty[userpenalty][color=1,colormodel=4,marks=334,snapmethod=3,breakpoint=1]
>>  1
>> Is this some debugging leftover or am I supposed to understand what’s wrong? 
>> ;)
> hm, what command triggers that?

I don’t know yet. It seems to start in the middle of a section title in the 
first chapter of my book.

The footnotes unfortunately became only worse so far – often they’re 
overprinted by the running text, even without columns or grid.

I’ll try to come up with good examples, but this week is quite stuffed.

Hraban
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] update

2021-09-13 Thread Garulfo via ntg-context

  
  

> Hopefully there are no side effects but the idea is to have somewhat
> better (more robust and predictable) support for e.g. footnotes in 
> situations that are not natural to tex (like columns). The first 
> mechanism to benefit from that is page columns but all that is a
> stepwise process. I keep track of that in yet another lowlevel manual.
> These column things are on the agenda for next month and beyond.


Good news, thank you very much ! 
I'm fond of typesetting in columns (with footnotes and margin notes)


Garulfo




  

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] update

2021-09-13 Thread Hans Hagen via ntg-context

On 9/13/2021 10:37 AM, Henning Hraban Ramm wrote:



Am 13.09.2021 um 10:07 schrieb Hans Hagen via ntg-context :

Hi,

I uploaded a new lmtx (had forgotten to to it friday) . There are not that many 
visible changes but on is that i'm playing with some 'improvements' to inserts. 
Hopefully there are no side effects but the idea is to have somewhat better 
(more robust and predictable) support for e.g. footnotes in situations that are 
not natural to tex (like columns). The first mechanism to benefit from that is 
page columns but all that is a stepwise process. I keep track of that in yet 
another lowlevel manual. These column things are on the agenda for next month 
and beyond.

(In a next upload the new marking and tabulate optimization might become 
default but for now i test that locally.)


Hi, thank you!

I’m looking forward to these improvements, even if they won’t be in effect for 
my talk in Bassenge.


Running a project with this version, I get tons of messages like:

4:10:  
\penalty[userpenalty][color=1,colormodel=4,marks=334,snapmethod=3,breakpoint=1] 
1
4:10:  
\glue[userskip][color=1,colormodel=4,marks=334,snapmethod=3,breakpoint=1] 0.0pt 
plus 0.83287pt minus 0.41644pt
4:10:  
\penalty[userpenalty][color=1,colormodel=4,marks=334,snapmethod=3,breakpoint=1] 
1
4:10:  \glyph[32768][color=1,colormodel=4,marks=334,snapmethod=3,breakpoint=1], hyphenationmode 
"79F3F, options "80, font <36: lmmono10-regular @ 10.0pt>, glyph U+70 p
4:10:  
\penalty[userpenalty][color=1,colormodel=4,marks=334,snapmethod=3,breakpoint=1] 
1

Is this some debugging leftover or am I supposed to understand what’s wrong? ;)

hm, what command triggers that?


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] update

2021-09-13 Thread Henning Hraban Ramm via ntg-context

> Am 13.09.2021 um 10:07 schrieb Hans Hagen via ntg-context 
> :
> 
> Hi,
> 
> I uploaded a new lmtx (had forgotten to to it friday) . There are not that 
> many visible changes but on is that i'm playing with some 'improvements' to 
> inserts. Hopefully there are no side effects but the idea is to have somewhat 
> better (more robust and predictable) support for e.g. footnotes in situations 
> that are not natural to tex (like columns). The first mechanism to benefit 
> from that is page columns but all that is a stepwise process. I keep track of 
> that in yet another lowlevel manual. These column things are on the agenda 
> for next month and beyond.
> 
> (In a next upload the new marking and tabulate optimization might become 
> default but for now i test that locally.)

Hi, thank you!

I’m looking forward to these improvements, even if they won’t be in effect for 
my talk in Bassenge.


Running a project with this version, I get tons of messages like:

4:10:  
\penalty[userpenalty][color=1,colormodel=4,marks=334,snapmethod=3,breakpoint=1] 
1
4:10:  
\glue[userskip][color=1,colormodel=4,marks=334,snapmethod=3,breakpoint=1] 0.0pt 
plus 0.83287pt minus 0.41644pt
4:10:  
\penalty[userpenalty][color=1,colormodel=4,marks=334,snapmethod=3,breakpoint=1] 
1
4:10:  \glyph[32768][color=1,colormodel=4,marks=334,snapmethod=3,breakpoint=1], 
hyphenationmode "79F3F, options "80, font <36: lmmono10-regular @ 10.0pt>, 
glyph U+70 p
4:10:  
\penalty[userpenalty][color=1,colormodel=4,marks=334,snapmethod=3,breakpoint=1] 
1

Is this some debugging leftover or am I supposed to understand what’s wrong? ;)

Hraban
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] update

2021-09-13 Thread Hans Hagen via ntg-context

Hi,

I uploaded a new lmtx (had forgotten to to it friday) . There are not 
that many visible changes but on is that i'm playing with some 
'improvements' to inserts. Hopefully there are no side effects but the 
idea is to have somewhat better (more robust and predictable) support 
for e.g. footnotes in situations that are not natural to tex (like 
columns). The first mechanism to benefit from that is page columns but 
all that is a stepwise process. I keep track of that in yet another 
lowlevel manual. These column things are on the agenda for next month 
and beyond.


(In a next upload the new marking and tabulate optimization might become 
default but for now i test that locally.)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] update lmtx

2021-09-03 Thread Hans Hagen via ntg-context

Hi,

The end of the week update provides:

\starttext

\startTEXpage[offset=10pt]
\starttabulate[|c|c|c|]
\NC 1   \NC second column \NC third column \NC \NR
\NC 2   \NC second\NC third\NC \NR
\NC 3 r \NS[1][r]second & third \NC \NR
\NC 3 c \NS[1][c]second & third \NC \NR
\NC 3 l \NS[1][l]second & third \NC \NR
\stoptabulate
\stopTEXpage

\stoptext

where \NS means that there will be a span over columns (I needed such a 
span fro a manual but it only covers simple cases).


There is also a new lowlevel manual, this time on marks (aka markings), 
think of running headers and so.


I'm considering replacing the marking code by new code that I already 
have one my machine. In mkiv we;ve always used a more powerful 
alternative for the marks that than what luatex and friends provide but 
in luametatex I added a few of the missing pieces to the engine in 
addition to what already what there for a while. But I need Wolfgang to 
go over the code in order to identify possible side effects first.


Hans

ps. Because Dutch telecom (who so far took over all the providers we 
ever had so we had to change a few times) now completely quits web 
services we need to switch provider (again; so much for synergy) so the 
upcoming week there might be glitches in accessing the installer (we 
don't fallback on the garden yet).


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Incorrect rendering in Devanagari forms in some fonts

2021-09-01 Thread kauśika cittūr via ntg-context
On Wednesday, September 1, 2021 1:43:56 PM IST kauśika cittūr wrote:
> Dear All,
> 
> I have encountered a strange problem using certain Devanagari fonts for the
> Sanskrit languagein ConTeXt, wherein the rakaar ligatures are not rendered
> properly in some glyphs/conjuncts. The problem is not too easy to describe
> so please pardon this long email.
> 
> The fonts I am using are as follows:
>   • Shobhika – https://github.com/Sandhi-IITBombay/Shobhika
>   • Murty Sanskrit – https://murtylibrary.com/mcli-fonts.php
> 
> I had previously posted about this issue on TeX SE and Ulrike Fischer was
> kind enough to suggest that the problem might have something to do with the
> font rendering (since I have no issues in XeLaTeX (using Harfbuzz)):
> 
> https://tex.stackexchange.com/questions/612634/devanagari-forms-in-context-u
> sing-shobhika-font
> 
> My ConTeXt (LMTX) version is: 2021.08.30 19:56
> 
> I am using the following typescript for Murty:
> 
> \starttypescript [serif] [murty]
>   \definefontsynonym
> [Serif]
> [name:murtysanskritregular]
> [features=devanagari-two]
> \stoptypescript
> 
> \starttypescript [murty]
>   \definetypeface [murty] [rm] [serif] [murty] [default]
> \stoptypescript
> 
> and the following for Shobhika:
> 
> \starttypescript [serif] [shobhika]
>   \definefontsynonym
> [Serif]
> [name:shobhikaregular]
> [features=devanagari-two]
>   \definefontsynonym
> [SerifBold]
> [name:shobhikabold]
> [features=devanagari-two]
> \stoptypescript
> 
> \starttypescript [shobhika]
>   \definetypeface [shobhika] [rm] [serif] [shobhika]
> \stoptypescript
> 
> Below is the test file I am using to demonstrate the problem:
> 
> \setupbodyfont[shobhika]
> \starttext
> \startcolumns
> ट्रा ट्रि ट्री ट्रु द्रू ट्रे ट्रै ट्रो ट्रौ
> 
> ठ्रा ठ्रि ठ्री ठ्रु ठ्रू ठ्रे ठ्रै ठ्रो ठ्रौ
> 
> ड्रा ड्रि ड्री ड्रु ड्रू ड्रे ड्रै ड्रो ड्रौ
> 
> ढ्रा ढ्रि ढ्री ढ्रु ढ्रू ढ्रे ढ्रै ढ्रो ढ्रौ
> 
> छ्रा छ्रि छ्री छ्रु छ्रू छ्रे छ्रै छ्रो छ्रौ
> 
> \column
> क्र ख्र ग्र घ्र ण्र
> 
> च्र छ्र ज्र झ्र ञ्र
> 
> च्रे छ्रे ज्रे झ्रे ञ्रे
> 
> त्रे थ्रे द्रे ध्रे न्रे
> 
> प्र फ्र ब्र भ्र म्र
> 
> य्र ल्र व्र स्र श्र ष्र ह्र
> \stopcolumns
> \stoptext
> 
> When I use the 'devanagari-two' feature set, which sets the script tag to
> 'dev2', the rakaar forms (provided by the features 'rkrf=yes' and
> 'blwf=yes') do not render properly for some glyphs, namely the glyphs in
> the right column, enclosed in a red rectangle in the file
> 'devanagari-two-forms-shobhika.png' attached in the Drive folder here.
> 
> When I switch to using the 'devanagari-one'
> feature set (in the foregoing typescript definitions), which sets the script
> tag to 'deva', the rakaar forms in the left column are rendered incorrectly
> in
> the file 'devanagari-one-forms-shobhika.png' attached in the Drive folder
> here.
> 
> Analogous problems occur with the Murty font. Further, in the Murty font,
> one other conjunct, namely
> त् +‌ त
> does not render properly. I have highlighted this in the file
> 'murty-conjuct.png'.
> 
> The sample images demonstrating the issues are available in the following
> public Google Drive folder:
> 
> https://drive.google.com/drive/folders/1aOmPKqBzB5usVvT9g-Bxk87exyiQn7ax
> 
> I must mention once again that I have no such problems using either of these
> fonts in XeLaTeX.
> 
> What I am noticing is that this problem only occurs with consonant forms
> that have a 'circular base', i.e., have no danda (the vertical line) next
> to the character. For what it is worth, I have noticed also that I am able
> to 'circumvent' this issue if I write
> 
> छ्र‌ +‌ ​ZWS + Devanagari vowel sign
> 
> where ZWS is the zero-width space U+200B. Unfortunately, this quickly
> becomes very untenable in large documents. Since I was new to ConTeXt I did
> not venture
> to ask earlier on since I had not read much of the documentaion. Now, after
> having read quite a bit, I have mustered up the courage to ask here. As a
> stop-gap solution, I defined another font alternative with
> \definefontalternative[rk]
> and used that with a font synonym using 'devanagari-two' where necessary.
> 
> I have completely migrated (away from (Xe)LaTeX )to ConTeXt for all my
> university work which is in English with lots of mathematics. I am by no
> means an expert but I have learned very much about ConTeXt by reading the
> excellent wiki, documentation and mailing list. I have no issues using
> ConTeXt on an everyday basis for my English-language based work. It is only
> when I tried to use it for my work in Indian-langu

[NTG-context] Incorrect rendering in Devanagari forms in some fonts

2021-09-01 Thread kauśika cittūr via ntg-context
Dear All,

I have encountered a strange problem using certain Devanagari fonts for the 
Sanskrit languagein ConTeXt, wherein the rakaar ligatures are not rendered 
properly in some glyphs/conjuncts. The problem is not too easy to describe so 
please pardon this long email.

The fonts I am using are as follows: 
  • Shobhika – https://github.com/Sandhi-IITBombay/Shobhika
  • Murty Sanskrit – https://murtylibrary.com/mcli-fonts.php

I had previously posted about this issue on TeX SE and Ulrike Fischer was 
kind enough to suggest that the problem might have something to do with the 
font rendering (since I have no issues in XeLaTeX (using Harfbuzz)): 

https://tex.stackexchange.com/questions/612634/devanagari-forms-in-context-using-shobhika-font

My ConTeXt (LMTX) version is: 2021.08.30 19:56

I am using the following typescript for Murty:

\starttypescript [serif] [murty]
  \definefontsynonym 
[Serif] 
[name:murtysanskritregular] 
[features=devanagari-two]
\stoptypescript

\starttypescript [murty]
  \definetypeface [murty] [rm] [serif] [murty] [default]
\stoptypescript 

and the following for Shobhika:

\starttypescript [serif] [shobhika]
  \definefontsynonym 
[Serif] 
[name:shobhikaregular] 
[features=devanagari-two]
  \definefontsynonym 
[SerifBold] 
[name:shobhikabold]
[features=devanagari-two]
\stoptypescript

\starttypescript [shobhika]
  \definetypeface [shobhika] [rm] [serif] [shobhika]
\stoptypescript

Below is the test file I am using to demonstrate the problem:

\setupbodyfont[shobhika]
\starttext
\startcolumns
ट्रा ट्रि ट्री ट्रु द्रू ट्रे ट्रै ट्रो ट्रौ

ठ्रा ठ्रि ठ्री ठ्रु ठ्रू ठ्रे ठ्रै ठ्रो ठ्रौ

ड्रा ड्रि ड्री ड्रु ड्रू ड्रे ड्रै ड्रो ड्रौ

ढ्रा ढ्रि ढ्री ढ्रु ढ्रू ढ्रे ढ्रै ढ्रो ढ्रौ

छ्रा छ्रि छ्री छ्रु छ्रू छ्रे छ्रै छ्रो छ्रौ

\column
क्र ख्र ग्र घ्र ण्र 

च्र छ्र ज्र झ्र ञ्र

च्रे छ्रे ज्रे झ्रे ञ्रे

त्रे थ्रे द्रे ध्रे न्रे 

प्र फ्र ब्र भ्र म्र

य्र ल्र व्र स्र श्र ष्र ह्र 
\stopcolumns
\stoptext

When I use the 'devanagari-two' feature set, which sets the script tag to 
'dev2', the rakaar forms (provided by the features 'rkrf=yes' and 'blwf=yes') 
do not render properly for some glyphs, namely the glyphs in the right column, 
enclosed in a red rectangle in the file 'devanagari-two-forms-shobhika.png' 
attached in the Drive folder here.

When I switch to using the 'devanagari-one' 
feature set (in the foregoing typescript definitions), which sets the script 
tag to 'deva', the rakaar forms in the left column are rendered incorrectly  
in 
the file 'devanagari-one-forms-shobhika.png' attached in the Drive folder here.

Analogous problems occur with the Murty font. Further, in the Murty font, one 
other conjunct, namely
त् +‌ त 
does not render properly. I have highlighted this in the file 
'murty-conjuct.png'.

The sample images demonstrating the issues are available in the following 
public Google Drive folder: 

https://drive.google.com/drive/folders/1aOmPKqBzB5usVvT9g-Bxk87exyiQn7ax

I must mention once again that I have no such problems using either of these 
fonts in XeLaTeX. 

What I am noticing is that this problem only occurs with consonant forms that 
have a 'circular base', i.e., have no danda (the vertical line) next to the 
character. For what it is worth, I have noticed also that I am able to 
'circumvent' this issue if I write 

छ्र‌ +‌ ​ZWS + Devanagari vowel sign

where ZWS is the zero-width space U+200B. Unfortunately, this quickly becomes 
very untenable in large documents. Since I was new to ConTeXt I did not 
venture 
to ask earlier on since I had not read much of the documentaion. Now, after 
having read quite a bit, I have mustered up the courage to ask here. As a 
stop-gap solution, I defined another font alternative with
\definefontalternative[rk]
and used that with a font synonym using 'devanagari-two' where necessary. 

I have completely migrated (away from (Xe)LaTeX )to ConTeXt for all my 
university work which is in English with lots of mathematics. I am by no means 
an expert but I have learned very much about ConTeXt by reading the excellent 
wiki, documentation and mailing list. I have no issues using ConTeXt on an 
everyday basis for my English-language based work. It is only when I tried to 
use it for my work in Indian-languages that I ran into this issue.

I request your kind help in this matter. I really want to be able to use 
ConTeXt for these Indic works. I will be grateful for any help and/or 
guidance.

Many thanks,
kauśika
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Handling of negative values in the statistical-charts?

2021-08-28 Thread Ramkumar KB via ntg-context
Hi,

I have added an 'advanced' type for line & bar graphs to handle the use
case for -ve y-values / 4th quadrant graphs. It works similar to 'basic'
but works for -ve y-values (i.e. for the 4th quadrant).

PFA the amended lua file (zip file) and sample of line graph.

\def\edudataone{-10,35.55,-20.0,33,31,-25,-32}
\def\yearlabelstwo{2013,2014,2015,2016,
2017}

\linechart[basic][
ylength=5,
xscale=1.6, yscale=0.1,
left=0.5,
distance=1.2,
linecolor=limegreen, linewidth=1.5,
dotscolor=islamicgreen,
dotswidth=8, dotslabels=yes,
axesunits=yes,
xunit=Year,
yunit=Number of graduates
(thousands)][
data={\edudataone},
xlabels={\yearlabelstwo}]

\linechart[advanced][
ylength=5,
xscale=1.6, yscale=0.1,
left=0.5,
distance=1.2,
linecolor=limegreen, linewidth=1.5,
dotscolor=islamicgreen,
dotswidth=8, dotslabels=yes,
axesunits=yes,
xunit=Year,
yunit=Number of graduates
(thousands)][
data={\edudataone},
xlabels={\yearlabelstwo}]

It will be fantastic to get some feedback on this from the original authors
and also next steps to add this across all the relevant charts.

Thank you,

best regards,
Ramkumar

On Sat, Aug 21, 2021 at 3:23 PM Ramkumar KB  wrote:

> Dear List,
>
> I have been exploring the use of the awesome statistical-charts
> <https://akela.mendelu.cz/~thala/statcharts/> module. So first of all, a
> big thanks to the authors of the same.
>
> I seem to have hit a snag when it comes to handling of -ve values. In my
> example (attached tex & pdf), the y-axis labels and the grids do not seem
> to be working on the -ve side (also, able to flip labels above x-axis for
> -ve values). This seems to be the case of column charts and bar charts (and
> I will test this for the other types of charts also).
>
> If this is a more generic issue across all the types, then I can
> contribute towards enhancing it (as any charts module should handle -ve
> values). Any tips or pointers would be really helpful.
>
> Thank you very much.
>
> best regards,
>
>
>


fourth_quadrant.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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Bug with mathalignment and columns

2021-08-23 Thread Jack Hill via ntg-context

Hi,

When a mathalignment is started at the end of a multi-column page ConTeXt 
places it at the start of the previous second column instead of placing it on a 
new page. Here's my code to test:

\starttext \startcolumns[n=4]
\startluacode
lorum = "Lorum ipsum dolor sit amet. "
for i = 1, 98, 1 do
context(lorum)
end
\stopluacode

\startformula \startmathalignment[n=1]
\NC y = ax \NR

\NC a^2 + b^2 = c^2 \NR

\NC x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \NR
\stopmathalignment \stopformula
\stopcolumns \stoptext

Adding text after the formula seems to fix the issue, but that means I can't 
finish the page with a formula.
It seems that it always places the formula at the top of the second column, 
regardless of how many columns there are.
It also does this even if there are still empty columns (try changing 98 to 100 
in the for loop).

Jack
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] lmtx update/t-vim (again)

2021-08-22 Thread Benjamin Buchmuller via ntg-context
Hi,

Thanks for having had a look into the t-vim. 

At least the document compiles fine (I get a PDF), although multiple complaints 
from the lua end when I use "$" or "#" in my source, for example 

#!/usr/bin/bash 

etc. culminating in

Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn''t ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing 'I}' or 'I$' or 'I\par'.

Seems as if LMTX tried to interpret something literally here …

Further, I get a lot of 

fonts   > beware: no fonts are loaded yet, using 'lm mono' in box
fonts   > checking > char i (U+00069) in font '' with id 0: missing
fonts   > checking > char n (U+0006E) in font '' with id 0: missing

warnings. Maybe some things need to be adjusted?

(Second mail with another error in LMTX follows.)

Cheers


Benjamin

> On Aug 20, 2021, at 12:00, ntg-context-requ...@ntg.nl wrote:
> 
> Hi,
> 
> Here are the highlights of todays update:
> 
> - somewhat more compact tuc files, not for all documents, but it can 
> accumulate; also less memory used then; i could bring down an extreme 2000 
> page 5 column doc tuc file down to 5% -- it was 70 MB; for the luametatex 
> manual it reducec the tuc more than 30%; hard to tell if there will be an 
> associated performance hit, but i'm sure thomas will complain if that's the 
> case
> 
> - more mp-tex-lua interfacing upgraded plus extra preliminary chapter for 
> luametafun about extensions - for taco
> 
> - a slightly more compact cache files for fonts with many (pseudo) ligatures; 
> hopefully no side effects (nothing that can't be fixed fast if noted); quite 
> probably no performance hit and maybe even some room for optimization (not 
> done yet)
> 
> - a split in the cache directory for luametatex so that we can more easilly 
> experiment without interference (so, although the above works in mkiv it's 
> not enabled there currently)
> 
> - some minor things (also in the process of splitting the codebase)
> 
> - no real changes in / additions to the luametatex binary (we're in cosmetics 
> mode now)
> 
> Hans
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Handling of negative values in the statistical-charts?

2021-08-21 Thread Ramkumar KB via ntg-context
Dear List,

I have been exploring the use of the awesome statistical-charts
<https://akela.mendelu.cz/~thala/statcharts/> module. So first of all, a
big thanks to the authors of the same.

I seem to have hit a snag when it comes to handling of -ve values. In my
example (attached tex & pdf), the y-axis labels and the grids do not seem
to be working on the -ve side (also, able to flip labels above x-axis for
-ve values). This seems to be the case of column charts and bar charts (and
I will test this for the other types of charts also).

If this is a more generic issue across all the types, then I can contribute
towards enhancing it (as any charts module should handle -ve values). Any
tips or pointers would be really helpful.

Thank you very much.

best regards,


columnchart_with_negative.pdf
Description: Adobe PDF document


columnchart_with_negative.tex
Description: Binary data
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] lmtx update

2021-08-19 Thread Hans Hagen via ntg-context

On 8/19/2021 10:07 PM, Aditya Mahajan via ntg-context wrote:

On Thu, 19 Aug 2021, Hans Hagen via ntg-context wrote:


Hi,

Here are the highlights of todays update:

- somewhat more compact tuc files, not for all documents, but it can
accumulate; also less memory used then; i could bring down an extreme
2000 page 5 column doc tuc file down to 5% -- it was 70 MB; for the
luametatex manual it reducec the tuc more than 30%; hard to tell if
there will be an associated performance hit, but i'm sure thomas will
complain if that's the case


I never realized that tuc files can grow so big. For big documents, would it 
make sense to simply read and write zipped tuc files?
normally they are not that large but when you enable for instance 
mechanisms that need positioning they can grow large .. zipping makes 
for less bytes but still large files and the overhead for serialization 
stays


(to some extend trying to make these things small is like compression 
but in a different way .. could be a nice topic for a ctx meeting)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] lmtx update

2021-08-19 Thread Aditya Mahajan via ntg-context
On Thu, 19 Aug 2021, Hans Hagen via ntg-context wrote:

> Hi,
> 
> Here are the highlights of todays update:
> 
> - somewhat more compact tuc files, not for all documents, but it can 
> accumulate; also less memory used then; i could bring down an extreme 
> 2000 page 5 column doc tuc file down to 5% -- it was 70 MB; for the 
> luametatex manual it reducec the tuc more than 30%; hard to tell if 
> there will be an associated performance hit, but i'm sure thomas will 
> complain if that's the case

I never realized that tuc files can grow so big. For big documents, would it 
make sense to simply read and write zipped tuc files?

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] lmtx update

2021-08-19 Thread Hans Hagen via ntg-context

Hi,

Here are the highlights of todays update:

- somewhat more compact tuc files, not for all documents, but it can 
accumulate; also less memory used then; i could bring down an extreme 
2000 page 5 column doc tuc file down to 5% -- it was 70 MB; for the 
luametatex manual it reducec the tuc more than 30%; hard to tell if 
there will be an associated performance hit, but i'm sure thomas will 
complain if that's the case


- more mp-tex-lua interfacing upgraded plus extra preliminary chapter 
for luametafun about extensions - for taco


- a slightly more compact cache files for fonts with many (pseudo) 
ligatures; hopefully no side effects (nothing that can't be fixed fast 
if noted); quite probably no performance hit and maybe even some room 
for optimization (not done yet)


- a split in the cache directory for luametatex so that we can more 
easilly experiment without interference (so, although the above works in 
mkiv it's not enabled there currently)


- some minor things (also in the process of splitting the codebase)

- no real changes in / additions to the luametatex binary (we're in 
cosmetics mode now)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Progressively encouraging page/column breaks at \blank with penalties

2021-08-15 Thread Joey McCollum via ntg-context
That works for my purposes; thank you for letting me know about it!

Joey

On Sun, Aug 15, 2021 at 1:53 AM Aditya Mahajan via ntg-context <
ntg-context@ntg.nl> wrote:

> On Sun, 15 Aug 2021, Joey McCollum via ntg-context wrote:
>
> > Hi,
> >
> > I'm trying to implement a section break marker in a grid layout. At a
> > section break, two lines of space should separate the subsequent segments
> > of text (just plain paragraphs, in this case), and a symbol (in the
> example
> > below, "X") should be set in the middle of these two lines. For my
> > purposes, the section break symbol should never occur at the top of a
> page
> > or column, and it is more desirable to have a page or column end with the
> > section break symbol than to have a single orphaned line follow the
> symbol
> > at the end of the page or column. Based on these constraints, I thought
> > that using the "samepage" and "preference" options for the first and
> second
> > line breaks would work nicely:
> >
> > ```
> > \define\SectionBreak{%
> > \blank[halfline, samepage]% non-breaking to ensure that no column
> > begins with the section break symbol
> > \startalignment[middle]%
> > {X}% section break symbol
> > \stopalignment%
> > \blank[halfline, preference]% this can (and, if possible, should) be
> > broken across a column
> > ```
> >
> > This does successfully prevent the placement of the symbol at the top of
> a
> > page/column, but it doesn't encourage the placement of the symbol at the
> > end of a page/column as often as I would like.
>
> Depending on what you want, you can try adding \testpage[n] (where n is a
> number). This checks if the remainder of the page has enough space for n
> lines; if not, then it issues a page-break.
>
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Progressively encouraging page/column breaks at \blank with penalties

2021-08-14 Thread Aditya Mahajan via ntg-context
On Sun, 15 Aug 2021, Joey McCollum via ntg-context wrote:

> Hi,
> 
> I'm trying to implement a section break marker in a grid layout. At a
> section break, two lines of space should separate the subsequent segments
> of text (just plain paragraphs, in this case), and a symbol (in the example
> below, "X") should be set in the middle of these two lines. For my
> purposes, the section break symbol should never occur at the top of a page
> or column, and it is more desirable to have a page or column end with the
> section break symbol than to have a single orphaned line follow the symbol
> at the end of the page or column. Based on these constraints, I thought
> that using the "samepage" and "preference" options for the first and second
> line breaks would work nicely:
> 
> ```
> \define\SectionBreak{%
> \blank[halfline, samepage]% non-breaking to ensure that no column
> begins with the section break symbol
> \startalignment[middle]%
> {X}% section break symbol
> \stopalignment%
> \blank[halfline, preference]% this can (and, if possible, should) be
> broken across a column
> ```
> 
> This does successfully prevent the placement of the symbol at the top of a
> page/column, but it doesn't encourage the placement of the symbol at the
> end of a page/column as often as I would like. 

Depending on what you want, you can try adding \testpage[n] (where n is a 
number). This checks if the remainder of the page has enough space for n lines; 
if not, then it issues a page-break.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Progressively encouraging page/column breaks at \blank with penalties

2021-08-14 Thread Joey McCollum via ntg-context
Hi,

I'm trying to implement a section break marker in a grid layout. At a
section break, two lines of space should separate the subsequent segments
of text (just plain paragraphs, in this case), and a symbol (in the example
below, "X") should be set in the middle of these two lines. For my
purposes, the section break symbol should never occur at the top of a page
or column, and it is more desirable to have a page or column end with the
section break symbol than to have a single orphaned line follow the symbol
at the end of the page or column. Based on these constraints, I thought
that using the "samepage" and "preference" options for the first and second
line breaks would work nicely:

```
\define\SectionBreak{%
\blank[halfline, samepage]% non-breaking to ensure that no column
begins with the section break symbol
\startalignment[middle]%
{X}% section break symbol
\stopalignment%
\blank[halfline, preference]% this can (and, if possible, should) be
broken across a column
```

This does successfully prevent the placement of the symbol at the top of a
page/column, but it doesn't encourage the placement of the symbol at the
end of a page/column as often as I would like. I tried replacing the
"preference" option with options with better negative penalties, like
"penalty:-1000", "penalty:-2000", and even "penalty:-5000", but these
didn't make any difference. The option "penalty:-1" trivially works,
but it forces a page/column break at every section break marker, which is
far too extreme.

Is this normal behavior? I would have thought that progressively more
negative penalties would gradually encourage page/column breaks, but this
doesn't seem to happen. In the following MWE, the "preference" and
"penalty" options (apart from "penalty:-1") for the second line break
don't change the total page count or appearance of the final page at all
(which would be expected in a document of this size):

```

\setuplayout[

grid=yes %enable baseline grid

]


\setupinterlinespace[18bp] % text line spacing


%Define macro for section break:

\define\SectionBreak{%

\blank[halfline, samepage]%non-breaking to ensure that no column begins
with the section break symbol

\startalignment[middle]%

{X}% section break symbol

\stopalignment%

\blank[halfline]% a column break here is neither encouraged nor discouraged

% \blank[halfline, preference]% this should encourage a column break here,
but it doesn't seem to make a difference

% \blank[halfline, penalty:-1000]% still no difference

% \blank[halfline, penalty:-2000]% still no difference

% \blank[halfline, penalty:-5000]% still no difference

% \blank[halfline, penalty:-1]% this works, but it is too extreme!

}


%Set things up for fakewords:

\usemodule[visual]

\setupsystem[random=10]


\starttext

\dorecurse{400}{\fakewords{20}{100}\SectionBreak}

\stoptext
```

As always, any help is appreciated!

Joey
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


<    1   2   3   4   5   6   7   8   9   10   >