[NTG-context] lmtx update

2021-08-22 Thread Benjamin Buchmuller via ntg-context
Hi,

Here is another thing which worked previously for me:

ConTeXt  ver: 2021.07.30 00:57 LMTX  fmt: 2021.8.8  int: english/english

Now:

ConTeXt  ver: 2021.08.22 11:54 LMTX  fmt: 2021.8.22  int: english/english

Error:

lua error:

registered function call [396]: 
...eXt/tex/texmf-context/tex/context/base/mkxl/anch-pos.lmt:1286: attempt to 
call a nil value (upvalue 'texgetparstate')
stack traceback:
...eXt/tex/texmf-context/tex/context/base/mkxl/anch-pos.lmt:1286: in 
function <...eXt/tex/texmf-context/tex/context/base/mkxl/anch-pos.lmt:1262>
(...tail calls...)  

129 \NC \unit{0.88 angstrom}
130 \NC \unit{2.02 angstrom}
131 \NC \unit{2.03 angstrom}
132 \NC \unit{1.90 angstrom}
133 \NC \unit{4.99 angstrom} % rmsd #1/a:14-61 & backbone to 
#5/a:103-150 & backbone
134 \NC \unit{1.88 angstrom}
135 \NC \unit{5.20 angstrom} % rmsd #1/a:46-55 & backbone to 
#5/a:135-144 & backbone
136 \NC \NR
137 \HL
138 \stoptabulate

The difficulty here is that when I copy the "faulty" part (my table) to another 
document (including all relevant defs etc.) it just works fine. So, I think it 
must have to do something with the placement of the float on the page. 

Any hints what has changed?

Thanks!


Benjamin

> On Aug 20, 2021, at 12:00, ntg-context-requ...@ntg.nl wrote:
> 
> lmtx update

___
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 update/t-vim (again)

2021-08-22 Thread Wolfgang Schuster via ntg-context

Benjamin Buchmuller via ntg-context schrieb am 23.08.2021 um 00:10:

Hi,

Thanks for having had a look into the t-vim.

At least the document compiles fine (I get a PDF), although multiple complaints from the lua end 
when I use "$" or "#" in my source, for example

#!/usr/bin/bash

etc. culminating in

Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn''t ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing 'I}' or 'I$' or 'I\par'.

Seems as if LMTX tried to interpret something literally here …

Further, I get a lot of

fonts   > beware: no fonts are loaded yet, using 'lm mono' in box
fonts   > checking > char i (U+00069) in font '' with id 0: missing
fonts   > checking > char n (U+0006E) in font '' with id 0: missing

warnings. Maybe some things need to be adjusted?

(Second mail with another error in LMTX follows.)


Can you provide a minimal working (or in your case not working) example 
for the problem.


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] Short forms and abbreviations in bibliography

2021-08-22 Thread Joey McCollum via ntg-context
Just continuing to talk my way through the inner workings of the ConTeXt
Publication modules. It looks like three "long" citation forms are defined
in publ-imp-cite.mkvi:

\startsetups btx:cite:listelement
\fastsetup{\s!btx:\s!cite:concat}
\fastsetup{\s!btx:\s!cite:lefttext}
\ifx\currentbtxfirst\empty
\fastsetup{\s!btx:\s!cite:\s!empty}
\else
   \texdefinition {\s!btx:\s!cite:inject} {
   \btxcitereference
   \currentbtxfirst
   }
\fi
\fastsetup{\s!btx:\s!cite:righttext}
\stopsetups

\startsetups \s!btx:\s!cite:entry
\fastsetup{\s!btx:\s!cite:concat}
\fastsetup{\s!btx:\s!cite:lefttext}
\btxhandleciteentry
\fastsetup{\s!btx:\s!cite:righttext}
\stopsetups

\startsetups \s!btx:\s!cite:footnote
\startfootnote
\fastsetup{btx:cite:entry}
\stopfootnote
\stopsetups

Intuitively, I would expect btx:cite:listelement [why not
\s!btx:\s!cite:listelement?] to handle rendering a bibliographic entry for
the bibliography proper (i.e., the list typically placed at the end of a
document), while \s!btx:\s!cite:entry would handle in-text citations. The
third setup, \s!btx:\s!cite:footnote, simply renders the "entry"-style
citation in a footnote.

But as far as I can tell, the "listelement" setup is never used outside of
publ-imp-cite.mkvi. Only the "entry" setup appears to be used. Meanwhile,
the \btxcitereference and  \btxhandleciteentry macros (invoked in these
setups) appear to be defined in publ-ini.mkiv:

\unexpanded\def\btx_cite_reference_inject
  {\ifconditional\c_btx_cite_reference_injected
   \else
 \dontleavehmode
 \iftrialtypesetting \else
   \ifx\currentbtxbacklink\empty
 % can be made empty when combining author / year
   \else\ifnum\currentbtxbacklink>\zerocount
 \btx_cite_reference_inject_indeed
 \settrue\c_btx_cite_reference_injected
   \fi\fi
 \fi
  \fi}

...

\let\btxcitereference\btx_cite_reference_inject

...

\unexpanded\def\btxhandleciteentry
  {\dontleavehmode
   \begingroup
   \def\currentbtxcitealternative{entry}%
   \setbtxparameterset\s!cite\currentbtxcitealternative % needs checking
   \btxcitereference
   \btx_entry_inject
   \endgroup}

My next step will be to figure out what these are doing, but I'm still not
sure if the module accommodates rendering in-text "entry" citations
differently than citations in the list.

Joey

On Mon, Aug 9, 2021 at 8:55 AM Joey McCollum 
wrote:

> Henning's suggestion for abbreviations should work fine for that issue. I
> could simply use the shorthand in the "series" and "journal" fields and set
> up the appropriate \abbreviation calls in the document or environment.
>
> As for the larger issue of bibliographies, I've started working on
> publ-imp-sbl.lua and publ-imp-sbl.mkvi files. I knew I would need this for
> my own project soon, and I felt it would be useful to myself and the
> ConTeXt community if I could at least get a rudimentary version working.
> I'm presently using the reference for examples from the *SBL Handbook of
> Style*, 2nd edition, available at
> https://github.com/dcpurton/biblatex-sbl/blob/master/test/biblatex-sbl-examples.ref.txt
> .
>
> Like you say, some parts are tricky. SBL uses "entry"-style citations by
> default and doesn't seem to make use of other common alternatives (such as
> "authoryear"). I can think of some existing alternatives that might get
> used in specific cases (e.g., "author", "title"), but the
> recommended shorthand has the form "shortauthor, shorttitle" (i.e., the
> last name(s) of the author(s) only, followed by a comma and a shortened
> form of the title as specified in the "shorttitle" field). I could make
> this the sbl style's implementation of the "short" alternative, since the
> LaTeX-style bracketed number references are foreign to SBL style anyway,
> but if would be preferable just to introduce another alternative (something
> like "authortitle"), then I could also try to do that.
>
> For my immediate purposes, I won't need much more than the @book,
> @article, @inbook, and @incollection entries, so my focus will be on
> getting those right, but if anyone is interested in helping, I'll gladly
> take help. (But it would probably be better to discuss the details in a
> separate e-mail thread.)
>
> Joey
>
> On Mon, Aug 9, 2021 at 4:12 AM Denis Maier via ntg-context <
> ntg-context@ntg.nl> wrote:
>
>>
>>
>> > -Ursprüngliche Nachricht-
>> > Von: ntg-context  Im Auftrag von Henning
>> > Hraban Ramm via ntg-context
>> > Gesendet: Samstag, 7. August 2021 22:40
>> > An: mailing list for ConTeXt users 
>> > Cc: Henning Hraban Ramm 
>> > Betreff: Re: [NTG-context] Short forms and abbreviations in bibliography
>> >
>> >
>> >
>> > > Am 07.08.2021 um 21:53 schrieb Joey McCollum via ntg-context > > cont...@ntg.nl>:
>> > >
>> > > A separate list of abbreviations would then list "LSAWS" alongside
>> "Linguistic
>> > Studies in Ancient West Semitic" (and likewise for other 

[NTG-context] lmtx update/t-vim (again)

2021-08-22 Thread Benjamin Buchmuller via ntg-context
Hi,

Thanks for having had a look into the t-vim. 

At least the document compiles fine (I get a PDF), although multiple complaints 
from the lua end when I use "$" or "#" in my source, for example 

#!/usr/bin/bash 

etc. culminating in

Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn''t ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing 'I}' or 'I$' or 'I\par'.

Seems as if LMTX tried to interpret something literally here …

Further, I get a lot of 

fonts   > beware: no fonts are loaded yet, using 'lm mono' in box
fonts   > checking > char i (U+00069) in font '' with id 0: missing
fonts   > checking > char n (U+0006E) in font '' with id 0: missing

warnings. Maybe some things need to be adjusted?

(Second mail with another error in LMTX follows.)

Cheers


Benjamin

> On Aug 20, 2021, at 12:00, ntg-context-requ...@ntg.nl wrote:
> 
> Hi,
> 
> Here are the highlights of todays update:
> 
> - somewhat more compact tuc files, not for all documents, but it can 
> accumulate; also less memory used then; i could bring down an extreme 2000 
> page 5 column doc tuc file down to 5% -- it was 70 MB; for the luametatex 
> manual it reducec the tuc more than 30%; hard to tell if there will be an 
> associated performance hit, but i'm sure thomas will complain if that's the 
> case
> 
> - more mp-tex-lua interfacing upgraded plus extra preliminary chapter for 
> luametafun about extensions - for taco
> 
> - a slightly more compact cache files for fonts with many (pseudo) ligatures; 
> hopefully no side effects (nothing that can't be fixed fast if noted); quite 
> probably no performance hit and maybe even some room for optimization (not 
> done yet)
> 
> - a split in the cache directory for luametatex so that we can more easilly 
> experiment without interference (so, although the above works in mkiv it's 
> not enabled there currently)
> 
> - some minor things (also in the process of splitting the codebase)
> 
> - no real changes in / additions to the luametatex binary (we're in cosmetics 
> mode now)
> 
> 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] pgfplots module needs update from December

2021-08-22 Thread Gavin via ntg-context
> V ned., 22. avg. 2021 19:32 je oseba Gavin  napisala:
> 
>> I am not sure what my next step should be. Should I wait a day for the 
>> system to do its fetching thing and then try the same instructions I 
>> followed before (https://wiki.contextgarden.net/Modules#ConTeXt_LMTX)?
>> 
>> I know very little about these rsync commands. I’m just cutting-and-pasting 
>> into my command line.
>> 
> Waiting won't help. Can you perhaps send full output of comping the sample 
> that you posted earlier? What OS and architecture do you use?
> 
> Mojca

Right now, my documents are all working fine (since I fixed my module). I don’t 
have a full output with the error. I’m using MacOS X86.

It seems likely that I am the only person in the world who is working on a TikZ 
polar plot in a ConTeXt document right now. Since you found and fixed one 
potential source of the problem, and I’m currently functioning fine, I think 
I’ll set this aside for now and get some work done. When I have a little more 
time, I will try updating the modules again and compare the files to the 
current version of TikZ. Then, if everything is great, I’ll let you know. If 
anything is wrong, I’ll get the full logs and MWE and all that.

In the meantime, if you have some specific update procedure you would like me 
to test, I’d be happy to do that. Just let me know what commands you want me to 
run.

Thanks for all your help!
Gavin
___
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] Adjustment for header and footer

2021-08-22 Thread Wolfgang Schuster via ntg-context

Fabrice Couvreur via ntg-context schrieb am 22.08.2021 um 13:13:

Hi,
In the file below (not minimal, sorry!) I am using commands from 
Wolfgang in different threads. We can see that the top frame overflows 
into the text: how to correct this ?
I would also like the top and bottom stroke to be adjusted to the 
width of the paper.

Thanks
Fabrice

[...]

  \setupheadertexts
        [{
            \startframed [headerframed] 
[align=flushleft,foregroundstyle=\ssx]

Lycée LA SALLE\\
                Durée : \getvariable{headertext}{time}\\
\date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}]
          \stopframed
        }]
        [{
\startframed [headerframed] [align=flushright,foregroundstyle=\ssx]


Add "offset=overlay" to the frame for the image, the graphic has already 
the same height of the header and you're adding additional offset from 
the frame which pushes the complete header block down.



            \externalfigure[dum] [factor=max]
\stopframed
        }]

[...]


When you have a similar problem in the future I suggest to enable the 
frame for the header line with \showframe and in addition enable the 
frame for your \framed blocks.


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] pgfplots module needs update from December

2021-08-22 Thread Mojca Miklavec via ntg-context
V ned., 22. avg. 2021 19:32 je oseba Gavin 
napisala:

>
> I am not sure what my next step should be. Should I wait a day for the
> system to do its fetching thing and then try the same instructions I
> followed before (https://wiki.contextgarden.net/Modules#ConTeXt_LMTX)?
>
> I know very little about these rsync commands. I’m just
> cutting-and-pasting into my command line.
>

Waiting won't help. Can you perhaps send full output of comping the sample
that you posted earlier? What OS and architecture do you use?

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] pgfplots module needs update from December

2021-08-22 Thread Gavin via ntg-context
On Aug 22, 2021, at 10:27 AM, Mojca Miklavec  
wrote:
> 
> I didn't have to fix anything in the code, but the git repository was moved, 
> so the module wasn't kept up to date for a while. I just updated the URL for 
> fetching the latest sources.
> 
> Mojca

Thanks for making that fix.

I am not sure what my next step should be. Should I wait a day for the system 
to do its fetching thing and then try the same instructions I followed before 
(https://wiki.contextgarden.net/Modules#ConTeXt_LMTX)?

I know very little about these rsync commands. I’m just cutting-and-pasting 
into my command line.

Thanks!
Gavin
___
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] pgfplots module needs update from December

2021-08-22 Thread Mojca Miklavec via ntg-context
I used the latest commit from the git repository rather than the latest
release.

Mojcs
___
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] pgfplots module needs update from December

2021-08-22 Thread Gavin via ntg-context
>> Hi Hans,
>> It doesn’t keep failing for me because the fix is well documented, so I 
>> fixed it on my machine. I am just imagining that it might be nice to put 
>> that fix in the modules that people download. For example, a teacher wants 
>> to help me test my book, so he followed the instructions on the wiki to 
>> instal ConTeXt (LMTX) and the modules 
>> (https://wiki.contextgarden.net/Modules). Then he had to go in and change 
>> two commands the file:
>>  context-osx-64/tex/texmf-modules/generic/pgfplots/pgfplots.code.tex
>> The changes are:
>>  Line 7928: change “\begin{axis}" to “\axis”
>>  Line 7934: change “\end{axis}" to “\endaxis”
>> Then everything is great.
>> I don't know where the modules live and how they are maintained, but if this 
>> fix could be put into those modules before people download them, that would 
>> be helpful as I add more collaborators.
> it makes no sense to mojca to fix modules that come from elsewhere because a 
> next time it might be different so when tikz is not updated on ctan (where 
> it's fetched from) it's not an official fix
> 
> (a well documented tikz fix that doesn't go into tikz is not really a fix, is 
> it?)
> 
> Hans

TikZ is fixed on ctan (based on the fixed version in my TeXLive distribution). 
Mojca has directed me to a fixed version at distribution.contextgarden.net. I’m 
trying to figure out why my collaborator and I did not get that fixed version 
when we followed the instructions at 
https://wiki.contextgarden.net/Modules#ConTeXt_LMTX. I’ll keep working on it.

Gavin
___
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] pgfplots module needs update from December

2021-08-22 Thread Mojca Miklavec via ntg-context
V ned., 22. avg. 2021 18:13 je oseba Hans Hagen via ntg-context <
ntg-context@ntg.nl> napisala:

>
> it makes no sense to mojca to fix modules that come from elsewhere
> because a next time it might be different so when tikz is not updated on
> ctan (where it's fetched from) it's not an official fix
>

I didn't have to fix anything in the code, but the git repository was
moved, so the module wasn't kept up to date for a while. I just updated the
URL for fetching the latest sources.

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] pgfplots module needs update from December

2021-08-22 Thread Hans Hagen via ntg-context

On 8/22/2021 4:32 PM, Gavin wrote:

On Aug 22, 2021, at 8:13 AM, Hans Hagen  wrote:



you haven't post the tex code that fails so no one can check it

Hans

usemodule[tikz]
\usemodule[pgfplots]
\usetikzlibrary[pgfplots.polar]
\startTEXpage
   \starttikzpicture
 \startpolaraxis
   \addplot coordinates {(0,1) (90,1)
 (180,1) (270,1)};
 \stoppolaraxis
   \stoptikzpicture
\stopTEXpage

even when you say

\def\begin#1{\csname begin#1\endcsname}

to get around the first hurdle it fails because \addplot is not defined

i can't grep it in the tikz module tree either but there are files with 'plot' 
in it, so maybe you need to install more or maybe the commands / interfaces 
changed

(if it keeps failing on you, you can always try to use metapost instead)

Hans


Hi Hans,

It doesn’t keep failing for me because the fix is well documented, so I fixed 
it on my machine. I am just imagining that it might be nice to put that fix in 
the modules that people download. For example, a teacher wants to help me test 
my book, so he followed the instructions on the wiki to instal ConTeXt (LMTX) 
and the modules (https://wiki.contextgarden.net/Modules). Then he had to go in 
and change two commands the file:

context-osx-64/tex/texmf-modules/generic/pgfplots/pgfplots.code.tex

The changes are:

Line 7928: change “\begin{axis}" to “\axis”
Line 7934: change “\end{axis}" to “\endaxis”

Then everything is great.

I don't know where the modules live and how they are maintained, but if this 
fix could be put into those modules before people download them, that would be 
helpful as I add more collaborators.
it makes no sense to mojca to fix modules that come from elsewhere 
because a next time it might be different so when tikz is not updated on 
ctan (where it's fetched from) it's not an official fix


(a well documented tikz fix that doesn't go into tikz is not really a 
fix, is 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] pgfplots module needs update from December

2021-08-22 Thread Mojca Miklavec via ntg-context
On Sun, 22 Aug 2021 at 17:46, Gavin  wrote:
>
> The instructions we followed for installing the modules are at
>
> https://wiki.contextgarden.net/Modules#ConTeXt_LMTX
>
> These instructions include the line
>
> rsync -rltv --del rsync://contextgarden.net/minimals/current/modules/ 
> modules
>
> This does not seem to produce the same files as the 
> distribution.contextgarden.net address that you provided.

What's the main difference?
(Sure, you get all of the modules, not just TikZ. I somewhat suspect
that old files don't get deleted, so you may also end up with some old
files with the same name taking precedence and breaking the
functionality.)

> Should we be following different installation instructions?

I didn't test them, but the instructions seem more or less correct.

If you only need tikz (or just for testing with a fresh installation),
you could test with something similar to
rsync -av --delete
rsync://contextgarden.net/minimals/current/modules/t-tikz/
path-to/texmf-modules/

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] pgfplots module needs update from December

2021-08-22 Thread Gavin via ntg-context
> On Aug 22, 2021, at 8:44 AM, Mojca Miklavec  
> wrote:
> 
> I tried a fresh installation of both MKIV and LMTX and both seem to
> work fine for me, so sadly I cannot reproduce the problem.
> (The files comes from rsync, from the same folder as shown here:
> https://distribution.contextgarden.net/current/modules/t-tikz/)
> 
> Mojca

The instructions we followed for installing the modules are at

https://wiki.contextgarden.net/Modules#ConTeXt_LMTX

These instructions include the line

rsync -rltv --del rsync://contextgarden.net/minimals/current/modules/ 
modules

This does not seem to produce the same files as the 
distribution.contextgarden.net address that you provided. Should we be 
following different installation instructions?

Gavin
___
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] pgfplots module needs update from December

2021-08-22 Thread Mojca Miklavec via ntg-context
On Sun, 22 Aug 2021 at 15:43, Gavin via ntg-context wrote:
>
> usemodule[tikz]
> \usemodule[pgfplots]
> \usetikzlibrary[pgfplots.polar]
>
> \startTEXpage
>   \starttikzpicture
> \startpolaraxis
>   \addplot coordinates {(0,1) (90,1)
> (180,1) (270,1)};
> \stoppolaraxis
>   \stoptikzpicture
> \stopTEXpage

I tried a fresh installation of both MKIV and LMTX and both seem to
work fine for me, so sadly I cannot reproduce the problem.
(The files comes from rsync, from the same folder as shown here:
https://distribution.contextgarden.net/current/modules/t-tikz/)

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] pgfplots module needs update from December

2021-08-22 Thread Gavin via ntg-context
> On Aug 22, 2021, at 8:13 AM, Hans Hagen  wrote:
>> 
>>> you haven't post the tex code that fails so no one can check it
>>> 
>>> Hans
>> usemodule[tikz]
>> \usemodule[pgfplots]
>> \usetikzlibrary[pgfplots.polar]
>> \startTEXpage
>>   \starttikzpicture
>> \startpolaraxis
>>   \addplot coordinates {(0,1) (90,1)
>> (180,1) (270,1)};
>> \stoppolaraxis
>>   \stoptikzpicture
>> \stopTEXpage
> even when you say
> 
> \def\begin#1{\csname begin#1\endcsname}
> 
> to get around the first hurdle it fails because \addplot is not defined
> 
> i can't grep it in the tikz module tree either but there are files with 
> 'plot' in it, so maybe you need to install more or maybe the commands / 
> interfaces changed
> 
> (if it keeps failing on you, you can always try to use metapost instead)
> 
> Hans

Hi Hans,

It doesn’t keep failing for me because the fix is well documented, so I fixed 
it on my machine. I am just imagining that it might be nice to put that fix in 
the modules that people download. For example, a teacher wants to help me test 
my book, so he followed the instructions on the wiki to instal ConTeXt (LMTX) 
and the modules (https://wiki.contextgarden.net/Modules). Then he had to go in 
and change two commands the file:

context-osx-64/tex/texmf-modules/generic/pgfplots/pgfplots.code.tex

The changes are:

Line 7928: change “\begin{axis}" to “\axis”
Line 7934: change “\end{axis}" to “\endaxis”

Then everything is great.

I don't know where the modules live and how they are maintained, but if this 
fix could be put into those modules before people download them, that would be 
helpful as I add more collaborators.

Thanks!
Gavin
___
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] pgfplots module needs update from December

2021-08-22 Thread Hans Hagen via ntg-context

On 8/22/2021 3:42 PM, Gavin wrote:

On Aug 22, 2021, at 7:20 AM, Hans Hagen via ntg-context  
wrote:

On 8/22/2021 2:25 PM, Gavin via ntg-context wrote:

Hi Mojca,
(I mistakenly sent this only to Mojca. I’m sending again to the group.)

Is there anything I can do to aid in getting this fixed in the distribution?


Can you please try updating and checking again (at least with the
"legacy installer", I'm not sure how Hans handles the modules for
lmtx)?

I just installed again and now pgfplots doesn’t work at all. Before it didn’t 
work just for polar plots. The new error is

you haven't post the tex code that fails so no one can check it

Hans


usemodule[tikz]
\usemodule[pgfplots]
\usetikzlibrary[pgfplots.polar]

\startTEXpage
   \starttikzpicture
 \startpolaraxis
   \addplot coordinates {(0,1) (90,1)
 (180,1) (270,1)};
 \stoppolaraxis
   \stoptikzpicture
\stopTEXpage

even when you say

\def\begin#1{\csname begin#1\endcsname}

to get around the first hurdle it fails because \addplot is not defined

i can't grep it in the tikz module tree either but there are files with 
'plot' in it, so maybe you need to install more or maybe the commands / 
interfaces changed


(if it keeps failing on you, you can always try to use metapost instead)

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] Size of root symbol

2021-08-22 Thread Bruce Horrocks via ntg-context


> On 18 Aug 2021, at 17:06, Aditya Mahajan via ntg-context  
> wrote:
> 
> On Wed, 18 Aug 2021, Bruce Horrocks via ntg-context wrote:
> 
>> Is there a simple way to get both root signs in this MWE to be the same size?
>> 
>> \starttext
>> \startformula
>> \sqrt[3]{4n} \ne \sqrt[3] {n}
>> \stopformula
>> \stoptext
> 
> Make the quantities whose roots are being taken to be of the same size.
> 
> \starttext
> 
> % The simplest solution:
> \startformula
> \sqrt[3]{4n} \ne \sqrt[3] {\vphantom{4} n}
> \stopformula

Thanks Aditya, the \vphantom solution works for me -> now Wikified.

—
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] pgfplots module needs update from December

2021-08-22 Thread Gavin via ntg-context
> On Aug 22, 2021, at 7:20 AM, Hans Hagen via ntg-context  
> wrote:
> 
> On 8/22/2021 2:25 PM, Gavin via ntg-context wrote:
>> Hi Mojca,
>> (I mistakenly sent this only to Mojca. I’m sending again to the group.)
 Is there anything I can do to aid in getting this fixed in the 
 distribution?
>>> 
>>> Can you please try updating and checking again (at least with the
>>> "legacy installer", I'm not sure how Hans handles the modules for
>>> lmtx)?
>> I just installed again and now pgfplots doesn’t work at all. Before it 
>> didn’t work just for polar plots. The new error is
> you haven't post the tex code that fails so no one can check it
> 
> Hans

usemodule[tikz]
\usemodule[pgfplots]
\usetikzlibrary[pgfplots.polar]

\startTEXpage
  \starttikzpicture
\startpolaraxis
  \addplot coordinates {(0,1) (90,1)
(180,1) (270,1)};
\stoppolaraxis
  \stoptikzpicture
\stopTEXpage
___
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] pgfplots module needs update from December

2021-08-22 Thread Hans Hagen via ntg-context

On 8/22/2021 2:25 PM, Gavin via ntg-context wrote:

Hi Mojca,

(I mistakenly sent this only to Mojca. I’m sending again to the group.)


Is there anything I can do to aid in getting this fixed in the distribution?


Can you please try updating and checking again (at least with the
"legacy installer", I'm not sure how Hans handles the modules for
lmtx)?


I just installed again and now pgfplots doesn’t work at all. Before it didn’t 
work just for polar plots. The new error is

you haven't post the tex code that fails so no one can check 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] Losing a character during line break at a hyphen

2021-08-22 Thread Bruce Horrocks via ntg-context


> On 22 Aug 2021, at 10:27, Hans Hagen  wrote:
> 
> On 8/22/2021 1:27 AM, Bruce Horrocks via ntg-context wrote:
>>> On 22 Aug 2021, at 00:12, Bruce Horrocks via ntg-context 
>>>  wrote:
>>> 
>>> Not sure whether this is a ligature problem or a hyphenation problem or 
>>> both!
>> Smaller MWE - it's not hyphenation:
>> \starttext Diffe \stoptext
>> gives "Dife".
> if you're in a hurry you can patch font-ots.lmt, line 922
> 
>ligature = ligature.ligature
>else
>ligature = ligature.ligature
>end
> 
> and remake the format

Thanks Hans, your patch is working for me.

—
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] pgfplots module needs update from December

2021-08-22 Thread Gavin via ntg-context
Hi Mojca,

(I mistakenly sent this only to Mojca. I’m sending again to the group.)

>> Is there anything I can do to aid in getting this fixed in the distribution?
> 
> Can you please try updating and checking again (at least with the
> "legacy installer", I'm not sure how Hans handles the modules for
> lmtx)?

I just installed again and now pgfplots doesn’t work at all. Before it didn’t 
work just for polar plots. The new error is 

tex error   > tex error on line 48 in file 
/Users/Gavin/context-osx-64/tex/texmf-modules/tex/generic/pgfplots/pgfplots.code.tex:
 ! I can't find file `pgflibrarypgfplots.contourlua.code.tex'.

The instructions I followed from the garden are below.

- Gavin


> # Synchronize all modules from the ConTeXt Garden in the directory 'modules' 
> which is created if it doesn't exist.
> 
> rsync -rltv --del rsync://contextgarden.net/minimals/current/modules/ modules
> 
> # Create the union of all modules in tex/texmf-modules (the directory is 
> created if it doesn't exist).
> # If you have personal modules in tex/texmf-modules, they won't be modified.
> 
> rsync -rlt --exclude=/VERSION --del modules/*/ tex/texmf-modules
> 
> # You may delete the 'module's directory to reclaim some space or keep it to 
> speed up the next update.
> # rm -rf modules
> 
> # Update the ConTeXt LMTX distribution. Alternatively, if you do not
> # want to do that, you have to run mtxrun --generate.
> 
> sh ./install.sh
___
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] Adjustment for header and footer

2021-08-22 Thread Fabrice Couvreur via ntg-context
Hi,
In the file below (not minimal, sorry!) I am using commands from Wolfgang
in different threads. We can see that the top frame overflows into the
text: how to correct this ?
I would also like the top and bottom stroke to be adjusted to the width of
the paper.
Thanks
Fabrice

\useMPlibrary[dum]

\setuplayout
   [topspace=1cm,
backspace=3cm,
cutspace=3cm,
leftmargin=.75cm,
leftmargindistance=.5cm,
rightmargin=1.25cm,
rightmargindistance=1cm,
header=20mm,
headerdistance=1cm,
footer=20mm,
footerdistance=1cm,
width=middle,
height=middle,
location=middle]

\setupbodyfont
   [newcomputermodern-book,11pt]

\definefont
   [TextStyle]
   [SansBold*default sa 1.2]


\defineframed
  [headerframed]
  [frame=off,
   height=fit,
   width=fit,
  ]

\setupbackgrounds [header] [text]
   [frame=off,bottomframe=on,width=\widthpaper,
framecolor=darkred,rulethickness=1pt]

\setupbackgrounds [footer] [text]
   [frame=off,bottomframe=on,width=max,
   framecolor=darkred,rulethickness=1pt]

 \setupfootertexts
  [margin]
  []
  [{\offset[y=\strutdp]{\externalfigure[dum][factor=max]}}]
  []
  [{\offset[y=\strutdp]{\externalfigure[dum][factor=max]}}]

\startsetups [headertext]

\setupheadertexts
[{
\startframed [headerframed]
[foregroundstyle=TextStyle,align=middle]
\getvariable{headertext}{location}\\
 Spécialité mathématiques\\
\getvariable{headertext}{title} n\high{\tfxx \bf
o}\,\getvariable{headertext}{number}
\stopframed
}]

\setupheadertexts
[{
\startframed [headerframed]
[align=flushleft,foregroundstyle=\ssx]
Lycée LA SALLE\\
Durée : \getvariable{headertext}{time}\\

\date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}]
\stopframed
}]
[{
\startframed [headerframed]
[align=flushright,foregroundstyle=\ssx]
  \externalfigure[dum] [factor=max]
\stopframed
}]

\stopsetups

\setvariable{headertext}{set}{\directsetup{headertext}}


\setvariables
  [headertext]
  [title={Devoir maison},
   number={2},
   day={22},
   month={08},
   year={2021},
   location={Terminale},
   time={2 heures}]


\starttext
\samplefile{lorem}
\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] Losing a character during line break at a hyphen

2021-08-22 Thread Hans Hagen via ntg-context

On 8/22/2021 1:27 AM, Bruce Horrocks via ntg-context wrote:




On 22 Aug 2021, at 00:12, Bruce Horrocks via ntg-context  
wrote:

Not sure whether this is a ligature problem or a hyphenation problem or both!


Smaller MWE - it's not hyphenation:

\starttext Diffe \stoptext

gives "Dife".

if you're in a hurry you can patch font-ots.lmt, line 922

ligature = ligature.ligature
else
ligature = ligature.ligature
end

and remake the format

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