Re: [NTG-context] Change in \vec behavior

2023-01-22 Thread Jean-Philippe Rey via ntg-context
Hello,Does anyone have some insight on this issue?Thanks,Le 18 déc. 2022 à 19:37, Jean-Philippe Rey via ntg-context <ntg-context@ntg.nl> a écrit :Hello,As I usually do at the end of each year, I upgraded my ConTeXt installation. I noticed a change in \vec behavior which doesn't extend the arrow anymore. Here is my example:\starttextEngine: \texenginename\ \texengineversion\ConTeXt: \contextversionnumber\type{$\vec{AB}$} : $\vec{AB}$\stoptextThe result with the latest ConTeXt version:

GraphiqueCollé-1.pdf
Description: Adobe PDF document
and with the version from a year ago:

GraphiqueCollé-2.pdf
Description: Adobe PDF document
I am aware that I could use \overrightarrow, but I prefer the shape and position of the \vec arrow, especially with single letters.

GraphiqueCollé-3.pdf
Description: Adobe PDF document


GraphiqueCollé-4.pdf
Description: Adobe PDF document
What is the rationale for the change in \vec? Is there a way to get the previous behavior back?Thanks,
-- Jean-Philippe Reyjean-philippe@centralesupelec.fr91192 Gif-sur-Yvette Cedex - FranceEmpreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51

___
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] Change in \vec behavior

2022-12-18 Thread Jean-Philippe Rey via ntg-context
Hello,

As I usually do at the end of each year, I upgraded my ConTeXt installation. I 
noticed a change in \vec behavior which doesn't extend the arrow anymore. Here 
is my example:

\starttext
Engine: \texenginename\ \texengineversion

\ConTeXt: \contextversionnumber

\type{$\vec{AB}$} : $\vec{AB}$
\stoptext

The result with the latest ConTeXt version:



GraphiqueCollé-1.pdf
Description: Adobe PDF document


and with the version from a year ago:



GraphiqueCollé-2.pdf
Description: Adobe PDF document


I am aware that I could use \overrightarrow, but I prefer the shape and 
position of the \vec arrow, especially with single letters.



GraphiqueCollé-3.pdf
Description: Adobe PDF document
  

GraphiqueCollé-4.pdf
Description: Adobe PDF document

What is the rationale for the change in \vec? Is there a way to get the 
previous behavior back?

Thanks,

-- 
Jean-Philippe Rey
jean-philippe@centralesupelec.fr
91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51

___
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 log coordinates in metafun graph module

2021-12-09 Thread Jean-Philippe Rey via ntg-context
Dear list,

I dived into m-grap.mpiv and found that "log" coordinates are now called 
"logarithmic". So

   setcoords(logarithmic, linear)

is the new way and it works with the last ConTeXt version.

Jean-Philippe,

> Le 8 déc. 2021 à 11:49, Jean-Philippe Rey via ntg-context 
>  a écrit :
> 
> Dear list,
> 
> Log coordinates seem to be broken in the last version of 
> ConTeXt/metafun/graph.
> 
> Here is my failing example
> 
> ===
> \usemodule[graph]
> \starttext
> \startMPcode{graph}
> draw begingraph(100mm, 100mm);
>   setcoords(log, linear);   % works fine with setcoords(linear, linear);
>   gdraw (1e-3, 10) -- (10, 30);
>   endgraph;
> \stopMPcode
> \stoptext
> ===
> 
> which produces nothing but works with ConTeXt  ver: 2021.01.05 10:45 LMTX.
> 
> You will find attached the log file which contains
> 
> metafun > log > error: A primary expression can't begin with ','
> 
> Thank you for your help.


___
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] Problem with log coordinates in metafun graph module

2021-12-08 Thread Jean-Philippe Rey via ntg-context
Dear list,

Log coordinates seem to be broken in the last version of ConTeXt/metafun/graph.

Here is my failing example

===
\usemodule[graph]
\starttext
\startMPcode{graph}
draw begingraph(100mm, 100mm);
setcoords(log, linear);   % works fine with setcoords(linear, linear);
gdraw (1e-3, 10) -- (10, 30);
endgraph;
\stopMPcode
\stoptext
===

which produces nothing but works with ConTeXt  ver: 2021.01.05 10:45 LMTX.

You will find attached the log file which contains

metafun > log > error: A primary expression can't begin with ','

Thank you for your help.

-- 
Jean-Philippe Rey
jean-philippe@centralesupelec.fr
91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51


mfe-graphlog.log
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Typographical quotes

2021-11-27 Thread Jean-Philippe Rey via ntg-context
> Le 27 nov. 2021 à 17:59, Wolfgang Schuster 
>  a écrit :
> 
> Jean-Philippe Rey via ntg-context schrieb am 27.11.2021 um 16:21:
>> Dear list,
>> 
>> When typing a straight quotation mark, I used to get a curly apostrophe. But 
>> with a recent version of ConTeXt, I now get a straight apostrophe. Is there 
>> a new option to convert automatically straight into curly apostrophes ?
>> 
>> \starttext
>> John's
>> \stoptext
> 
> The option is no longer part of the default feature set. To enable the 
> feature add "trep=yes" to the default features.
> 
> \definefontfeature [default] [default] [trep=yes]

Thanks a lot Wolfgang. Where can we find the current default feature set ?

-- 
Jean-Philippe Rey
jean-philippe@centralesupelec.fr 
<mailto:jean-philippe@centralesupelec.fr>
91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


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

2021-11-27 Thread Jean-Philippe Rey via ntg-context
Denis,

I have used natural tables that span multiple pages. However, if I am right, 
each row must be contained on a single page. That may be an issue depending on 
your use cases.

Best,

> Le 27 nov. 2021 à 17:45, denis.ma...@unibe.ch a écrit :
> 
> Bonjour Jean-Philippe
>  
> Thank you for your response. That sounds very promising. I don’t remember why 
> I didn’t use natural tables when I’ve started setting things up for this 
> journal. I think I’d might have had something to do with tables that break 
> across pages. (At least, this is 
> whathttps://wiki.contextgarden.net/Tables_Overview 
>  currently says: 
> extremetables are said to be better when page breaking is involved.)
> Have you ever noticed problems in that area?
>  
> Best,
> Denis
>  
> Von: Jean-Philippe Rey  
> Gesendet: Samstag, 27. November 2021 17:36
> An: mailing list for ConTeXt users 
> Cc: Maier, Denis Christian (UB) 
> Betreff: Re: [NTG-context] Have a cell span multiple columns with tabulate
>  
> Dear Denis,
> 
> 
> Le 27 nov. 2021 à 13:25, Denis Maier via ntg-context  > a écrit :
>  
> Hi,
>  
> I’m using tabulate for parallel texts (source and translation next to each 
> other). The top of each table should consist of only one cell covering both 
> columns with centered content. Is that possible?
>  
> A HTML equivalent will look roughly like this:
>  
> 
>   
> Manuscript XY 
>   
>   
> Some text in Greek or Hebrew or whatever
> This is the translation
>   
> 
>  
> With ConteXt I’d like to do something like this
>  
> \starttabulate[|p(1.2cm)|p(1.2cm)|]
>   \NC Manuscript XY \NR
>   \NC  Some text in Greek or Hebrew or whatever
>   \NC  This is the translation \NC \NR
>  
> \stoptabulate
>  
> This compiles (interestingly?), but the cells at the top aren’t merged.
>  
> Any ideas ?
>  
> I know that natural tables offer more in this regard, but those seem not to 
> be so well suited for parallel texts.
>  
> I switched to natural tables a long time ago and that's how I would do it:
>  
> \starttext
> \bTABLE[width=8cm, frame=off]
> \setupTABLE[c][1][roffset=0.5em]
> \setupTABLE[c][2][loffset=0.5em]
> \bTR
>   \bTD[nc=2, align=center, bottomframe=on] Manuscript XY \eTD
> \eTR\bTR
> \bTD
>   Some text in Greek or Hebrew or whatever.
>   
>   The text can comprise multiple paragraphs.
>   Or even lists and other goodies :
>   \startitemize[intro, packed]
>   \item first item
>   \item second item
>   \stopitemize
> \eTD\bTD
>   This is the translation
> \eTD
> \eTR
> \eTABLE
> \stoptext
>  
> I haven't seen drawbacks with parallel texts (yet) and I found natural tables 
> very flexible.
>  
> Hope it helps,
> 
> -- 
> Jean-Philippe Rey
> jean-philippe@centralesupelec.fr 
> 
> 91192 Gif-sur-Yvette Cedex - France
> Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51


-- 
Jean-Philippe Rey
jean-philippe@centralesupelec.fr 

91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


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

2021-11-27 Thread Jean-Philippe Rey via ntg-context
Dear Denis,

> Le 27 nov. 2021 à 13:25, Denis Maier via ntg-context  a 
> écrit :
> 
> Hi,
>  
> I’m using tabulate for parallel texts (source and translation next to each 
> other). The top of each table should consist of only one cell covering both 
> columns with centered content. Is that possible?
>  
> A HTML equivalent will look roughly like this:
>  
> 
>   
> Manuscript XY 
>   
>   
> Some text in Greek or Hebrew or whatever
> This is the translation
>   
> 
>  
> With ConteXt I’d like to do something like this
>  
> \starttabulate[|p(1.2cm)|p(1.2cm)|]
>   \NC Manuscript XY \NR
>   \NC  Some text in Greek or Hebrew or whatever
>   \NC  This is the translation \NC \NR
>  
> \stoptabulate
>  
> This compiles (interestingly?), but the cells at the top aren’t merged.
>  
> Any ideas ?
>  
> I know that natural tables offer more in this regard, but those seem not to 
> be so well suited for parallel texts.

I switched to natural tables a long time ago and that's how I would do it:

\starttext
\bTABLE[width=8cm, frame=off]
\setupTABLE[c][1][roffset=0.5em]
\setupTABLE[c][2][loffset=0.5em]
\bTR
\bTD[nc=2, align=center, bottomframe=on] Manuscript XY \eTD
\eTR\bTR
\bTD
Some text in Greek or Hebrew or whatever.

The text can comprise multiple paragraphs.
Or even lists and other goodies :
\startitemize[intro, packed]
\item first item
\item second item
\stopitemize
\eTD\bTD
This is the translation
\eTD
\eTR
\eTABLE
\stoptext
 
I haven't seen drawbacks with parallel texts (yet) and I found natural tables 
very flexible.

Hope it helps,


-- 
Jean-Philippe Rey
jean-philippe@centralesupelec.fr 

91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51

___
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] Typographical quotes

2021-11-27 Thread Jean-Philippe Rey via ntg-context
Dear list,

When typing a straight quotation mark, I used to get a curly apostrophe. But 
with a recent version of ConTeXt, I now get a straight apostrophe. Is there a 
new option to convert automatically straight into curly apostrophes ?

\starttext
John's
\stoptext

gives


GraphiqueCollé-1.pdf
Description: Adobe PDF document


where I used to get



GraphiqueCollé-2.pdf
Description: Adobe PDF document

Here is my log file

resolvers   | formats | executing runner 'run luametatex format': 
/Users/jprey/Applications/ConTeXt/Current/osx-64/tex/texmf-osx-64/bin/luametatex
 --jobname="./mfe-quote.tex" 
--fmt=/Users/jprey/Applications/ConTeXt/Current/osx-64/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt
 
--lua=/Users/jprey/Applications/ConTeXt/Current/osx-64/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui
  --c:currentrun=1 --c:fulljobname="./mfe-quote.tex" 
--c:input="./mfe-quote.tex" --c:kindofrun=1 --c:maxnofruns=9 
--c:texmfbinpath="/Users/jprey/Applications/ConTeXt/Current/osx-64/tex/texmf-osx-64/bin"
system  > 
system  > ConTeXt  ver: 2021.11.19 09:31 LMTX  fmt: 2021.11.22  int: 
english/english
system  > 
system  > 'cont-new.mkxl' loaded
open source > level 1, order 1, name 
'/Users/jprey/Applications/ConTeXt/Current/osx-64/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 1, order 1, name 
'/Users/jprey/Applications/ConTeXt/Current/osx-64/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > files > jobname './mfe-quote', input './mfe-quote.tex', 
result './mfe-quote'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 1, order 2, name './mfe-quote.tex'
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
backend > xmp > using file 
'/Users/jprey/Applications/ConTeXt/Current/osx-64/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages   > flushing realpage 1, userpage 1, subpage 1
close source> level 1, order 2, name './mfe-quote.tex'
mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: 
/Users/jprey/Applications/ConTeXt/Current/osx-64/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.013 seconds, 0 scans with 
scantime 0.000 seconds, 0 shared scans, 9 found files, scanned paths: 
mkiv lua stats  > stored bytecode data: 499 modules (0.248 sec), 99 tables 
(0.013 sec), 598 chunks (0.260 sec)
mkiv lua stats  > traced context: maxstack: 1607, freed: 0, unreachable: 1607
mkiv lua stats  > cleaned up reserved nodes: 71 nodes, 9 lists of 435
mkiv lua stats  > node memory usage: 6 attribute, 3 attribute_list, 1 glue, 58 
glue_spec, 3 kern, 2 penalty, 2 temp
mkiv lua stats  > node list callback tasks: 12 unique task lists, 7 instances 
(re)created, 45 calls
mkiv lua stats  > used backend: pdf
mkiv lua stats  > jobdata time: 0.001 seconds saving, 0.000 seconds loading
mkiv lua stats  > callbacks: file: 57, saved: 146, direct: 2, function: 973, 
value: 1, message: 0, bytecode: 598, late 0, total: 1777 (0 per page)
mkiv lua stats  > randomizer: initialized with value 0.051172108195605
mkiv lua stats  > loaded patterns: en::1, load time: 0.000
mkiv lua stats  > loaded fonts: 2 files: latinmodern-math.otf, 
lmroman12-regular.otf
mkiv lua stats  > font engine: otf 3.119, afm 1.513, tfm 1.000, 7 instances, 3 
shared in backend, 3 common vectors, 0 common hashes, load time 0.151 seconds 
mkiv lua stats  > font embedding time: 0.002 seconds, 1 fonts
mkiv lua stats  > result saved in file: mfe-quote.pdf, compresslevel 1, 
objectcompresslevel 3
mkiv lua stats  > positions: 4 collected, 0 deltas, 0 shared partials, 0 
partial entries
mkiv lua stats  > used platform: osx-64, type: unix, binary subtree: 
texmf-osx-64
mkiv lua stats  > used engine: luametatex version: 2.093, functionality level: 
2027, format id: 603, compiler: clang
mkiv lua stats  > tex properties: 740046 hash slots used of 2097152, 46674 
control sequences, approximate memory usage: 29 MB
mkiv lua stats  > lua properties: engine: lua 5.4, used memory: 55 MB, ctx: 53 
MB, max: 53 MB, symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 0.500 seconds, 1 processed pages, 1 shipped pages, 
1.998 pages/second

resolvers   | formats | executing runner 'run luametatex format': 
/Users/jprey/Applications/ConTeXt/Current/osx-64/tex/texmf-osx-64/bin/luametatex
 --jobname="./mfe-quote.tex" 
--fmt=/Users/jprey/Applications/ConTeXt/Current/osx-64/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt
 

[NTG-context] Problem with \head inside \itemize

2021-11-22 Thread Jean-Philippe Rey via ntg-context
Dear list,

The following code worked perfectly well with ConTeXt  ver: 2021.01.05 10:45 
LMTX
but produces an error with the current LMTX version (at least since ConTeXt  
ver: 2021.09.26 17:00 LMTX).
Adding an explicit \par at the end of the \head line allows the example to work.

Best regards,
JP

Here is the minimal failing example :

===
\starttext
\startitemize
\head Title

text
\stopitemize
\stoptext
===

and the corresponding log output :

===
resolvers   | formats | executing runner 'run luametatex format': 
/Users/jprey/Applications/ConTeXt/Current/osx-64/tex/texmf-osx-64/bin/luametatex
 --jobname="./mfe-head.tex" 
--fmt=/Users/jprey/Applications/ConTeXt/Current/osx-64/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt
 
--lua=/Users/jprey/Applications/ConTeXt/Current/osx-64/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui
  --c:currentrun=1 --c:fulljobname="./mfe-head.tex" --c:input="./mfe-head.tex" 
--c:kindofrun=1 --c:maxnofruns=9 
--c:texmfbinpath="/Users/jprey/Applications/ConTeXt/Current/osx-64/tex/texmf-osx-64/bin"
system  > 
system  > ConTeXt  ver: 2021.11.19 09:31 LMTX  fmt: 2021.11.22  int: 
english/english
system  > 
system  > 'cont-new.mkxl' loaded
open source > level 1, order 1, name 
'/Users/jprey/Applications/ConTeXt/Current/osx-64/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 1, order 1, name 
'/Users/jprey/Applications/ConTeXt/Current/osx-64/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > files > jobname './mfe-head', input './mfe-head.tex', result 
'./mfe-head'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 1, order 2, name './mfe-head.tex'
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
tex error   > tex error on line 8 in file ./mfe-head.tex: The file ended 
when scanning an argument.

Title \par text \stopitemize \stoptext 

 
\stoptext

1 \starttext
2 \startitemize
3 \head Title
4 
5 text
6 \stopitemize
7 \stoptext
8 >>  
mtx-context | fatal error: return code: 256


-- 
Jean-Philippe Rey
jean-philippe@centralesupelec.fr
91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51

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