[NTG-context] Re: transparent color

2024-05-06 Thread Jacob Kauffmann via ntg-context


> Am 06.05.2024 um 10:41 schrieb Hans van der Meer via ntg-context 
> :
> 
> I would like to use a transparent version of an existing color. Thus
> \definecolor[transparentcolor][color,t=0.2,a=1]
> instead of
> \definecolor[transparentcolor][r=..,g=..,b=..,t=0.2,a=1]
> because I do not know the rgb values of the color that must be made 
> transparent, only its name.
> 
> How to accomplish? 

I think like this:

\definecolor[myred][r=.5]
\defineprocesscolor[myredish][myred][a=1,t=.2]
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: empty line before typebuffer

2023-07-30 Thread Jacob Kauffmann via ntg-context
It comes from framedtext:

\starttext

\startbuffer
\samplefile{tufte}
\stopbuffer

\framedtext[strut=no]{\typebuffer[option=tex]}

\stoptext

Best,
Jacob

> Am 30.07.2023 um 21:14 schrieb Henning Hraban Ramm :
> 
> Yet another issue:
> 
> \typebuffer always starts with a blank line.
> Is this a bug, or how can I disable it?
> 
> Hraban
> 
> MWE:
> """
> \starttext
> 
> \startbuffer
> \samplefile{tufte}
> \stopbuffer
> 
> \framedtext{\typebuffer[option=tex]}
> 
> \stoptext
> """
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___



signature.asc
Description: Message signed with OpenPGP
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] \version[temporary] fatal error

2023-07-23 Thread Jacob Kauffmann via ntg-context
Hi all,

\version[temporary] produces an error for me (see below).
Is this a permanent change, or is this version really just temporary? ;)

All the best,
Jacob

Missing number, treated as zero



r

 \currentnote
\vskip 6\points \hbox to \makeupwidth {\infofont \getmessage \m!system 
{27}:\space \currentdate \quad \donefalse \ifcstok \currentproject
\currentproduct \ifcstok \currentproduct \currentcomponent \donetrue \fi 
\fi \ifdone \donefalse \else \ifempty \
 \page_info_add_to_box
#1->\scratchdimen \wd #1\setbox \b_page_versions \vpack to \ht #1{\vfill 
\settexthoffset \hsize \dimexpr \scratchdimen -2\texthoffset \relax \hkern 
\texthoffset \vbox to \zeropoint {\vss \page_info_place_info
}\vkern \bodyfontsize }\dp \b_page_versio
 \page_boxes_constructed_page_body
... \bgroup \boxmaxdepth \maxdimen \dontcomplain 
\page_marks_synchronize_page {#2}\page_boxes_construct_content \pagebox 
{#1}{#2}\page_backgrounds_add_to_main \pagebox \page_boxes_apply_offsets 
\pagebox \page_info_add_to_box \pagebox
\ifcase \page ...
 \page_boxes_constructed_page
...everybeforepagebody \starttextproperties \checkmarginblocks \expand 
\beforeeverypage \normalexpanded {\global \beforepage \emptytoks \expand 
\beforepage }\inpagebodytrue \pagebodymode \plusone 
\page_boxes_constructed_page_body #1#2
\normalexpand ...
 ...


\stoptext

1 >>  \version[temporary]
2
3 \starttext
4 \input{tufte}
5 \stoptext
6
A number should have been here; I inserted '0'. (If you can't figure out why I
needed to see a number, look up 'weird error' in the index to The TeXbook.)
mtx-context | fatal error: return code: 1


signature.asc
Description: Message signed with OpenPGP
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

Re: [NTG-context] bug $\vec{}$

2023-01-20 Thread Jacob Kauffmann via ntg-context
Not sure if this is related in any way, but \overset behaves weirdly with the 
equal sign:

\startformula
\overset{weird}{=}
\stopformula

(workaround/solution is \overset{weird}{\mathop{=}}, or \mathop{=}^{weird})



signature.asc
Description: Message signed with OpenPGP
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Issue with location parameter in matrix

2023-01-09 Thread Jacob Kauffmann via ntg-context
One trick is to wrap the matrices inside a framed environment and putting the 
location parameter there:

\starttext

\startformula
\startmatrix[left={\left(},right={\right)}]
  \NC A \NC B \NR \NC C \NC D \NR
\stopmatrix
=
\startframed[location=top,frame=no,offset=none]
\startmatrix[left={\left(},right={\right)}]
  \NC A \NC B \NR \NC C \NC D \NR
\stopmatrix
\stopframed
=
\startframed[location=bottom,frame=no,offset=none]
\startmatrix[left={\left(},right={\right)}]
  \NC A \NC B \NR \NC C \NC D \NR
\stopmatrix
\stopframed
\stopformula

\stoptext

> Am 06.01.2023 um 17:48 schrieb Jacob Kauffmann via ntg-context 
> :
> 
> Signierter PGP-Teil
> Hi all,
> 
> Thank you for your recent assistance with calligraphic math fonts.
> 
> I am trying to use a matrix example from math-ali.mkxl, but I am running into 
> an issue.
> When I try to use the location parameter, I receive the error
>   A  was supposed to be here.
> 
> I have also tried both location=bottom and location=top, but both give the 
> same error.
> 
> Do you have any ideas on how I can get the matrix in the desired locations?
> Thank you in advance for your help.
> 
> Best regards,
> Jacob
> 
> \starttext
> 
> \startformula
> \startmatrix[left={\left(},right={\right)}]
>   \NC A \NC B \NR \NC C \NC D \NR
> \stopmatrix
> =
> \startmatrix[left={\left(},right={\right)},location=low]
>   \NC A \NC B \NR \NC C \NC D \NR
> \stopmatrix
> =
> \startmatrix[left={\left(},right={\right)},location=high]
>   \NC A \NC B \NR \NC C \NC D \NR
> \stopmatrix
> \stopformula
> 
> \stoptext
> 
> 



signature.asc
Description: Message signed with OpenPGP
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Issue with location parameter in matrix

2023-01-06 Thread Jacob Kauffmann via ntg-context
Hi all,

Thank you for your recent assistance with calligraphic math fonts.

I am trying to use a matrix example from math-ali.mkxl, but I am running into 
an issue.
When I try to use the location parameter, I receive the error
A  was supposed to be here.

I have also tried both location=bottom and location=top, but both give the same 
error.

Do you have any ideas on how I can get the matrix in the desired locations?
Thank you in advance for your help.

Best regards,
Jacob

\starttext

\startformula
\startmatrix[left={\left(},right={\right)}]
  \NC A \NC B \NR \NC C \NC D \NR
\stopmatrix
=
\startmatrix[left={\left(},right={\right)},location=low]
  \NC A \NC B \NR \NC C \NC D \NR
\stopmatrix
=
\startmatrix[left={\left(},right={\right)},location=high]
  \NC A \NC B \NR \NC C \NC D \NR
\stopmatrix
\stopformula

\stoptext


signature.asc
Description: Message signed with OpenPGP
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] problem with Segoe Ui Symbol as fallback font

2023-01-04 Thread Jacob Kauffmann via ntg-context
The problem is that now that \bf, \it and so on stopped working outside math 
mode.
A workaround is to add \rm after \starttext.

Maybe the developers can shed some light :)
Please find MWE below.

Cheers,
Jacob

\definefontfallback[cal-fallback][name:modern][uppercasescript,lowercasescript]

\starttypescript[mainface]
  \definetypeface[mainface][rm][serif][pagella][default]
  \definetypeface[mainface][ss][sans] [modern]  [default][rscale=1.075]
  \definetypeface[mainface][tt][mono] [modern]  [default][rscale=1.075]
  \definetypeface[mainface][mm][math] [pagella][default][fallbacks=cal-fallback]
\stoptypescript

\definefontfamily[mainface][mm][mainface]
\definefontfamily[mainface][rm][pagella][bf=style:bold]
\usetypescript[mainface]
\setupbodyfont[mainface]

\startbuffer
The quick brown fox jumps over the lazy dog
\stopbuffer

\starttext
% \rm % works
{\rm \getbuffer}\par
{\ss \getbuffer}\par
{\tt \getbuffer}\par
{\bf \getbuffer}\par
{\it \getbuffer}\par
{\sl \getbuffer}\par
{\bi \getbuffer}\par
{\bs \getbuffer}\par
{\sc \getbuffer}

Should be Palatino: $x + y$ $f({\bi x})$

Should be Latin Modern: ${\cal I}$ $\mathcal{I}$ $\mathscr{I}$
\stoptext


signature.asc
Description: Message signed with OpenPGP
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] problem with Segoe Ui Symbol as fallback font

2023-01-04 Thread Jacob Kauffmann via ntg-context
Hi Hraban,

I had a similar problem with math fallbacks (no errors, fallbacks not used) and 
just found a solution.
Please find a small example below.

I don't understand why we need the line \definefontfamily, but it's necessary 
for the fallbacks to work.
Also, it stops working when I do \setupbodyfont[mainface,rm].

Cheers,
Jacob

\definefontfallback[cal-fallback][name:modern][uppercasescript,lowercasescript]

\starttypescript[mainface]
  \definetypeface[mainface][rm][serif][palatino][default]
  \definetypeface[mainface][ss][sans] [modern]  [default][rscale=1.075]
  \definetypeface[mainface][tt][mono] [modern]  [default][rscale=1.075]
  \definetypeface[mainface][mm][math] 
[palatino][default][fallbacks=cal-fallback]
\stoptypescript

\definefontfamily[mainface][math][]
\usetypescript[mainface]
\setupbodyfont[mainface]

\starttext
{\rm \input ward }

{\ss \input ward }

{\tt \input ward }

Should be Palatino: $x + y$

Should be Latin Modern: ${\cal I}$ $\mathcal{I}$ $\mathscr{I}$
\stoptext


signature.asc
Description: Message signed with OpenPGP
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] lmt_outline not rendering properly

2022-10-14 Thread Jacob Kauffmann via ntg-context
Hi,

I can confirm that the rendering is fixed in the newest upload 2022.10.14 10:16.

Cheers,
Jacob

> Am 23.09.2022 um 17:42 schrieb Mikael Sundqvist via ntg-context 
> :
> 
> On Thu, Sep 22, 2022 at 11:15 AM Jacob Kauffmann via ntg-context
>  wrote:
>> 
>> Dear list,
>> 
>> attached is an example taken from the luametafun manual.
>> The letter o looks odd. When I compile the manual the examples in section 4 
>> look also bad (different font; page 10 attached).
>> It seems like the paths miss one point.
>> 
>> This is with the latest version 2022.09.11 20:44.
>> 
>> Cheers,
>> Jacob
> 
> Hi,
> 
> I do not see this in the (just a bit) newer version I have locally, so
> I think it was fixed during the meeting last week. Hopefully it will
> work in the next upload. (Sometime next week)
> 
> /Mikael
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : https://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___



signature.asc
Description: Message signed with OpenPGP
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] lmt_outline not rendering properly

2022-09-22 Thread Jacob Kauffmann via ntg-context
Dear list,

attached is an example taken from the luametafun manual.
The letter o looks odd. When I compile the manual the examples in section 4 
look also bad (different font; page 10 attached).
It seems like the paths miss one point.

This is with the latest version 2022.09.11 20:44.

Cheers,
Jacob



lmt_outline.pdf
Description: Adobe PDF document


lmt_outline.tex
Description: Binary data


luametafun (verschoben).pdf
Description: Adobe PDF document


signature.asc
Description: Message signed with OpenPGP
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] colors and contours in luametafun

2022-06-20 Thread Jacob Kauffmann via ntg-context
Dear list,

> Am 01.09.2021 um 09:54 schrieb Jacob Kauffmann via ntg-context 
> :
> - color by value in lmt_surface
> We want to show a surface plot of a function where the color indicates the 
> function value (instead, or in addition to a light source).
> The easiest would be to have variable cf for the brightness factor (as it 
> is), and in addition variables such as zt, minz, maxz, akin to the color 
> formatter for lmt_contour.
> This becomes handy when colors are to be aligned with function values (e.g. 
> negative = blue, zero = white, positive = red, see MWE attached).

I managed to achieve this by tweaking f_color and mp.lmt_surface_do in 
mlib-cnt.lmt in
ConTeXt  ver: 2022.05.11 11:36 LMTX  fmt: 2022.6.20
a bit.
Please find the diff and a MWE attached.

Cheers,
Jacob Kauffmann

--- context/tex/texmf-context/tex/context/base/mkxl/mlib-cnt.lmt   2022-06-20 
18:11:51.0 +0200
+++ mlib-cnt.lmt2022-06-20 18:26:22.0 +0200
@@ -1839,7 +1839,29 @@

 local f_color = formatters [ [[
 local math = math
-return function(f)
+local min  = math.min
+local max  = math.max
+local abs  = math.abs
+local minz = %s
+local maxz = %s
+
+local color_value = 0
+local color_step  = mp.lmt_color_functions.step
+local color_shade = mp.lmt_color_functions.shade
+
+local function step(...)
+return color_step(color_value,n,...)
+end
+local function shade(...)
+return color_shade(color_value,n,...)
+end
+-- local function lin(l)
+-- return l/n
+-- end
+%s
+return function(z, f)
+function_value = z
+brightness_factor = f
 return %s
 end
 ]] ]
@@ -1898,7 +1920,7 @@
 local dy   = (ymax - ymin) / ny
 local xt   = xmin
 --
-local minf, maxf
+local minf, maxf, minz, maxz
 --
 -- similar as contours but no data loop here
 --
@@ -1908,12 +1930,6 @@
 return false -- fatal error
 end
 --
-local ccode = load(f_color(colorcode))
-local color = type(ccode) == "function" and ccode()
-if type(color) ~= "function" then
-return false -- fatal error
-end
---
 for i=0,nx do
 local yt = ymin
 for j=0,ny do
@@ -1946,7 +1962,16 @@
 maxf = fac
 end
 --
-data[i][j] = { x, y, fac }
+if not minz then
+   minz = z
+   maxz = z
+elseif z < minz then
+   minz = z
+elseif z > maxz then
+   maxz = z
+end
+--
+data[i][j] = { x, y, fac, z }
 --
 yt = yt + dy
 end
@@ -1957,6 +1982,16 @@
 local range   = maxf - minf
 local cl  = linecolor or 1
 local enforce = attributes.colors.model == "cmyk"
+--
+-- local ccode = load(f_color(colorcode))
+report("minz, maxz is (%s,%s)",minz,maxz)
+report("colorcode is %s", colorcode)
+local ccode = load(f_color(minz, maxz, preamble, colorcode))
+local color = type(ccode) == "function" and ccode()
+if type(color) ~= "function" then
+return false -- fatal error
+end
+--
 for i=0,nx-1 do
 for j=0,ny-1 do
 -- points
@@ -1985,12 +2020,13 @@
 local z32 = z3[2]
 local z41 = z4[1]
 local z42 = z4[2]
+local zout = z1[4]
  -- if lines then
  -- -- fill first and draw then, previous shapes can be covered
  -- else
  -- -- fill and draw in one go to prevent artifacts
  -- end
-local cr, cg, cb = color(cf)
+local cr, cg, cb = color(zout, cf)
 if not cr then cr = 0 end
 if not cg then cg = 0 end
 if not cb then cb = 0 end



colors_and_surface_in_luametafun.pdf
Description: Adobe PDF document



colors_and_surface_in_luametafun.tex
Description: Binary data


signature.asc
Description: Message signed with OpenPGP
___
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 in mp-xbox.mpxl (circleit)

2021-12-22 Thread Jacob Kauffmann via ntg-context
Hi list,

I realized that circleit throws an error.
It works fine if I replace boxes_generic_declare by boxes_declare in line 244 
in mp-xbox.mpxl

rboxit is probably affected as well, but I did not test that.

MWE:
\startMPinclusions
input boxes;
\stopMPinclusions

\startMPpage
circleit.a(textext("$X$"));
drawboxed(a);
\startMPpage

The error (truncated) message:
metapost> initializing instance 'metafun:1' using format 'metafun' and 
method 'default'
metapost> loading 'metafun' as 'metafun.mpxl' using method 'default'
metapost> initializing number mode 'scaled'
metapost> trace > This is MPLIB for LuaMetaTeX, version 3.11, running 
in scaled mode.
metapost> trace >
metapost> trace > loading metafun for lmtx, including the plain 1.004 
base definitions
metapost> trace >
metafun > log >
metafun > log > error: Isolated expression
metafun > log >
metapost> trace >  boxes_generic_declare
metapost> trace >  (
metapost> trace >  circleit -> (TEXT3)-> 
begingroup.boxes_begin("boxes_the_circle","boxes_size_circle",(SUFFIX2),(TEXT3));boxes_generic_declare(pair)_n.n,_n.s,_n.e,_n.w;(SUFFIX2)e-(SUFFIX2)c=(SUFFIX2)c-(SUFFIX2)w=((SUFFIX2)dx,0)+0.5*(lrcorner.boxes_pic(SUFFIX2)-llcorner.boxes_pic(SUFFIX2));(SUFFIX2)n-(SUFFIX2)c=(SUFFIX2)c-(SUFFIX2)s=(0,(SUFFIX2)dy)+0.5*(ulcorner.boxes_pic(SUFFIX2)-llcorner.boxes_pic(SUFFIX2));boxes_end(boxes_clear_circle,(SUFFIX2));endgroup
metafun > log >
metafun > log > I couldn't find an '=' or ':=' after the expression 
that is shown above this
error message, so I guess I'll just ignore it and carry on.
metafun > log >
metapost> trace >  circleit.a(textext("$X$")); drawboxed(a); ;
metapost> trace >

Cheers,
Jacob


signature.asc
Description: Message signed with OpenPGP
___
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] colors and contours in luametafun

2021-09-01 Thread Jacob Kauffmann via ntg-context
Dear list,

I am a huge fan of the new metafun interface.
Hans asked for luametafun requests, so here are a few.

 - color by value in lmt_surface
We want to show a surface plot of a function where the color indicates the 
function value (instead, or in addition to a light source).
The easiest would be to have variable cf for the brightness factor (as it is), 
and in addition variables such as zt, minz, maxz, akin to the color formatter 
for lmt_contour.
This becomes handy when colors are to be aligned with function values (e.g. 
negative = blue, zero = white, positive = red, see MWE attached).

 - controlling line levels in lmt_contour
It would be convenient if certain levels could be set by the user. E.g. to make 
sure the zero level contour line is included.
The user interface could potentially take a list, levels = { -1, -.5, 0, .5, 1 
}, of contour level lines. See MWE attached.
From my understanding marching squares can do that. A possible reference 
implementation could be QuadContourGenerator [1] in matplotlib, a bit of 
description can be found in [2].

 - colormaps
Contour plots often use rather complex colormaps, such as jet, rainbow or 
veridis. They are optimized for perceptual resolution, color blindness, 
screen/print or certain use cases.
The functionality is already there, but from a user's perspective, it would be 
much easier if some of these were provided by the interface.
The interface could be color = "colormap('jet')(l/n)". Indeed, these are useful 
in other use cases as well, such as bar charts, surface plots or shades.
One rudimentary example is in the attached file.

 - number of levels in lmt_contour (potential bug)
The number of levels is different from the user's input. Depending on the 
output range it can be lower or higher (see MWE attached).

Cheers,
Jacob Kauffmann

[1] 
https://github.com/matplotlib/matplotlib/blob/96ff1146ad053c5c7481efd9de039c879a595968/src/_contour.cpp
[2] 
https://github.com/matplotlib/matplotlib/blob/96ff1146ad053c5c7481efd9de039c879a595968/src/_contour.h



colors_and_contours_in_luametafun.tex
Description: Binary data


colors_and_contours_in_luametafun.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] \binom has fraction line

2021-03-16 Thread Jacob Kauffmann
Dear list,

lmtx draws a fraction line in \binom{n}{k},
ConTeXt ver: 2021.02.23 17:47 LMTX fmt: 2021.2.26 int: english/english
The same happens with {n \choose k}.

The other version I tested draws it correctly (without the bar):
ConTeXt  ver: 2019.03.21 21:39 MKII  fmt: 2019.11.14  int: 
english/english

Is this a bug, or has the user interface changed?

Best,
Jacob Kauffmann
___
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] TEXpage does not fit \placetable & \recurselevel always zero

2021-03-05 Thread Jacob Kauffmann
Dear list,

thank you very much for the help so far.

I have two problems understanding the output of the code below. I am using 
version 2021.02.23 17:47.
(1) The TEXpage is cut off after ~40 lines. Normally, the page is extended to 
fit its content. It's probably related to \placetable which I only use here 
because I need a centered table. I can set the height of the page manually, but 
the whole purpose of using TEXpage was to avoid that.
(2) \recurselevel is always zero in the output. Normally, it counts the 
iterations. This issue is not relevant for my actual use-case, but I found that 
when writing the MWE.

Best wishes,
Jacob Kauffmann

\setupTEXpage[width=10cm]

\startTEXpage
\placetable[force,none]{}{%
\starttabulate[|c|c|]
\NC A \NC B \NC\NR
\HL
\dorecurse{50}{\NC \expanded{\recurselevel} \NC \recurselevel \NC\NR}
\stoptabulate
}
\stopTEXpage
\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
___


[NTG-context] Indenting on all TEXpages

2021-02-28 Thread Jacob Kauffmann
Dear list,

is it possible to enable indenting globally for TEXpage environments?
Or is it recommended to create a separate environment for that purpose?
Please find a MWE below. It seems to me that \setupindenting must be set 
explicitly for every page that needs indenting.

Best,
Jacob Kauffmann

\setupTEXpage[width=10cm]
\setupindenting[yes,medium]

% not working
\starttext
\startTEXpage
\input knuth
\stopTEXpage

% working
\startTEXpage
\setupindenting[yes,medium]
\input knuth
\stopTEXpage
\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
___