[NTG-context] Re: An error which is not in .log file

2023-08-15 Thread Wolfgang Schuster

Xavier B. schrieb am 16.08.2023 um 00:12:

Thanks.

After some work on it, following your advice, I reduce the compilation problem to several 
"wrong" files.
One was trivialy fixed because I did not close one environment, but other 
don't. Please help:


1. You need \starttext and \stoptext at the begin and end of your 
example file.


2. You forgot to close the following environment: 
\startexercici[reference=exercici:problemes-de-fraccions-13, 
title={tasca per fer junts}]


3. \starttikzpicure doesn't allow arguments which results in font error 
messages (char ... missing). This is an error in the ConTeXt version of 
the \starttikzpicture command and should be fixed.


Wolfgang

___
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] Re: Optical scaling in Latin Modern

2023-08-15 Thread Hamid,Idris
Ah, the goodies files.. Got it and thanks for the clarifications.

Best wishes
Idris

--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
On Aug 15, 2023, 10:22 AM -0600, Hans Hagen , wrote:
** Caution: EXTERNAL Sender **

On 8/15/2023 5:33 PM, Hamid,Idris wrote:

so [\s!designsize=\s!auto] means there is no explicit call to lmroman8-regular 
etc.? Interesting..

check the lfg file ...
___
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] Re: An error which is not in .log file

2023-08-15 Thread Xavier B.
Thanks.

After some work on it, following your advice, I reduce the compilation problem 
to several "wrong" files.
One was trivialy fixed because I did not close one environment, but other 
don't. Please help:

The error is here and I attach file.

modules > 'pgfmath' is not found
structure   > sectioning > section @ level 3 : 0.0.1 -> Problemes de 
fraccions
structure   > sectioning > subject @ level 3 : 0.0.1 -> Preguntes
tex error   > tex error on line 25 in file ./dev.tex: \textfont0 is 
undefined in ordinal, font id 0, character 63)


\startexercici[reference=exercici:problemes-de-fraccions-1, title={oli}] 
Calculeu quina part del dipòsit queda buida, sabent que l'aigua ocupa $2/5$
 del recipient i l'oli, $1/4$ (vegeu figura~\in[fig:oli-aigua-diposit]).

15 \usetikzlibrary[trees]
16 \usetikzlibrary[calc, intersections, through, backgrounds, arrows, 
shapes.geometric, fadings, decorations.pathreplacing, shadings, 
shapes.geometric, patterns, fit, positioning, shapes.symbols, chains]
17 \usemodule[pgfmath]
18 %\usemodule[filter]
19
20
21 \startsection[title={Problemes de fraccions}, 
reference={seccio:problemes-de-fraccions}]
22
23 \subject{Preguntes}
24
25 >>  \startexercici[reference=exercici:problemes-de-fraccions-1, title={oli}] 
Calculeu quina part del dipòsit queda buida, sabent que l'aigua ocupa $2/5$ del 
recipient i l'oli, $1/4$ (vegeu figura~\in[fig:oli-aigua-diposit]).
26
27 \startplacefigure[reference=fig:oli-aigua-diposit, location=force, 
title={Dipòsit omplit amb aigua i oli}]
28 \bTABLE[frame=off,align={middle,lohi},width=fit]
29   \bTR
30 \bTD
31  \starttikzpicture[scale=0.75]
32  % recipient
33  \draw (0,0) -- (0,10) -- (2,10) -- (2,0) -- cycle;
34
35  % aigua
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


Thanks in advance,

On Tue, 15 Aug 2023 21:44:53 +0200
Wolfgang Schuster  ha escrit:

> Xavier B. schrieb am 15.08.2023 um 21:36:
> > On Tue, 15 Aug 2023 21:13:54 +0200
> > Wolfgang Schuster  ha escrit:
> >
> >> There is also something wrong with the structure of your document when
> >> need \page[yes] after each file.
> > Why is it trouble?
> 
> When you start each subfile with \section or \subject you can use 
> \setuphead to force a pagebreak at the start of each new section and not 
> with a \page command in the document.
> 
> Wolfgang
> 
system  > 
system  > ConTeXt  ver: 2023.08.15 18:48 LMTX  fmt: 2023.8.15  int: 
english/english
system  > 
system  > 'cont-new.mkxl' loaded
open source > level 1, order 1, name 
'/home/xan/bin/context-current/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 
'/home/xan/bin/context-current/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > files > jobname './dev', input './dev.tex', result './dev'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 1, order 2, name './dev.tex'
modules > 'tikz' is loaded
open source > level 2, order 3, name 
'/home/xan/bin/context-current/tex/texmf-context/tex/context/modules/mkxl/m-tikz.mkxl'
open source > level 3, order 4, name 'pgfutil-common.tex'
close source> level 3, order 4, name 'pgfutil-common.tex'
open source > level 3, order 5, name 'pgfutil-context.def'
close source> level 3, order 5, name 'pgfutil-context.def'
open source > level 3, order 6, name 'pgfrcs.code.tex'
open source > level 4, order 7, name 'pgf.revision.tex'
close source> level 4, order 7, name 'pgf.revision.tex'
close source> level 3, order 7, name 'pgfrcs.code.tex'
open source > level 3, order 8, name 'pgfsys.code.tex'
open source > level 4, order 9, name 'pgfkeys.code.tex'
open source > level 5, order 10, name 'pgfkeyslibraryfiltered.code.tex'
close source> level 5, order 10, name 'pgfkeyslibraryfiltered.code.tex'
close source> level 4, order 10, name 'pgfkeys.code.tex'
cld > stack > 
cld > stack > use : slot = context.functions.register(f)
cld > stack > and : context.functions.unregister(slot)
cld > stack > 
open source > level 4, order 11, name 'pgf.cfg'
close source> level 4, order 11, name 'pgf.cfg'
Driver file for pgf: pgfsys-luatex.def

open source > level 4, order 12, name 'pgfsys-luatex.def'
open source > level 5, order 13, name 'pgfsys-common-pdf.def'
close source> level 5, order 13, name 'pgfsys-common-pdf.def'
close source> level 4, order 13, name 'pgfsys-luatex.def'
open source > level 4, order 14, name 'dev.pgf'
close source> level 4, 

[NTG-context] Re: new upload

2023-08-15 Thread Pablo Rodriguez
On 8/15/23 22:16, Hans Hagen via ntg-context wrote:
> On 8/15/2023 9:27 PM, Pablo Rodriguez wrote:
>> [...]
>> I wonder whether we could have (current) frame width and height as unit.
> we can have
>
>fw fh fo lw (width height offset linewidth)
>
> but keep in mind that only properties that are set up have a meaningful
> value (so with autoheight it is zero)

So 1fw is equal to 2fo + 1lw, isn’t it? (I mean, frame width is left and
right offset [given that all frames have the same length] plus line width.)

Sorry, this is to be sure I’m getting this right.

> and then you realize that you are the one going to wikify it

Fine (https://wiki.contextgarden.net/Dimensions could be expanded that
way), but I need to check the new units first.

Many thanks for your help,

Pablo
___
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] new align option

2023-08-15 Thread Hans Hagen via ntg-context

Hi,

Especially for long verbatim lines we now can do this:

\starttext

\setupalign[hangright]

\starttyping
test test test test test test test test test test test test test test 
test test test test test test test test test test test test test
test test test test test test test test test test test test test test 
test test test test
test test test test test test test test test test test test test test 
test test test test test test test test test test test test test

\stoptyping

\stoptext

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://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] Re: new upload

2023-08-15 Thread Hans Hagen via ntg-context

On 8/15/2023 9:27 PM, Pablo Rodriguez wrote:

On 8/15/23 19:08, Hans Hagen wrote:

[...]
The units starting with 'u' are considered user units but be carefulk
with other combinations as we have (and will have more) built into
context ones, like

pi : pi for Mikael
ft : foot for Alan
fs : (global body) font size
tw : (layout) text width
th : (layout) text height
hs : (current) hsize
vs : (current) vsize
cd : (when set) column distance
cw : (when set) column width
cx : combination cell width
uu : user unit (\METAFUN)


Many thanks for the new release, Hans.

I wonder whether we could have (current) frame width and height as unit.

we can have

  fw fh fo lw (width height offset linewidth)

but keep in mind that only properties that are set up have a meaningful 
value (so with autoheight it is zero)


and then you realize that you are the one going to wikify it

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://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] Re: [ odd spacing ]

2023-08-15 Thread Pablo Rodriguez
On 8/15/23 21:48, vm via ntg-context wrote:
> [...]
> A different approach is to use \dontleavehmode

In that case, \dorecurse is your friend, such as in:

\starttext
\startTEXpage[offset=10mm, pagestate=start]
\dorecurse{5}{
\dontleavehmode
\framed[frame=off]{\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]}
\framed[frame=off]{\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]}
\framed[frame=off]{\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]}
\par}
\stopTEXpage
\stoptext

Just in case it helps,

Pablo
___
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] Re: [ odd spacing ]

2023-08-15 Thread vm via ntg-context

thanks!


On 15/08/2023 21:26, Hans Hagen via ntg-context wrote:

you're missing \startcaption \stopcaption after each content section


indeed, adding \startcaption\stopcaption at each line will make the 
spacing equal.




A different approach is to use \dontleavehmode

\dontleavehmode
\framed[frame=off]{\externalfigure[p1-4_4-01-56-25-015.png][height=.\textwidth,width=.2\textwidth]}
\framed[frame=off]{\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]}
\framed[frame=off]{\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]}

\dontleavehmode
\framed[frame=off]{\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]}
\framed[frame=off]{\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]}
\framed[frame=off]{\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]}


.F
___
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] Re: An error which is not in .log file

2023-08-15 Thread Wolfgang Schuster

Xavier B. schrieb am 15.08.2023 um 21:36:

On Tue, 15 Aug 2023 21:13:54 +0200
Wolfgang Schuster  ha escrit:


There is also something wrong with the structure of your document when
need \page[yes] after each file.

Why is it trouble?


When you start each subfile with \section or \subject you can use 
\setuphead to force a pagebreak at the start of each new section and not 
with a \page command in the document.


Wolfgang

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

2023-08-15 Thread Hans Hagen via ntg-context

Hi,

There has been some additions to itemize wrt columns. One problem with 
columns is that we have a 'cross page' and 'balancing' situation. The 
existing columns features has been improved a bit.


That leaves the problem that mixing single and multi columns is not 
really tex's strong point. So, when Mikael and I were looking at one of 
his documents that mixes a lot of math into itemized situations, a 
different variant was made (ok, there was another reason but that's a 
bit technical).


At that time, I had already adapted itemize to work a bit better with 
bTABLE and starttabulate (nesting, trial mode etc), think of


\bTABLE \bTR \bTD
\startitemize[a]
\startitem
\im{\sqrt{\frac{1}{x^4}}}
\stopitem
\startitem
\startitemize[n]
\startitem
\im{\sqrt{\frac{1}{x^4}}}
\stopitem
\startitem
\im{\sqrt{\frac{1}{x^4}}}
\stopitem
\stopitemize
\stopitem
\startitem
\im{\sqrt{\frac{1}{x^4}}}
\stopitem
\stopitemize
\eTD \eTR \eTABLE

or with tabulate

\startitemize[n]
\starttabulate[||k2|]
\NC \startitem test \stopitem
\NC \startitem test \stopitem \NC \NR
\NC \startitem test \stopitem
\NC \startitem test \stopitem \NC \NR
\stoptabulate
\stopitemize

so basically inside these tables items can be dealt with. Don't wonder 
too much how this translates into structure.


So, back the columns, a logical next step was to add tabulated columns 
to itemize:


\startitemizetable[n,four]
\dorecurse{10}{
\startitem
\im{\sqrt{\frac{1}{x^4}}}
\stopitem
\startitem
\im{\sqrt{x^5}}
\stopitem
\startitem
\im{\frac{x^5}{x^5}}
\stopitem
}
\stopitemizetable

or with

\defineitemgroup[]

because every itemgroup also gets an additional pair of commands defined.

\starttable[n,four][inbetween={\blank[big]}]
\dorecurse{10}{
\startitem
\im{\sqrt{1/x}}
\stopitem
\startitem
\im{\sqrt{\frac{2}{x}}}
\stopitem
\startitem
\im{\frac{3}{x}}
\stopitem
}
\startitem
\im{\sqrt{\frac{1}{x^4}}}
\stopitem
\startitem
\im{\sqrt{x^5}}
\stopitem
\stoptable

etc etc. The distance can be set with columndistance and vertical 
spacing with inbetween.


This kind of columnizing has the advantage that esp with math that has 
different heights all aligns rather well. A limitation is that we number 
horizontally but that actually makes sense when we cross pages (I might 
cook up a transposed numbering but it's not entirely trivial).


The first one who uses this other than Mikael is invited to wikify it.

Hans

ps. The page columns also have some improvements but that's for next month.

-
  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://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] Re: An error which is not in .log file

2023-08-15 Thread Xavier B.
On Tue, 15 Aug 2023 21:13:54 +0200
Wolfgang Schuster  ha escrit:

> 
> There is also something wrong with the structure of your document when 
> need \page[yes] after each file.


Why is it trouble?
___
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] itemize

2023-08-15 Thread Hans Hagen via ntg-context

Hi,

There has been some additions to itemize wrt columns. One problem with 
columns is that we have a 'cross page' and 'balancing' situation. The 
existing columns features has been improved a bit.


That leaves the problem that mixing single and multi columns is not 
really tex's strong point. So, when Mikael and I were looking at one of 
his documents that mixes a lot of math into itemized situations, a 
different variant was made (ok, there was another reason but that's a 
bit technical).


At that time, I had already adapted itemize to work a bit better with 
bTABLE and starttabulate (nesting, trial mode etc), think of


\bTABLE \bTR \bTD
\startitemize[a]
\startitem
\im{\sqrt{\frac{1}{x^4}}}
\stopitem
\startitem
\startitemize[n]
\startitem
\im{\sqrt{\frac{1}{x^4}}}
\stopitem
\startitem
\im{\sqrt{\frac{1}{x^4}}}
\stopitem
\stopitemize
\stopitem
\startitem
\im{\sqrt{\frac{1}{x^4}}}
\stopitem
\stopitemize
\eTD \eTR \eTABLE

or with tabulate

\startitemize[n]
\starttabulate[||k2|]
\NC \startitem test \stopitem
\NC \startitem test \stopitem \NC \NR
\NC \startitem test \stopitem
\NC \startitem test \stopitem \NC \NR
\stoptabulate
\stopitemize

so basically inside these tables items can be dealt with. Don't wonder 
too much how this translates into structure.


So, back the columns, a logical next step was to add tabulated columns 
to itemize:


\startitemizetable[n,four]
\dorecurse{10}{
\startitem
\im{\sqrt{\frac{1}{x^4}}}
\stopitem
\startitem
\im{\sqrt{x^5}}
\stopitem
\startitem
\im{\frac{x^5}{x^5}}
\stopitem
}
\stopitemizetable

or with


Hans

ps. The page columns also have some improvements but that's for next month.

-
  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://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] Re: new upload

2023-08-15 Thread Pablo Rodriguez
On 8/15/23 19:08, Hans Hagen wrote:
> [...]
> The units starting with 'u' are considered user units but be carefulk
> with other combinations as we have (and will have more) built into
> context ones, like
>
> pi : pi for Mikael
> ft : foot for Alan
> fs : (global body) font size
> tw : (layout) text width
> th : (layout) text height
> hs : (current) hsize
> vs : (current) vsize
> cd : (when set) column distance
> cw : (when set) column width
> cx : combination cell width
> uu : user unit (\METAFUN)

Many thanks for the new release, Hans.

I wonder whether we could have (current) frame width and height as unit.

Many thanks for your help,

Pablo
___
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] Re: [ odd spacing ]

2023-08-15 Thread Hans Hagen via ntg-context

On 8/15/2023 9:13 PM, vm via ntg-context wrote:


Placing identical images in a n x m grid
shows extra space every two rows.


you're missing \startcaption \stopcaption after each content section and 
have one content too many



Also the vertical and horizontal spaces are different.

There is probably a reason for this to happen, but how to avoid it ?

.Floris


[MWE]


\starttext
\startTEXpage[offset=10mm, pagestate=start]
\startcombination[nx=3, ny=5]
\startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent
\startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent
\startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent
\startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent
\startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent
\startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent
\startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent
\startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent
\startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent
\startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent
\startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent
\startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent
\startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent
\startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent
\startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent
\startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent
\stopcombination
\stopTEXpage
\stoptext

[/MWE]

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


--

-
  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://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] Re: [ odd spacing ]

2023-08-15 Thread Wolfgang Schuster

vm via ntg-context schrieb am 15.08.2023 um 21:13:


Placing identical images in a n x m grid
shows extra space every two rows.

Also the vertical and horizontal spaces are different.

There is probably a reason for this to happen, but how to avoid it ?


1. You're missing the caption (even if it's empty) entry for each cell.

    \startcontent ... \stopcontent
    \startcaption \stopcaption

2. You create 15 cells but include 16 images.

3. When you need a combination without caption/label you can just use 
natural tables or extreme tables.


Wolfgang

___
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] Re: An error which is not in .log file

2023-08-15 Thread Pablo Rodriguez
On 8/15/23 17:35, Xavier B. wrote:
> I have the document split in several files.

Hi Xavier,

as someone already mentioned it, the way to check would be:

  mtxrun --scripts check your-document.tex

But this doesn‘t parse \input, so you need to create a loop.

In Unix, it would read something like:

  for i in *.conTeXt; do mtxrun --scripts check $i; done

Windows might require something similar to (inspired by
https://ss64.com/nt/for.html):

  for %%I (*.context) do mtxrun --scripts check %%I

It might report the cause this way.

When ConTeXt quits unexpectedly ("mtx-context | fatal error: return
code: 1" is a error message from the console), it might be a started
command not closed, such as in:

  \starttext
\startitemize
  \item a
  \stoptext

Just in case it might help,

Pablo
___
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] Re: An error which is not in .log file

2023-08-15 Thread Wolfgang Schuster
The error message is about line 276 in one of your included files but we 
need the content of the faulty file.
To get the faulty file comment your input line until the error 
disappears, ensure to delete the tuc file (context --purge) because 
sometimes index/register entries are the problem.


There is also something wrong with the structure of your document when 
need \page[yes] after each file.


Wolfgang

___
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] [ odd spacing ]

2023-08-15 Thread vm via ntg-context


Placing identical images in a n x m grid
shows extra space every two rows.

Also the vertical and horizontal spaces are different.

There is probably a reason for this to happen, but how to avoid it ?

.Floris


[MWE]


\starttext
\startTEXpage[offset=10mm, pagestate=start]
\startcombination[nx=3, ny=5]
\startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent
\startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent
\startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent
\startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent
\startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent
\startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent
\startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent
\startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent
\startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent
\startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent
\startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent
\startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent
\startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent
\startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent
\startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent
\startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent
\stopcombination
\stopTEXpage
\stoptext

[/MWE]___
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] Re: Very strange error:

2023-08-15 Thread Wolfgang Schuster

Xavier B. schrieb am 14.08.2023 um 23:24:

Thanks, Rik, for the comment. You're right.
Note that I've never been aware of such requirement because always in MKIV I 
use \head without \par.


You have empty lines in your document which have the same effect as \par.

Commands (e.g. descriptions) which end with the end of the paragraph had 
always been problematic and it's better to use the alternative environment.



@all, please comment it out this behaviour in somewhere. The weak point of 
context is documentation: wiki is too bit not updated and reference manual are 
outdated. As a simple user, it could cause nightmares, overall in transition to 
one major version to another.


All of the changes I mentioned are things which have been changed/added 
a long time ago and you're just a decade too late ;)


Wolfgang

___
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] Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2023-08-15 Thread Cron Daemon
receiving incremental file list
 ./
 ctan.lsr
 document-2.htm
 download-1.htm
 download-2.htm
 logo-ade.png
 logo-cts.png
 logo-pod.png
 rss.xml
 show-fil.pdf
 context/latest/
 context/latest/cont-lmt.zip
 context/latest/cont-mpd.zip
 context/latest/cont-ppc.zip
 context/latest/cont-sci.zip
 context/latest/cont-tmf.zip
 context/latest/cont-tst.7z
 context/latest/cont-tst.tar.xz
 context/latest/cont-tst.zip
 general/manuals/
 general/manuals/lowlevel-lines.pdf
 general/manuals/lowlevel-registers.pdf
 
 sent 179,504 bytes  received 41,248,258 bytes  3,068,723.11 bytes/sec
 total size is 562,431,586  speedup is 13.58


Running archiver:

New dir: /var/www/aanhet.net/context//htdocs/archives/context-2023-08-15.20
233739188   
/var/www/aanhet.net/context//htdocs/archives/context-2023-08-15.20/latest
126745317   
/var/www/aanhet.net/context//htdocs/archives/context-2023-08-15.20/current
360488601   
/var/www/aanhet.net/context//htdocs/archives/context-2023-08-15.20
360488601   total
___
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] Re: An error which is not in .log file

2023-08-15 Thread Mikael Sundqvist
Hi,

I suggest to comment out/add \stoptext until the error go,and that way
narrow it down. The usual way...

/Mikael

Den tis 15 aug. 2023 19:50Xavier B.  skrev:

> I don't have line 276. This is what I have (169 lines):
>
> % Fitxer ConTeXt MIV
>
> % carregam les opcions d'entorn
> \environment ng-entorn-minimal.conTeXt
> \environment ng-entorn-taules.conTeXt
> \environment ng-entorn-teoria.conTeXt
> \environment ng-entorn-colors.conTeXt
>
> % bibliografia
> \usebtxdataset[default][ng-bibliografia.bib]
> \setupbtx[dataset=default]
> \usebtxdefinitions[aps]
>
> % el text
>
> \starttext
>
> \startfrontmatter
> \input ng-pre-portada.conTeXt
> \input ng-pre-llicencia.conTeXt
> \input ng-pre-informacio-document.conTeXt
> \completecontent
> \stopfrontmatter
>
>
> \startbodymatter
>
> \startpart[title=Aritmètica]
>
> \input ng-aritmetica-nombres-naturals-operacions.conTeXt
> \page[yes]
> \input ng-aritmetica-divisibilitat.conTeXt
> \page[yes]
> \input ng-aritmetica-sencers-operacions.conTeXt
> \page[yes]
> \input ng-aritmetica-fraccions-operacions.conTeXt
> \page[yes]
> \input ng-aritmetica-fraccions-simplificacio-i-etc.conTeXt
> \page[yes]
> \input ng-aritmetica-percentatges.conTeXt
> \page[yes]
> \input ng-aritmetica-problemes-nombres-sencers.conTeXt
> \page[yes]
> \input ng-aritmetica-problemes-nombres-fraccions.conTeXt
> \page[yes]
> \input ng-aritmetica-arrodoniment-i-truncament.conTeXt
> \page[yes]
> \input ng-aritmetica-representacio-sobre-la-recta-numerica.conTeXt
> \page[yes]
> \input ng-aritmetica-sequencies.conTeXt
> \page[yes]
> \input ng-aritmetica-potencies-exponent-sencer-calcul.conTeXt
> \page[yes]
> \input ng-aritmetica-propietats-de-les-potencies.conTeXt
> \page[yes]
> \input ng-aritmetica-notacio-cientifica-calcul.conTeXt
> \page[yes]
> \input ng-aritmetica-notacio-cientifica-problemes.conTeXt
> \stoppart
>
> \startpart[title=Relacions entre variables]
>
> \input ng-relacions-variables-proporcionalitat-directa.conTeXt
> \page[yes]
> \input ng-relacions-variables-percentatges-problemes.conTeXt
> \page[yes]
> \input ng-relacions-variables-repartiments-proporcionals.conTeXt
> \page[yes]
> \input ng-relacions-variables-proporcionalitat-inversa.conTeXt
> \page[yes]
> \input ng-relacions-variables-conversio-unitats.conTeXt
> \page[yes]
> \input ng-relacions-variables-funcio-lineal-problemes.conTeXt
> \page[yes]
> \input ng-relacions-variables-funcio-afi-problemes.conTeXt
> \page[yes]
> \input ng-relacions-variables-funcio-quadratica-problemes.conTeXt
> \page[yes]
> \input ng-relacions-variables-funcio-exponencial-problemes.conTeXt
> \stoppart
>
> \startpart[title=Àlgebra]
> \input ng-algebra-equacions-primer-grau.conTeXt
> \page[yes]
> \input ng-algebra-equacions-segon-grau.conTeXt
> \page[yes]
> \input ng-algebra-equacions-segon-grau-problemes-geometrics.conTeXt
> \page[yes]
> \input ng-algebra-sistemes-de-equacions-lineals-2-per-2.conTeXt
> \page[yes]
> \input
> ng-algebra-sistemes-de-equacions-lineals-2-per-2-problemes-comparativa.conTeXt
> \stoppart
>
> \startpart[title=Geometria]
>
> \input ng-geometria-teorema-de-Pitagores.conTeXt
> \page[yes]
> \input ng-geometria-teorema-de-Pitagores-problemes.conTeXt
> \page[yes]
> \input ng-proporcionalitat-geometrica-escala-grafica.conTeXt
> \page[yes]
> \input ng-proporcionalitat-geometrica-escala-numerica.conTeXt
> \page[yes]
> \input ng-proporcionalitat-geometrica-figures-semblants.conTeXt
> \page[yes]
> \input ng-proporcionalitat-geometrica-homotecies.conTeXt
> \page[yes]
> \input ng-proporcionalitat-geometrica-teorema-de-tales.conTeXt
> \stoppart
>
> \startpart[title=Estadística]
> \input ng-estadistica-tipus-de-variables.conTeXt
> \page[yes]
> \input ng-estadistica.conTeXt
> \page[yes]
> \input ng-estadistica-parametres-dispersio.conTeXt
> \page[yes]
> \input ng-estadistica-grafics-i-diagrames.conTeXt
> \stoppart
>
> \startpart[title=Probabilitat]
> \input ng-probabilitat-experiments-simples.conTeXt
> \page[yes]
> \input ng-probabilitat-experiments-compostos.conTeXt
> \page[yes]
> \input ng-probabilitat-probabilitat-condicionada.conTeXt
> \page[yes]
> \input ng-probabilitat-algebra-de-successos.conTeXt
> \stoppart
>
> \stopbodymatter
>
>
> \startappendices
>
> \startpart[title=Apunts teòrics]
> \input ng-teoria-proporcionalitat-numerica.conTeXt
> \page[yes]
> \input ng-teoria-equacions-de-segon-grau.conTeXt
> \page[yes]
> \input ng-teoria-funcio-quadratica.conTeXt
> \page[yes]
> \input ng-teoria-teorema-de-Pitagores.conTeXt
> \page[yes]
> \input ng-teoria-apendix-figures-usuals-arees-volums.conTeXt
> \page[yes]
> \input ng-teoria-proporcionalitat-geometrica.conTeXt
> \page[yes]
> \input ng-teoria-estadistica.conTeXt
> \page[yes]
> \input ng-teoria-probabilitat.conTeXt
> \stoppart
>
> \stopappendices
>
> \startbackmatter
> \input ng-pre-continguts-aliens.conTeXt
> \page[yes]
> % Bibliografia
> \startchapter[title=Referències]
> \placelistofpublications
> \stopchapter
> %% Índex alfabètic
> \completeindex
> \stopbackmatter
>
>
>
> \stoptext
>
> 

[NTG-context] Re: An error which is not in .log file

2023-08-15 Thread Xavier B.
I don't have line 276. This is what I have (169 lines):

% Fitxer ConTeXt MIV

% carregam les opcions d'entorn
\environment ng-entorn-minimal.conTeXt
\environment ng-entorn-taules.conTeXt
\environment ng-entorn-teoria.conTeXt
\environment ng-entorn-colors.conTeXt

% bibliografia
\usebtxdataset[default][ng-bibliografia.bib]
\setupbtx[dataset=default]
\usebtxdefinitions[aps]

% el text

\starttext

\startfrontmatter
\input ng-pre-portada.conTeXt
\input ng-pre-llicencia.conTeXt
\input ng-pre-informacio-document.conTeXt
\completecontent
\stopfrontmatter


\startbodymatter

\startpart[title=Aritmètica]

\input ng-aritmetica-nombres-naturals-operacions.conTeXt
\page[yes]
\input ng-aritmetica-divisibilitat.conTeXt
\page[yes]
\input ng-aritmetica-sencers-operacions.conTeXt
\page[yes]
\input ng-aritmetica-fraccions-operacions.conTeXt
\page[yes]
\input ng-aritmetica-fraccions-simplificacio-i-etc.conTeXt
\page[yes]
\input ng-aritmetica-percentatges.conTeXt
\page[yes]
\input ng-aritmetica-problemes-nombres-sencers.conTeXt
\page[yes]
\input ng-aritmetica-problemes-nombres-fraccions.conTeXt
\page[yes]
\input ng-aritmetica-arrodoniment-i-truncament.conTeXt
\page[yes]
\input ng-aritmetica-representacio-sobre-la-recta-numerica.conTeXt
\page[yes]
\input ng-aritmetica-sequencies.conTeXt
\page[yes]
\input ng-aritmetica-potencies-exponent-sencer-calcul.conTeXt
\page[yes]
\input ng-aritmetica-propietats-de-les-potencies.conTeXt
\page[yes]
\input ng-aritmetica-notacio-cientifica-calcul.conTeXt
\page[yes]
\input ng-aritmetica-notacio-cientifica-problemes.conTeXt
\stoppart

\startpart[title=Relacions entre variables]

\input ng-relacions-variables-proporcionalitat-directa.conTeXt
\page[yes]
\input ng-relacions-variables-percentatges-problemes.conTeXt
\page[yes]
\input ng-relacions-variables-repartiments-proporcionals.conTeXt
\page[yes]
\input ng-relacions-variables-proporcionalitat-inversa.conTeXt
\page[yes]
\input ng-relacions-variables-conversio-unitats.conTeXt
\page[yes]
\input ng-relacions-variables-funcio-lineal-problemes.conTeXt
\page[yes]
\input ng-relacions-variables-funcio-afi-problemes.conTeXt
\page[yes]
\input ng-relacions-variables-funcio-quadratica-problemes.conTeXt
\page[yes]
\input ng-relacions-variables-funcio-exponencial-problemes.conTeXt
\stoppart

\startpart[title=Àlgebra]
\input ng-algebra-equacions-primer-grau.conTeXt
\page[yes]
\input ng-algebra-equacions-segon-grau.conTeXt
\page[yes]
\input ng-algebra-equacions-segon-grau-problemes-geometrics.conTeXt
\page[yes]
\input ng-algebra-sistemes-de-equacions-lineals-2-per-2.conTeXt
\page[yes]
\input 
ng-algebra-sistemes-de-equacions-lineals-2-per-2-problemes-comparativa.conTeXt
\stoppart

\startpart[title=Geometria]

\input ng-geometria-teorema-de-Pitagores.conTeXt
\page[yes]
\input ng-geometria-teorema-de-Pitagores-problemes.conTeXt
\page[yes]
\input ng-proporcionalitat-geometrica-escala-grafica.conTeXt
\page[yes]
\input ng-proporcionalitat-geometrica-escala-numerica.conTeXt
\page[yes]
\input ng-proporcionalitat-geometrica-figures-semblants.conTeXt
\page[yes]
\input ng-proporcionalitat-geometrica-homotecies.conTeXt
\page[yes]
\input ng-proporcionalitat-geometrica-teorema-de-tales.conTeXt
\stoppart

\startpart[title=Estadística]
\input ng-estadistica-tipus-de-variables.conTeXt
\page[yes]
\input ng-estadistica.conTeXt
\page[yes]
\input ng-estadistica-parametres-dispersio.conTeXt
\page[yes]
\input ng-estadistica-grafics-i-diagrames.conTeXt
\stoppart

\startpart[title=Probabilitat]
\input ng-probabilitat-experiments-simples.conTeXt
\page[yes]
\input ng-probabilitat-experiments-compostos.conTeXt
\page[yes]
\input ng-probabilitat-probabilitat-condicionada.conTeXt
\page[yes]
\input ng-probabilitat-algebra-de-successos.conTeXt
\stoppart

\stopbodymatter


\startappendices

\startpart[title=Apunts teòrics]
\input ng-teoria-proporcionalitat-numerica.conTeXt
\page[yes]
\input ng-teoria-equacions-de-segon-grau.conTeXt
\page[yes]
\input ng-teoria-funcio-quadratica.conTeXt
\page[yes]
\input ng-teoria-teorema-de-Pitagores.conTeXt
\page[yes]
\input ng-teoria-apendix-figures-usuals-arees-volums.conTeXt
\page[yes]
\input ng-teoria-proporcionalitat-geometrica.conTeXt
\page[yes]
\input ng-teoria-estadistica.conTeXt
\page[yes]
\input ng-teoria-probabilitat.conTeXt
\stoppart

\stopappendices

\startbackmatter
\input ng-pre-continguts-aliens.conTeXt
\page[yes]
% Bibliografia
\startchapter[title=Referències]
\placelistofpublications
\stopchapter
%% Índex alfabètic
\completeindex
\stopbackmatter



\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

[NTG-context] new upload

2023-08-15 Thread Hans Hagen

Hi,

I uploaded a new lmtx (some new - experimental - things will be 
explained after the ctx meeting), but there's one thing that is somewhat 
important.


In addition to the built in units we can now have so called user units. 
There is some more info about this in the lowlevel-registers manual. One 
of the predefined units is 'uu' with an associated \ununit (dimension) 
variable and it's is also interfaced to metafun. That means that when 
you use uu in metapost graphics you have to make sure that you save the 
meaning and/or numeric uu now.


The idea is that just as in mp one can say 20xx with xx being a (sort 
of) unit, one can do the same in tex. Think of


\newdimension \MyUnitA  \MyUnitA 1.23pt

\pushoverloadmode % just in case
\newuserunit\MyUnitA ua % binds the unit to the variable
\popoverloadmode

x\hskip 10ua\relax x

The units starting with 'u' are considered user units but be carefulk 
with other combinations as we have (and will have more) built into 
context ones, like


pi : pi for Mikael
ft : foot for Alan
fs : (global body) font size
tw : (layout) text width
th : (layout) text height
hs : (current) hsize
vs : (current) vsize
cd : (when set) column distance
cw : (when set) column width
cx : combination cell width
uu : user unit (\METAFUN)

So Mikael can now have

  test \hskip 3pi\relax test

and Alan can have

  \setuplayout
[width=1ft]

to be consistent with inches.

The reason why we have this mechanism is that it provides a level of 
abstraction. It might evolve over time but don't expect the 600+ units 
possible to show up because one needs sensible shortcuts. Already built 
in unit always win and you cna only bind to already defined quantities.


Here's one for those who want to go beyond the normal:

\newdimension \FooA   \FooA 1.23pt
\newdimen \FooB   \FooB 12.3pt
\protected\def\FooC   {\the\dimexpr\FooA +\FooB\relax}

So you can now figure how 'cx' is defined in a dynamic way.


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://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] Re: Optical scaling in Latin Modern

2023-08-15 Thread Hans Hagen

On 8/15/2023 5:33 PM, Hamid,Idris wrote:


so [\s!designsize=\s!auto] means there is no explicit call to lmroman8-regular 
etc.? Interesting..


check the lfg 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 / 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] Re: An error which is not in .log file

2023-08-15 Thread Xavier B.
I have the document split in several files.
I don't know what is the line 296.
___
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] Re: Optical scaling in Latin Modern

2023-08-15 Thread Hamid,Idris
On Aug 15, 2023, 8:56 AM -0600, Hans Hagen , wrote:

> afaik mkiv always had modern as default an dnot the designsize
> typescript (after all, we only have math 10pt)

From font-pre.mkiv:

%D By default we load the Computer Modern Roman fonts (but
%D not yet at this moment) and activate the 12pt roman
%D bodyfont.

-)

> well, in type-imp-latinmodern.mkiv i can find 'designsize' ... you're
> not relying on some gpt driven search machine are you?

No just the search files feature in Notepad++ -)

Ok, looking at type-imp-latinmodern.mkiv, under latin-modern-designsize, I see 
references to design weights and styles but not to optical sizes. So no 
lmroman5-regular, lmroman6-regular... lmroman17-regular. There is only 
reference to lmroman10, which is why my initial search came up with no results.

Ah, the abstraction happens here I think:

\definetypeface [\typescriptone] [\s!rm] [\s!serif] [latin-modern-designsize] 
[\s!default] [\s!designsize=\s!auto]

so [\s!designsize=\s!auto] means there is no explicit call to lmroman8-regular 
etc.? Interesting..

Ok, let's try it:

===
\setupbodyfont[modern-designsize]

\startTEXpage[offset=1em]
Test {\tfa Test} {\tfb Test} {\tfc Test} {\tfd Test} {\tfx Test} {\tfxx Test}
\stopTEXpage
===

Now we get

===
mkiv lua stats  > loaded fonts: 4 files: latinmodern-math.otf, 
lmroman10-regular.otf, lmroman12-regular.otf, lmroman8-regular.otf
===

So three optical sizes are implemented. But there should be more, e.g., \tfd 
should use lmroman17-regular etc.

>>> (likely we will go for \enableexperiments[fonts.compact] anyway which is
>>> also more efficient)

>>Ok, that would be very helpful; many thanks.

> it might process your arabic a bit faster

Ah, great. Am looking forward to learning how to 
\enableexperiments[fonts.compact] etc. once it's implemented.

Best wishes
Idris
--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] Re: An error which is not in .log file

2023-08-15 Thread Hans Hagen

On 8/15/2023 4:50 PM, Xavier B. wrote:

After trying to compile a long file with LMTX (previously with MKIV all 
compiles perfectly), I get an error

structures  > bookmark: Referències
structure   > sectioning > chapter @ level 2 : 0.1 -> Referències
publications> list > collecting entries using method 'global' and sort 
order 'default'
pages   > flushing realpage 296, userpage 294, subpage 296
structures  > bookmark: Índex alfabètic
structure   > sectioning > chapter @ level 2 : 0.2 -> \headtext {index}
pages   > flushing realpage 297, userpage 295, subpage 297
structures  > end of sectionblock 'backpart'
close source> level 1, order 147, name './ng-exercicis.conTeXt'
(\end occurred inside a group at level 8)
8:0: semisimple group entered at line 276: \begingroup


so check what starts at line 276 and see what should match

-
  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://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] Re: Optical scaling in Latin Modern

2023-08-15 Thread Hans Hagen

On 8/15/2023 4:35 PM, Hamid,Idris wrote:


But for sure ConTeXt used to load lmroman12-regular (or the computer-modern 12 
pt) by default. So things have changed..


afaik mkiv always had modern as default an dnot the designsize 
typescript (after all, we only have math 10pt)



well you can load the design size typescript


Ok, where is that design size typescript? A search for, e.g., lmroman8-regular 
etc. in

texmf-context/tex/context/base/mkiv

yields no results, so it must be defined at some higher level of abstraction..


well, in type-imp-latinmodern.mkiv i can find 'designsize' ... you're 
not relying on some gpt driven search machine are you?



(likely we will go for \enableexperiments[fonts.compact] anyway which is
also more efficient)


Ok, that would be very helpful; many thanks.

it might process your arabic a bit faster

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://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] An error which is not in .log file

2023-08-15 Thread Xavier B.
After trying to compile a long file with LMTX (previously with MKIV all 
compiles perfectly), I get an error

structures  > bookmark: Referències
structure   > sectioning > chapter @ level 2 : 0.1 -> Referències
publications> list > collecting entries using method 'global' and sort 
order 'default'
pages   > flushing realpage 296, userpage 294, subpage 296
structures  > bookmark: Índex alfabètic
structure   > sectioning > chapter @ level 2 : 0.2 -> \headtext {index}
pages   > flushing realpage 297, userpage 295, subpage 297
structures  > end of sectionblock 'backpart'
close source> level 1, order 147, name './ng-exercicis.conTeXt'
(\end occurred inside a group at level 8)
8:0: semisimple group entered at line 276: \begingroup
7:0: semisimple group entered at line 5: \begingroup
6:0: semisimple group entered at line 5: \begingroup
5:0: semisimple group entered at line 114: \begingroup
4:0: semisimple group entered at line 114: \begingroup
3:0: semisimple group entered at line 5: \begingroup
2:0: semisimple group entered at line 5: \begingroup
1:0: semisimple group entered at line 27: \begingroup
0:0: bottomlevel
mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: 
/home/xan/bin/context-current/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.004 seconds, 0 scans with 
scantime 0.000 seconds, 0 shared scans, 240 found files, scanned paths: 
mkiv lua stats  > stored bytecode data: 512 modules (0.181 sec), 105 tables 
(0.010 sec), 617 chunks (0.191 sec)
mkiv lua stats  > traced context: maxstack: 1715, freed: 2, unreachable: 1713
mkiv lua stats  > cleaned up reserved nodes: 85 nodes, 11 lists of 671
mkiv lua stats  > node memory usage: 291 attribute, 62 dir, 91 glue, 3281 
gluespec, 1 glyph, 1 hlist, 1 kern, 2 math, 645 mathspec, 4 penalty, 18 rule, 2 
temp, 66305 whatsit
mkiv lua stats  > node list callback tasks: 16 unique task lists, 18 instances 
(re)created, 119367 calls
mkiv lua stats  > h-node processing time: 0.653 seconds including kernel
mkiv lua stats  > attribute processing time: 0.119 seconds front- and backend
mkiv lua stats  > driver time: 0.693 seconds
mkiv lua stats  > used backend: pdf
mkiv lua stats  > jobdata time: 0.054 seconds saving, 0.000 seconds loading
mkiv lua stats  > callbacks: file: 69204, saved: 309548, direct: 957, function: 
244605, value: 7598, message: 0, bytecode: 617, late 0, total: 632529 (0 per 
page)
mkiv lua stats  > randomizer: initialized with value 0.45060333164985
mkiv lua stats  > v-node processing time: 0.259 seconds
mkiv lua stats  > loaded tex modules: 4 requested, 1 found (*-tikz), 3 missing 
(*-pgfmat *-pgfmath *-pgfrcs)
mkiv lua stats  > loaded patterns: ca::65 en::1, load time: 0.000
mkiv lua stats  > interactive elements: 74 references, 950 destinations
mkiv lua stats  > loaded fonts: 13 files: latinmodern-math.otf, 
lmmono10-regular.otf, lmroman10-bold.otf, lmroman10-italic.otf, 
lmroman10-regular.otf, lmromancaps10-regular.otf, lmromanslant10-regular.otf, 
lmsans10-bold.otf, lmsans10-boldoblique.otf, lmsans10-regular.otf, 
texgyreschola-bold.otf, texgyreschola-math.otf, texgyreschola-regular.otf
mkiv lua stats  > font engine: otf 3.133, afm 1.513, tfm 1.000, 68 instances, 
51 shared in backend, 8 common vectors, 43 common hashes, load time 1.181 
seconds
mkiv lua stats  > body font sizes: defined: 10pt 11pt 12pt 14.4pt 17.3pt 20.7pt 
4pt 5pt 6pt 7pt 8pt 9pt, undefined: 11.2pt 12.8pt 14pt 16.8pt 16pt 19.2pt 24pt 
30pt 36pt
mkiv lua stats  > metapost: 0.000 seconds, loading: 0.033, execution: 0.000, n: 
3, average: 0.011, instances: 1, luacalls: 14196 (file: 13784, text: 0, script: 
393, log: 19), memory: 3.881 M
mkiv lua stats  > math tweaking time: 0.474 seconds, 84 math goodie tables
mkiv lua stats  > math processing time: 0.292 seconds
mkiv lua stats  > graphics processing time: 1.768 seconds including tex, 268 
processed images, 57 unique asked, 27 bad names
mkiv lua stats  > publications load time: 0.005 seconds, 2963 bytes, 11 
definitions, 0 shortcuts
mkiv lua stats  > pdf annotations: 74 links (74 unique), 0 special
mkiv lua stats  > font embedding time: 0.018 seconds, 13 fonts
mkiv lua stats  > result saved in file: ng-exercicis.pdf, compresslevel 1, 
objectcompresslevel 3
mkiv lua stats  > positions: 311 collected, 0 deltas, 307 shared partials, 133 
partial entries
mkiv lua stats  > cross referencing: 713 identified, 269 unknown
mkiv lua stats  > used platform: linux-64, type: unix, binary subtree: 
texmf-linux-64
mkiv lua stats  > used engine: luametatex version: 2.10.10, functionality 
level: 20230803, format id: 697, compiler: gcc
mkiv lua stats  > tex properties: 806417 hash slots used of 2097152, 70025 
control sequences, approximate memory usage: 82 MB
mkiv lua stats  > lua properties: engine: lua 5.4, used memory: 213 MB, ctx: 
198 MB, max: 306 MB, symbol mask: 

[NTG-context] Re: Very strange error:

2023-08-15 Thread Aditya Mahajan
On Mon, 14 Aug 2023, Xavier B. wrote:
> > Can you show the text (and commands) which appears on line 540 (plus a 
> > few lines before/after line 540) of your document.
> > 
> I attach the dev.log and dev-error.log. Is it enough?

You should show a *complete* context source document that generates the error. 
See 

https://tex.meta.stackexchange.com/questions/228/ive-just-been-asked-to-write-a-minimal-working-example-mwe-what-is-that

(Most of the advice here is latex specific, but the idea is the same for 
context).

Aditya
___
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] Re: Optical scaling in Latin Modern

2023-08-15 Thread Hamid,Idris
On Aug 15, 2023, 8:09 AM -0600, Hans Hagen , wrote:

> yes, but there are also typescript that define the sizes (made more
> sense on low res printers) .. the current defaults have been so for many
> years (so the fact that you didn't notice ...)

Maybe I forgot about it.. I seem to remember a very long time ago some 
experiments with typescripts for computer-modern opticals, before latin modern 
became default (it's all foggy now..)

But for sure ConTeXt used to load lmroman12-regular (or the computer-modern 12 
pt) by default. So things have changed..

> well you can load the design size typescript

Ok, where is that design size typescript? A search for, e.g., lmroman8-regular 
etc. in

texmf-context/tex/context/base/mkiv

yields no results, so it must be defined at some higher level of abstraction..


> (likely we will go for \enableexperiments[fonts.compact] anyway which is
> also more efficient)

Ok, that would be very helpful; many thanks.

Best wishes
Idris
--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] Re: Optical scaling in Latin Modern

2023-08-15 Thread Hans Hagen

On 8/15/2023 3:56 PM, Hamid,Idris wrote:

Dear gang,

It seems that ConTeXt does not currently implement optical scaling for Latin 
Modern -- at least not by default. For example:

===
\startTEXpage[offset=1em]
Test {\tfa Test} {\tfb Test} {\tfc Test} {\tfd Test} {\tfx Test} {\tfxx Test}
\stopTEXpage
===

In the log we have

===
mkiv lua stats  > loaded fonts: 2 files: latinmodern-math.otf, 
lmroman10-regular.otf
===

Is this behavior intentional? The needed sizes are certainly available 
(/texmf/fonts/data/gust/lm).


yes, but there are also typescript that define the sizes (made more 
sense on low res printers) .. the current defaults have been so for many 
years (so the fact that you didn't notice ...)


these sizes are mostly for math and we have a 10pt lm math with built in 
scritp and scriptscript



This issue came up while trying to test/implement something else. Although 
Computer Modern / Latin Modern is perhaps hardly popular for contemporary 
publication work, a full implementation of the full palette of optical sizes is 
still useful as a benchmark, etc.

well you can load the design size typescript

(likely we will go for \enableexperiments[fonts.compact] anyway which is 
also more efficient)


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://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] Optical scaling in Latin Modern

2023-08-15 Thread Hamid,Idris
Dear gang,

It seems that ConTeXt does not currently implement optical scaling for Latin 
Modern -- at least not by default. For example:

===
\startTEXpage[offset=1em]
Test {\tfa Test} {\tfb Test} {\tfc Test} {\tfd Test} {\tfx Test} {\tfxx Test}
\stopTEXpage
===

In the log we have

===
mkiv lua stats  > loaded fonts: 2 files: latinmodern-math.otf, 
lmroman10-regular.otf
===

Is this behavior intentional? The needed sizes are certainly available 
(/texmf/fonts/data/gust/lm).

This issue came up while trying to test/implement something else. Although 
Computer Modern / Latin Modern is perhaps hardly popular for contemporary 
publication work, a full implementation of the full palette of optical sizes is 
still useful as a benchmark, etc.

Best wishes
Idris

--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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
___