Re: [NTG-context] lmtx and defined placeinitial color

2021-05-25 Thread Eduardo Bohoyo
You are welcome. Obviously, it's a dirty trick. For example, it falls 
down if we have a non-white background on our page.


Hopefully LMTX won't take long to update.

Eduardo Bohoyo

El 26/5/21 a las 0:01, jbf escribió:
Thanks Eduardo. Hans had seen the problem and the latest upgrade 
solves it. But I'll keep your little trick in mind!


Julian

On 25/5/21 9:35 pm, Eduardo Bohoyo wrote:
I have just seen that I also experience the same problem. I didn't 
realise it. I have provisionally "solved" it with an unfancy 
workaround. For instance, in your case it could be something like this:


\definecolor[dropcapitals][t=0.40,a=1]

This is not ideal. I know. But for the moment I can't think of 
anything better than to include the transparency trick.


Eduardo Bohoyo


___ 

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] lmtx and defined placeinitial color

2021-05-25 Thread jbf
Thanks Eduardo. Hans had seen the problem and the latest upgrade solves 
it. But I'll keep your little trick in mind!


Julian

On 25/5/21 9:35 pm, Eduardo Bohoyo wrote:
I have just seen that I also experience the same problem. I didn't 
realise it. I have provisionally "solved" it with an unfancy 
workaround. For instance, in your case it could be something like this:


\definecolor[dropcapitals][t=0.40,a=1]

This is not ideal. I know. But for the moment I can't think of 
anything better than to include the transparency trick.


Eduardo Bohoyo


___ 

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] Stack size for arguments too small in LMTX

2021-05-25 Thread Henri Menke
Dear list,

For some reason pgfplots has a \pgfkeys invocation where the argument
has more than 4000 lines. This crashes LuaMetaTeX with the message

tex error > tex error on line 4045 in file pgfplots.code.tex: TeX capacity 
exceeded, sorry [token memory size=100]

It doesn't seem to be an issue with LuaTeX, so my guess is that token
memory size is larger in LuaTeX.  Could you please increase the stack
size to make this edge case compile again?

This issue was originally reported on the pgfplots bugtracker:
https://github.com/pgf-tikz/pgfplots/issues/398

Cheers, Henri

___
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

2021-05-25 Thread Hans Hagen

Hi,

I uploaded a new version of lmtx. Apart from some small fixes, the 
configuration file is hopefully okay too. I'm sure MF will check it.


However, the biggest change is hidden. In traditional tex, inserts (used 
for footnotes) are implemented using a quadruple of registers. In 
context these come from the range 132-254 which is not used by normal 
allocations. The number is basically a sort of index.


However, this box/dimen/count/skip memory model doesn't work well for 
(possible) extensions nor does the wrapped final (per page) box fit into 
the more extended regular box model (not that anyone will notice or 
abuse that, it's just that some features of boxes don't make sense in 
the perspective of inserts).


Inserts are somewhat complex (and interwoven) and are also somewhat 
fuzzy when one wants to do checking when making progress on a page.  We 
already deal with that in context in a reasonable way but I get the 
feeling that we can do better. This and the above are reasons to come up 
with a variant memory model that permits playing with additional 
features more easily. The existing storage model is stil there (after 
all it's tex) but for those willing to check the alternative, in 
page-ins.mkxl one can uncomment


   % \insertmode\plustwo

and remake the format. I rejected a mixed mode model because it makes 
the code ugly. Related mem grows on demand as with other mechanisms so 
there is no extra overhead involved.


As a consequence I had to abstract some of the insert interface in 
context a bit more (because we use accessors instead of boxes) and 
hopefully I didn't forget one. We'll see. Once I'm confident with the 
new approach we'll switch to that (low level) interface model and can 
progress. Because users don't use inserts directly themselves not much 
harm can be done.


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] Stack size for arguments too small in LMTX

2021-05-25 Thread mf

Il 25/05/21 17:25, Henri Menke ha scritto:

Dear list,

For some reason pgfplots has a \pgfkeys invocation where the argument
has more than 4000 lines. This crashes LuaMetaTeX with the message

 tex error > tex error on line 4045 in file pgfplots.code.tex: TeX capacity 
exceeded, sorry [token memory size=100]

It doesn't seem to be an issue with LuaTeX, so my guess is that token
memory size is larger in LuaTeX.  Could you please increase the stack
size to make this edge case compile again?

This issue was originally reported on the pgfplots bugtracker:
https://github.com/pgf-tikz/pgfplots/issues/398



Next lmtx upload will fix the issue (a configuration file that has not 
been updated).

Hans told me to do this:

cp ./tex/texmf-context/web2c/contextcnf.lua ./tex/texmf/web2c/texmfcnf.lua
mtxrun --generate
context --make

in lmtx base dir.
It should fix the issue until next upload.

Massi
___
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 and defined placeinitial color

2021-05-25 Thread Eduardo Bohoyo
I have just seen that I also experience the same problem. I didn't 
realise it. I have provisionally "solved" it with an unfancy workaround. 
For instance, in your case it could be something like this:


\definecolor[dropcapitals][t=0.40,a=1]

This is not ideal. I know. But for the moment I can't think of anything 
better than to include the transparency trick.


Eduardo Bohoyo


___
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] BibTeX inproceedings entries not rendered correctly in APA style

2021-05-25 Thread Alan Braslau
On Mon, 24 May 2021 23:10:34 -0400
Rik Kabel  wrote:

> 
> On 5/24/2021 22:12, Alan Braslau wrote:
> > On Mon, 24 May 2021 17:53:49 -0400
> > Rik Kabel  wrote:
> >
> >> This is intended. Or rather, it is a side-effect of the intended
> >> behavior.
> >>
> >> If you add an editor ("editor={Baz, Bar}") you will get something
> >> like:
> >>
> >>  Foo, B. (1983). Title of the paper. In B. Baz (Ed.),
> >> /Booktitle/. Author.
> >>
> >> And if you then add a publisher ("publisher={Paymefirst}") you will
> >> get:
> >>
> >>  Foo, B. (1983). Title of the paper. In B. Bar (Ed.),
> >> Booktitle. Paymefirst.
> >>
> >> The APA presumes that you have both an editor and a publisher for
> >> pieces contained in other works. It calls for the use of the author
> >> as publisher if no publisher is present. It is silent about what to
> >> do if you have no editor.
> > It looks like a missing editor field should be caught. What should
> > the rule be?
> >
> > Actually, @inproceedings should not be used without an editor -
> > makes no sense. If the author of the paper happens to be the
> > editor, then the .bib data file should define this with an editor=
> > field.
> >
> > We can change the behavior if a clear case can be made as to what
> > fallback would make sense. Keep in mind the dictum: "garbage
> > in/garbage out"...
> >
> > Alan
> 
> For the case of works within works (inproceedings, inbook,
> incollection, perhaps conference) I would think that the simplest
> solution is to simply drop it, so that in the example above one would
> simply get:
> 
> Foo, B. (1983). Title of the paper. In /Booktitle/. Paymefirst.
> 
> Although I do think that, at least for inproceedings, lack of an
> editor should at least be flagged. A simple compilation of works may
> have no named editor, of I see no reason to require it for inbook or 
> incollection. Cheap publishers regularly put out such collections of 
> out-of-copyright works.
> 
> The implicit assumption that a work with no documented publisher is a 
> self-published work is not especially to my liking -- publishers may 
> have good reason to not identify themselves (think of the publishers
> of the works of Spinoza and, in part, Voltaire) -- but I understand
> that the APA thinks it important. Of course, if you cannot document
> the publisher for an entry, you can explicitly list it as unknown or
> /sine nomine/, as appropriate, to avoid the infelicity of having the
> author's name just stuck in there.

I sent a simple fix to Hans that handles the missing editor, silently.
Someone who would want "Anonymous" or "unknown", or anything else can
always put editor="Anonymous", etc. in their .bib database.

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] lmtx and defined placeinitial color

2021-05-25 Thread Hans Hagen

On 5/25/2021 2:10 AM, jbf wrote:
If I run the following in lmtx, the defined color is not recognized and 
I get black instead. If I run it as mkiv with --luatex, I get the 
darkgray I defined. Is there something else I need to do for lmtx?


\definecolor[darkgray][s=.4]

\setupinitial[color=darkgray,font=adellesemibold at 46pt,distance=3pt,n=3]

\starttext

\placeinitial{M}{\sc aking sense of the world} at any time is a fraught 
exercise...


\stoptext

fixed in next upload


-
  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] contextgarden.net seems to be down

2021-05-25 Thread Mojca Miklavec
Hi,

On Tue, 25 May 2021 at 09:29, Mojca Miklavec wrote:
> On Tue, 25 May 2021 at 07:02, Vladimir Lomov wrote:
> >
> > host seems to be down.
>
> Thanks a lot for the notification.
>
> The machine isn't reachable over ssh either.
> I'll try to reach the people in the computing centre to take a look
> and will let you know once it's back.

The machine has been back for a while now.
Apparently there were some temporary issues with electricity.

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] specify a directory for tex files

2021-05-25 Thread denis.maier
Thanks for the explanation!

> -Ursprüngliche Nachricht-
> Von: ntg-context  Im Auftrag von Wolfgang
> Schuster
> Gesendet: Dienstag, 25. Mai 2021 12:06
> An: mailing list for ConTeXt users 
> Betreff: Re: [NTG-context] specify a directory for tex files
> 
> denis.ma...@ub.unibe.ch schrieb am 25.05.2021 um 11:44:
> >> -Ursprüngliche Nachricht-
> >> Von: ntg-context  Im Auftrag von
> Wolfgang
> >> Schuster
> >> Gesendet: Montag, 24. Mai 2021 21:04
> >> An: mailing list for ConTeXt users 
> >> Betreff: Re: [NTG-context] specify a directory for tex files
> >>
> >> Jeroen schrieb am 24.05.2021 um 20:44:
> >>> similar to this for figures
> >>>
> >>> \setupexternalfigures
> >>> [directory={./myfigures}]
> >>>
> >>> is there a way to specify a directory for tex files so with
> >>>
> >>> \input{myfile.tex}
> >>>
> >>> the file myfile.tex can be placed in a subdirectory for example
> >>> ./mytexfiles?
> >>
> >> \usepath[...]
> >>
> >> and
> >>
> >> \usesubpath[...]
> >>
> >
> > What's the difference between the two versions?
> 
> 
> When you have a document where all files are in folder two level deep like
> here you can use both commands to tell ConTeXt where to look for the files.
> 
> 
> /document
> |
> |   main.tex
> |
> |---chapter
> |   |
> |   |---file_system
> |   |   ntfs.tex
> |   |   fat32.tex
> |   |
> |   |---installation
> |   windows.tex
> |   linux.tex
> |
> |---images
>  windows.jpg
>  linux.jpg
>  macos.jpg
> 
> 
> The setup for the example above would be:
> 
>   \usepath[chapter]
> 
>   \usesubpath[file_system,installation]
> 
> 
> When you use this lookup limit the number of paths and subpaths because it
> slows compilation down, there reason for this is that ConTeXt tries path +
> subpath combinations until the requested file is found.
> 
> Wolfgang
> __
> _
> If your question is of interest to others as well, please add an entry to the
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-
> context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net archive  :
> https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> __
> _
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] specify a directory for tex files

2021-05-25 Thread Wolfgang Schuster

denis.ma...@ub.unibe.ch schrieb am 25.05.2021 um 11:44:

-Ursprüngliche Nachricht-
Von: ntg-context  Im Auftrag von Wolfgang
Schuster
Gesendet: Montag, 24. Mai 2021 21:04
An: mailing list for ConTeXt users 
Betreff: Re: [NTG-context] specify a directory for tex files

Jeroen schrieb am 24.05.2021 um 20:44:

similar to this for figures

\setupexternalfigures
[directory={./myfigures}]

is there a way to specify a directory for tex files so with

\input{myfile.tex}

the file myfile.tex can be placed in a subdirectory for example
./mytexfiles?


\usepath[...]

and

\usesubpath[...]



What's the difference between the two versions?



When you have a document where all files are in folder two level deep 
like here you can use both commands to tell ConTeXt where to look for 
the files.



/document
|
|   main.tex
|
|---chapter
|   |
|   |---file_system
|   |   ntfs.tex
|   |   fat32.tex
|   |
|   |---installation
|   windows.tex
|   linux.tex
|
|---images
windows.jpg
linux.jpg
macos.jpg


The setup for the example above would be:

\usepath[chapter]

\usesubpath[file_system,installation]


When you use this lookup limit the number of paths and subpaths because 
it slows compilation down, there reason for this is that ConTeXt tries 
path + subpath combinations until the requested file is found.


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] specify a directory for tex files

2021-05-25 Thread denis.maier
> -Ursprüngliche Nachricht-
> Von: ntg-context  Im Auftrag von Wolfgang
> Schuster
> Gesendet: Montag, 24. Mai 2021 21:04
> An: mailing list for ConTeXt users 
> Betreff: Re: [NTG-context] specify a directory for tex files
> 
> Jeroen schrieb am 24.05.2021 um 20:44:
> > similar to this for figures
> >
> > \setupexternalfigures
> > [directory={./myfigures}]
> >
> > is there a way to specify a directory for tex files so with
> >
> > \input{myfile.tex}
> >
> > the file myfile.tex can be placed in a subdirectory for example
> > ./mytexfiles?
> 
> \usepath[...]
> 
> and
> 
> \usesubpath[...]
> 

What's the difference between the two versions?

Denis


> 
> __
> _
> 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] contextgarden.net seems to be down

2021-05-25 Thread Mojca Miklavec
Dear Vladimir,

On Tue, 25 May 2021 at 07:02, Vladimir Lomov wrote:
>
> According to page https://wiki.contextgarden.net/ConTeXt_Standalone to install
> ConTeXt standalone (I assume MkIV) one has to download first-setup.sh script
> (Linux,Mac,*BSD) from contextgarden.net (minimals.contextgarden.net) but this
> host seems to be down.

Thanks a lot for the notification.

The machine isn't reachable over ssh either.
I'll try to reach the people in the computing centre to take a look
and will let you know once it's back.

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
___