Re: [NTG-context] Best way to create a large number of documents from database

2020-04-22 Thread Mojca Miklavec
On Fri, 17 Apr 2020 at 21:11, Hans Hagen wrote:
> On 4/17/2020 4:37 PM, Mojca Miklavec wrote:
>
> > One of the interesting statistics.
> > I used a bunch of images (the same png images in all documents; cca.
> > 290k in total).
>
> It can actually make a difference what kind of png image you use. Some
> png images demand a conversion (or split of map etc) to the format
> supported by pdf. Often converting the png to pdf and include those is
> faster.

Thanks for the hint. But I tested it and it hardly makes any difference.
I had to make another batch for the archive (creating a single
document with 4k+ pages), and the full process ran in 10 minutes
(compared to cca. 2,5 hours to create individual documents). Just for
a test run I completely **removed** all the images and it only
accounted for some 10 or 20 seconds speedup. So the biggest overhead
still seems to be in warming up the machinery (which includes my share
of overhead for reading in the 1,3 MB lua table with all data entries)
and Taco's hint of using an external tool for splicing would have
probably scored best :)

I need to add that I'm extremely happy about the resource reuse
(mostly images). As I already mentioned before, individual documents
were 1,5 GB in total, and a badly written software would have created
an equally bad cumulative PDF, while ConTeXt generates a merely 17 MB
file with 4k+ pages. It's really impressive.

Mojca
___
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 up macvim in mac os catalina to work with LMTX

2020-04-22 Thread janerik.hagglof
I think I managed to get the work done by putting the settings in 
~.vim/after/ftplugin/context.vimSo The problem is solved, thanks to your 
answers.The rest of the problem seems not to be related to this list, such as 
how do I use .vimrc in the correct way so to keep default global settings and 
just tweaking them locally.Med Vänlig Hälsning Jan-Erik Hägglöf
 Originalmeddelande Från: Jan-Erik Hägglöf 
 Datum: 2020-04-22  21:50  (GMT+01:00) Till: 
mailing list for ConTeXt users  Ämne: Re: [NTG-context] 
Setting up macvim in mac os catalina to work with LMTX I managed to typeset 
with success by typing in:let g:context_mtxrun = 
'PATH=$HOME/context-osx-64/tex/texmf-osx-64/bin:$PATH mtxrun’:ConTeXtWhen I put 
this into my .vimrc file nothing is working, do not even find the context 
commands, so I removed the .vimrc and then it worked again.So the question is 
where do I put this line permanent because it is strange to type this every 
time I want to typeset something.RegardsJanne22 apr. 2020 kl. 16:49 skrev 
Nicola :On 2020-04-21, Jan-Erik Hägglöf 
 wrote:Hi !I am curious about testing macvim and it 
seems doing fine in editmode. But how do i set up the typesetting engine?As far 
as I understand, there is, the command :ConteXt with guidancefrom the wiki 
https://wiki.contextgarden.net/VimBut I do 
not understand how to customize it to be directed to the pathto my engineI’ve 
installed the LMTX in /Users/janneman/context-osx-64/I haven't tried LMTX yet, 
but you may configure the path to the ConTeXtexecutable you want to use by 
setting `g:context_mtxrun`, e.g.:    :let 
g:context_mtxrun='/path/to/context/mtxrun'Then, executing :ConTeXt will run the 
configured command. You may alsodefine shell enviroment variables, if needed. 
For instance, I haveconfigured Vim to use my installation of ConTeXt Beta as 
follows:   :let 
g:context_mtxrun='PATH=$HOME/path/to/context-beta/tex/texmf-osx-64/bin:$PATH 
mtxrun'The installation works fine in TeXshop but still an error shows up 
inmacvim and the message dissappears very quick so there is not muchtime to 
read the cause of error.You may show a log of Vim messages by typing 
:messages.If you post the error message, I may better diagnose your issue.I 
have created the subdirectory .vim/ftplugin/ and put the context.vim file 
therealso the corresponding in .vim/compiler/context.vimwhich is copied from 
the program located 
in/usr/local/Cellar/macvim/8.2-163/MacVim.app/Contents/Resources/vim/runtimeThat's
 unnecessary. MacVim's runtime path is searched by default.I recommend that you 
remove the files that you have copied into ~/.vim.ConTeXt in Vim works out of 
the 
box.Nicola___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-contextwebpage  : 
http://www.pragma-ade.nl / http://context.aanhet.netarchive  : 
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] lmtx & lohit-devanagari fonts

2020-04-22 Thread Henning Hraban Ramm

> Am 22.04.2020 um 15:19 schrieb Hans Hagen :
> 
> On 4/22/2020 8:16 AM, Henning Hraban Ramm wrote:
>>> Am 21.04.2020 um 15:32 schrieb Wolfgang Schuster 
>>> :
>>> 
>>> You have to set a font which has the required glyphs but you can also use 
>>> different fonts for both scripts and combine them.
>>> 
>>> \definefallbackfamily [mainface] [ss] [Noto Sans Devanagari]
>>>  [range={devanagari,devanagariextended},
>>>   features=devanagari-two]
>> Does that mean that indic scripts/languages are now fully supported? (Or 
>> maybe just scripts, not languages? Do Hindi or Urdu need hyphenation 
>> patterns?) I remember this was an open issue.
> I'm not sure what you mean. Devanagari is the main category that determines 
> the kind of processing. Different languages have different details. So, 
> already for many years there is support for a bunch of these languages and 
> some time ago a few more were added.
> 
> This is something that Kai Eigner and I work ok occasionally and Kai did most 
> of the logic, looking at what uniscribe does. He does high quality 
> typesetting jobs so you can bet that it works (or worked) for the 
> scripts/language combinations that he's familiar with.

Thank you, also Arthur!

Sometimes I have leftovers of MkII (or the MkII to IV transition) on my mind, 
like there are in the wiki.

So I can gladly remove all hints to ConTeXt limitations WRT indic 
scripts/languages.

Is there a list of supported languages in the sources? I checked only 
hyphenation patters some time ago.

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
___


[NTG-context] Text size with lmt_text [ ]

2020-04-22 Thread Fabrice Couvreur
Hi,
As an extension of this discussion
https://mail.google.com/mail/u/0/#inbox/QgrcJHsNlRfcqCPHBTrnSFbJKjGPwjbJnLL?compose=CllgCJZWxJlpNNfzrPpFwWRqsFfdXqmnxkCwWVjvXKQJBwQmBfZGvchjMbsJDKXLtKldJtpWVqq
(thanks to Wolfgang), I used the MetaFun interface with lmt_text [] ; I
managed to pass the text and color parameters while I did not succeed using
textext (). My problem is the size of the letters which is too small.
Thank you.
Fabrice

\usecolors[xwi]

\definecolor [prune] [r=1.29,g=.20,b=.83]

\starttext

\startMPcode

  vardef card(expr s, c) = image(
   draw fullsquare xyscaled (2cm,4cm);
   draw fullsquare xyscaled (1.8cm,3.8cm) withcolor \MPcolor{violet};
   draw lmt_text[
   text  = s,
   color = c,
   style = "bold",
   ]
   )
  enddef;

  draw card("A",red) rotatedaround((1cm,2cm),5);
  draw card("L",green) rotatedaround((1cm,2cm),-5) shifted(3.5cm,0);
  draw card("E",blue) rotatedaround((1cm,2cm),5) shifted(6cm,0);
  draw card("A","prune") rotatedaround((1cm,2cm),-5) shifted(9cm,0);

\stopMPcode

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


[NTG-context] mtxrun fontloader in recent standalone

2020-04-22 Thread Benjamin Buchmuller
I’ve just updated to the most recent standalone 

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!


Benjamin
___
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] METAPOST: How do I get this 'max' cutafter to work?

2020-04-22 Thread Gerben Wierda
> On 22 Apr 2020, at 09:30, Taco Hoekwater  wrote:
> 
> Hi,
> 
>> On 21 Apr 2020, at 17:52, Gerben Wierda  wrote:
>> 
>>> pair a ; a := arrowHead intersection_point connection ;
> 
> Hans’ example also works with “intersectionpoint”: the differences between 
> intersectionpoint
> and intersection_point are minimal except if there is no intersection at all.
> 
> The trick is that Hans does not use cutafter. cutafter is designed to cut off 
> as little as 
> possible, it is a cutbefore on both paths reversed. So, uses the last 
> intersection point of 
> the paths, and in this case it will therefore use the top of the arrowhead. 
> 
> In contrast, intersectionpoint finds the first intersection on the 
> non-reversed paths, which 
> is the base of the arrowhead.
> 
> Alternatively (in this case), you could move the arrowhead up a tiny amount, 
> so that there is 
> only one intersection between the connection and arrowHead.

In fact I did something like this, except that I first shortened the line path 
so it ends in the middle of the triangle before doing a cutafter (twice in both 
directions and taking the one which cuts the most). This works reliably.

I gave up on another approach (which repeatedly cut a little bit from the path 
until it wasn’t intersecting anymore, then taking the one form thelast 
successful intersection)  as I also have paths that connect a path-cycle to 
itself. A ‘cut until it just doesn’t intersect anymore' would eat up the entire 
path in that case until only a single point is left.

G

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

___
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 up macvim in mac os catalina to work with LMTX

2020-04-22 Thread Jan-Erik Hägglöf
I managed to typeset with success by typing in

:let g:context_mtxrun = 'PATH=$HOME/context-osx-64/tex/texmf-osx-64/bin:$PATH 
mtxrun’
:ConTeXt

When I put this into my .vimrc file nothing is working, do not even find the 
context commands, so I removed the .vimrc and then it worked again.

So the question is where do I put this line permanent because it is strange to 
type this every time I want to typeset something.

Regards

Janne

> 22 apr. 2020 kl. 16:49 skrev Nicola :
> 
> On 2020-04-21, Jan-Erik Hägglöf  wrote:
>> Hi !
>> 
>> I am curious about testing macvim and it seems doing fine in edit
>> mode. But how do i set up the typesetting engine?
>> 
>> As far as I understand, there is, the command :ConteXt with guidance
>> from the wiki https://wiki.contextgarden.net/Vim
>> 
>> 
>> But I do not understand how to customize it to be directed to the path
>> to my engine
>> 
>> I’ve installed the LMTX in /Users/janneman/context-osx-64/
> 
> I haven't tried LMTX yet, but you may configure the path to the ConTeXt
> executable you want to use by setting `g:context_mtxrun`, e.g.:
> 
>:let g:context_mtxrun='/path/to/context/mtxrun'
> 
> Then, executing :ConTeXt will run the configured command. You may also
> define shell enviroment variables, if needed. For instance, I have
> configured Vim to use my installation of ConTeXt Beta as follows:
> 
>   :let 
> g:context_mtxrun='PATH=$HOME/path/to/context-beta/tex/texmf-osx-64/bin:$PATH 
> mtxrun'
> 
>> The installation works fine in TeXshop but still an error shows up in
>> macvim and the message dissappears very quick so there is not much
>> time to read the cause of error.
> 
> You may show a log of Vim messages by typing :messages.
> If you post the error message, I may better diagnose your issue.
> 
>> I have created the subdirectory .vim/ftplugin/ and put the context.vim file 
>> there
>> also the corresponding in .vim/compiler/context.vim
>> 
>> which is copied from the program located in
>> /usr/local/Cellar/macvim/8.2-163/MacVim.app/Contents/Resources/vim/runtime
> 
> That's unnecessary. MacVim's runtime path is searched by default.
> I recommend that you remove the files that you have copied into ~/.vim.
> ConTeXt in Vim works out of the box.
> 
> Nicola
> 
> 
> ___
> 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] \placetable[location=split] reference ??

2020-04-22 Thread Benjamin Buchmuller
Hi,

I would like to reference a table of the following structure. 

\starttext

\startplacetable[reference=tab1,title={A table},location=split]
\startxtable
\startxrow
\startxcell hi \stopxcell
\stopxrow
\stopxtable
\stopplacetable

In Table \in[tab1]

\stoptext


It has [location=split], which I need this because xtable doesn’t like to be 
placed without a split; and apparently neither does it accept the 
\placetable[ref]{...} syntax. However, the reference is now no longer detected.

I can see that the split table’s caption is about to become "Table 1.a.", 
"Table 1.b" etc. and I appreciate that this is potentially a quite complex 
mechanism anyways, but if there was any chance to  get a reference as “Table 
1”, I would be helped a lot.

On similar lines, is there a way to have “Table 1 (continued).” in the caption?

Cheers


Benjamin


___
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] accessing prd file from component file

2020-04-22 Thread Wolfgang Schuster

Alan Bowen schrieb am 22.04.2020 um 17:38:
When my component files were in the same directory as my component 
files, the line

%! TeX root = prd_whatever
allowed processing the component file from the component file. (I use 
TeXShop for this.)


The project structure has been changed: the component files are in a 
subdirectory of the directory that has the prd file. Now,

%! TeX root = prd_whatever
no longer works. (E.g., it cannot find the environment files called in 
the prd file.)


Is there a way to restore processing from the component file. My 
experiments are near to wearing out the “error” message/page.


What I get from your description is that your problem is editor
related and has nothing to do with ConTeXt itself.

What I found online is that TeXShop has to be told [1] to search
for the main file in higher folder with

% !TEX root = ../prd_whatever

It is possible to do something similar with ConTeXt itself but
then you get only a PDF with the current file and not the complete
document.

[1] TeXShop Tips & Tricks: https://herbs.github.io/

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 up macvim in mac os catalina to work with LMTX

2020-04-22 Thread BPJ
You may want to put this in your .vimrc so that you get
error messages in English.
Personally I hate it when partly localized programs give me a
mixture of Swedish and English! :-)

(You may of course want to just include "messages" and
leave out "language".)

" force English menus & messages
if has('multi_lang')
  if has('unix') " Unix, Linux, Mac OS X etc.
language messages C
  else " Windows
language messages en
  endif
endif

Secondly you may want to do this to get the messages history as
editable text:

:redir > messages.txt
:messages
:redir END
:e messages.txt

You can replace the first line with

:redir @+>

to get the text in the system clipboard instead of in a
file.

Hoppas detta är till nån hjälp!
(Hope this helps!)

/Benct



--
Better --help|less than helpless

Den ons 22 apr. 2020 18:59Jan-Erik Hägglöf 
skrev:

> Output from :messages
>
>
>
> *[ConTeXt] Typesetting...*
> Fel upptäcktes vid bearbetning av function
> context#typeset[6]..39_typeset[2
> ]..context#callback[1]..39_callback:
> rad   17:
> E40: Kan inte öppna felfil /Users/janneman/Documents/CTX/GNUPLOT/test3.log
>
> 22 apr. 2020 kl. 17:22 skrev janerik.hagglof :
>
> In what file do I put the path setting and which location?
>
> Thanks and regards
>
>
>
>
>
> Med Vänlig Hälsning
>
> Jan-Erik Hägglöf
>
>
>  Originalmeddelande 
> Från: Nicola 
> Datum: 2020-04-22 16:51 (GMT+01:00)
> Till: ntg-context@ntg.nl
> Ämne: Re: [NTG-context] Setting up macvim in mac os catalina to work with
>   LMTX
>
> On 2020-04-21, Jan-Erik Hägglöf  wrote:
> > Hi !
> >
> > I am curious about testing macvim and it seems doing fine in edit
> > mode. But how do i set up the typesetting engine?
> >
> > As far as I understand, there is, the command :ConteXt with guidance
> > from the wiki https://wiki.contextgarden.net/Vim
> > 
> >
> > But I do not understand how to customize it to be directed to the path
> > to my engine
> >
> > I’ve installed the LMTX in /Users/janneman/context-osx-64/
>
> I haven't tried LMTX yet, but you may configure the path to the ConTeXt
> executable you want to use by setting `g:context_mtxrun`, e.g.:
>
> :let g:context_mtxrun='/path/to/context/mtxrun'
>
> Then, executing :ConTeXt will run the configured command. You may also
> define shell enviroment variables, if needed. For instance, I have
> configured Vim to use my installation of ConTeXt Beta as follows:
>
>:let
> g:context_mtxrun='PATH=$HOME/path/to/context-beta/tex/texmf-osx-64/bin:$PATH
> mtxrun'
>
> > The installation works fine in TeXshop but still an error shows up in
> > macvim and the message dissappears very quick so there is not much
> > time to read the cause of error.
>
> You may show a log of Vim messages by typing :messages.
> If you post the error message, I may better diagnose your issue.
>
> > I have created the subdirectory .vim/ftplugin/ and put the context.vim
> file there
> > also the corresponding in .vim/compiler/context.vim
> >
> > which is copied from the program located in
> >
> /usr/local/Cellar/macvim/8.2-163/MacVim.app/Contents/Resources/vim/runtime
>
> That's unnecessary. MacVim's runtime path is searched by default.
> I recommend that you remove the files that you have copied into ~/.vim.
> ConTeXt in Vim works out of the box.
>
> Nicola
>
>
>
> ___
> 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
>
> ___
>
>
>
> ___
> 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 up macvim in mac os catalina to work with LMTX

2020-04-22 Thread Jan-Erik Hägglöf
Output from :messages


[ConTeXt] Typesetting...  
Fel upptäcktes vid bearbetning av function context#typeset[6]..39_typeset[2
]..context#callback[1]..39_callback:
rad   17:
E40: Kan inte öppna felfil /Users/janneman/Documents/CTX/GNUPLOT/test3.log

> 22 apr. 2020 kl. 17:22 skrev janerik.hagglof :
> 
> In what file do I put the path setting and which location?
> 
> Thanks and regards
> 
> 
> 
> 
> 
> Med Vänlig Hälsning 
> 
> Jan-Erik Hägglöf
> 
> 
>  Originalmeddelande 
> Från: Nicola 
> Datum: 2020-04-22 16:51 (GMT+01:00)
> Till: ntg-context@ntg.nl
> Ämne: Re: [NTG-context] Setting up macvim in mac os catalina to work with   
> LMTX
> 
> On 2020-04-21, Jan-Erik Hägglöf  wrote:
> > Hi !
> >
> > I am curious about testing macvim and it seems doing fine in edit
> > mode. But how do i set up the typesetting engine?
> >
> > As far as I understand, there is, the command :ConteXt with guidance
> > from the wiki https://wiki.contextgarden.net/Vim
> > 
> >
> > But I do not understand how to customize it to be directed to the path
> > to my engine
> >
> > I’ve installed the LMTX in /Users/janneman/context-osx-64/
> 
> I haven't tried LMTX yet, but you may configure the path to the ConTeXt
> executable you want to use by setting `g:context_mtxrun`, e.g.:
> 
> :let g:context_mtxrun='/path/to/context/mtxrun'
> 
> Then, executing :ConTeXt will run the configured command. You may also
> define shell enviroment variables, if needed. For instance, I have
> configured Vim to use my installation of ConTeXt Beta as follows:
> 
>:let 
> g:context_mtxrun='PATH=$HOME/path/to/context-beta/tex/texmf-osx-64/bin:$PATH 
> mtxrun'
> 
> > The installation works fine in TeXshop but still an error shows up in
> > macvim and the message dissappears very quick so there is not much
> > time to read the cause of error.
> 
> You may show a log of Vim messages by typing :messages.
> If you post the error message, I may better diagnose your issue.
> 
> > I have created the subdirectory .vim/ftplugin/ and put the context.vim file 
> > there
> > also the corresponding in .vim/compiler/context.vim
> >
> > which is copied from the program located in
> > /usr/local/Cellar/macvim/8.2-163/MacVim.app/Contents/Resources/vim/runtime
> 
> That's unnecessary. MacVim's runtime path is searched by default.
> I recommend that you remove the files that you have copied into ~/.vim.
> ConTeXt in Vim works out of the box.
> 
> Nicola
> 
> 
> ___
> 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
> ___

___
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 up macvim in mac os catalina to work with LMTX

2020-04-22 Thread Jan-Erik Hägglöf
Here is my log

Last login: Wed Apr 22 18:37:07 on console

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
Jan-Eriks-Air:~ janneman$ nvim

resolvers   | resolving | using suffix based filetype 'scripts'
resolvers   | resolving | remembering file 'mtx-contexts.lua' using hash 'lu
a::mtx-contexts.lua'
resolvers   | resolving | remembered file 'mtx-context.lua'
resolvers   | resolving | using suffix based filetype 'scripts'
resolvers   | resolving | remembering file 'mtx-t-context.lua' using hash 'l
ua::mtx-t-context.lua'
resolvers   | resolving | using suffix based filetype 'scripts'
resolvers   | resolving | remembering file 'mtx-t-contexts.lua' using hash '
lua::mtx-t-contexts.lua'
resolvers   | resolving | remembered file 'mtx-t-context.lua'
resolvers   | resolving | using suffix based filetype 'scripts'
resolvers   | resolving | remembering file 'context.lua' using hash 'lua::co
ntext.lua'
mtxrun  | unknown script 'context.lua' or 'mtx-context.lua'
skal returnerade 1
I’m using neovim here and the same error appeared but now it was more 
informative

Here is my .vimrc

let g:context_mtxrun = 'PATH=$HOME/context-osx-64/tex/texmf-osx-64/bin:$PATH 
mtxrun'
let g:context_extra_options = '--autogenerate --script context 
--directives="system.showerror" --autopdf —purgeall'

But it seems to have no effect

> 22 apr. 2020 kl. 17:22 skrev janerik.hagglof :
> 
> In what file do I put the path setting and which location?
> 
> Thanks and regards
> 
> 
> 
> 
> 
> Med Vänlig Hälsning 
> 
> Jan-Erik Hägglöf
> 
> 
>  Originalmeddelande 
> Från: Nicola 
> Datum: 2020-04-22 16:51 (GMT+01:00)
> Till: ntg-context@ntg.nl
> Ämne: Re: [NTG-context] Setting up macvim in mac os catalina to work with   
> LMTX
> 
> On 2020-04-21, Jan-Erik Hägglöf  wrote:
> > Hi !
> >
> > I am curious about testing macvim and it seems doing fine in edit
> > mode. But how do i set up the typesetting engine?
> >
> > As far as I understand, there is, the command :ConteXt with guidance
> > from the wiki https://wiki.contextgarden.net/Vim
> > 
> >
> > But I do not understand how to customize it to be directed to the path
> > to my engine
> >
> > I’ve installed the LMTX in /Users/janneman/context-osx-64/
> 
> I haven't tried LMTX yet, but you may configure the path to the ConTeXt
> executable you want to use by setting `g:context_mtxrun`, e.g.:
> 
> :let g:context_mtxrun='/path/to/context/mtxrun'
> 
> Then, executing :ConTeXt will run the configured command. You may also
> define shell enviroment variables, if needed. For instance, I have
> configured Vim to use my installation of ConTeXt Beta as follows:
> 
>:let 
> g:context_mtxrun='PATH=$HOME/path/to/context-beta/tex/texmf-osx-64/bin:$PATH 
> mtxrun'
> 
> > The installation works fine in TeXshop but still an error shows up in
> > macvim and the message dissappears very quick so there is not much
> > time to read the cause of error.
> 
> You may show a log of Vim messages by typing :messages.
> If you post the error message, I may better diagnose your issue.
> 
> > I have created the subdirectory .vim/ftplugin/ and put the context.vim file 
> > there
> > also the corresponding in .vim/compiler/context.vim
> >
> > which is copied from the program located in
> > /usr/local/Cellar/macvim/8.2-163/MacVim.app/Contents/Resources/vim/runtime
> 
> That's unnecessary. MacVim's runtime path is searched by default.
> I recommend that you remove the files that you have copied into ~/.vim.
> ConTeXt in Vim works out of the box.
> 
> Nicola
> 
> 
> ___
> 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
> ___

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

[NTG-context] balance=yes eats up footnote in one-line column

2020-04-22 Thread Joey McCollum
I noticed some unexpected behavior while putting together a minimal working
example for a different issue. In a multi-column layout with column
balancing turned on, if the first column contains a single line and that
line contains a footnote, then the footnote will not be typeset. A minimal
example demonstrating this follows:

\starttext
\startcolumns[n=2]
A single line of text with balancing.\footnote{Footnote dropped in
column balancing.}
\stopcolumns
\stoptext


I typeset this using ConTeXt version 2020.03.10 (from the TeXLive 2020
distribution).

Clearly, the situation I described is an exceptional one, but it could
happen in some real cases (e.g., if the last page of a two-column  text
consists of a widowed line with a footnote), and in any event, this seems
like unintended behavior, so I thought I should bring it to the mailing
list's attention.
___
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] accessing prd file from component file

2020-04-22 Thread Alan Bowen
When my component files were in the same directory as my component files,
the line
%! TeX root = prd_whatever
allowed processing the component file from the component file. (I use
TeXShop for this.)

The project structure has been changed: the component files are in a
subdirectory of the directory that has the prd file. Now,
%! TeX root = prd_whatever
no longer works. (E.g., it cannot find the environment files called in the
prd file.)

Is there a way to restore processing from the component file. My
experiments are near to wearing out the “error” message/page.

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
___


Re: [NTG-context] Setting up macvim in mac os catalina to work with LMTX

2020-04-22 Thread janerik.hagglof
In what file do I put the path setting and which location?Thanks and regardsMed 
Vänlig Hälsning Jan-Erik Hägglöf
 Originalmeddelande Från: Nicola  
Datum: 2020-04-22  16:51  (GMT+01:00) Till: ntg-context@ntg.nl Ämne: Re: 
[NTG-context] Setting up macvim in mac os catalina to work with
  LMTX On 2020-04-21, Jan-Erik Hägglöf  wrote:> Hi 
!>> I am curious about testing macvim and it seems doing fine in edit> mode. 
But how do i set up the typesetting engine?>> As far as I understand, there is, 
the command :ConteXt with guidance> from the wiki 
https://wiki.contextgarden.net/Vim> >> But 
I do not understand how to customize it to be directed to the path> to my 
engine>> I’ve installed the LMTX in /Users/janneman/context-osx-64/I haven't 
tried LMTX yet, but you may configure the path to the ConTeXtexecutable you 
want to use by setting `g:context_mtxrun`, e.g.:    :let 
g:context_mtxrun='/path/to/context/mtxrun'Then, executing :ConTeXt will run the 
configured command. You may alsodefine shell enviroment variables, if needed. 
For instance, I haveconfigured Vim to use my installation of ConTeXt Beta as 
follows:   :let 
g:context_mtxrun='PATH=$HOME/path/to/context-beta/tex/texmf-osx-64/bin:$PATH 
mtxrun'> The installation works fine in TeXshop but still an error shows up in> 
macvim and the message dissappears very quick so there is not much> time to 
read the cause of error.You may show a log of Vim messages by typing 
:messages.If you post the error message, I may better diagnose your issue.> I 
have created the subdirectory .vim/ftplugin/ and put the context.vim file 
there> also the corresponding in .vim/compiler/context.vim>> which is copied 
from the program located in> 
/usr/local/Cellar/macvim/8.2-163/MacVim.app/Contents/Resources/vim/runtimeThat's
 unnecessary. MacVim's runtime path is searched by default.I recommend that you 
remove the files that you have copied into ~/.vim.ConTeXt in Vim works out of 
the 
box.Nicola___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-contextwebpage  : 
http://www.pragma-ade.nl / http://context.aanhet.netarchive  : 
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] Setting up macvim in mac os catalina to work with LMTX

2020-04-22 Thread Nicola
On 2020-04-21, Jan-Erik Hägglöf  wrote:
> Hi !
>
> I am curious about testing macvim and it seems doing fine in edit
> mode. But how do i set up the typesetting engine?
>
> As far as I understand, there is, the command :ConteXt with guidance
> from the wiki https://wiki.contextgarden.net/Vim
> 
>
> But I do not understand how to customize it to be directed to the path
> to my engine
>
> I’ve installed the LMTX in /Users/janneman/context-osx-64/

I haven't tried LMTX yet, but you may configure the path to the ConTeXt
executable you want to use by setting `g:context_mtxrun`, e.g.:

:let g:context_mtxrun='/path/to/context/mtxrun'

Then, executing :ConTeXt will run the configured command. You may also
define shell enviroment variables, if needed. For instance, I have
configured Vim to use my installation of ConTeXt Beta as follows:

   :let 
g:context_mtxrun='PATH=$HOME/path/to/context-beta/tex/texmf-osx-64/bin:$PATH 
mtxrun'

> The installation works fine in TeXshop but still an error shows up in
> macvim and the message dissappears very quick so there is not much
> time to read the cause of error.

You may show a log of Vim messages by typing :messages.
If you post the error message, I may better diagnose your issue.

> I have created the subdirectory .vim/ftplugin/ and put the context.vim file 
> there
> also the corresponding in .vim/compiler/context.vim
>
> which is copied from the program located in
> /usr/local/Cellar/macvim/8.2-163/MacVim.app/Contents/Resources/vim/runtime

That's unnecessary. MacVim's runtime path is searched by default.
I recommend that you remove the files that you have copied into ~/.vim.
ConTeXt in Vim works out of the box.

Nicola


___
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] lmtx & lohit-devanagari fonts

2020-04-22 Thread Hans Hagen

On 4/22/2020 8:16 AM, Henning Hraban Ramm wrote:




Am 21.04.2020 um 15:32 schrieb Wolfgang Schuster 
:

You have to set a font which has the required glyphs but you can also use 
different fonts for both scripts and combine them.

\definefallbackfamily [mainface] [ss] [Noto Sans Devanagari]
  [range={devanagari,devanagariextended},
   features=devanagari-two]


Does that mean that indic scripts/languages are now fully supported? (Or maybe 
just scripts, not languages? Do Hindi or Urdu need hyphenation patterns?) I 
remember this was an open issue.
I'm not sure what you mean. Devanagari is the main category that 
determines the kind of processing. Different languages have different 
details. So, already for many years there is support for a bunch of 
these languages and some time ago a few more were added.


This is something that Kai Eigner and I work ok occasionally and Kai did 
most of the logic, looking at what uniscribe does. He does high quality 
typesetting jobs so you can bet that it works (or worked) for the 
scripts/language combinations that he's familiar with.


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] TOC- removing Contents 0

2020-04-22 Thread Pablo Rodriguez
On 4/22/20 2:44 AM, jbf wrote:
> A simple question, but I have not found an answer to it as yet:
>
> \completecontent does everything it is supposed to, including providing
> the title 'Contents' on the ToC page, but it also gives me as the first
> line in the ToC:
>
> Contents  0
>
> In fact the ToC appears on page 1, but regardless of the page it is
> appearing on, is there a way I can prevent that line from being produced
> as part of the ToC? I assume it would be something I need to do in the
> following setup:
>
> \setupcombinedlist
>    [content]
>    [list={chapter,section,title,subject,subsection}]
> \setuplist[chapter][style=normal,alternative=b, before=]

Hi Julian,

\completecontent is similar to simply use:

  \title{Contents}
  \placelist[content]

If you include title in \setupcombinedlist[content], you are requesting
that all titles are included in the TOC.

A workaround could be to create a special title command for the TOC,
such as in:

  \definehead
[toctitle]
[title]

And then use the following instead of \completecontent:

  \toctitle{Contents}
  \placelist[content]

This should avoid the problem.

I hope ith 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] lmtx & lohit-devanagari fonts

2020-04-22 Thread Arthur Reutenauer
On Wed, Apr 22, 2020 at 08:16:32AM +0200, Henning Hraban Ramm wrote:
> Does that mean that indic scripts/languages are now fully supported? (Or 
> maybe just scripts, not languages?

  Devanagari support was added a while ago.  The layout engine was
according to reports working for at least one other Indic script
(Bengali, I think), but not for others (Oriya?  Can’t remember).  I
wouldn’t expect a renderer for Devanagari to do a very good job on Tamil
or Malayalam, for example.

> Do Hindi or Urdu need hyphenation patterns?)

  Hindi uses hyphenation, Urdu doesn’t.  We have patterns for Hindi in
TeX-Hyphen: 
https://github.com/hyphenation/tex-hyphen/tree/master/hyph-utf8/tex/generic/hyph-utf8/patterns/tex/hyph-hi.tex

Best,

Arthur
___
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] [OBORONA-SPAM] Re: lmtx & lohit-devanagari fonts

2020-04-22 Thread Saša Janiška
On Wed, 22 Apr 2020 16:01:16 +0800
Vladimir Lomov  wrote:

> Do you understand well how your shell work? If you do, it is Ok

Actually, the problem was that OSFONTDIR is like a $PATH variable, so I reset 
it as:

set -g -x OSFONTDIR "/home/gour/.local/share/fonts:/usr/share/fonts"

> but otherwise why do you use such unusual shell? Why not bash or zsh?

Because it's Friendly Interactive SHell requring minimum setup and providing
almost the same features as e.g. zsh, even more. Take a look:
https://fishshell.com/

> As you see, its value is semicolon separated paths.

Yes, that was my mistake. :-(

> You have a problem here (aside from broken formatting). The 'mtxrun'
> didn't find necessary files, take a look on last part of output.

Clash with texlive's luatex engine installed before...

Thank you for taking time. ;)


Sincerely,
Gour

-- 
A person who has given up all desires for sense gratification,
who lives free from desires, who has given up all sense of
proprietorship and is devoid of false ego — he alone can
attain real peace.


___
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] lmtx & lohit-devanagari fonts

2020-04-22 Thread Saša Janiška
On Wed, 22 Apr 2020 08:10:10 +0200
Henning Hraban Ramm  wrote:

> > OSFONTDIR=/home/gour/.fonts/ /usr/share/fonts/  
> 
> Can you spot the difference?

Ahh, you are right!

> I don’t know about fish, but I guess even there a space is not a
> valid path separator.

Well, fish shell works a bit differently, but in this case problem is that
OSFONTDIR is a variable like PATH...

Otherwise:

$ set TEST a b c# define TEST envvar as array

$ echo $TEST
a b c

$ echo $TEST[2] # access 2nd member from the array
b

$ set -e TEST[2]# remove 2nd member from the array

$ echo $TEST
a c

> BTW: For me on MacOS Mojave, installing in texmf-fonts is unreliable, while
> installing in one of the OSFONTDIRs works.

My problem was that I had luatex engine installed from before and didn't
install required (regular) fonts, so after installing google-noto-sans-fonts
package everything is fine now. :-)

Thanks everyone for all your help!


Sincerely,
Gour

-- 
Bewildered by the modes of material nature, the ignorant fully
engage themselves in material activities and become attached. But
the wise should not unsettle them, although these duties are inferior
due to the performers' lack of knowledge.


___
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] METAPOST: How do I get this 'max' cutafter to work?

2020-04-22 Thread luigi scarso
On Wed, Apr 22, 2020 at 9:30 AM Taco Hoekwater  wrote:

>
> In contrast, intersectionpoint finds the first intersection on the
> non-reversed paths, which
> is the base of the arrowhead.
>
>
IIrc ,  it's the first in shuffle order

@ Incidentally, if the given cubics intersect more than once, the process
just sketched will not necessarily find the lexicographically smallest pair
$(t_1,t_2)$. The solution actually obtained will be smallest in ``shuffled
order''; i.e., if $t_1=(.a_1a_2\ldots a_{16})_2$ and
$t_2=(.b_1b_2\ldots b_{16})_2$, then we will minimize
$a_1b_1a_2b_2\ldots a_{16}b_{16}$, not
$a_1a_2\ldots a_{16}b_1b_2\ldots b_{16}$.
Shuffled order agrees with lexicographic order if all pairs of solutions
$(t_1,t_2)$ and $(t_1',t_2')$ have the property that $t_1___
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] [OBORONA-SPAM] Re: lmtx & lohit-devanagari fonts

2020-04-22 Thread Vladimir Lomov
Hello,
** Saša Janiška  [2020-04-22 07:43:51 +0200]:

> On Tue, 21 Apr 2020 23:07:48 +0200
> Pablo Rodriguez  wrote:

> Hello Pablo,

> thank you for your assistance!

>> This works for me with LMTX in Fedora.
>> 
>> Add to ~/.bashrc "export OSFONTDIR=~/.fonts/:/usr/share/fonts/" (log
>> out and log in) 

> I'm using fish shell, but here is my env:

Do you understand well how your shell work? If you do, it is Ok, but otherwise
why do you use such unusual shell? Why not bash or zsh?

> $ env | grep OSFONTDIR
> OSFONTDIR=/home/gour/.fonts/ /usr/share/fonts/

Is it correct output? I'm not a fish user but as bash user I would test
'OSFONTDIR' as following

$ echo "'${OSFONTDIR}'"

In my shell I get

$ echo "'${OSFONTDIR}'"
'/usr/share/fonts;/usr/local/share/fonts;/usr/local/opt/texlive/2020/texmf-dist/fonts/truetype;/usr/local/opt/texlive/2020/texmf-dist/fonts/opentype'

As you see, its value is semicolon separated paths. Not a SPACE separated
list of paths but a SEMICOLON separated. I'm not sure if fish (shell) changes
semicolon in a VALUE to a space or you set it without quoting the value. I set
OSFONTDIR as (this is for BASH!)

OSFONTDIR="/usr/share/fonts;/usr/local/share/fonts"
export OSFONTDIR

> Now I changed local one to ~/.local/share/fonts, but it is empty and my
> fonts are in:

> $ fc-cache -v | grep google-noto
>   /usr/share/fonts/google-noto
>   /usr/share/fonts/google-noto-cjk
>   /usr/share/fonts/google-noto-emoji
>   /usr/share/fonts/google-noto-vf
> /usr/share/fonts/google-noto: skipping, existing cache is valid: 76
> fonts, 0 dirs /usr/share/fonts/google-noto-cjk: skipping, existing
> cache is valid: 45 fonts, 0 dirs /usr/share/fonts/google-noto-emoji:
> skipping, existing cache is valid: 1 fonts, 0 dirs
> /usr/share/fonts/google-noto-vf: skipping, existing cache is valid: 146
> fonts, 0 dirs /usr/share/fonts/google-noto: skipping, looped directory
> detected /usr/share/fonts/google-noto-cjk: skipping, looped directory
> detected /usr/share/fonts/google-noto-emoji: skipping, looped directory
> detected /usr/share/fonts/google-noto-vf: skipping, looped directory
> detected /usr/share/fonts/google-noto /usr/share/fonts/google-noto-cjk
>   /usr/share/fonts/google-noto-emoji
>   /usr/share/fonts/google-noto-vf
> /usr/share/fonts/google-noto: skipping, existing cache is valid: 76
> fonts, 0 dirs /usr/share/fonts/google-noto-cjk: skipping, existing
> cache is valid: 45 fonts, 0 dirs /usr/share/fonts/google-noto-emoji:
> skipping, existing cache is valid: 1 fonts, 0 dirs
> /usr/share/fonts/google-noto-vf: skipping, existing cache is valid: 146
> fonts, 0 dirs /usr/share/fonts/google-noto: skipping, looped directory
> detected /usr/share/fonts/google-noto-cjk: skipping, looped directory
> detected /usr/share/fonts/google-noto-emoji: skipping, looped directory
> detected /usr/share/fonts/google-noto-vf: skipping, looped directory
> detected

>> and repeat the three other steps from my previous
>> message.

> Here they are:

>> 1. Remove "/home/gour/opt/lmtx/tex/texmf-cache/luatex-cache/".

> $ rm -rf /home/gour/opt/lmtx/tex/texmf-cache/luatex-cache

>> 2. Run "mtxrun --generate".

> $ mtxrun --generate
> resolvers   | resolving | variable 'SELFAUTOLOC' set to
> '/home/gour/opt/lmtx/bin' resolvers   | resolving | variable
> 'SELFAUTODIR' set to '/home/gour/opt/lmtx' resolvers   | resolving
> | variable 'SELFAUTOPARENT' set to '/home/gour/opt' resolvers   |
> resolving | variable 'TEXMFCNF' set to '' resolvers   | resolving |
> variable 'TEXMF' set to '' resolvers   | resolving | variable
> 'TEXOS' set to 'lmtx' resolvers   | resolving |
> resolvers   | resolving | using configuration specification
> 'home:texmf/web2c;selfautoparent:/texmf-local/web2c;selfautoparent:/texmf-context/web2c;selfautoparent:/texmf-dist/web2c;selfautoparent:/texmf/web2c'
> resolvers   | resolving | resolvers   | resolving | looking for
> regular 'texmfcnf.lua' on given path '/home/gour/texmf/web2c' from
> specification 'home:texmf/web2c' resolvers   | resolving | looking
> for regular 'texmfcnf.lua' on given path
> '/home/gour/opt/texmf-local/web2c' from specification
> 'selfautoparent:/texmf-local/web2c' resolvers   | resolving |
> looking for regular 'texmfcnf.lua' on given path
> '/home/gour/opt/texmf-context/web2c' from specification
> 'selfautoparent:/texmf-context/web2c' resolvers   | resolving |
> looking for regular 'texmfcnf.lua' on given path
> '/home/gour/opt/texmf-dist/web2c' from specification
> 'selfautoparent:/texmf-dist/web2c' resolvers   | resolving |
> looking for regular 'texmfcnf.lua' on given path
> '/home/gour/opt/texmf/web2c' from specification
> 'selfautoparent:/texmf/web2c' resolvers   | resolving | looking for
> fallback 'contextcnf.lua' on given path '/home/gour/texmf/web2c' from
> specification 'home:texmf/web2c' resolvers   | resolving | looking
> for fallback 'contextcnf.lua' on given path
> '/home/gour/opt/te

Re: [NTG-context] METAPOST: How do I get this 'max' cutafter to work?

2020-04-22 Thread Taco Hoekwater
Hi,

> On 21 Apr 2020, at 17:52, Gerben Wierda  wrote:
> 
>> pair a ; a := arrowHead intersection_point connection ;

Hans’ example also works with “intersectionpoint”: the differences between 
intersectionpoint
and intersection_point are minimal except if there is no intersection at all.

The trick is that Hans does not use cutafter. cutafter is designed to cut off 
as little as 
possible, it is a cutbefore on both paths reversed. So, uses the last 
intersection point of 
the paths, and in this case it will therefore use the top of the arrowhead. 

In contrast, intersectionpoint finds the first intersection on the non-reversed 
paths, which 
is the base of the arrowhead.

Alternatively (in this case), you could move the arrowhead up a tiny amount, so 
that there is 
only one intersection between the connection and arrowHead.

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
___