[NTG-context] weird behavior of font.feature.effect

2020-11-07 Thread Sylvain Hubert
Dear List,

I'm confused by the result of the following example (see attached):

\definefontfamily[face1][rm][gabriola][it={features:{default}}]
\definefontfamily[face2][rm][gabriola][it={features:{default,
effect={}}}]
\definefontfamily[face3][rm][gabriola][it={features:{default,
effect={width=1.0}}}]
\starttext

\startitemize[n, packed]
\item \switchtobodyfont[face1]\it\dorecurse{100}{a b c }
\item \switchtobodyfont[face2]\it\dorecurse{100}{a b c }
\item \switchtobodyfont[face3]\it\dorecurse{100}{a b c }
\stopitemize

\stoptext

Could someone explain:
1. What does "effect" mean? Why does "effect={}" embolden the fonts even
though nothing ({}) is given as arguments?
2. Similarly, what does "width" do? Why does "width=1.0" shrink the width
of the line instead of doing nothing?

Thanks in advance.

Best,
Sylvain
___
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] \switchtobodyfont behaves differenctly with splitted parameters

2020-11-07 Thread Sylvain Hubert
Dear List,

after hours of debugging, I finally found out that \switchtobodyfont[face,
20pt] does NOT behave the same with
\switchtobodyfont[face]\switchtobodyfont[20pt]. In my case the latter is
the correct one, while the former does nothing but falling back to
latinmodern.

Does anyone know when or why \switchtobodyfont behaves differently with
splitted and joined parameters?

Thanks.

Best,
Sylvain
___
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] \setupindenting[first] not working

2020-11-07 Thread Sylvain Hubert
Dear List,

The first paragraph of the following example is not indented.

\setupindenting[yes,first,4cm]
\starttext
\section{a}

\dorecurse{84}{abc }

\dorecurse{84}{abc }

\stoptext

Does anyone know how to actually get the first paragraph indented?

Thanks!

Best,
Sylvain
___
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] "page i/n" in footer

2020-11-07 Thread Sylvain Hubert
Dear List,

Does anyone know how to set the footer to be "page i/n" where i=current
page number, n=total number of page? I've tried

\setuppagenumbering[location=footer, command=\groupedcommand{page
}{/\lastcounter[userpage]}]

but \lastcounter[userpage] results in empty string.

Thanks in advance.

Best,
Sylvain
___
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] temporarily move up a section title

2020-11-07 Thread Henning Hraban Ramm


> Am 08.11.2020 um 03:19 schrieb Sylvain Hubert :
> 
> Dear List,
> 
> I'm trying to move up a section title (section b) 2cm upward:
> 
> \starttext
> \section{a}
> \blank[-2cm,force]\ 
> \section{b}
> \section{c}
> \stoptext
> 
> The empty space (\ ) after the \blank is necessary here, without which the 
> \blank does nothing.
> I would like to ask whether there is a less hacky way to let \blank work than 
> the hidden space.

You could use the low level method of \vskip-2cm

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
___


[NTG-context] temporarily move up a section title

2020-11-07 Thread Sylvain Hubert
Dear List,

I'm trying to move up a section title (section b) 2cm upward:

\starttext
\section{a}
\blank[-2cm,force]\
\section{b}
\section{c}
\stoptext

The empty space (\ ) after the \blank is necessary here, without which the
\blank does nothing.
I would like to ask whether there is a less hacky way to let \blank work
than the hidden space.

Thanks in advance.

Best,
Sylvain
___
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] \define in conflict with \startxtable[]

2020-11-07 Thread Sylvain Hubert
Dear List,

Could anyone manage to typeset the following example? Here [] causes an
error "Extra }, or forgotten \endgroup".

\starttext
\define\sample{
\startxtable[]
\startxtablehead
\startxrow
\startxcell 123\stopxcell
\stopxrow
\stopxtablehead
\stopxtable
}
\sample
\stoptext

Thanks in advance.

Best,
Sylvain
___
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] new upload

2020-11-07 Thread Floris van Manen

Dear Hans,

Would it be possible to have a simple text file with the latest release 
version (or date) tag in it? Next to the folder containing the actual 
install script files? In that case it is easy to check that version tag 
by comparing with the local copy and decide if a further download and 
install is needed.


m.vr.gr.
Floris
___
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] Works in ConTeXt, fails in LMTX

2020-11-07 Thread ntg
Some more details on the font inclusion problem I posted about the other day.

This code:

---begin---
\definefont[fontCoverTitle][name:brushwood at 94pt]
\starttext
This text in default font.

\fontCoverTitle{EXAMPLE}
\stoptext
---end---

works as expected in

  ConTeXt  ver: 2020.03.10 14:44 MKIV beta  fmt: 2020.4.18  int: english/english

but fails (the brushwood font isn't included) in

  ConTeXt  ver: 2020.11.05 23:01 LMTX  fmt: 2020.11.7  int: english/english


If I change the font name to "heros" then it works in both. So I re-ran

  mtxrun --script fonts --reload

and 

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

lists brushwood and brushwoodsemi but it still fails.

So I'm not quite sure what to look at next.

Regards,
--
Bruce Horrocks
Hampshire, UK

___
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] another error message in LMTX

2020-11-07 Thread Hans Hagen

On 11/7/2020 12:41 PM, Pablo Rodriguez wrote:

Hans,

using latest from yesterday, I get the following error:

  tex error   > tex error on line 22 in file cont-yes.mkiv: Valid
  keyword expected, likely 'minus'

   mt
  xrunjit
  
  \relax
   \buff_verbatim_type_buffer_indeed ...rrentregime
  }tab{\typingparameter \c!tab }method{\p_buff_option
  }escape{\typingparameter \c!escape }nature{display}\relax
  \dostoptagged \endofverbatimlines \dostoptagged \stoppacked
  \typingparameter \c!after

  [...]

  You started a keyword but it seems to be an invalid one. The first
  character(s) might give you a clue. You might want to quit unwanted
  lookahead with \relax.

This comes from a book with > 300pp. It compiles perfectly fine with
MkIV, so the typo might be in LMTX itself.

I wonder whether it would be possible to add the invalid keyword (and
related command) to the error message. This would mean something like:

  tex error   > tex error on line 22 in file cont-yes.mkiv: Valid
  keyword expected, got "invalid one" (related to "command").

This would help a lot to figure out where to start searching for clues
for a MWE.

well, the clue is there: you have

you have a \hskip or \vskip someplace that is not properly terminated by 
\relax so tex keeps scanning for optional plus|minus keywords and in 
your case runs into "mtxrunjit"


in luametatex we have a slightly different keyword scanner

- in traditional tex it will just push back the 'non valid' keyword and 
continue


- but that actually obscures a potentential error when the \hskip is 
burried deep: maybe you are typesetting "minus" as is and then it *is* a 
valid keyword and probably an error wil be that no valid dimension is seen


- so, you'rve just been lucky so far

so, this new keyword scanner is more picky in the sense that when it 
notices a potential keywors start it will complain earlier which might 
actually catch potential errors ealier (in this case all follow up words 
that start with a 'p' or 'm'


another change in scanning is that in many cases order no longer 
matters; for instance in scanning skips it's a 'plus' spec followed by a 
'minus' spec but in rules it can be mized 'width', 'height', 'depths'

 in any order and repetitive

in luametatex (unless there is good reason) the order doesn't matter, 
and often repetition is ok (so, multiple plus and minus in a skip and in 
any order where the last one counts)


this also permits for instance an order like:

\dontleavehmode
\hbox to 20pt xoffset  3cm{1\hss}
\hbox to 20pt {\hss2\hss}
\hbox to 20pt xoffset -3cm{\hss3}

where previously the 'to' spec always came last and multiple 'to' are 
okay (offsets etc are a lmtx feature, and it means many more keywords 
have to be scanned, which was one reason for cooking up a better 
mechanism, even if right from the start that was already rather optimized).


now, in principle this brings the possibility to support partial 
keywords, so 'xo' 'xoff' etc (in fact i only need to change a few lines 
of code) which can be handy when for instance one passes many 
attributes) but first i want the main machinery to be stable


actually, this was already there for a while; the good news is that all 
this doesn't harm performance (we actually gain some here, not that it's 
normally noticeable)


so: more flexibility, better performance, earlier interception but of 
course the later might demand users to fix code (i actually had to fix 
context in one spot for this lookahead issue).


(I'll add \relaxes to the after handling but that just obscures the issue.)

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
___


[NTG-context] \setuparranging broken in LMTX?

2020-11-07 Thread Pablo Rodriguez
Dear list,

I have the following sample:

  \setuparranging[2TOP]
  \setuplayout[page]
  \starttext
  \insertpages[file.pdf]
  \stoptext

With a simple PDF document, I cannot make \setuparranging work in LMTX.
Using latest from 2020.11.06 20:34.

It works perfectly fine with MkIV.

Could anyone confirm this issue?

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
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] force index entries without page number

2020-11-07 Thread Henning Hraban Ramm


> Am 04.09.2020 um 11:59 schrieb Wolfgang Schuster 
> :
> 
> Henning Hraban Ramm schrieb am 03.09.2020 um 10:17:
>> Hi,
>> I’d like to have an (person) index entry like
>> Ramm, Hraban   passim
>> i.e. without actual page number.
>> How can I force that?
>> I also need to be able to refer to it like
>> \seeindex{Hraban}{Ramm, Hraban)
> 
> 
> You can use this when the entry appears only once which replaces the page 
> number with "passim".
> 
> \define[1]\Passim
>  {passim}
> 
> \defineprocessor [passim] [command=\Passim]
> 
> \starttext
> 
> xxx\index{First}
> 
> yyy\index[passim->]{Second}
> 
> zzz\seeindex{Third}{Second}
> 
> \placeindex
> 
> \stoptext

Hi Wolfgang,

forgot to answer: This solution works for me, thank you!

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
___


[NTG-context] another error message in LMTX

2020-11-07 Thread Pablo Rodriguez
Hans,

using latest from yesterday, I get the following error:

 tex error   > tex error on line 22 in file cont-yes.mkiv: Valid
 keyword expected, likely 'minus'

  mt
 xrunjit
 
 \relax
  \buff_verbatim_type_buffer_indeed ...rrentregime
 }tab{\typingparameter \c!tab }method{\p_buff_option
 }escape{\typingparameter \c!escape }nature{display}\relax
 \dostoptagged \endofverbatimlines \dostoptagged \stoppacked
 \typingparameter \c!after

 [...]

 You started a keyword but it seems to be an invalid one. The first
 character(s) might give you a clue. You might want to quit unwanted
 lookahead with \relax.

This comes from a book with > 300pp. It compiles perfectly fine with
MkIV, so the typo might be in LMTX itself.

I wonder whether it would be possible to add the invalid keyword (and
related command) to the error message. This would mean something like:

 tex error   > tex error on line 22 in file cont-yes.mkiv: Valid
 keyword expected, got "invalid one" (related to "command").

This would help a lot to figure out where to start searching for clues
for a MWE.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
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] \setuparranging broken in LMTX?

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 12:25 PM, Hans Hagen wrote:
> On 11/7/2020 10:57 AM, Pablo Rodriguez wrote:
>> [...]
>> With a simple PDF document, I cannot make \setuparranging work in LMTX.
>> Using latest from 2020.11.06 20:34.
>> [...]
> a bit too agressive checking in the engine .. i'll fix it

Hans,

many thanks for the fix.

Pablo
--
http://www.ousia.tk
___
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] wrong /Rect in link annotations

2020-11-07 Thread Pablo Rodriguez
Dear list,

I have the following sample:

  \setupinteraction[state=start]
  \enabledirectives[references.border]
  %~ \definemakeup[slide]
  \define[1]\newurl{\goto{\tt\hyphenatedurl{#1}}[url(#1)]}

  \starttext
  %~ \startmakeup[slide]
  \newurl{a}

  compared to \newurl{a}.
  %~ \stopmakeup
  \stoptext

I’m afraid that with current latest rectangles for links got to the end
of the line when nothing stops them.

Could anyone confirm the issue?

BTW, I include the makeup, because previously this issue only took place
within makeups.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
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] new upload

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 12:53 PM, Pablo Rodriguez wrote:
> [...]
> I have a simpler approach that might help you:
>
>  curl -I http://pragma-ade.com/context/latest/cont-tmf.zip

Improved message:

echo "" && curl -I http://pragma-ade.com/context/latest/cont-tmf.zip
2>&1 | grep Last-Modified && echo ""

So you don’t mix access time with last modification.

Just in case it helps,

Pablo
--
http://www.ousia.tk
___
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] new upload

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 10:48 AM, Otared Kavian wrote:
> Hi Pablo,
>
> I had the same issue as the one you were reporting (on MacOS 10.14.6).
> I removed the three files
>
> texmf-context.tma
> texmf-osx-64.tma
> texmf.tma
>
> [...] and I think I will get the new version uploaded by Hans (my
> internet connection is very slow…).

Hi Otared,

I don’t know which one, but I think the LMTX installer may have a bug
that prevents updating the installation in all platforms (at least, it
seems to be so in Windows, macOS and Linux).

I thnk that removing the tex/texmf-*.tma files, allows a new
installation. It may overwrite all files (modified or not). But it might
be that this doesn’t remove deprecated files.

> Thank you for the hint…

It was by pure chance that I discovered that this might work.

But I’m glad to see that this may help,

Pablo
--
http://www.ousia.tk
___
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] new upload

2020-11-07 Thread Hans Hagen

Hi,

a version mismatch normally comes from the fact that i generate an lmtx 
update (for wolfgang to check, posted elsewhere) but nor a mkiv one and 
then upload to the website (as happened)


also, the update script itself doesn't get updated so when that gets 
adapted one has to get it from the bare install


(keep in mind that doing a fresh install doesn't hurt the system because 
texmf-projects and texmf-fonts are not affected)


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] new upload

2020-11-07 Thread Floris van Manen



On 07/11/2020 12:19, Hans Hagen wrote:
a version mismatch normally comes from the fact that i generate an lmtx 
update (for wolfgang to check, posted elsewhere) but nor a mkiv one and 
then upload to the website (as happened)


also, the update script itself doesn't get updated so when that gets 
adapted one has to get it from the bare install


(keep in mind that doing a fresh install doesn't hurt the system because 
texmf-projects and texmf-fonts are not affected)


The version check is just to prevent the extra data from being 
downloaded and installed when there was no need for it, because the 
current installed version is the same. (it saves the coal to be burned 
for the electricity)

___
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] new upload

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 11:40 AM, Floris van Manen wrote:
> Dear Hans,
>
> Would it be possible to have a simple text file with the latest release
> version (or date) tag in it? Next to the folder containing the actual
> install script files? In that case it is easy to check that version tag
> by comparing with the local copy and decide if a further download and
> install is needed.

Dear Floris,

I have a simpler approach that might help you:

 curl -I http://pragma-ade.com/context/latest/cont-tmf.zip

I added a file with that to $HOME/bin/ and it works fine when invoking it.

To check which version you have installed on your computer:

export PATH=$PATH:$HOME/context/tex/texmf-linux-64/bin/ && context
--version && luametatex --version

Of course, you might need no export or adapt $PATH accordingly to your
ConTeXt directory.

Just in case it helps,

Pablo
--
http://www.ousia.tk
___
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] new upload

2020-11-07 Thread Ivan Pešić



Дана 07.11.2020. у 23:42, Hans Hagen пише:
Question: do we really need all these 'named characters'  or can we at 
some point ditch many .. I assume that users who key in greek and 
cyrillic use unicode nowdays (no hurry, just wondering).
That's true Hans, normally I use UTF-8 encoding and a keymap in Vim so I 
can enter cyrillic text and english commands quite easilly (swapping 
between with CTRL-^).


Ivan


___
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] new upload

2020-11-07 Thread Ivan Pešić



Дана 07.11.2020. у 23:42, Hans Hagen пише:
Question: do we really need all these 'named characters'  or can we at 
some point ditch many .. I assume that users who key in greek and 
cyrillic use unicode nowdays (no hurry, just wondering).
That's true Hans, normally I use UTF-8 encoding and a keymap in Vim so I 
can enter cyrillic text and english commands quite easilly (swapping 
between with CTRL-^).


Ivan


___
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] new upload

2020-11-07 Thread Otared Kavian
Hi Pablo,

I had the same issue as the one you were reporting (on MacOS 10.14.6).
I removed the three files 

texmf-context.tma
texmf-osx-64.tma
texmf.tma

before issuing the command 
sh install.sh

Now I am getting 

fetching 'http://lmtx.pragma-ade.com/install-lmtx//texmf-context.zip

on my Terminal window and I think I will get the new version uploaded by Hans 
(my internet connection is very slow…).

Thank you for the hint…

Best regards: Otared

> On 7 Nov 2020, at 00:12, Pablo Rodriguez  wrote:
> 
> On 11/7/20 12:02 AM, mf wrote:
>> [...]
>> I can confirm that on my Debian 10 64bit: no update until I removed
>> 
>> texmf-context.tma
>> texmf-linux-64.tma
>> texmf.tma
>> 
>> in the tex subdir.
> 
> I had to remove these files to update from LMTX from 2020.10.20 to
> version from 2020.11.05.
> 
> But I had to remove these files again to upgrade from 2020.11.05 to
> 2020.11.06.
> 
> I wonder whether the same happens in Windows (I haven’t checked it yet).
> 
> Just in case it helps,
> 
> Pablo
> --
> http://www.ousia.tk
> ___
> 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] \setuparranging broken in LMTX?

2020-11-07 Thread Hans Hagen

On 11/7/2020 10:57 AM, Pablo Rodriguez wrote:

Dear list,

I have the following sample:

   \setuparranging[2TOP]
   \setuplayout[page]
   \starttext
   \insertpages[file.pdf]
   \stoptext

With a simple PDF document, I cannot make \setuparranging work in LMTX.
Using latest from 2020.11.06 20:34.

It works perfectly fine with MkIV.

Could anyone confirm this issue?

a bit too agressive checking in the engine .. i'll fix 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 / 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] wrong /Rect in link annotations

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 2:40 PM, Hans Hagen wrote:
> On 11/7/2020 12:47 PM, Pablo Rodriguez wrote:
>> [...]
>> I’m afraid that with current latest rectangles for links got to the end
>> of the line when nothing stops them.
>>
>> Could anyone confirm the issue?
>>
>> BTW, I include the makeup, because previously this issue only took place
>> within makeups.
> no, it has to do with the period not being there i.e. it's the last item
> on the list
>
> so, this is not an issue in the latest upload but older

Well, because install.sh changed, I wasn’t able to update after
2020.09.20 23:02 until two days ago.

In that version, only the makeup triggered the wrong rectangle.

> i will hack a solution but eventually will split off the lmtx/mkiv code
> for those bits and pieces (takes some time so it will happen after the
> flagging effort)

These are really good news.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
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] How to quote the section names in advance like the table of contents?

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 4:32 PM, Sylvain Hubert wrote:
> Dear List,
>
> say I have three sections in the document:
>
>     \section{foo} ... \section{bar} ... \section{baz} ...
>
> Now I would like to auto generate a heavily customized table of contents
> like the following text, which cannot be done by the stock \placecontent
> in general, and put it into the preface:
>
>    This book has 3 sections: foo, bar, and baz.

How about the following?

\starttext
as in \about[section-one], \about[section-two],
\about[section-three]...

\section[section-one]{Section One}
\section[section-two]{Section Two}
\section[section-three]{Section Three}
\stoptext

Pablo
--
http://www.ousia.tk
___
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] another error message in LMTX

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 1:29 PM, Hans Hagen wrote:
> [...]

Many thanks for your in-depth explanation, Hans.

This sample triggers the error:

\appendtoks
   \unexpanded\def\doverbatimspace{\char32\hskip\zeropoint}%
\to \everyenableelements

\setuptagging[state=start]

\starttext
\starttyping
mtxrunjit --generate
\stoptyping

\startitemize[n]
\startitem a\stopitem
\stopitemize
\stoptext

I have no idea why.

Many thanks for your help,

Pablo


> well, the clue is there: you have
>
> you have a \hskip or \vskip someplace that is not properly terminated by
> \relax so tex keeps scanning for optional plus|minus keywords and in
> your case runs into "mtxrunjit"
>
> in luametatex we have a slightly different keyword scanner
>
> - in traditional tex it will just push back the 'non valid' keyword and
> continue
>
> - but that actually obscures a potentential error when the \hskip is
> burried deep: maybe you are typesetting "minus" as is and then it *is* a
> valid keyword and probably an error wil be that no valid dimension is seen
>
> - so, you'rve just been lucky so far
>
> so, this new keyword scanner is more picky in the sense that when it
> notices a potential keywors start it will complain earlier which might
> actually catch potential errors ealier (in this case all follow up words
> that start with a 'p' or 'm'
>
> another change in scanning is that in many cases order no longer
> matters; for instance in scanning skips it's a 'plus' spec followed by a
> 'minus' spec but in rules it can be mized 'width', 'height', 'depths'
>   in any order and repetitive
>
> in luametatex (unless there is good reason) the order doesn't matter,
> and often repetition is ok (so, multiple plus and minus in a skip and in
> any order where the last one counts)
>
> this also permits for instance an order like:
>
>  \dontleavehmode
>  \hbox to 20pt xoffset  3cm{1\hss}
>  \hbox to 20pt {\hss2\hss}
>  \hbox to 20pt xoffset -3cm{\hss3}
>
> where previously the 'to' spec always came last and multiple 'to' are
> okay (offsets etc are a lmtx feature, and it means many more keywords
> have to be scanned, which was one reason for cooking up a better
> mechanism, even if right from the start that was already rather optimized).
>
> now, in principle this brings the possibility to support partial
> keywords, so 'xo' 'xoff' etc (in fact i only need to change a few lines
> of code) which can be handy when for instance one passes many
> attributes) but first i want the main machinery to be stable
>
> actually, this was already there for a while; the good news is that all
> this doesn't harm performance (we actually gain some here, not that it's
> normally noticeable)
>
> so: more flexibility, better performance, earlier interception but of
> course the later might demand users to fix code (i actually had to fix
> context in one spot for this lookahead issue).
>
> (I'll add \relaxes to the after handling but that just obscures the issue.)


--
http://www.ousia.tk
___
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] another error message in LMTX

2020-11-07 Thread Hans Hagen

On 11/7/2020 3:31 PM, Pablo Rodriguez wrote:

On 11/7/20 1:29 PM, Hans Hagen wrote:

[...]


Many thanks for your in-depth explanation, Hans.

This sample triggers the error:

 \appendtoks
\unexpanded\def\doverbatimspace{\char32\hskip\zeropoint}%
 \to \everyenableelements

 \setuptagging[state=start]

 \starttext
 \starttyping
 mtxrunjit --generate
 \stoptyping

 \startitemize[n]
 \startitem a\stopitem
 \stopitemize
 \stoptext

I have no idea why.


because \doverbatimspace is defined in a way that will look ahead

   \unexpanded\def\doverbatimspace{\char32\hskip\zeropoint\relax}

so

\starttyping
plus 10pt  --generate
\stoptyping

probably makes the "plus 10pt" disappear


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


[NTG-context] How to quote the section names in advance like the table of contents?

2020-11-07 Thread Sylvain Hubert
Dear List,

say I have three sections in the document:

\section{foo} ... \section{bar} ... \section{baz} ...

Now I would like to auto generate a heavily customized table of contents
like the following text, which cannot be done by the stock \placecontent in
general, and put it into the preface:

   This book has 3 sections: foo, bar, and baz.

The text generation should be trivial with lua, but I don't know how such
forward reference of section names works. Could anyone help me with it?

Thanks in advance.

Best,
Sylvain
___
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] How to define a {\bf}-compatible fake-bold switcher?

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 4:06 PM, Sylvain Hubert wrote:
> [...]
> Could anyone help me define a {\bf}-aware version of \fakebf which can
> render the "4 5 6" in the example above in latinmodern's bold?

Hi Sylvain,

there is an already defined font feature that fakes boldened fonts:
boldened (and also boldened-10, boldened-15, boldened-20 and boldened-25
[boldened is actually boldened-30]).

But I don’t use \definefont myself, so this is my sample:

\definefontfamily[mainface][rm][Latin Modern Sans]
[bf={style:tf, features:{default, boldened}}]
\setupbodyfont[mainface]
\starttext
normal \bf boldened
\stoptext

Handle with care, since faked fonts are to be used sparingly,

Pablo
--
http://www.ousia.tk
___
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] new upload

2020-11-07 Thread Floris van Manen



On 07/11/2020 13:11, Pablo Rodriguez wrote:

Improved message:

echo "" && curl -Ihttp://pragma-ade.com/context/latest/cont-tmf.zip
2>&1 | grep Last-Modified && echo ""

So you don’t mix access time with last modification.

Just in case it helps,


That helps.
Thx
___
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] wrong /Rect in link annotations

2020-11-07 Thread Hans Hagen

On 11/7/2020 12:47 PM, Pablo Rodriguez wrote:

Dear list,

I have the following sample:

   \setupinteraction[state=start]
   \enabledirectives[references.border]
   %~ \definemakeup[slide]
   \define[1]\newurl{\goto{\tt\hyphenatedurl{#1}}[url(#1)]}

   \starttext
   %~ \startmakeup[slide]
   \newurl{a}

   compared to \newurl{a}.
   %~ \stopmakeup
   \stoptext

I’m afraid that with current latest rectangles for links got to the end
of the line when nothing stops them.

Could anyone confirm the issue?

BTW, I include the makeup, because previously this issue only took place
within makeups.
no, it has to do with the period not being there i.e. it's the last item 
on the list


so, this is not an issue in the latest upload but older

in lmtx we normalize paragraphs wrt left/right skip, hanging and shape 
properties, as well as left/right parfill skips as well as boxes nto 
lying about their dimensions (by using shifts) and i have to check some 
mechanisms for that - read: can do them nicer now without guessing


i will hack a solution but eventually will split off the lmtx/mkiv code 
for those bits and pieces (takes some time so it will happen after the 
flagging effort)


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] Works in ConTeXt, fails in LMTX

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 1:09 PM, n...@scorecrow.com wrote:
> Some more details on the font inclusion problem I posted about the other day.

Hi Bruce,

I think that current LMTX has issues with Bondi12CPlus.TTF.

Hans, could you have a look at it? I reproduce can the same issue.

> \definefont[fontCoverTitle][name:brushwood at 94pt]
> \starttext
> This text in default font.
>
> \fontCoverTitle{EXAMPLE}
> \stoptext
>
> works as expected in
>
>   ConTeXt  ver: 2020.03.10 14:44 MKIV beta  fmt: 2020.4.18  int: 
> english/english
>
> but fails (the brushwood font isn't included) in
>
>   ConTeXt  ver: 2020.11.05 23:01 LMTX  fmt: 2020.11.7  int: english/english

I would run first, before compiling again:

  mtxrun --script cache --erase --make && mtxrun --generate

If this doesn’t work, could you replace the your \definefont with the
following version?

  \definefont[fontCoverTitle][file:BrushWood.TTF at 94pt]

(Please, adapt name and cases accordinly.)

If that doesn’t work, please include the full path.

The full path should help LMTX to find the file and it should also give
some info why LMTX cannot find the font by name.

Just in case it helps,

Pablo
--
http://www.ousia.tk
___
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] Problem using a TTF font

2020-11-07 Thread Hans Hagen

On 11/6/2020 3:54 PM, n...@scorecrow.com wrote:

This, I'm certain, used to work with an LMTX from the beginning of the year but I've 
upgraded to "ConTeXt  ver: 2020.11.05 23:01 LMTX  fmt: 2020.11.6  int: 
english/english" and now it doesn't.

I have a single .tex file in a directory, containing:

---begin---
\definefont [TwelveC] [file:Bondi12CPlus.TTF at 14pt]
\starttext
Keycaps: \TwelveC 123.45 \tf and back again
\stoptext
---end---

In the same directory I have the TTF font file which can be obtained from 
. It is calculator keycap images for use 
in documentation.

In the PDF I get just blank space where the keycaps should be and Adobe 
Reader's document info seems to think there is only one font in the file i.e. 
the keycap font didn't get embedded. However, the console output includes the 
lines:

mkiv lua stats  > result saved in file: 12C_test.pdf, compresslevel 3, 
objectcompresslevel 1
mkiv lua stats  > loaded patterns: en::1, load time: 0.000
mkiv lua stats  > loaded fonts: 3 files: latinmodern-math.otf, 
lmroman12-regular.otf, bondi12cplus.ttf
mkiv lua stats  > font engine: otf 3.111, afm 1.513, tfm 1.000, 8 instances, 3 
shared in backend, 3 common vectors, 0 common hashes, load time 0.132 seconds
mkiv lua stats  > font embedding time: 0.006 seconds, 2 fonts

which suggests LMTX thinks it loaded the font but decided not to embed it for 
some reason.

I'm probably doing something silly since it's been several months since I last 
looked at this but I can't see what I might be doing wrong :-(  so any and all 
help much appreciated.

PS: The font installs and displays in MacOS fine.

I've also tried
   \definefont [TwelveC] [Bondi12CPlus at 14pt]
and that fails the same way.
for now rename the file to one with a lowercase suffix (i'll check for 
that)


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


[NTG-context] issue with LMTX and itemize

2020-11-07 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\starttext
\startitemize
\item a\stopitem
\stopitemize
\stoptext

With latest LMTX from today, I don’t get any item marker.

Could you confirm the issue?

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
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] How to define a {\bf}-compatible fake-bold switcher?

2020-11-07 Thread Sylvain Hubert
Dear List,

I'm using a weirdfont that does not have a pre-defined bold variant but
still want to emboldening short extracts of text occasionally, so I've
defined

\defineeffect[thicker][alternative=both,rulethickness=0.3pt]
\define\fakebf{\effect[thicker]}

but in situations like

{\fakebf \definedfont[weridfont] 1 2 3 \definedfont[modern]4 5 6}

the "4 5 6" is faked bold even if latinmodern has a proper bold font.

Could anyone help me define a {\bf}-aware version of \fakebf which can
render the "4 5 6" in the example above in latinmodern's bold?

Thanks in advance.

Best,
Sylvain
___
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] issue with LMTX and itemize

2020-11-07 Thread Alan Bowen
Hi, Pablo—

Shouldn’t it be either
\item a
or
\startitem a\stopitem
?
Alan

On Sat, Nov 7, 2020 at 9:52 AM Pablo Rodriguez  wrote:

> Dear list,
>
> I have the following sample:
>
> \starttext
> \startitemize
> \item a\stopitem
> \stopitemize
> \stoptext
>
> With latest LMTX from today, I don’t get any item marker.
>
> Could you confirm the issue?
>
> Many thanks for your help,
>
> Pablo
> --
> http://www.ousia.tk
>
> ___
> 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] issue with LMTX and itemize

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 4:11 PM, Alan Bowen wrote:
> Hi, Pablo—
>
> Shouldn’t it be either 
> \item a
> or
> \startitem a\stopitem
> ?
Hi Alan,

of course, the sample reads:

\starttext
\startitemize
\startitem a\stopitem
\stopitemize
\stoptext

But the issue still happens on my LMTX installation.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
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] fancybreak fails in LMTX

2020-11-07 Thread Rik Kabel

Hello all,

The following example produces the expected output in MkIV, but fails in 
LMTX (both dated 2020-11-07). The modules directory was copied into the 
LMTX tree from the MkIV tree, and the log indicates that the module is 
loaded. It gives no other clues. The output has a blank line where the 
break should be, as shown in the included snips.


   \usemodule  [fancybreak]
   \definesymbol   [asterisms][*\qquad fancybreak\qquad *]
   \setupfancybreak[indentnext=no,symbol=asterisms]

   \starttext
  Before
   \fancybreak
  After
   \stoptext

MkIV output:

LMTX output:

--
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] issue with LMTX and itemize

2020-11-07 Thread Alan Bowen
and on mine with today’s standalone.

A.

On Sat, Nov 7, 2020 at 10:27 AM Pablo Rodriguez  wrote:

> On 11/7/20 4:11 PM, Alan Bowen wrote:
> > Hi, Pablo—
> >
> > Shouldn’t it be either
> > \item a
> > or
> > \startitem a\stopitem
> > ?
> Hi Alan,
>
> of course, the sample reads:
>
> \starttext
> \startitemize
> \startitem a\stopitem
> \stopitemize
> \stoptext
>
> But the issue still happens on my LMTX installation.
>
> Many thanks for your help,
>
> Pablo
> --
> http://www.ousia.tk
>
> ___
> 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] fancybreak fails in LMTX

2020-11-07 Thread Hans Hagen

On 11/7/2020 5:51 PM, Wolfgang Schuster wrote:

Rik Kabel schrieb am 07.11.2020 um 17:13:


Hello all,

The following example produces the expected output in MkIV, but fails 
in LMTX (both dated 2020-11-07). The modules directory was copied into 
the LMTX tree from the MkIV tree, and the log indicates that the 
module is loaded. It gives no other clues. The output has a blank line 
where the break should be, as shown in the included snips.




I guess it's the same bug (related to a symbol check) as Pablo mentioned 
for the itemize environment.

yes, symbol checking


-
  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] How to define a {\bf}-compatible fake-bold switcher?

2020-11-07 Thread Sylvain Hubert
Thank you so much, Pablo. This is exactly what I needed.

Could you also tell me where you have learnt these features? I had been
searching for this for hours but \effect was still the best of what I've
got. Indeed, googling 'context+tex+boldened' or 'contextgarden+boldened'
results in nothing useful.

Sylvain

On Sat, 7 Nov 2020 at 16:41, Pablo Rodriguez  wrote:

> On 11/7/20 4:06 PM, Sylvain Hubert wrote:
> > [...]
> > Could anyone help me define a {\bf}-aware version of \fakebf which can
> > render the "4 5 6" in the example above in latinmodern's bold?
>
> Hi Sylvain,
>
> there is an already defined font feature that fakes boldened fonts:
> boldened (and also boldened-10, boldened-15, boldened-20 and boldened-25
> [boldened is actually boldened-30]).
>
> But I don’t use \definefont myself, so this is my sample:
>
> \definefontfamily[mainface][rm][Latin Modern Sans]
> [bf={style:tf, features:{default, boldened}}]
> \setupbodyfont[mainface]
> \starttext
> normal \bf boldened
> \stoptext
>
> Handle with care, since faked fonts are to be used sparingly,
>
> Pablo
> --
> http://www.ousia.tk
>
> ___
> 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] How to define a {\bf}-compatible fake-bold switcher?

2020-11-07 Thread Hans Hagen

On 11/7/2020 6:45 PM, Pablo Rodriguez wrote:

On 11/7/20 6:18 PM, Sylvain Hubert wrote:

Thank you so much, Pablo. This is exactly what I needed.

Could you also tell me where you have learnt these features? I had been
searching for this for hours but \effect was still the best of what I've
got. Indeed, googling 'context+tex+boldened' or 'contextgarden+boldened'
results in nothing useful.


Well, I asked for that feature
(https://mailman.ntg.nl/pipermail/ntg-context/2018/091128.html), which
Ulrike Fischer requested a year before
(https://mailman.ntg.nl/pipermail/ntg-context/2017/090091.html).

And that year, BachoTeX included a presentation with the implemented
feature (also included in LMTX @
tex/texmf-context/doc/context/presentations/bachotex/2018/bachotex-2018-fonteffects.pdf
[also with sources]).

I was very interested on that particular feature, because the previous
fake bold feature was simple stretching.

FYI.

The literal based solution has been in context for a long time (already 
in mkii) .. the 'bachotex' one you refer to is different and although it 
does use pdf rendering primitives it is more about making sure that 
related dimensions etc are dealt with (more parameters and dimensions 
are involved in that).


Actually, in luatex slanting and expanding (which is also kind of 
bondeling) have been inherited from pdftex. Boldening text is one case, 
but dealing with math yet another and the luatex engine only has some 
additional font property (linewidth) but all the rest has do be dealt 
with in lua.


In lmtx the implementation of those specific font properties is a bit 
different. In the end it is not so much the linewidth that matters here 
(which is trivial) but the details which is why there are several 
parameters that one can tweak. For instance outlines are also done this 
way.


(But as with many features, I'm not so sure if they are really used. The 
main reason for supporting it is not in text, because one should choose 
a proper font, but for math where bold (+heavy alphabets) are not widely 
available but needed for section heads.)


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] Scheherazade New loading issue

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 6:58 PM, Alan Bowen wrote:
> Though Scheherazade New font loads properly with the today’s LMTX, I
> cannot get it to load with LMTX from 2020.09.20 (which I must stay with
> for now because the latest one has its own complaints about my files).
>
> \definefallbackfamily[mainface][][Scheherazade New]
> [range=arabic]
> \definefontfamily[mainface][rm][STIX Two Text] 
> \setupbodyfont [mainface, 24pt]
>
> \starttext
> Arabic—ؼ
>
>  {\bf ؼ} 
> \stoptext

Hi Alan,

I have just downloaded and compiled your sample:

system  > ConTeXt  ver: 2020.09.20 23:02 LMTX  fmt: 2020.11.7
int: english/english
[...]
mkiv lua stats  > loaded fonts: 4 files: scheherazadenew-bold.ttf,
scheherazadenew-regular.ttf, stix2text-bold.otf, stix2text-regular.otf

Please, run "mtxrun --script cache --erase &&  mtxrun --generate" and I
think the new compilation will be fine. It seems to be that your
previous ConTeXt version cannot find fonts installed later.

BTW, "\definefallbackfamily[mainface][][Scheherazade New]" should read
"\definefallbackfamily[mainface][rm][Scheherazade New]". But it doesn’t
affect your issue.

Just in case it helps,

Pablo
--
http://www.ousia.tk
___
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] new upload

2020-11-07 Thread Floris van Manen



On 07/11/2020 13:11, Pablo Rodriguez wrote:

echo "" && curl -Ihttp://pragma-ade.com/context/latest/cont-tmf.zip
2>&1 | grep Last-Modified && echo ""

So you don’t mix access time with last modification.


this seems to work:


#!/usr/bin/env bash
cd  ~/context
OLD=`stat -c "%w" context-linux-64.zip`
echo "current: " $OLD
curl -s -O http://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip
NEW=`stat -c "%w" context-linux-64.zip`
if [[ "$OLD" != "$NEW" ]] ; then
echo "new: " $NEW
mtxrun --script cache --erase >ctx.log
unzip -q -o context-linux-64.zip
rm tex/*.tma
sh ./install.sh >ctx.log
context --version | grep "current version"
fi
___
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] Scheherazade New loading issue

2020-11-07 Thread Wolfgang Schuster

Alan Bowen schrieb am 07.11.2020 um 20:13:
Thanks, Pablo. I ran the script but it made no difference. 
Scheherazade New was loaded with  ver: 2020.11.07 12:47 but not 
with ver: 2020.09.20 23:02


The console file for the latter shows:
selectfont      > the requested fallback font 'Scheherazade New' for 
typeface 'mainface' style 'rm' was ignored because no files where found.
And yet Scheherazade New sits beside Scheherazade (which 2020.09.20 
finds) in ~/Fonts.


Does ConTeXt list the font in its database?

mtxrun --script fonts --list --all scheherazadenew*

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] Get section's uservarialbe inside the section

2020-11-07 Thread Sylvain Hubert
Dear List,

I have sections tagged with authors:

\startsection[title={Title}][author={Author}] ... \stopsection

The authors were to be included in the table of contents using
\structurelistuservariable{author}. Now I would also like to mention the
authors inside the sections, but

\startsection[title={Title}][author={Author}]
\structurelistuservariable{author} \stopsection

doesn't work.

Could anyone help me with this? Thanks!

Best,
Sylvain
___
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] Get section's uservarialbe inside the section

2020-11-07 Thread Wolfgang Schuster

Sylvain Hubert schrieb am 07.11.2020 um 20:32:

Dear List,

I have sections tagged with authors:

     \startsection[title={Title}][author={Author}] ... \stopsection

The authors were to be included in the table of contents using 
\structurelistuservariable{author}. Now I would also like to mention the 
authors inside the sections, but


     \startsection[title={Title}][author={Author}] 
\structurelistuservariable{author} \stopsection


doesn't work.

Could anyone help me with this? Thanks!


\structurelistuservariable is for lists (e.g. the table of contents),
to access the values in your text use \structureuservariable.

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] fancybreak fails in LMTX

2020-11-07 Thread Wolfgang Schuster

Rik Kabel schrieb am 07.11.2020 um 17:13:


Hello all,

The following example produces the expected output in MkIV, but fails 
in LMTX (both dated 2020-11-07). The modules directory was copied into 
the LMTX tree from the MkIV tree, and the log indicates that the 
module is loaded. It gives no other clues. The output has a blank line 
where the break should be, as shown in the included snips.




I guess it's the same bug (related to a symbol check) as Pablo mentioned 
for the itemize environment.


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] How to quote the section names in advance like the table of contents?

2020-11-07 Thread Sylvain Hubert
Hi Pablo,

thanks for the suggestion, but I was looking for an automated method for
writing a module, therefore manual reference is not feasible here.

Sylvain

On Sat, 7 Nov 2020 at 16:46, Pablo Rodriguez  wrote:

> On 11/7/20 4:32 PM, Sylvain Hubert wrote:
> > Dear List,
> >
> > say I have three sections in the document:
> >
> > \section{foo} ... \section{bar} ... \section{baz} ...
> >
> > Now I would like to auto generate a heavily customized table of contents
> > like the following text, which cannot be done by the stock \placecontent
> > in general, and put it into the preface:
> >
> >This book has 3 sections: foo, bar, and baz.
>
> How about the following?
>
> \starttext
> as in \about[section-one], \about[section-two],
> \about[section-three]...
>
> \section[section-one]{Section One}
> \section[section-two]{Section Two}
> \section[section-three]{Section Three}
> \stoptext
>
> Pablo
> --
> http://www.ousia.tk
>
> ___
> 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] How to define a {\bf}-compatible fake-bold switcher?

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 6:18 PM, Sylvain Hubert wrote:
> Thank you so much, Pablo. This is exactly what I needed.
>
> Could you also tell me where you have learnt these features? I had been
> searching for this for hours but \effect was still the best of what I've
> got. Indeed, googling 'context+tex+boldened' or 'contextgarden+boldened'
> results in nothing useful.

Well, I asked for that feature
(https://mailman.ntg.nl/pipermail/ntg-context/2018/091128.html), which
Ulrike Fischer requested a year before
(https://mailman.ntg.nl/pipermail/ntg-context/2017/090091.html).

And that year, BachoTeX included a presentation with the implemented
feature (also included in LMTX @
tex/texmf-context/doc/context/presentations/bachotex/2018/bachotex-2018-fonteffects.pdf
[also with sources]).

I was very interested on that particular feature, because the previous
fake bold feature was simple stretching.

Pablo
--
http://www.ousia.tk
___
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] Scheherazade New loading issue

2020-11-07 Thread Alan Bowen
Though Scheherazade New font loads properly with the today’s LMTX, I cannot
get it to load with LMTX from 2020.09.20 (which I must stay with for now
because the latest one has its own complaints about my files).

\definefallbackfamily[mainface][][Scheherazade New]
[range=arabic]
\definefontfamily[mainface][rm][STIX Two Text]
\setupbodyfont [mainface, 24pt]

\starttext
Arabic—ؼ

 {\bf ؼ}
\stoptext

with  ConTeXt  ver: 2020.09.20 23:02
mkiv lua stats  > loaded fonts: 2 files: stix2text-bold.otf,
stix2text-regular.otf

with ConTeXt  ver: 2020.11.07
mkiv lua stats  > loaded fonts: 4 files: stix2text-bold.otf,
stix2text-regular.otf, scheherazadenew-bold.ttf, scheherazadenew-regular.ttf

I should add that the old Sheherazade font works well with v. 2020.09.20.

Alan
___
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] new upload lmts

2020-11-07 Thread Hans Hagen

with some fixes
--

-
  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] Scheherazade New loading issue

2020-11-07 Thread Hans Hagen

On 11/7/2020 6:58 PM, Alan Bowen wrote:
Though Scheherazade New font loads properly with the today’s LMTX, I 
cannot get it to load with LMTX from 2020.09.20 (which I must stay with 
for now because the latest one has its own complaints about my files).


\definefallbackfamily[mainface][][Scheherazade New]
[range=arabic]
\definefontfamily[mainface][rm][STIX Two Text]
\setupbodyfont [mainface, 24pt]

\starttext
Arabic—ؼ

  {\bf ؼ}
\stoptext

with  ConTeXt  ver: 2020.09.20 23:02
mkiv lua stats  > loaded fonts: 2 files: stix2text-bold.otf, 
stix2text-regular.otf


with ConTeXt  ver: 2020.11.07
mkiv lua stats  > loaded fonts: 4 files: stix2text-bold.otf, 
stix2text-regular.otf, scheherazadenew-bold.ttf, scheherazadenew-regular.ttf


I should add that the old Sheherazade font works well with v. 2020.09.20.
It looks like no font is loaded (found) but that part is for Wolfgang to 
sort out ...


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
___


[NTG-context] Font protrusion and expansion

2020-11-07 Thread Tommaso Gordini
Hello to all.

I am writing to you just to know if the following code, with which I would
like to activate the protrusion and expansion of characters in my document,
is correct. Is the command order okay?

If I wanted to use another font, are there other things to write?

Thank you in advance
Tommaso

The code:



\mainlanguage[it]


\definefontfeature

  [default]

  [default]

  [expansion=quality,protrusion=quality]


\usetypescript[modern-base]


\setupalign[hz,hanging]


\setupbodyfont[modern]


\starttext


...


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

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


Re: [NTG-context] Scheherazade New loading issue

2020-11-07 Thread Alan Bowen
Thanks, Pablo. I ran the script but it made no difference. Scheherazade New
was loaded with  ver: 2020.11.07 12:47 but not with ver: 2020.09.20 23:02

The console file for the latter shows:
selectfont  > the requested fallback font 'Scheherazade New' for
typeface 'mainface' style 'rm' was ignored because no files where found.
And yet Scheherazade New sits beside Scheherazade (which 2020.09.20 finds)
in ~/Fonts.

I fixed my definition of \definefallbackfamily—thanks for catching that.

Alan


On Sat, Nov 7, 2020 at 1:25 PM Pablo Rodriguez  wrote:

> On 11/7/20 6:58 PM, Alan Bowen wrote:
> > Though Scheherazade New font loads properly with the today’s LMTX, I
> > cannot get it to load with LMTX from 2020.09.20 (which I must stay with
> > for now because the latest one has its own complaints about my files).
> >
> > \definefallbackfamily[mainface][][Scheherazade New]
> > [range=arabic]
> > \definefontfamily[mainface][rm][STIX Two Text]
> > \setupbodyfont [mainface, 24pt]
> >
> > \starttext
> > Arabic—ؼ
> >
> >  {\bf ؼ}
> > \stoptext
>
> Hi Alan,
>
> I have just downloaded and compiled your sample:
>
> system  > ConTeXt  ver: 2020.09.20 23:02 LMTX  fmt: 2020.11.7
> int: english/english
> [...]
> mkiv lua stats  > loaded fonts: 4 files: scheherazadenew-bold.ttf,
> scheherazadenew-regular.ttf, stix2text-bold.otf, stix2text-regular.otf
>
> Please, run "mtxrun --script cache --erase &&  mtxrun --generate" and I
> think the new compilation will be fine. It seems to be that your
> previous ConTeXt version cannot find fonts installed later.
>
> BTW, "\definefallbackfamily[mainface][][Scheherazade New]" should read
> "\definefallbackfamily[mainface][rm][Scheherazade New]". But it doesn’t
> affect your issue.
>
> Just in case it helps,
>
> Pablo
> --
> http://www.ousia.tk
>
> ___
> 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] Font protrusion and expansion

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 7:54 PM, Tommaso Gordini wrote:
> Hello to all.
>
> I am writing to you just to know if the following code, with which I
> would like to activate the protrusion and expansion of characters in my
> document, is correct. Is the command order okay?
>
> If I wanted to use another font, are there other things to write?

Hi Tommaso,

in the next sample, replace TeX Gyre Pagella with the font family name
and it will work fine:

  \definefontfeature
[default]
[default]
[expansion=quality,protrusion=quality]
  \definefontfamily[mainface][rm][TeX Gyre Pagella]
  \setupbodyfont[mainface]
  \setupalign[hz,hanging]
  \starttext
  \input{zapf}
  \stoptext

Pablo
--
http://www.ousia.tk
___
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] troubles when installing OpenBSD 64 binaries (install.sh?)

2020-11-07 Thread Damien Thiriet
Hi,


I tried to install the new OpenBSD amd64 binaries (thanks Hans!)
but it failed. I suspect something is wrong with install.sh

Here is the script I use to install binaries on a new system:


#!/bin/ksh
#script pour installer ConTeXt dans une nouvelle version OpenBSD
#Pour lire avant usage
/bin/echo "as-tu bien relu le script avant de le lancer?"
#temps de pause pour la lecture
/bin/sleep 30
#nettoie avant installation
/bin/rm -rf /usr/local/context/*

#telecharge
/usr/bin/ftp http://lmtx.pragma-ade.nl/install-lmtx/context-openbsd$(uname 
-r)-amd64.zip

#decompresse
/usr/local/bin/unzip context-openbsd$(uname -r)-amd64.zip -d /usr/local/context/

#va dans le dossier
cd /usr/local/context/
#change les permissions
/bin/chmod 744 install.sh
#lance install.sh
./install.sh 

Here is the output log


Requesting http://lmtx.pragma-ade.nl/install-lmtx/context-openbsd6.8-amd64.zip
100% 
|***|
  1255 KB00:01
1285778 bytes received in 1.76 seconds (711.15 KB/s)
Archive:  context-openbsd6.8-amd64.zip
   creating: /usr/local/context/bin/
  inflating: /usr/local/context/bin/mtx-install.lua
  inflating: /usr/local/context/bin/mtxrun
  inflating: /usr/local/context/bin/mtxrun.lua
  inflating: /usr/local/context/installation.pdf
  inflating: /usr/local/context/install.sh
mtxrun  | forcing cache reload
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'/root/texmf/web2c' from specification 'home:texmf/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'/usr/local/texmf-local/web2c' from specification 
'selfautoparent:/texmf-local/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'/usr/local/texmf-context/web2c' from specification 
'selfautoparent:/texmf-context/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'/usr/local/texmf-dist/web2c' from specification 
'selfautoparent:/texmf-dist/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'/usr/local/texmf/web2c' from specification 'selfautoparent:/texmf/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
path '/root/texmf/web2c' from specification 'home:texmf/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
path '/usr/local/texmf-local/web2c' from specification 
'selfautoparent:/texmf-local/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
path '/usr/local/texmf-context/web2c' from specification 
'selfautoparent:/texmf-context/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
path '/usr/local/texmf-dist/web2c' from specification 
'selfautoparent:/texmf-dist/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
path '/usr/local/texmf/web2c' from specification 'selfautoparent:/texmf/web2c'
resolvers   | resolving |
resolvers   | resolving | warning: no lua configuration files found
resolvers   | resolving | no texmf paths are defined (using TEXMF)
resolvers   | resolving |
mtxrun  | the resolver databases are not present or outdated
mtx-install | server   : lmtx.pragma-ade.com
mtx-install | instance : install-lmtx
mtx-install | platform : openbsd6.8-amd64
mtx-install | system   : unix
mtx-install | fetching 'http://lmtx.pragma-ade.com/install-lmtx//texmf.zip'
mtx-install | unzipping 'texmf.zip'
 166 files of 1664 done,3298500 bytes, 0.060 seconds
 332 files of 1664 done,   20874604 bytes, 0.330 seconds
 498 files of 1664 done,   44670096 bytes, 0.690 seconds
 664 files of 1664 done,   45690920 bytes, 0.730 seconds
 830 files of 1664 done,   46176672 bytes, 0.770 seconds
 996 files of 1664 done,   47045568 bytes, 0.810 seconds
1162 files of 1664 done,   47492564 bytes, 0.840 seconds
1328 files of 1664 done,   76220771 bytes, 1.230 seconds
1494 files of 1664 done,   88713303 bytes, 1.420 seconds
1660 files of 1664 done,   89893244 bytes, 1.460 seconds
1664 files of 1664 done,   89953574 bytes, 1.460 seconds
mtx-install | fetching 
'http://lmtx.pragma-ade.com/install-lmtx//texmf-context.zip'
mtx-install | unzipping 'texmf-context.zip'
 404 files of 4045 done,   90301449 bytes, 1.370 seconds
 808 files of 4045 done,   95541495 bytes, 1.480 seconds
1212 files of 4045 done,  102546934 bytes, 1.670 seconds
1616 files of 4045 done,  120427309 bytes, 1.960 seconds
2020 files of 4045 done,  131504449 bytes, 2.110 seconds
2424 files of 4045 done,  138996466 bytes, 2.240 seconds
2828 files of 4045 done,  145377377 bytes, 2.360 seconds
3232 files of 4045 done,  151956221 bytes, 2.480 seconds
3636 files of 4045 done,  157895101 bytes, 2.570 seconds
4040 files of 4045 done,  163320456 bytes, 2.700 seconds
4045 files of 4045 done,  163339965 bytes, 2.710 seconds
mtx-install | 

Re: [NTG-context] Font protrusion and expansion

2020-11-07 Thread Tommaso Gordini
Thanks Hans and thanks Pablo.  So, \usetypescript is not needed?

Tommaso

Il sab 7 nov 2020, 21:24 Pablo Rodriguez  ha scritto:

> On 11/7/20 7:54 PM, Tommaso Gordini wrote:
> > Hello to all.
> >
> > I am writing to you just to know if the following code, with which I
> > would like to activate the protrusion and expansion of characters in my
> > document, is correct. Is the command order okay?
> >
> > If I wanted to use another font, are there other things to write?
>
> Hi Tommaso,
>
> in the next sample, replace TeX Gyre Pagella with the font family name
> and it will work fine:
>
>   \definefontfeature
> [default]
> [default]
> [expansion=quality,protrusion=quality]
>   \definefontfamily[mainface][rm][TeX Gyre Pagella]
>   \setupbodyfont[mainface]
>   \setupalign[hz,hanging]
>   \starttext
>   \input{zapf}
>   \stoptext
>
> Pablo
> --
> http://www.ousia.tk
>
> ___
> 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] Get section's uservarialbe inside the section

2020-11-07 Thread Sylvain Hubert
On Sat, 7 Nov 2020 at 20:37, Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com> wrote:

> \structurelistuservariable is for lists (e.g. the table of contents),
> to access the values in your text use \structureuservariable.
>

Indeed. Thanks for the help, 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] \section with userdata

2020-11-07 Thread Sylvain Hubert
Dear List,

it is known that we can supply additional userdata like authors to
\startsection:

\startsection[title=Title][author=Someone]

so that the author can be included in the table of contents using
\structurelistuservariable{author}.

Now I would like to do the same with \section, but according to the wiki
, \section doesn't seem to
accept any additional parameters like \startsection does.

Does anyone know whether there is a workaround to let \section accept
userdata parameters?

Thanks!

Best,
Sylvain
___
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] Font protrusion and expansion

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 9:51 PM, Tommaso Gordini wrote:
> Thanks Hans and thanks Pablo.  So, \usetypescript is not needed?

Hi Tommaso,

I never used (or needed) any typescript.

But I think they aren’t needed anymore with \definefontfamily and
\definefallbackfamily.

Pablo
--
http://www.ousia.tk
___
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] \section with userdata

2020-11-07 Thread Sylvain Hubert
The motivation of using \section was to avoid \stopsection, but I just
found out that \stopsection is not really necessary.

Now I would like to ask whether there is any difference between
\section{Title} and \startsection[title=Title].

Thanks.

On Sat, 7 Nov 2020 at 22:33, Sylvain Hubert  wrote:

> Dear List,
>
> it is known that we can supply additional userdata like authors to
> \startsection:
>
> \startsection[title=Title][author=Someone]
>
> so that the author can be included in the table of contents using
> \structurelistuservariable{author}.
>
> Now I would like to do the same with \section, but according to the wiki
> , \section doesn't seem
> to accept any additional parameters like \startsection does.
>
> Does anyone know whether there is a workaround to let \section accept
> userdata parameters?
>
> Thanks!
>
> Best,
> Sylvain
>
___
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] Works in ConTeXt, fails in LMTX

2020-11-07 Thread ntg
On 7 Nov 2020, at 13:43, Pablo Rodriguez  wrote:
> 
> On 11/7/20 1:09 PM, n...@scorecrow.com wrote:
>> Some more details on the font inclusion problem I posted about the other day.
> 
> Hi Bruce,
> 
> I think that current LMTX has issues with Bondi12CPlus.TTF.
> 
> Hans, could you have a look at it? I reproduce can the same issue.


Thank-you Pablo for taking the trouble to reproduce the issue and thank-you 
Hans for the suggestion: renaming the font from .TTF to .ttf has fixed the 
problem.

The other font I had trouble with also had an uppercase file extension so that 
is also fixed now.

--
Bruce Horrocks
Hampshire, UK

___
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] \section with userdata

2020-11-07 Thread Wolfgang Schuster

Sylvain Hubert schrieb am 07.11.2020 um 22:42:
The motivation of using \section was to avoid \stopsection, but I just 
found out that \stopsection is not really necessary.


Now I would like to ask whether there is any difference between 
\section{Title} and \startsection[title=Title].


You get extra hooks with \startsection.

\startsetups [beforesection]
\framed[width=max,foregroundstyle=\tttf]{begin of section}
\stopsetups

\startsetups [insidesection]
\framed[width=max,foregroundstyle=\tttf]{middle of section}
\stopsetups

\startsetups [aftersection]
\framed[width=max,foregroundstyle=\tttf]{end of section}
\stopsetups

\setuphead
  [section]
  [beforesection=\directsetup{beforesection},
   insidesection=\directsetup{insidesection},
aftersection=\directsetup{aftersection}]

\starttext

\startsection[title=\tex{startsection}]
\samplefile{ward}\par
\stopsection

\page

\section{\tex{section}}
\samplefile{ward}

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