Re: [NTG-context] PGFPlots does not work with LMTX

2020-04-24 Thread Henri Menke
That has already been reported on the pgfplots bugtracker
https://github.com/pgf-tikz/pgfplots/issues/350
and here on the mailing list
https://mailman.ntg.nl/pipermail/ntg-context/2020/097514.html

Here I quote Aditya's workaround:

I have no clue what pgfplotsbinary.data.code.tex does, but simply 
bypassing that works for the simple example above.

Simply create an empty file with the name pgfplotsbinary.data.code.tex in 
your current directory and compile your example.

Note that if your code uses any of the features which are provided by this 
file (and I am not sure what they are), then it will fail. But at least 
this "fix" works for the simple example above.

On 24/04/20, 20:23, Jairo A. del Rio wrote:
> I'm testing LMTX with documents I've written for ConTeXt MKIV. I've copied
> the third party module folder from ConTeXt and some of them work like a
> charm (t-vim, TikZ, etc.). Nonetheless, I find PGFPlots just doesn't work.
> I've tried with the minimal example:
> 
> \usemodule[pgfplots]
> \starttext
> Hola
> \stoptext
> 
> and LMTX gives the following error message (omitting spaces):
> 
> tex error   > tex error on line 42 in file
> pgfplotsbinary.data.code.tex: ! Undefined control sequence
> l.42 \catcode`\ =11^^I\expandafter\xdef\csname pgfp@bin@
> 
> \the\counter^^I\endcsname{^^20}\endgroup\advance\counter by1
> lua error:
> ?
> 
> The control sequence at the end of the top line of your error message was
> never
> \def'ed. You can just continue as I'll forget about whatever was undefined.
> 
> Why does it happen and how to make the code work?

> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


[NTG-context] PGFPlots does not work with LMTX

2020-04-24 Thread Jairo A. del Rio
I'm testing LMTX with documents I've written for ConTeXt MKIV. I've copied
the third party module folder from ConTeXt and some of them work like a
charm (t-vim, TikZ, etc.). Nonetheless, I find PGFPlots just doesn't work.
I've tried with the minimal example:

\usemodule[pgfplots]
\starttext
Hola
\stoptext

and LMTX gives the following error message (omitting spaces):

tex error   > tex error on line 42 in file
pgfplotsbinary.data.code.tex: ! Undefined control sequence
l.42 \catcode`\ =11^^I\expandafter\xdef\csname pgfp@bin@

\the\counter^^I\endcsname{^^20}\endgroup\advance\counter by1
lua error:
?

The control sequence at the end of the top line of your error message was
never
\def'ed. You can just continue as I'll forget about whatever was undefined.

Why does it happen and how to make the code work?
___
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] METAPOST textext() eats my \pars. Was: Setting vertical spacing of lines inside a \framed[align=]

2020-04-24 Thread Gerben Wierda
> On 24 Apr 2020, at 18:40, Thomas A. Schmitz  > wrote:
> 
> 
> 
>> On 24. Apr 2020, at 18:19, Gerben Wierda > > wrote:
>> 
>> \starttext
>> 
>> \framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
>>  g=0.000,
>> b=0.000]{\switchtobodyfont[11.0pt] \setupinterlinespace[20pt] \rm 
>> [My]\\Application\\(Component)}}
>> 
>> \stoptext
>> 
>> and if I change the value to 0.6, only the first line break gets packed 
>> somewhat. But I can’t get the entire paragraph inside the frame packed. I 
>> played around with the placing of setupinterlinespace in that snippet above, 
>> but nothing really works so far.
>> 
> 
> At the end of your frame, you need an explicit \par to make the change of 
> linespacing work:
> 
> \framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
>  g=0.000,
> b=0.000]{\switchtobodyfont[11.0pt] \setupinterlinespace[14pt] \rm 
> [My]\\Application\\(Component)\par }}

Thank you, that works. (Can’t put in the images to show, as this gets my 
message over 100k)

But it turns out, I have an additional problem because I am doing this inside a 
textext() from METAPOST and that seems to strip the \pars again. Tracking 
ConTeXt:

cld > tex > f : 8 : picture pic; x:=33.000; y:=53.000; w:=133.000; 
h:=53.000;pic := ApplicationComponentLogo( w, h, (0.686,1.000,1.000), 0.200, 
1.000, (0.000,0.000,0.000), 1.000, 0.700, (0.000,0.000,0.000), 1.000, 
"\framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
 g=0.000, b=0.000]{\switchtobodyfont[11.0pt]\setupinterlinespace[11.5pt] \rm 
[My]\\Application\\(Component)\par}}\par") shifted (x, -y); draw pic;path 
AllNodeIds_idIC;  AllNodeIds_idIC := pathpart pic; pair AllNodeCenters_idIC; 
AllNodeCenters_idIC := center pic;

which looks OK (this is lmtx passing the string to ConTeXt using the lua 
context() call). The \pars are still there.

Then later, when METAPOST is at it and that same string is used to put into 
textext(), it results in:

cld > tex > w : - : \MPLIBsetNtextX{3}{\framed 
[align=flushright,frame=on,offset=none,width=106.400bp]{\colored [r=0.000, 
g=0.000, b=0.000]{\switchtobodyfont [11.0pt]\setupinterlinespace [11.5pt] \rm 
[My]\\Application\\(Component)}}}


Minimal example:

\enabletrackers[context.trace]
\starttext

% Works OK:
\framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
 g=0.000,
b=0.000]{\switchtobodyfont[11.0pt]\setupinterlinespace[11.5pt] \rm 
[My]\\Application\\(Component)\par}}

% Doesn’t work:
\startMPpage[instance=doublefun]
draw 
textext("\framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
 g=0.000, b=0.000]{\switchtobodyfont[11.0pt]\setupinterlinespace[11.5pt] \rm 
[My]\\Application\\(Component)\par}}\par");
\stopMPpage


\stoptext

So, now I’m looking for a way to prevent textext() to eat my \pars

G

___
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] METAPOST textext() eats my \pars. Was: Setting vertical spacing of lines inside a \framed[align=]

2020-04-24 Thread Gerben Wierda


> On 24 Apr 2020, at 18:40, Thomas A. Schmitz  > wrote:
> 
> 
> 
>> On 24. Apr 2020, at 18:19, Gerben Wierda > > wrote:
>> 
>> \starttext
>> 
>> \framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
>>  g=0.000,
>> b=0.000]{\switchtobodyfont[11.0pt] \setupinterlinespace[20pt] \rm 
>> [My]\\Application\\(Component)}}
>> 
>> \stoptext
>> 
>> and if I change the value to 0.6, only the first line break gets packed 
>> somewhat. But I can’t get the entire paragraph inside the frame packed. I 
>> played around with the placing of setupinterlinespace in that snippet above, 
>> but nothing really works so far.
>> 
> 
> At the end of your frame, you need an explicit \par to make the change of 
> linespacing work:
> 
> \framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
>  g=0.000,
> b=0.000]{\switchtobodyfont[11.0pt] \setupinterlinespace[14pt] \rm 
> [My]\\Application\\(Component)\par }}

Thank you, that works: 



But it turns out, I have an additional problem because I am doing this inside a 
textext() from METAPOST and that seems to strip the \pars again. Tracking 
ConTeXt:

cld > tex > f : 8 : picture pic; x:=33.000; y:=53.000; w:=133.000; 
h:=53.000;pic := ApplicationComponentLogo( w, h, (0.686,1.000,1.000), 0.200, 
1.000, (0.000,0.000,0.000), 1.000, 0.700, (0.000,0.000,0.000), 1.000, 
"\framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
 g=0.000, b=0.000]{\switchtobodyfont[11.0pt]\setupinterlinespace[11.5pt] \rm 
[My]\\Application\\(Component)\par}}\par") shifted (x, -y); draw pic;path 
AllNodeIds_idIC;  AllNodeIds_idIC := pathpart pic; pair AllNodeCenters_idIC; 
AllNodeCenters_idIC := center pic;

which looks OK (this is lmtx passing the string to ConTeXt using the lua 
context() call). The \pars are still there.

Then later, when METAPOST is at it and that same string is used to put into 
textext(), it results in:

cld > tex > w : - : \MPLIBsetNtextX{3}{\framed 
[align=flushright,frame=on,offset=none,width=106.400bp]{\colored [r=0.000, 
g=0.000, b=0.000]{\switchtobodyfont [11.0pt]\setupinterlinespace [11.5pt] \rm 
[My]\\Application\\(Component)}}}

The result of which is



Minimal example:

\enabletrackers[context.trace]
\starttext

% Works OK:
\framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
 g=0.000,
b=0.000]{\switchtobodyfont[11.0pt]\setupinterlinespace[11.5pt] \rm 
[My]\\Application\\(Component)\par}}

% Doesn’t work:
\startMPpage[instance=doublefun]
draw 
textext("\framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
 g=0.000, b=0.000]{\switchtobodyfont[11.0pt]\setupinterlinespace[11.5pt] \rm 
[My]\\Application\\(Component)\par}}\par");
\stopMPpage


\stoptext

So, now I’m looking for a way to prevent textext() to eat my \pars

G___
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] Changing the font size in an environment changes the behavior of a macro

2020-04-24 Thread Fabrice Couvreur
Hi,
This macro was written by Otared and it works well unless I change the size
of the font (see the second graph).
How to correct this problem ?
Thanks for your help.
Fabrice

 begin example

\usemodule[pgfplots]
\pgfplotsset{compat=newest}
\define[2]\cscript{\start\switchtobodyfont[xitsbidi]\m{{\mathscript{#1}}_{#2}}\stop}

\starttext

 \startmidaligned
 \starttikzpicture
 \startaxis
   \addplot {x};
   \node[above left] at (2,2) {\cscript{C}{f}};
   \stopaxis
 \stoptikzpicture
 \stopmidaligned
 \blank
 \startmidaligned
  \switchtobodyfont[9pt]
  \starttikzpicture
  \startaxis
   \addplot {x};
   \node[above left] at (2,2) {\cscript{C}{f}};
   \stopaxis
 \stoptikzpicture
 \stopmidaligned

\stoptext

end example
___
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] Setting vertical spacing of lines inside a \framed[align=]

2020-04-24 Thread Gerben Wierda
Not possible in my case, unless I redefine them for each use (my code is 
generated from data with unpredictable colors), hut thanks anyway


Gerben Wierda
Chess and the Art of Enterprise Architecture
Mastering ArchiMate
Architecture for Real Enterprises at InfoWorld
On Slippery Ice at EAPJ

> On 24 Apr 2020, at 19:32, Wolfgang Schuster 
>  wrote:
> 
> Thomas A. Schmitz schrieb am 24.04.2020 um 18:40:
 On 24. Apr 2020, at 18:19, Gerben Wierda  wrote:
>>> 
>>> \starttext
>>> 
>>> \framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
>>>  g=0.000,
>>> b=0.000]{\switchtobodyfont[11.0pt] \setupinterlinespace[20pt] \rm 
>>> [My]\\Application\\(Component)}}
>>> 
>>> \stoptext
>>> 
>>> and if I change the value to 0.6, only the first line break gets packed 
>>> somewhat. But I can’t get the entire paragraph inside the frame packed. I 
>>> played around with the placing of setupinterlinespace in that snippet 
>>> above, but nothing really works so far.
>> At the end of your frame, you need an explicit \par to make the change of 
>> linespacing work:
>> \framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
>>  g=0.000,
>> b=0.000]{\switchtobodyfont[11.0pt] \setupinterlinespace[14pt] \rm 
>> [My]\\Application\\(Component)\par }}
>> https://www.mail-archive.com/ntg-context@ntg.nl/msg45676.html
> 
> Use style/color keys when possible.
> 
> \starttext
> 
> \framed
>  [align=flushright,
>   offset=none,
>   width=106.400bp,
>   foregroundcolor=black,
> foregroundstyle={\switchtobodyfont[11.0pt]\setupinterlinespace[line=2.4ex]}]
>  {[My]\par Application\par (Component)\par}
> 
> \stoptext
> 
> Wolfgang
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___
___
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] Negative width vrule ignored in LuaMETATeX

2020-04-24 Thread Hans Hagen

On 4/24/2020 7:44 PM, Ao Shen wrote:

Thanks for your timely reply!

Hans Hagen  于2020年4月24日周五 下午11:38写道:


no, but i must admit that it's kind of a border case ... i'll fix it but
also wonder if *no* visual rule showing up is intended (i would then
also expect an engine to show a rule .. could be an interesting new
(luametatex) option as it saves kerns in some cases)


My use cases of negative vrule is a little tricky. I'm trying to comply with
W3C's [Requirements for Japanese Text Layout](https://www.w3.org/TR/jlreq/).
It states that

   In principle, closing brackets (cl-02), commas (cl-07) or full stops (cl-06)
   at the line end have a half em space after them (see Fig. 3.20). This half em
   space can be deleted for line adjustment. However, the possibilities are only
   half em space or solid. Other spaces, such as a quarter em space should not 
be
   used.

The tricky part is that I also want the opening fullwidth bracket at the
beginning of the line to be solid, i.e., without half em sidebearing on the left
to make the left margin visually more aligned (this is one but not the only way
of line begining handling shown in jlreq).

To achieve this, in the scripts handler I use the following injector between
'full_width_close' and 'full_width_open':

\hskip -0.5em \penalty 100 \hskip 0.5em minus 0.5em \vrule width
-0.5em height 0pt
^^^(a)^^^(b)

If line is broken here, the only broken points are (a) before the glue or (b) at
the penalty point. With the vrule the sidebearing of the opening bracket at
beginning of next line is eliminated.

In this particular case, a kern is not applicable because it won't survive the
line break. And here a vrule showing nothing is intended.

How about something ...

\startluacode

local classes = fonts.protrusions.classes
local vectors = fonts.protrusions.vectors

classes.myown = {
vector = 'myown',
factor = 1,
}

vectors.myown = table.merged (vectors.quality, {

[0x0028] = { 1, 0 }, -- (
[0x0029] = { 0, 1 }, -- )

})

\stopluacode

\starttext

\showframe

\definefontfeature[whatever][default][protrusion=myown]

\definedfont[Serif*whatever] \setupalign[hanging]

\dorecurse{100}{(#1) }

\stoptext

of course you need to define the cjk fences etc.

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Setting vertical spacing of lines inside a \framed[align=]

2020-04-24 Thread Wolfgang Schuster

Thomas A. Schmitz schrieb am 24.04.2020 um 18:40:



On 24. Apr 2020, at 18:19, Gerben Wierda  wrote:

\starttext

\framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
 g=0.000,
b=0.000]{\switchtobodyfont[11.0pt] \setupinterlinespace[20pt] \rm 
[My]\\Application\\(Component)}}

\stoptext

and if I change the value to 0.6, only the first line break gets packed 
somewhat. But I can’t get the entire paragraph inside the frame packed. I 
played around with the placing of setupinterlinespace in that snippet above, 
but nothing really works so far.


At the end of your frame, you need an explicit \par to make the change of 
linespacing work:

\framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
 g=0.000,
b=0.000]{\switchtobodyfont[11.0pt] \setupinterlinespace[14pt] \rm 
[My]\\Application\\(Component)\par }}

https://www.mail-archive.com/ntg-context@ntg.nl/msg45676.html


Use style/color keys when possible.

\starttext

\framed
  [align=flushright,
   offset=none,
   width=106.400bp,
   foregroundcolor=black,

foregroundstyle={\switchtobodyfont[11.0pt]\setupinterlinespace[line=2.4ex]}]
  {[My]\par Application\par (Component)\par}

\stoptext

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

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


Re: [NTG-context] Setting vertical spacing of lines inside a \framed[align=]

2020-04-24 Thread Thomas A. Schmitz


> On 24. Apr 2020, at 18:19, Gerben Wierda  wrote:
> 
> \starttext
> 
> \framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
>  g=0.000,
> b=0.000]{\switchtobodyfont[11.0pt] \setupinterlinespace[20pt] \rm 
> [My]\\Application\\(Component)}}
> 
> \stoptext
> 
> and if I change the value to 0.6, only the first line break gets packed 
> somewhat. But I can’t get the entire paragraph inside the frame packed. I 
> played around with the placing of setupinterlinespace in that snippet above, 
> but nothing really works so far.
> 

At the end of your frame, you need an explicit \par to make the change of 
linespacing work:

\framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
 g=0.000,
b=0.000]{\switchtobodyfont[11.0pt] \setupinterlinespace[14pt] \rm 
[My]\\Application\\(Component)\par }}

https://www.mail-archive.com/ntg-context@ntg.nl/msg45676.html

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

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


Re: [NTG-context] Setting vertical spacing of lines inside a \framed[align=]

2020-04-24 Thread Gerben Wierda
I want the lines in this frame packed more closely together:

\starttext

\framed[align=flushright,frame=on,offset=none,width=106.400bp]{\setupinterlinespace[0.9]\colored[r=0.000,
 g=0.000,
b=0.000]{\switchtobodyfont[11.0pt] \rm [My]\\Application\\(Component)}}

\stoptext

I tried a bit of fiddling, and the following changes the height of the first 
line only:

\starttext

\framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
 g=0.000,
b=0.000]{\switchtobodyfont[11.0pt] \setupinterlinespace[20pt] \rm 
[My]\\Application\\(Component)}}

\stoptext

and if I change the value to 0.6, only the first line break gets packed 
somewhat. But I can’t get the entire paragraph inside the frame packed. I 
played around with the placing of setupinterlinespace in that snippet above, 
but nothing really works so far.

I left the \colored etc in, because I also need to do all of those, so I need a 
solution that works in the above setting.

Gerben Wierda
Chess and the Art of Enterprise Architecture 
Mastering ArchiMate 
Architecture for Real Enterprises 
 at InfoWorld
On Slippery Ice  at EAPJ

> On 24 Apr 2020, at 17:54, Wolfgang Schuster 
>  wrote:
> 
> Gerben Wierda schrieb am 24.04.2020 um 17:38:
>> I have been experimenting with \startpacked..\stoppacked but it doesn’t seem 
>> to work. What is the preferred way of getting lines in a normal paragraph 
>> (actually, we’re talking about a \framed with align, so a full paragraph in 
>> a TeX \vbox)
> 
> Do you want to have a linebreak at the end of the frame
> 
> \starttext
> 
> \startframed
> \samplefile{knuth}
> \stopframed
> 
> \startframed[width=max,align=normal]
> \samplefile{knuth}
> \stopframed
> 
> \stoptext
> 
> or do you want to change to change the spacing
> 
> \starttext
> 
> \startframedtext[width=max,style={\setupinterlinespace[medium]}]
> \samplefile{knuth}
> \stopframedtext
> 
> \startframedtext[width=max,style={\setupwhitespace[medium]}]
> \samplefile{knuth}
> \stopframedtext
> 
> \stoptext
> 
> Wolfgang

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

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


[NTG-context] Setting vertical spacing of lines inside a \framed[align=]

2020-04-24 Thread Gerben Wierda
I have been experimenting with \startpacked..\stoppacked but it doesn’t seem to 
work. What is the preferred way of getting lines in a normal paragraph 
(actually, we’re talking about a \framed with align, so a full paragraph in a 
TeX \vbox)

(In addition, I try to find this kind of information first, in the manuals and 
in ConTeXtgarden, but I am failing. E.g. I look it up in the manual, do not 
really find it, then look it up in ConTeXt garden but it isn’t really 
documentend, then click ‘look in source’ and th elink doesn’t work. So, I have 
to bother people on the list for a basic question like this. I must be doing 
something wrong and looking in the wrong place)

Gerben Wierda
Chess and the Art of Enterprise Architecture 
Mastering ArchiMate 
Architecture for Real Enterprises 
 at InfoWorld
On Slippery Ice  at EAPJ

___
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] Setting vertical spacing of lines inside a \framed[align=]

2020-04-24 Thread Wolfgang Schuster

Gerben Wierda schrieb am 24.04.2020 um 17:38:
I have been experimenting with \startpacked..\stoppacked but it doesn’t 
seem to work. What is the preferred way of getting lines in a normal 
paragraph (actually, we’re talking about a \framed with align, so a full 
paragraph in a TeX \vbox)


Do you want to have a linebreak at the end of the frame

\starttext

\startframed
\samplefile{knuth}
\stopframed

\startframed[width=max,align=normal]
\samplefile{knuth}
\stopframed

\stoptext

or do you want to change to change the spacing

\starttext

\startframedtext[width=max,style={\setupinterlinespace[medium]}]
\samplefile{knuth}
\stopframedtext

\startframedtext[width=max,style={\setupwhitespace[medium]}]
\samplefile{knuth}
\stopframedtext

\stoptext

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

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


Re: [NTG-context] Negative width vrule ignored in LuaMETATeX

2020-04-24 Thread Hans Hagen

On 4/24/2020 4:42 PM, SAO Ocean wrote:

Hi,

As I'm beginning to use ConTeXt LMTX, I experimented with it a little and
noticed some of my old documents different. After some examination I found the
following example:

\starttext
a\vrule width -5pt height 0pt depth 0pt b
\stoptext

In LMTX, the result looks as if there is no `\vrule' between `a' and `b'. And if
I run with `context --engine=luatex', the expected result is back. I have
checked the luametatex manual but it doesn't seem to mention the difference. My
luametatex version is

mkiv lua stats  > used engine: luametatex version: 2.0502,
functionality level: 20200413, format id: 493, compiler: clang.

Is the behaviour expected? Or shall I use other method to get non-discardable
negative space?


no, but i must admit that it's kind of a border case ... i'll fix it but 
also wonder if *no* visual rule showing up is intended (i would then 
also expect an engine to show a rule .. could be an interesting new 
(luametatex) option as it saves kerns in some cases)


see Wolfgangs mail for a better solution using kerns

Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Negative width vrule ignored in LuaMETATeX

2020-04-24 Thread Wolfgang Schuster

SAO Ocean schrieb am 24.04.2020 um 16:42:

Hi,

As I'm beginning to use ConTeXt LMTX, I experimented with it a little and
noticed some of my old documents different. After some examination I found the
following example:

\starttext
a\vrule width -5pt height 0pt depth 0pt b
\stoptext

In LMTX, the result looks as if there is no `\vrule' between `a' and `b'. And if
I run with `context --engine=luatex', the expected result is back. I have
checked the luametatex manual but it doesn't seem to mention the difference. My
luametatex version is

mkiv lua stats  > used engine: luametatex version: 2.0502,
functionality level: 20200413, format id: 493, compiler: clang.

Is the behaviour expected? Or shall I use other method to get non-discardable
negative space?


\starttext
a\kern-5pt\relax b
\stoptext

or

\starttext
a\nobreak\hskip-5pt\relax b
\stoptext

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

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


[NTG-context] Negative width vrule ignored in LuaMETATeX

2020-04-24 Thread SAO Ocean
Hi,

As I'm beginning to use ConTeXt LMTX, I experimented with it a little and
noticed some of my old documents different. After some examination I found the
following example:

\starttext
a\vrule width -5pt height 0pt depth 0pt b
\stoptext

In LMTX, the result looks as if there is no `\vrule' between `a' and `b'. And if
I run with `context --engine=luatex', the expected result is back. I have
checked the luametatex manual but it doesn't seem to mention the difference. My
luametatex version is

mkiv lua stats  > used engine: luametatex version: 2.0502,
functionality level: 20200413, format id: 493, compiler: clang.

Is the behaviour expected? Or shall I use other method to get non-discardable
negative space?


Ao Shen
___
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] Basic font question (Optima, but no bold, no italics). Standalone ConTeXt does not work. TeX Live 2019 works

2020-04-24 Thread Taco Hoekwater
See this link:

https://wiki.contextgarden.net/Mac_Installation


In particular, you need this set of shell commands from that page:

mkdir $HOME/context
cd $HOME/context
rsync -av rsync://contextgarden.net/minimals/setup/first-setup.sh .
sh ./first-setup.sh --modules=all --engine=luatex

but we are currently investigating whether the problem may be binary-related,
because my mkiv started getting issues as well, so that may or may not work.

Also, it is possible that fonts work even though

  mtxrun --script fonts --list --all —pattern

does not list them.

And no, we are not sure why yet.

Taco

> On 24 Apr 2020, at 14:24, Gerben Wierda  wrote:
> 
> 
> 
>> On 24 Apr 2020, at 11:56, Taco Hoekwater  wrote:
>> 
>> Hi,
>> 
>> FYI, my "context mkiv” standalone seems to be fine (latest download). 
>> “lmtx” standalone (also latest download) not so much (same problems).
> 
> Thx. How do I get/install a ‘context mkiv’ standalone? The standalone on 
> http://www.pragma-ade.com/install.htm is only LMTX.
> 
> G
> 
>> 
>> Looks like something is broken in ltmx’ TTC parser.
>> 
>> OS X Catalina 10.15.4
>> 
>> Taco
>> ___
>> If your question is of interest to others as well, please add an entry to 
>> the Wiki!
>> 
>> maillist : ntg-context@ntg.nl / 
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : http://contextgarden.net
>> ___
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

Taco Hoekwater
Elvenkind BV




___
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] Basic font question (Optima, but no bold, no italics). Standalone ConTeXt does not work. TeX Live 2019 works

2020-04-24 Thread Gerben Wierda


> On 24 Apr 2020, at 11:56, Taco Hoekwater  wrote:
> 
> Hi,
> 
> FYI, my "context mkiv” standalone seems to be fine (latest download). 
> “lmtx” standalone (also latest download) not so much (same problems).

Thx. How do I get/install a ‘context mkiv’ standalone? The standalone on 
http://www.pragma-ade.com/install.htm  
is only LMTX.

G

> 
> Looks like something is broken in ltmx’ TTC parser.
> 
> OS X Catalina 10.15.4
> 
> Taco
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


Re: [NTG-context] Basic font question (Optima, but no bold, no italics). Standalone ConTeXt does not work. TeX Live 2019 works

2020-04-24 Thread Taco Hoekwater


> On 24 Apr 2020, at 12:14, Benjamin Buchmuller  
> wrote:
> 
> Hi Hraban,
> 
> This might confirm Taco‘s notion that there is some bug lmtx. 

We have moved this off-list for a while. For now, if you have problems with 
lmtx, just
switch back to the regular mkiv standalone.

Best wishes,
Taco



___
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] Basic font question (Optima, but no bold, no italics). Standalone ConTeXt does not work. TeX Live 2019 works

2020-04-24 Thread Benjamin Buchmuller
Hi Hraban,

Thanks for the hint (and the proper fontfamily setup), I have forced reload ten 
times now from various accounts; the issue persists unfortunately. 

This might confirm Taco‘s notion that there is some bug lmtx. I’m running macOS 
Catalina too, but as it worked with the standalone of Dec/Jan three days ago, I 
suspect it is not because of a new feature in the OS, but rather an old feature 
in mtxrun or elsewhere having disappeared. 

> On 24. Apr 2020, at 11:35, Henning Hraban Ramm  wrote:
> 
> 
> 
>> Am 24.04.2020 um 11:13 schrieb Benjamin Buchmuller 
>> :
>> 
>> Although this specific issue might have been solved meanwhile by the helpful 
>> suggestions of Wolfang, Thomas and others, I would like to point out that I 
>> have recently also encountered an odd behaviour of the mtxrun fontloader in 
>> the standalone, in which not all typefaces are available/properly identified.
>> 
>> (I’m sorry to hijack this thread if this is unrelated.)
>> 
>> Basically, when I load “Helvetica Neue”, I get instead of “regular/normal” 
>> always “light/italic”.
>> 
>> I have switched to heros for the meantime, but potentially there is some bug 
>> behind this. (My documents with the version from Dec/Jan worked fine.)
>> 
>> I recite my example from Wed:
>> 
>> ConTeXt  ver: 2020.01.30 14:13 MKIV beta  fmt: 2020.4.22 (LuaTeX 1.11.1)
>> 
>> and I’m running now into troubles with system font indexing:
>> 
>> mtxrun --script fonts --reload
>> 
>> locates fonts in macOS directories appropriately (*.afm fonts placed in 
>> .../tex/texmf-fonts are not found, but at the moment I don’t care too much), 
>> however it resolves only to a single font variant for *.ttc instead of all 
>> variants:
>> 
>> mtxrun --script fonts --list --all --pattern=helvetica
>> 
>> helvetica helvetica
>> helveticalightoblique /System/Library/Fonts/Helvetica.ttc
>> 6
>> helveticalightoblique helvetica
>> helveticalightoblique /System/Library/Fonts/Helvetica.ttc
>> 6
>> helveticaneuedeskinterfaceheavy   helveticaneuedeskinterface   
>> helveticaneuedeskinterfaceheavy   
>> /System/Library/Fonts/HelveticaNeueDeskInterface.ttc   10
>> helveticaneuethinitalic   helveticaneue
>> helveticaneuethinitalic   /System/Library/Fonts/HelveticaNeue.ttc
>> 14
> 
> If the subfont is not listed, ConTeXt/mtxrun couldn’t find it and won’t find 
> it regardless of your setup.
> 
> Try
> mtxrun --script fonts --reload --force
> maybe even twice or thrice and check again.
> (Unfortunately this is not reliable.)
> 
> I get the full list:
> 
> identifier   familyname   
> fontname   filename   
> subfont   instances
> 
> helveticahelvetica
> helvetica  
> /System/Library/Fonts/Helvetica.ttc1
> helveticaneueblack   helveticaneue
> helveticaneuecondensedblack
> /System/Library/Fonts/HelveticaNeue.ttc10
> helveticaneuedeskinterfaceextrabold  helveticaneuedeskinterface   
> helveticaneuedeskinterfaceheavy
> /System/Library/Fonts/HelveticaNeueDeskInterface.ttc   10
> helveticaneuedeskinterfaceextralight helveticaneuedeskinterface   
> helveticaneuedeskinterfacethin 
> /System/Library/Fonts/HelveticaNeueDeskInterface.ttc   8
> helveticaneuedeskinterfacemedium helveticaneuedeskinterface   
> helveticaneuedeskinterfacemediump4 
> /System/Library/Fonts/HelveticaNeueDeskInterface.ttc   5
> helveticaneuedeskinterfacemediumitalic   helveticaneuedeskinterface   
> helveticaneuedeskinterfacemediumitalicp4   
> /System/Library/Fonts/HelveticaNeueDeskInterface.ttc   6
> helveticaneuedeskinterfacenormal helveticaneuedeskinterface   
> helveticaneuedeskinterfaceregular  
> /System/Library/Fonts/HelveticaNeueDeskInterface.ttc   1
> helveticaneueextralight  helveticaneue
> helveticaneuethin  
> /System/Library/Fonts/HelveticaNeue.ttc13
> helveticaneuenormal  helveticaneue
> helveticaneue  
> /System/Library/Fonts/HelveticaNeue.ttc1
> helveticaneueregular helveticaneue
> helveticaneue  
> /System/Library/Fonts/HelveticaNeue.ttc1
> helveticanormal  helvetica
> helvetica  
> /System/Library/Fonts/Helvetica.ttc1
> helveticaregular helvetica
> helvetica  
> 

Re: [NTG-context] Basic font question (Optima, but no bold, no italics). Standalone ConTeXt does not work. TeX Live 2019 works

2020-04-24 Thread Taco Hoekwater
Hi,

FYI, my "context mkiv” standalone seems to be fine (latest download). 
“lmtx” standalone (also latest download) not so much (same problems).

Looks like something is broken in ltmx’ TTC parser.

OS X Catalina 10.15.4

Taco
___
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] Basic font question (Optima, but no bold, no italics). Standalone ConTeXt does not work. TeX Live 2019 works

2020-04-24 Thread Henning Hraban Ramm


> Am 24.04.2020 um 11:13 schrieb Benjamin Buchmuller 
> :
> 
> Although this specific issue might have been solved meanwhile by the helpful 
> suggestions of Wolfang, Thomas and others, I would like to point out that I 
> have recently also encountered an odd behaviour of the mtxrun fontloader in 
> the standalone, in which not all typefaces are available/properly identified.
> 
> (I’m sorry to hijack this thread if this is unrelated.)
> 
> Basically, when I load “Helvetica Neue”, I get instead of “regular/normal” 
> always “light/italic”.
> 
> I have switched to heros for the meantime, but potentially there is some bug 
> behind this. (My documents with the version from Dec/Jan worked fine.)
> 
> I recite my example from Wed:
> 
> ConTeXt  ver: 2020.01.30 14:13 MKIV beta  fmt: 2020.4.22 (LuaTeX 1.11.1)
> 
> and I’m running now into troubles with system font indexing:
> 
> mtxrun --script fonts --reload
> 
> locates fonts in macOS directories appropriately (*.afm fonts placed in 
> .../tex/texmf-fonts are not found, but at the moment I don’t care too much), 
> however it resolves only to a single font variant for *.ttc instead of all 
> variants:
> 
> mtxrun --script fonts --list --all --pattern=helvetica
> 
> helvetica helvetica
> helveticalightoblique /System/Library/Fonts/Helvetica.ttc 
>6
> helveticalightoblique helvetica
> helveticalightoblique /System/Library/Fonts/Helvetica.ttc 
>6
> helveticaneuedeskinterfaceheavy   helveticaneuedeskinterface   
> helveticaneuedeskinterfaceheavy   
> /System/Library/Fonts/HelveticaNeueDeskInterface.ttc   10
> helveticaneuethinitalic   helveticaneue
> helveticaneuethinitalic   /System/Library/Fonts/HelveticaNeue.ttc 
>14

If the subfont is not listed, ConTeXt/mtxrun couldn’t find it and won’t find it 
regardless of your setup.

Try
mtxrun --script fonts --reload --force
maybe even twice or thrice and check again.
(Unfortunately this is not reliable.)

I get the full list:

identifier   familyname   fontname  
 filename   
subfont   instances

helveticahelveticahelvetica 
 /System/Library/Fonts/Helvetica.ttc
1
helveticaneueblack   helveticaneue
helveticaneuecondensedblack
/System/Library/Fonts/HelveticaNeue.ttc10
helveticaneuedeskinterfaceextrabold  helveticaneuedeskinterface   
helveticaneuedeskinterfaceheavy
/System/Library/Fonts/HelveticaNeueDeskInterface.ttc   10
helveticaneuedeskinterfaceextralight helveticaneuedeskinterface   
helveticaneuedeskinterfacethin 
/System/Library/Fonts/HelveticaNeueDeskInterface.ttc   8
helveticaneuedeskinterfacemedium helveticaneuedeskinterface   
helveticaneuedeskinterfacemediump4 
/System/Library/Fonts/HelveticaNeueDeskInterface.ttc   5
helveticaneuedeskinterfacemediumitalic   helveticaneuedeskinterface   
helveticaneuedeskinterfacemediumitalicp4   
/System/Library/Fonts/HelveticaNeueDeskInterface.ttc   6
helveticaneuedeskinterfacenormal helveticaneuedeskinterface   
helveticaneuedeskinterfaceregular  
/System/Library/Fonts/HelveticaNeueDeskInterface.ttc   1
helveticaneueextralight  helveticaneue
helveticaneuethin  
/System/Library/Fonts/HelveticaNeue.ttc13
helveticaneuenormal  helveticaneue
helveticaneue  
/System/Library/Fonts/HelveticaNeue.ttc1
helveticaneueregular helveticaneue
helveticaneue  
/System/Library/Fonts/HelveticaNeue.ttc1
helveticanormal  helveticahelvetica 
 /System/Library/Fonts/Helvetica.ttc
1
helveticaregular helveticahelvetica 
 /System/Library/Fonts/Helvetica.ttc
1



> As a consequence, when I run
> 
> \definefontfamily[mainface][ss][Helvetica Neue]
> \setupbodyfont[mainface, 12pt, sans]
> 
> I get the light oblique variant instead of the regular one. I have tried to 
> fix this via a 
> 
> \definefontfamily[mainface][ss][Helvetica Neue][tf=style:normal]

tf=helveticaregular
should work.


Best, Hraban

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : 

Re: [NTG-context] Basic font question (Optima, but no bold, no italics). Standalone ConTeXt does not work. TeX Live 2019 works

2020-04-24 Thread Benjamin Buchmuller
Although this specific issue might have been solved meanwhile by the helpful 
suggestions of Wolfang, Thomas and others, I would like to point out that I 
have recently also encountered an odd behaviour of the mtxrun fontloader in the 
standalone, in which not all typefaces are available/properly identified.

(I’m sorry to hijack this thread if this is unrelated.)

Basically, when I load “Helvetica Neue”, I get instead of “regular/normal” 
always “light/italic”.

I have switched to heros for the meantime, but potentially there is some bug 
behind this. (My documents with the version from Dec/Jan worked fine.)

I recite my example from Wed:

ConTeXt  ver: 2020.01.30 14:13 MKIV beta  fmt: 2020.4.22 (LuaTeX 1.11.1)

and I’m running now into troubles with system font indexing:

mtxrun --script fonts --reload

locates fonts in macOS directories appropriately (*.afm fonts placed in 
.../tex/texmf-fonts are not found, but at the moment I don’t care too much), 
however it resolves only to a single font variant for *.ttc instead of all 
variants:

mtxrun --script fonts --list --all --pattern=helvetica

helvetica helvetica
helveticalightoblique /System/Library/Fonts/Helvetica.ttc   
 6
helveticalightoblique helvetica
helveticalightoblique /System/Library/Fonts/Helvetica.ttc   
 6
helveticaneuedeskinterfaceheavy   helveticaneuedeskinterface   
helveticaneuedeskinterfaceheavy   
/System/Library/Fonts/HelveticaNeueDeskInterface.ttc   10
helveticaneuethinitalic   helveticaneue
helveticaneuethinitalic   /System/Library/Fonts/HelveticaNeue.ttc   
 14

As a consequence, when I run

\definefontfamily[mainface][ss][Helvetica Neue]
\setupbodyfont[mainface, 12pt, sans]

I get the light oblique variant instead of the regular one. I have tried to fix 
this via a 

\definefontfamily[mainface][ss][Helvetica Neue][tf=style:normal]

but apparently I understand too little about this setup altogether …

Thanks already for any suggestions!



> On 24 Apr 2020, at 08:53, ntg-context-requ...@ntg.nl wrote:
> 
> Send ntg-context mailing list submissions to
>   ntg-context@ntg.nl
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>   https://mailman.ntg.nl/mailman/listinfo/ntg-context
> or, via email, send a message with subject or body 'help' to
>   ntg-context-requ...@ntg.nl
> 
> You can reach the person managing the list at
>   ntg-context-ow...@ntg.nl
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ntg-context digest..."
> Today's Topics:
> 
>   1. Re: Basic font question (Optima, but no bold, no italics).
>  Standalone ConTeXt does not work. TeX Live 2019 works
>  (Wolfgang Schuster)
> 
> From: Wolfgang Schuster 
> Subject: Re: [NTG-context] Basic font question (Optima, but no bold, no 
> italics). Standalone ConTeXt does not work. TeX Live 2019 works
> Date: 24 April 2020 at 08:53:52 CEST
> To: mailing list for ConTeXt users , Gerben Wierda 
> 
> 
> 
> Gerben Wierda schrieb am 24.04.2020 um 08:48:
>> With Arial:
>> 
>> \definefontfamily[mainface][rm][Arial]
>> \setupbodyfont[mainface,10pt]
>> 
>> 
>> 
>> with Optima:
>> 
>> \definefontfamily[mainface][rm][Optima]
>> \setupbodyfont[mainface,10pt]
>> 
>> 
>> It doesn’t matter if the font statements are before or after \starttext
>> 
>> Then I thought, let’s test some other things. I logged in as another user, 
>> and used ConTeXt from TeX Live 2019:
>> 
>> 
>> It seems to be that on my system, the standalone installed ConTeXt does not 
>> work with Optima, but the TeX Live installed one does.
> 
> Can you try this:
> 
> \definefontfamily [mainface] [rm] [Optima]
>   [it=optimaitalic,
>bf=optimabold,
>bi=optimabolditalic]
> 
> Wolfgang
> 
> 
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

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

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


Re: [NTG-context] Hyphentation/Linebreak after x characters

2020-04-24 Thread Benjamin Buchmuller
Hi Rik,

thank you as well, this works also nicely. I’ve created a wiki page meanwhile 
for wrapping text containing both solutions and the post on SHA keys.

https://www.contextgarden.net/Wrapping

Cheers


Benjamin

> On 24 Apr 2020, at 00:45, Rik Kabel  wrote:
> 
> 
> 
> On 4/23/2020 17:50, Wolfgang Schuster wrote:
>> Benjamin Buchmuller schrieb am 23.04.2020 um 23:16: 
>>> Hi Rik, 
>>> 
>>> Thanks for the fast reply! Your example works indeed nicely. However, 
>>> within this solution my problem has shifted now (fully) towards breaking 
>>> after the same number of characters, which seems to work for your sample 
>>> string, but not for the sequences that I need to place. 
>>> 
>>> What I would like to achieve is something like: 
>>> 
>>> 5’-GATTGCTTACTCCTGGTTGG 
>>> TCTTACATTCTGTCGCCTC 
>>> CTACTAGAGCCGGCATATT 
>>> CTAGAAGGGCCGCCTTCATGTGG 
>>> etc. 
>>> 
>>> (There might be hyphens or not, this is not so much important to me.) 
>>> 
>>> But what I get is currently: 
>>> 
>>> 5'-GATTGCTTACTCCTG- 
>>> GTTGGTCTTACATTCT- 
>>> GTCGCCTCCTACTA- 
>>> GAGCCGGCATATTCTA- 
>>> GAAGGGCCGCCTTCATGTGGC- 
>>> etc. 
>>> 
>>> Which looks ragged with \tt. Certainly, this is because ConTeXt applies the 
>>> default hyphenation pattern. But I guess, there might be no “no language” 
>>> pattern or is there? Also, I agree, it’s a bit odd that nright/nleft seem 
>>> to make no difference towards the result. 
>> 
>> Hans posted a solution for a similar problem a few years ago [1] 
>> which can be adapted to your problem. 
>> 
>> \startluacode 
>> 
>>  local shared = { 
>>  start  = 1, 
>>  length = 1, 
>>  before = nil, 
>>  after  = nil, 
>>  left   = false, 
>>  right  = false, 
>>  } 
>> 
>>  local all = table.setmetatableindex({ }, function(t,k) 
>>  return shared 
>>  end) 
>> 
>>  languages.hyphenators.traditional.installmethod("dna", 
>>  function(dictionary,word,n) 
>>  return all 
>>  end 
>>  ) 
>> \stopluacode 
>> 
>> \definehyphenationfeatures 
>>   [dna] 
>>   [characters=all, 
>>alternative=dna] 
>> 
>> \starttext 
>> 
>> \startframedtext[width=6cm,style=mono] 
>>   \sethyphenationfeatures[dna] 
>>   \setuphyphenation[method=traditional] 
>>   GATTGCTTACTCCTGGTTGG% 
>>   TCTTACATTCTGTCGCCTC% 
>>   CTACTAGAGCCGGCATATT% 
>>   CTAGAAGGGCCGCCTTCATGTGG% 
>> \stopframedtext 
>> 
>> \stoptext 
>> 
>> [1] https://mailman.ntg.nl/pipermail/ntg-context/2017/089106.html 
>> 
>> Wolfgang 
>> 
> And without lua, just two lines of ConTeXt with a bit of TeX:
> 
> \define[1]\DNA{\handletokens #1\with\DNAspacer}
> \define[1]\DNAspacer{#1\hskip 2.3pt plus .1pt}
> \define[2]\mycommandc{
> \startxrow
> \startxcell o#1 \stopxcell
> \startxcell {\tt\WORD{\DNA{5'-#2}}}\stopxcell
> \stopxrow
> }
> \starttext
> \setupxtable[width=5cm]
> \startxtable
> \mycommandc{C}{gattgcttactcctggttggtcttacattctgtcgcctcctactagagccggcatattctagaagggccgccttcatgtggcctagggcaccatcgcgtacgagggcaatgagtttaccgctgcgaagtctctacgtcacggccaaccacagtcctgctcccaacgaaatttagacgctgtcgtgaaacctgaattcgaggataagccgcgtcatgaagagtctactg}
> \stopxtable
> \stoptext
> 
> Modify the skip as you see fit.
> 
> -- 
> Rik
> 

___
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] Basic font question (Optima, but no bold, no italics). Standalone ConTeXt does not work. TeX Live 2019 works

2020-04-24 Thread Thomas A. Schmitz


> On 24. Apr 2020, at 09:21, Gerben Wierda  wrote:
> 
> 
> I altready did that earlier as per the Wiki information (did not report it) 
> and just tried again. No difference.

Steps to happiness:

1. Extract the ttc font to ttf
2. Copy the ttf files to your local texmf directory
3. reload the font cache
4. enrich your vocabulary by learning the words “thank you”
5. never have to deal with stupid people who didn’t read all 10,000 lines of 
the log file you posted
6. profit!

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

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


[NTG-context] ConTeXt beta issue? Was: Basic font question (Optima, but no bold, no italics). Standalone ConTeXt (beta) does not work. TeX Live 2019 works

2020-04-24 Thread Gerben Wierda
As per the fuller console output I included (where you can find all the details 
of the run as put out by ConTeXt):

This is LuaMetaTeX, Version 2.05.01 
open source > level 1, order 1, name 'cont-yes.mkiv'
system  > 
system  > ConTeXt  ver: 2020.04.03 10:31 MKIV beta  fmt: 2020.4.7  int: 
english/english
system  > 
system  > 'cont-new.mkiv' loaded

If the standalone is used, it doesn’t work. If TeX Live 2019 is used, it does 
work.

Note, there is no ‘luatex’ command in the standalone. And I get a different 
output from the --version command for context:

$ context --version
mtx-context | ConTeXt Process Management 1.03
mtx-context |
mtx-context | main context file: 
/usr/local/context-osx-64/tex/texmf-context/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2019.07.24 11:31
mtx-context | main context file: 
/usr/local/context-osx-64/tex/texmf-context/tex/context/base/mkiv/context.mkxl
mtx-context | current version: 2020.02.17 19:36

The version differences probably from

system  > beware: some patches loaded from cont-new.mkiv

I seem to be running a beta. I seem to recall I installed that because Hans 
patched something, but I am uncertain. Hans?

G

> On 24 Apr 2020, at 08:54, Henning Hraban Ramm  wrote:
> 
> 
> 
>> Am 24.04.2020 um 08:48 schrieb Gerben Wierda :
>> 
>> Then I thought, let’s test some other things. I logged in as another user, 
>> and used ConTeXt from TeX Live 2019:
>> 
>> 
>> It seems to be that on my system, the standalone installed ConTeXt does not 
>> work with Optima, but the TeX Live installed one does.
> 
> So what’s your ConTeXt version?
> 
> context --version
> current version: 2020.01.30 14:13
> 
> luatex --version
> This is LuaTeX, Version 1.11.1 (TeX Live 2020/dev)
> 
> 
> Best, Hraban
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


Re: [NTG-context] Basic font question (Optima, but no bold, no italics). Standalone ConTeXt does not work. TeX Live 2019 works

2020-04-24 Thread Gerben Wierda


> On 24 Apr 2020, at 08:53, Wolfgang Schuster 
>  wrote:
> 
> Can you try this:
> 
> \definefontfamily [mainface] [rm] [Optima]
>   [it=optimaitalic,
>bf=optimabold,
>bi=optimabolditalic]

I altready did that earlier as per the Wiki information (did not report it) and 
just tried again. No difference.

G

___
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] Basic font question (Optima, but no bold, no italics). Standalone ConTeXt does not work. TeX Live 2019 works

2020-04-24 Thread Gerben Wierda
With Arial:

\definefontfamily[mainface][rm][Arial]
\setupbodyfont[mainface,10pt]



with Optima:

\definefontfamily[mainface][rm][Optima]
\setupbodyfont[mainface,10pt]


It doesn’t matter if the font statements are before or after \starttext

Then I thought, let’s test some other things. I logged in as another user, and 
used ConTeXt from TeX Live 2019:


It seems to be that on my system, the standalone installed ConTeXt does not 
work with Optima, but the TeX Live installed one does.

G



> On 24 Apr 2020, at 08:09, Henning Hraban Ramm  wrote:
> 
> 
> 
>> Am 24.04.2020 um 05:19 schrieb kaddour kardio :
>> 
>> It's noticed that Optima is a Sans Serif font.
>> Maybe it conflicts with MacOS way to handle fonts. 
> 
> No, ConTeXt doesn’t care what kind of font you define as rm/ss/tt, and the OS 
> has no say in that.
> 
> Best, Hraban
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


Re: [NTG-context] Basic font question (Optima, but no bold, no italics). Standalone ConTeXt does not work. TeX Live 2019 works

2020-04-24 Thread Henning Hraban Ramm


> Am 24.04.2020 um 08:48 schrieb Gerben Wierda :
> 
> Then I thought, let’s test some other things. I logged in as another user, 
> and used ConTeXt from TeX Live 2019:
> 
> 
> It seems to be that on my system, the standalone installed ConTeXt does not 
> work with Optima, but the TeX Live installed one does.

So what’s your ConTeXt version?

context --version
current version: 2020.01.30 14:13

luatex --version
This is LuaTeX, Version 1.11.1 (TeX Live 2020/dev)


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

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


Re: [NTG-context] Basic font question (Optima, but no bold, no italics). Standalone ConTeXt does not work. TeX Live 2019 works

2020-04-24 Thread Wolfgang Schuster

Gerben Wierda schrieb am 24.04.2020 um 08:48:

With Arial:

\definefontfamily[mainface][rm][Arial]
\setupbodyfont[mainface,10pt]


with Optima:

\definefontfamily[mainface][rm][Optima]
\setupbodyfont[mainface,10pt]

It doesn’t matter if the font statements are before or after \starttext

Then I thought, let’s test some other things. I logged in as another 
user, and used ConTeXt from TeX Live 2019:


It seems to be that on my system, the standalone installed ConTeXt 
does not work with Optima, but the TeX Live installed one does.


Can you try this:

\definefontfamily [mainface] [rm] [Optima]
  [it=optimaitalic,
   bf=optimabold,
   bi=optimabolditalic]

Wolfgang

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

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


[NTG-context] complete cover example

2020-04-24 Thread jbf
Am wondering if anybody has a complete example (explained below) of a 
book cover: front, spine and back. It doesn't matter how simple or 
complicated the example. Am one of those people who, once he sees an 
example, can generally work out the necessary adaptations.


By a complete example I mean the kind of thing found here Creating a 
style file in ConTeXt | Random Determinism 
 
where the writer explains things bit by bit but importantly, offers a 
summary of the code at the end. I probably don't need the lengthy 
explanation but the summary of code is most helpful - except that it is 
not about a book cover:-)


As a relative newcomer to ConTeXt, I have found complete examples of 
something I want/need to do very useful. Of course, many such are on the 
wiki, but from time to time I need something else, and right at the 
moment I need a bit of guidance for a book cover, and an example might help.


Julian

___
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] Basic font question (Optima, but no bold, no italics)

2020-04-24 Thread Henning Hraban Ramm


> Am 24.04.2020 um 05:19 schrieb kaddour kardio :
> 
> It's noticed that Optima is a Sans Serif font.
> Maybe it conflicts with MacOS way to handle fonts. 

No, ConTeXt doesn’t care what kind of font you define as rm/ss/tt, and the OS 
has no say in that.

Best, Hraban

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

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


Re: [NTG-context] Basic font question (Optima, but no bold, no italics)

2020-04-24 Thread Henning Hraban Ramm


> Am 24.04.2020 um 02:10 schrieb Vladimir Lomov :
> 
> 
> I think Henning Hraban Ramm meant not OS font cache (but may be including it,
> I'm not a Mac OS user) but context font cache. Run
> 
> $ mtxrun --script fonts --reload --force
> 
> and try above '--list --all ...' command again

No, since all the subfonts were already found, that’s not the problem.


> and your example:
> 
>> \starttext
>> \definefontfamily[mainface][rm][Optima]
>> \setupbodyfont[mainface,10pt]
> 
>> {\bf Bold} and {\it Italic} and {\rm Regular} text.
>> \stoptext

The font definition belongs before \starttext. Good if it works...

But Gerben’s example was lacking \starttext .. \stoptext – didn’t try, but that 
might be the culprit.

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

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