[NTG-context] Re: Several math features broke for me in new Debian version

2023-11-03 Thread Kumar Appaiah
On Fri, Nov 03, 2023 at 01:16:15PM +0100, Wolfgang Schuster wrote:
> > \starttext
> > Hello world!
> > \startformula
> >   X(f) = \startcases[align={right,left},distance=3pt]
> > \NC T, \NC{} $|f| < \frac{1}{2T}$ \NR
> > \NC 0, \NC{} $|f| \geq \frac{1}{2T}$ \NR
> >   \stopcases
> > \stopformula
> > \stoptext
> 
> There has been changes in the math alignment mechanism a while ago and the
> cases
> environment use math mode for a column entry when you use the \NC tag at the
> begin
> of a cell, to make your example working again remove the $ in the column.
> 
> \starttext
> 
> \startformula
>   X(f) =
>     \startcases
>     \NC T, \NC |f| < \frac{1}{2T} \NR
>     \NC 0, \NC |f| \geq \frac{1}{2T} \NR
>     \stopcases
> \stopformula
> 
> \stoptext
> 
> To typeset the content of a column as text replace \NC with \TC at the begin
> of the cell.
> 

Thank you for pointing this out. For now, I shall refrain from
upgrading, since this is a backwards incompatible change that affects
many files. Eventually, I'll make the required changes.

Kumar
-- 
Kumar Appaiah
___
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: Several math features broke for me in new Debian version

2023-11-03 Thread Wolfgang Schuster

Kumar Appaiah schrieb am 03.11.2023 um 11:44:

Dear Friends,

I am a regular user of ConTeXt. A recent upgrade of ConTeXt in Debian
broke things for me. The bug report is here:

https://bugs.debian.org/1055233

but I have reproduced the gist here:

Upon upgrading to ConTeXt 2023.05.05.20230730+dfsg-2, several math
features seem to break for me. Here is an example:

\starttext
Hello world!
\startformula
  X(f) = \startcases[align={right,left},distance=3pt]
\NC T, \NC{} $|f| < \frac{1}{2T}$ \NR
\NC 0, \NC{} $|f| \geq \frac{1}{2T}$ \NR
  \stopcases
\stopformula
\stoptext


There has been changes in the math alignment mechanism a while ago and 
the cases
environment use math mode for a column entry when you use the \NC tag at 
the begin

of a cell, to make your example working again remove the $ in the column.

\starttext

\startformula
  X(f) =
    \startcases
    \NC T, \NC |f| < \frac{1}{2T} \NR
    \NC 0, \NC |f| \geq \frac{1}{2T} \NR
    \stopcases
\stopformula

\stoptext

To typeset the content of a column as text replace \NC with \TC at the 
begin of the cell.


Wolfgang

___
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: Example is not working

2023-11-03 Thread Ursula Hermann
Dear Aditya,


Many thanks.




Von: Aditya Mahajan 
Gesendet: Freitag, 3. November 2023 11:48:10
An: mailing list for ConTeXt users
Betreff: [NTG-context] Re: Example is not working

On Fri, 3 Nov 2023, Ursula Hermann wrote:

> Dear List,
> i hope somone can help me.

\starttext ... \stoptext is missing!

> This litte example is from the wiki, i wanted to try \placeformula

\starttext
> \placeformula[formula:aformula]
> \startformula
> y=x^2
> \stopformula
> \placeformula
> \startformula
> \int_0^1 x^2 dx
> \stopformula
\stoptext


Aditya
___
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
___
___
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] Several math features broke for me in new Debian version

2023-11-03 Thread Kumar Appaiah
Dear Friends,

I am a regular user of ConTeXt. A recent upgrade of ConTeXt in Debian
broke things for me. The bug report is here:

https://bugs.debian.org/1055233

but I have reproduced the gist here:

Upon upgrading to ConTeXt 2023.05.05.20230730+dfsg-2, several math
features seem to break for me. Here is an example:

\starttext
Hello world!
\startformula
 X(f) = \startcases[align={right,left},distance=3pt]
   \NC T, \NC{} $|f| < \frac{1}{2T}$ \NR
   \NC 0, \NC{} $|f| \geq \frac{1}{2T}$ \NR
 \stopcases
\stopformula
\stoptext

The above works very well in 2021.03.05.20230120+dfsg-1+deb12u1 but
gives me this error in 2023.05.05.20230730+dfsg-2:


resolvers   | formats | executing runner 'run luametatex format': 
/usr/bin/luametatex --jobname="./test.tex" --socket --shell-escape 
--fmt=/home/kumar/.texlive2023/texmf-var/luametatex-cache/context/f919750633122078d706dd10f1cfd39b/formats/luametatex/cont-en.fmt
 
--lua=/home/kumar/.texlive2023/texmf-var/luametatex-cache/context/f919750633122078d706dd10f1cfd39b/formats/luametatex/cont-en.lui
  --c:currentrun=1 --c:fulljobname="./test.tex" --c:input="./test.tex" 
--c:kindofrun=1 --c:maxnofruns=9 --c:texmfbinpath="/usr/bin"
job > passes > version mismatch: 1.32 <> 1.33
system  > 
system  > ConTeXt  ver: 2023.05.05 18:36 LMTX  fmt: 2023.11.2  int: 
english/english
system  > 
system  > 'cont-new.mkxl' loaded
open source > level 1, order 1, name 
'/usr/share/texmf/tex/context/base/mkxl/cont-new.mkxl'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 1, order 1, name 
'/usr/share/texmf/tex/context/base/mkxl/cont-new.mkxl'
system  > files > jobname './test', input './test.tex', result './test'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 1, order 2, name './test.tex'
fonts   > preloading latin modern fonts (second stage)
mathematics > tweak > 'LatinModernMath-Regular', size 6, math size 3, 
version 'Version 1.959' found, version 'Version 1.958' expected
fonts   > 'fallback modern rm 12pt' is loaded
tex error   > tex error on line 5 in file ./test.tex: Missing $ inserted

 

$
 

\mathatom 
 \math_atom_by_parameter_indeed 
#1->\mathatom 
\s!class \mathcodechecked {#1}
 \math_frac 
#1#*[#2]->\beginmathgroup \setlocalmathfractioncurrent {#1}\ifparameter 
#2\or \setupcurrentmathfraction [#2]\fi \edef \p_math_fraction_fences 
{\mathfractionparameter \c!fences }\math_atom_by_parameter 
\mathfractionparameter 
\bgroup \ifempty \p_math_f
 

{
 
   \NC T, \NC{} $|f| < \frac{
1}{2T}$ \NR

 1 \starttext
 2 Hello world!
 3 \startformula
 4  X(f) = \startcases[align={right,left},distance=3pt]
 5 >> \NC T, \NC{} $|f| < \frac{1}{2T}$ \NR
 6\NC 0, \NC{} $|f| \geq \frac{1}{2T}$ \NR
 7  \stopcases
 8 \stopformula
 9 \stoptext
10 
I've inserted a begin-math/end-math symbol since I think you left one out.
Proceed, with fingers crossed.
mtx-context | fatal error: return code: 1

Just another note: some examples seem broken here as well:

https://wiki.contextgarden.net/Multiline_equations

Please let me know how I can help debug this.

Thanks.

Kumar
-- 
Kumar Appaiah
___
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: Example is not working

2023-11-03 Thread Aditya Mahajan
On Fri, 3 Nov 2023, Ursula Hermann wrote:

> Dear List,
> i hope somone can help me.

\starttext ... \stoptext is missing!

> This litte example is from the wiki, i wanted to try \placeformula

\starttext
> \placeformula[formula:aformula]
> \startformula
> y=x^2
> \stopformula
> \placeformula
> \startformula
> \int_0^1 x^2 dx
> \stopformula
\stoptext


Aditya
___
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] Example is not working

2023-11-03 Thread Ursula Hermann
Dear List,
i hope somone can help me.

This litte example is from the wiki, i wanted to try \placeformula
\placeformula[formula:aformula]
\startformula
y=x^2
\stopformula
\placeformula
\startformula
\int_0^1 x^2 dx
\stopformula


After compiling there is no PDF Page . But this:

Command Line:   context.exe --synctex=-1 "mathtry.tex"
Startup Folder: 
C:\Users\Administrator\Downloads\cont-tmf\doc\context\sources\general\magazines


resolvers   | formats | executing runner 'run luametatex format': 
luametatex --jobname="./mathtry.tex" --socket --shell-escape 
--fmt=C:/texlive/2023/texmf-var/luametatex-cache/context/1b4da46d1f340757f9984eae810b1464/formats/luametatex/cont-en.fmt
 
--lua=C:/texlive/2023/texmf-var/luametatex-cache/context/1b4da46d1f340757f9984eae810b1464/formats/luametatex/cont-en.lui
  --c:currentrun=1 --c:fulljobname="./mathtry.tex" --c:input="./mathtry.tex" 
--c:kindofrun=1 --c:maxnofruns=9 --c:synctex="-1" 
--c:texmfbinpath="C:/texlive/2023/bin/windows"
system  >
system  > ConTeXt  ver: 2023.05.05 18:36 LMTX  fmt: 2023.6.1  int: 
english/english
system  >
system  > 'cont-new.mkxl' loaded
open source > level 1, order 1, name 
'C:/texlive/2023/texmf-dist/tex/context/base/mkxl/cont-new.mkxl'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 1, order 1, name 
'C:/texlive/2023/texmf-dist/tex/context/base/mkxl/cont-new.mkxl'
system  > 'cont-sys.mkxl' loaded
open source > level 1, order 2, name 
'C:/texlive/2023/texmf-dist/tex/context/texlive/cont-sys.mkxl'
close source> level 1, order 2, name 
'C:/texlive/2023/texmf-dist/tex/context/texlive/cont-sys.mkxl'
system  > files > jobname './mathtry', input './mathtry.tex', result 
'./mathtry'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
system  > synctex functionality is enabled, expect 5-10 pct runtime 
overhead!
open source > level 1, order 3, name './mathtry.tex'
fonts   > beware: no fonts are loaded yet, using 'lm mono' in box
tex error   > tex error on line 4 in file ./mathtry.tex: \textfont0 is 
undefined in ordinal, font id 0, character 63)


\endgroup \Ustopmathmode

\stopforceddisplaymath
\egroup \ifcase \c_strc_formulas_frame_mode \else 
\strc_math_number_check_offsets \fi \ifcase \c_strc_formulas_frame_mode 
\strc_math_number_check \or \strc_math_number_check_outside \else 
\strc_math_number_check_inside \fi \str

\endgroup \strc_formulas_endstrut \stopinnermath
\afterdisplayspace \egroup
 \p_threshold
\strc_formulas_place_number \strc_formulas_flush_number \dostarttagged 
\t!formulacontent \empty \dotagregisterformula \c_strc_formulas_n \csname 
\e!stop \formulaparameter \c!alternative \v!formula \endcsname
\dostoptagged \dostoptagged \nonoindentati

\stopformula

 1 \placeformula[formula:aformula]
 2 \startformula
 3 y=x^2
 4 >>  \stopformula
 5 \placeformula
 6 \startformula
 7 \int_0^1 x^2 dx
 8 \stopformula
 9
10
Somewhere in the math formula just ended, you used the stated character from an
undefined font family. For example, plain TeX doesn't allow \it or \sl in
subscripts. Proceed, and I'll try to forget that I needed that character.
mtx-context | fatal error: return code: 1

Many regards
Uschi Hermann
_

 ConTeXt Compilation Report (Pages: 0)

 Errors: 0   Warnings: 0   Bad Boxes: 0

___
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: Adobe Source Typescript With Design Sizes

2023-11-03 Thread Hans Hagen

On 11/2/2023 9:00 PM, Vincent Hennebert wrote:

Ok. But then that means that the designsizes table will be used all the 
time, including when design sizes are disabled, right? Which would mean 
that I _must_ define the regular size as a fallback.


they are not really design sizes but more 'designed for s specific 
purpose like display' .. so typesetting a 16 pt bodyfont in display is 
not a good idea ... otherwise, if someone watched the text on a beamer 
you'd have to use the display variant for everything as that definitely 
goes over 10pt


I think I see your point. I think we can still talk about design sizes 
but, instead of thinking in absolute sizes, we would want to think in 
sizes relative to the font setup.


indeed, and even more abstract: running text vs headings vs title pages

That is, instead of saying ‘Caption shall be used for sizes 6.5pt and 
below, SmText for 9.5pt and below etc.’, we would want to say ‘Caption 
shall be used for 50% of the body font size and below, SmText for 75% 
and below, etc.’


i'm not sure what captions are for

This way, design sizes would be used ‘harmoniously’ no matter the 
scaling. A poster, for instance, would usually be viewed at such a 
distance that the apparent size of small text (typeset at, say, 25pt 
when the main text is at 50pt, therefore using Caption) would match the 
apparent size of caption text in a regular document typeset at 12pt and 
read from a normal distance.


Make sense?


posters stil can use regular but with a screaming bolder and darker 
looking title in display (although often display doesn't look that good)

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