[NTG-context] Re: issue with module update

2024-03-11 Thread Taco Hoekwater


> On 11 Mar 2024, at 16:57, Pablo Rodriguez via ntg-context 
>  wrote:
> 
> Dear list,
> 
> I have just updated a module named PresVoz.
> 
> I get the standard directory
> (https://modules.contextgarden.net/dl/presvoz/) and
> (https://modules.contextgarden.net/dl/presvoz-{%version%}.zip), but no
> https://modules.contextgarden.net/dl/presvoz.zip (with current version).
> 
> So when updating the module, I get it only uninstalled.
> 
> The two most recent updates (this one and the one before) had this issue.
> 
> Is there something I am missing here?

One of your releases had “changed-name” as its release ‘number’. 

The modules site does not know how to deal with non-numeric release names all 
that well; it made a mess of its symlinking stage. 

I fixed the symlink manually, it should be fine now.

Best wishes,
Taco 

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: weird character normalization in the wiki

2024-03-11 Thread Taco Hoekwater
Hi,



> On 9 Mar 2024, at 09:35, Pablo Rodriguez via ntg-context  
> wrote:
> 
> Sure, they may be a workaround to type codepoints instead of characters
> (such as with \utfchar{0x1fbb}, but wouln’t it be possible to disable
> that character normalization in the wiki?

AFAIK, Wikimedia’s Unicode normalisation can not be turned off.


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 / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: .jpx and .jxl

2024-03-05 Thread Taco Hoekwater


> On 4 Mar 2024, at 15:30, Jim  wrote:
> 
> Recently I've been trying to make some PDFs smaller by using better
> compression of JPEG pictures.
> 
> I was happy to see that \externalfigure cheerfully accepts .jp2 (JPEG 2000)
> files.  However, my understanding (and I could well be wrong, but I've seen
> it multiple places) is that JPEG 2000 *Part 2* files should have extension
> .jpx, not .jp2.
> 
> By default, ConTeXt does not recognize .jpx.  But if I rename a .jpx file
> to have a .jp2 extension, then ConTeXt properly processes the file and I
> see the picture in the PDF.
> 
> Q: are there any plans to make ConTeXt recognize the .jpx extension?
>   If not, can anyone suggest some ConTeXt code which allows me to tell
>   ConTeXt to process a .jpx file as a .jp2 file?


The recognised extensions are specified in a table in grph-inc.lmt, I don’t 
think you can alter that table runtime. 

But it is possible to do

  \externalfigure[method=jp2,file=….jpx]

Untested, but should work.

Best wishes,
Taco

> 
> 
> I have also been investigating the use to JPEG-XL files (.jxl).  One of the
> interesting aspects of JXL files is that .jpg files can be **losslessly**
> compressed into .jxl files.  (That is, you can recover the exact .jpg from
> the .jxl file if you want, so there is no further degradation of the image
> by doing this lossless compression.)  I have been seeing 20% to 30%
> reduction in file sizes by converting JPGs into JXLs, which I would be
> happy to make use of in my PDFs, if possible.
> 
> Bonus question: is there any plan to support JXL files in ConTeXt?
> 
> Thanks.
>Jim
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: XML processing, unwanted indentation/alignment

2024-02-16 Thread Taco Hoekwater


> On 16 Feb 2024, at 00:34, Bruce Horrocks  wrote:
> 
> The extra space is because you have a space between {first_name} and 
> {\xmlatt... on line 9 of xml.tex.
> 
>> On 15 Feb 2024, at 20:28, Michael Guravage  
>> wrote:
>> 
>> Greetings,
>> 
>> I'm typesetting an address book whose addresses are in XML. A typical entry 
>> has this structure:
>> 
>>  
>>
>>
>>  > mobile="" /> 
>>   
>>  
>>
>>  
>> 
>> initials and birthday are required, first_name can be left blank and email, 
>> mobile and maiden_name are optional.
>> 
>> I've written a macro (name) to compose the name, i.e. initials, first_name 
>> (maiden_name), and another macro (nameemaillink) to make the name a link 
>> associated with an email address. 
>> 
>> % Derive an individual's name
>> \def\name#1%
>>  {\ifxmlattempty{#1}{first_name} {\xmlatt{#1}{initials}} \else 
>> {\xmlatt{#1}{initials}, \xmlatt{#1}{first_name}} \fi
>  Remove the space after {first_name} here
>>   \ifxmlattempty{#1}{maiden_name} {} \else { 
>> \tfxx(\xmlatt{#1}{maiden_name})} \fi}

I am fairly certain the “ {} “ before the \else introduces spaces.

>> 
>> % Create a mailto:link that associates a individual's name with their email 
>> address.
>> \def\nameemaillink#1%
>>  {\ifxmlattempty{#1}{email} {\name{#1}} \else {\goto{\name{#1}} 
>> [url(mailto:\xmlatt{#1}{email})]} \fi}
>> 
>> I thought I was done when I noticed that a composed name with an empty first 
>> name, with or without an email address, is slightly indented. In the mwe Moe 
>> and Curly, without first names, are indented; while Shemp and Michael aren't.
>> 
>> That the undesired indentation/alignment is dependent on the presence of a 
>> first name is baffling.  After this long description, if someone would look 
>> at the code and tell me where I've gone wrong I would be very grateful. The 
>> interesting bits begin on lines 8 and 12 in xml.tex. 
> 
> —
> 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 / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___


— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Section numbering does not work

2024-02-13 Thread Taco Hoekwater


> On 13 Feb 2024, at 00:17, Oliver Marugg  wrote:
> 
> Hi 
> 
> Section numbering does not work until I remove \startbackmatter 
> \stopbackmatter. I had a longer text file and I stripped it down until I 
> found this?

IIRC :

\setupsectionblock[backpart][number=yes]

Best wishes,
Taco

> Greets Oliver
> 
> 
> Running freshly installed context ARM64 on m1 and updated it via sh 
> install.sh on ARM64 macos 14.3.1:
> 
> context --version
> mtx-context | ConTeXt Process Management 1.05
> mtx-context |
> mtx-context | main context file: 
> /Applications/ConTeXtStandalone/tex/texmf-context/tex/context/base/mkiv/context.mkiv
> mtx-context | current version: 2024.01.24 22:39
> mtx-context | main context file: 
> /Applications/ConTeXtStandalone/tex/texmf-context/tex/context/base/mkxl/context.mkxl
> mtx-context | current version: 2024.01.24 22:39
> --
> 
> Stripped down MWE:
> 
> \setuppapersize[A4] [A4] 
> \starttext
> \completecontent[criterium=all]
> % ToC
> \page
> \chapter{CHAP 1}
> TEXT
> \startbackmatter
> \startchapter[title=Literature]
> \placelistofpublications
> \stopchapter
> \stopbackmatter
> \stoptext
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: mtxrun.lua:10080: bad argument #9 to 'format'

2024-01-29 Thread Taco Hoekwater


> On 29 Jan 2024, at 01:36, vm via ntg-context  wrote:
> 
> while also on linux platform:
> 
> 
> mtxrun --script font --list --spec --filter="fontname=ibm*"
> mtxrun --script font --list --spec --filter="fontname=ple*"
> 
> give correct result (as in listing the available installed ibmplex fonts)
> 
> 
> mtxrun --script font --list --spec --filter="fontname=*"
> mtxrun --script font --list --spec --filter="fontname=p*"
> mtxrun --script font --list --spec --filter="fontname=pl*"
> 
> lua error : function call: 
> /home/vm/context/tex/texmf-linux-64/bin/mtxrun.lua:10080: bad argument #9 to 
> 'format' (number expected, got string)
> 
> apparently you need at least three characters in the the filter template.

Hi,

I changed line 10066 in mtxrun.lua to

 templates[i]="%-"..w.."s"..between

from 

 templates[i]=“% "..w..”i"..between

and that fixed it.

The problem here is that the “big" results contain both ttc fonts (with subfont 
ids, which are numbers) and non-ttc fonts (with empty subfont ids, and those 
are strings).
This means the output template gets confused about whether it should use “%s” 
or “%i” as format string.

> 
> 
> 
> $ mtxrun --script font --list --spec --filter="fontname=ple"
> table: 0x3bc80550ac0
> table: 0x3bc80550b00

This is what happens if there are no matches, apparently.


Best wishes,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Own command definition breaks with interaction: Use of \do_my_command doesn't match its definition

2024-01-29 Thread Taco Hoekwater
Hi,

You can try: 

> \unexpanded\def\do_my_command[#1]#2{%

But there is probably a cleaner way to implement optional arguments with lua?

Best wishes,
Taco

> On 25 Jan 2024, at 09:18, Gerion Entrup  wrote:
> 
> Hi,
> 
> I want to make a proper definition of a new command to be able to
> process it in Lua. I found something on StackOverflow [1] but that
> breaks in enumeration _and_ when interaction is enabled and I do not
> understand why? Can you give me some help here?
> 
> I want to make commands like \foo{bla} and \foo[b]{bla} possible at the
> same time. Here is a minimal example (also attached):
> 
> ```
> \startluacode
> function userdata.my_command(keywords, text)
> commands.writestatus("test", string.format("text: %s, config: %s", text, 
> keywords))
>local cfg = utilities.parsers.settings_to_hash(keywords)
> 
> if cfg['emph'] ~= nil then
> context("\\emph{" .. text .. "}")
> elseif cfg['bold'] ~= nil then
> context("\\bold{" .. text .. "}")
> else
> context(text)
> end
> end
> \stopluacode
> 
> % without that line there is no problem
> \setupinteraction[state=start]
> 
> \defineenumeration[enu][text=Enu]
> 
> \unprotect
> \def\mc{\dosingleempty\do_my_command}
> \def\do_my_command[#1]#2{%
> \iffirstargument{%
> \ctxlua{userdata.my_command('#1', [==[#2]==])}%
> }\else {%
> \ctxlua{userdata.my_command('', [==[#2]==])}%
> }\fi
> }
> \protect
> 
> \starttext
> 
> % all the following works
> \mc{foo} \mc[bold]{foo} \mc[emph]{foo}
> 
> \startenu[title=Some]
> \stopenu
> 
> % this breaks
> \startenu[title=Some \mc{foo}]
> \stopenu
> 
> \stoptext
> ```
> 
> The compilation fails with:
> ```
> tex error   > tex error on line 41 in file ./test.tex: Use of 
> \do_my_command doesn't match its definition
> ```
> 
> Best,
> Gerion
> 
> [1] https://tex.stackexchange.com/a/55778
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Why LuaMetaTex is so slow?

2024-01-19 Thread Taco Hoekwater


> On 19 Jan 2024, at 11:00, Henning Hraban Ramm  wrote:
> 
> Am 19.01.24 um 10:31 schrieb Hans Hagen:
>> (that said: luametatex runs fine on my mobile phone)
> 
> What’s the smallest/oldest device someone tried LMTX on?
> (We were joking about “Hans’ thermostate and Alan’s fridge“…)
> Would it run on some 8 bit homecomputer? (I’d guess the RAM is too limited, 
> and loading from datasette would need hours…)

No. You need integers (and pointers) to be at least 32 bits wide. And you also 
need about 90Mb of RAM for the initial malloc()s.

Historical 8-bit and 16-bit CPUs will not work. A modern fridge might, though. 
:)

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: LuaMetaTeX code

2024-01-19 Thread Taco Hoekwater

Hi Shiv,

Can you move this discussion to the dev-context list, please? 
https://mailman.ntg.nl/mailman3/lists/dev-context.ntg.nl/

Best wishes,
Taco


> On 19 Jan 2024, at 09:31, Shiv Shankar Dayal  
> wrote:
> 
> I see code like
> 
> # define luametatex_version  210
> # define luametatex_revision 10
> # define luametatex_release  10
> # define luametatex_version_string   "2.10.10"
> 
> starting with C99 these become unnecessary. Rather they should be like const 
> int luametatex_version=210; const char* luametatex_version_string="2.10.10";
> 
> These ensure type-safety in the code and are good coding practice.
> 
> On Fri, Jan 19, 2024 at 1:56 PM Shiv Shankar Dayal 
>  wrote:
> Dear Hans,
> 
> I saw the C code of LuaMetaTeX and I saw a lot of gotos which is not good 
> coding practice. These potions of code which have goto should be refactored.
> 
> I am a C programmer, but I know very little of TeX. If you can point me 
> towards where should I start for TeX(perhaps TeX Book or TeX for the 
> Impatient), I can help with refactoring of code to make is more 
> efficient/easier.
> 
> -- 
> Respect,
> Shiv Shankar Dayal
> 
> 
> -- 
> Respect,
> Shiv Shankar Dayal
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Wiki update

2024-01-16 Thread Taco Hoekwater
Hi all,

I just updated the wiki ConTeXt to 20240108. 

The  tag on the wiki by default uses luametatex (LMTX), but if you 
want luatex instead (MKIV), you can still do that by using .

There have been some problems recently because Hans’ new binaries needed a 
newer version of various system libraries. 

I fixed that this morning after Hraban spotted the issue, but it means that 
there may be wiki pages with ConTeXt processing errors in them now. These can 
be recognised by either the colorised “error” output, or some cryptic “copy 
failed” message instead of the actual output.

If you see one of those pages, Edit it. For the  colorised “error” output you 
need to make a tiny change to the example itself (because that “error” output 
is correct as far as the wiki software can tell, so you have to force it to 
regenerate). For the “copy failed” case, you just have to start an edit and 
then immediately save again. The wiki will autogenerate any missing examples on 
save.

Best wishes,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Question to a formular

2024-01-05 Thread Taco Hoekwater


> On 05/01/2024 14:27, Ursula Hermann wrote:
> 
>> Can someone help me please?
> 
> 
> \starttyping
> 0! := 1
> (n + 1)! := (n + 1) n!
> \stoptyping

Or:

\startformula 
\startalign[n=1,align={1:left}]
\NC 0! := 1\NR
\NC (n + 1)! := (n + 1) n!\NR
\stopalign
\stopformula

https://wiki.contextgarden.net/Multiline_equations


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Metapost: draw only subpath; changing thickness of line

2024-01-05 Thread Taco Hoekwater
Hi,

Here is 'a' way to draw the subpath, at least. I do not have time to come up 
with a nice “thicker in the middle” solution.

Best wishes,
Taco


\startMPcode
numeric u; u=1cm;
%equiangular spiral
numeric a, k ;
a = 2.3; %scaling factor
k = 8.61722335;
path S;
S = right for t=1 upto 360: .. a ** (t/50.2) * dir (-k*t) endfor;
draw S;

z1 = 8 dir -14;
path A; A = origin -- z1 scaled 0.7u ;%  draw A;
pair AEndPoint; AEndPoint = point 1 of A;
pair gong[], times; numeric n; n = 0;
numeric gongtimes[]; % new
for i = 1 upto length(A):
 for j = 1 upto length(S):
   times := subpath (i-1,i) of A intersectiontimes subpath (j-1,j) of S;
   if xpart times > -1:
 gong[incr n] = 1[point xpart times of subpath (i-1,i) of A,
 point ypart times of subpath (j-1,j) of S];
 gongtimes[n] = j-1 + ypart times;  % new
  fi
 endfor
endfor

% new
path H; H = subpath(gongtimes[6],gongtimes[7]) of S;
lH = length(H);
for i = 1 upto 100:
draw (subpath((i-1)/100*lH, i/100* lH) of H) withcolor red  withpen 
(pencircle scaled(abs(abs(i-50)-50)/10)) ;
endfor;

\stopMPcode


> On 5 Jan 2024, at 09:56, Emanuel Han via ntg-context  
> wrote:
> 
> Hi all, 
> 
> I have this MWE. Now I want to draw only the subpath of S between gong6 and 
> gong7 with a red line which is narrower at the two ends and thicker in the 
> middle part. How to achieve this?
> 
> Thanks!
> Emanuel
> 
> \setuppapersize[A4,landscape]
> 
> \starttext
> 
> \startMPcode
> numeric u; u=1cm;
> %equiangular spiral
> numeric a, k ; 
> a = 2.3; %scaling factor
> k = 8.61722335; 
> path S; 
> S = right for t=1 upto 360: .. a ** (t/50.2) * dir (-k*t) endfor;
> draw S;
> 
> z1 = 8 dir -14;
> path A; A = origin -- z1 scaled 0.7u ; draw A;
> pair AEndPoint; AEndPoint = point 1 of A;
> pair gong[], times; numeric n; n = 0;
> for i = 1 upto length(A):
>  for j = 1 upto length(S):
>times := subpath (i-1,i) of A intersectiontimes subpath (j-1,j) of S;
>if xpart times > -1:
>  gong[incr n] = 1/2[point xpart times of subpath (i-1,i) of A,
>  point ypart times of subpath (j-1,j) of S];
>   fi 
>  endfor
> endfor
> 
> dotlabel.rt ("$gong6$", gong6);
> dotlabel.rt ("$gong7$", gong7);
> 
> %Now I want to draw only the subpath of S between gong6 and gong7 with a red 
> line which is narrower at the two ends and thicker in the middle part
> 
> \stopMPcode
> 
> \stoptext
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Invalid certificate for distribution.contextgarden.net

2023-11-23 Thread Taco Hoekwater


> On 23 Nov 2023, at 11:14, Marco Patzer  wrote:
> 
> On Thu, 23 Nov 2023 08:58:56 +0100
> Taco Hoekwater  wrote:
> 
>>> probably a side effect if moving some more to the (ntg) server in
>>> the netherlands (also setting up the build there)  
>> 
>> Even if it used the right certificate, it would not work right now
>> because of the move: there is nothing behind the connection.
> 
> I used that server to check for the latest context version. What's
> the recommended way to check for the latest version? Basically the
> output of the \contextversion command?

The command 

  context —version

gives the local installed version. 

Not sure whether there is a clean way to see if there is a remote newer update 
without actually doing an update. You can check the mailing list, all new 
releases by Hans are now reported on the ntg-context list, but that may be less 
convenient than an actual test. mtx-install.sh does not have a —dry-run or 
—upgradable switch, afaik.

Personally, I just run “bash install.sh” when I suspect there is a relevant 
update (install.sh is in the top-level context installation directory).

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 / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Invalid certificate for distribution.contextgarden.net

2023-11-23 Thread Taco Hoekwater



> On 23 Nov 2023, at 08:49, Hans Hagen  wrote:
> 
> On 11/22/2023 9:47 PM, Marco Patzer wrote:
>> Hi!
>> The site
>>   https://distribution.contextgarden.net/
>> uses an invalid certificate:
>>   echo | openssl s_client -servername 'distribution.contextgarden.net' 
>> -connect 'distribution.contextgarden.net':443 2>/dev/null |  openssl x509 
>> -noout -ext subjectAltName
>>   X509v3 Subject Alternative Name:
>>   DNS:4tex.ntg.nl, DNS:mailman.ntg.nl, DNS:mysql-admin.ntg.nl, 
>> DNS:ntg.nl, DNS:www.ntg.nl
>> This makes connections fail. distribution.contextgarden.net has to
>> be added to the Alternative Name list.
> probably a side effect if moving some more to the (ntg) server in the 
> netherlands (also setting up the build there)

Even if it used the right certificate, it would not work right now because of 
the move: there is nothing behind the connection.

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 / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: ConTeXt Group Subscriptions

2023-11-19 Thread Taco Hoekwater
Hi Keith,

> On 18 Nov 2023, at 18:16, Keith McKay  wrote:
> 
> Hi,
> 
> I was wondering if the reminder for the ConTeXt Group Membership 
> subscriptions had been sent out? It's been over a year since I took out 
> membership and I thought I would have had a reminder by now. I hope I haven't 
> missed the email.
> 

Rest assured, we definitely have you registered as a member! Usually we send 
out the membership invoices at the end of the winter, and communication for the 
next meetings tends to pickup around easter. 

Best wishes,
Taco


— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-05 Thread Taco Hoekwater


> On 6 Nov 2023, at 00:35, Bruce Horrocks  wrote:
> 
> 
> [1] Now there's an irony: the Wiki software creates different-sized previews 
> of a vector image so that it can show the image at different sizes on 
> different clients.

I bet it started doing this back 'in the day’ to support Internet Explorer 6.



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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Testing whether an XML attribute exists

2023-10-17 Thread Taco Hoekwater



> On 17 Oct 2023, at 12:43, Michael Guravage  
> wrote:
> 
> Hi,
> 
> I am typesetting a very simple address list whose source is written in XML.  
> Typesetting choices need to be made dependent on the presence of various 
> attributes; consider the following  element. 
> 
> 
> 
> If the prefix attribute exists I'l like the name to appear as, e.g. 'Boer, 
> den."  The several XML attribute testing functions in the XML manual appear 
> to discriminate on an attribute's value. I tried  \xmldoifnotatt in an 
> attempt to say, "TRUE if prefix does not match an empty string",  since I am 
> not interested in the attribute's value but only whether or not it exists. 
> The code below doesn't work. If someone who knows why it doesn't work would 
> enlighten my ignorance I would be most grateful. A brief explanation and 
> example of \xmldoifatt, \xmldoifnotatt, and \xmldoifelseatt would be 
> exceedingly helpful.
> 
> \startxmlsetups xml:list:family
>   {\bf \xmlatt{#1}{surname} \xmldoifnotatt{#1, prefix, ''} {, 
> \xmlatt{#1}{prefix}}} \crlf


Syntax error there, you need:

  \xmldoifnotatt{#1}{prefix}{}{, \xmlatt{#1}{prefix}}

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 / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Chapters without new page

2023-09-15 Thread Taco Hoekwater


> On 15 Sep 2023, at 14:07, Rik Kabel  wrote:
> 
> 
> On 9/15/2023 4:10 AM, Taco Hoekwater wrote:
>> 
>> 
>>> On 15 Sep 2023, at 09:58,   
>>> wrote:
>>> 
>>> I thought there should be a setups key on \setupsectionblock, but 
>>> apparently there isn’t. So, the example below does not work, but maybe it 
>>> wouldn’t be too hard to add it…
>>> 
>> There is a ‘before' key, but note that the sectionblock itself is called 
>> “backpart”, not “backmatter”
>> 
>> Either use
>> 
>> \setupsectionblock[backpart][before={\setuphead[chapter][page=no]}]
>> 
>> Or, nicer:
>> 
>> \startsectionblockenvironment[backpart]
>> \setuphead[chapter][page=no]
>> \stopsectionblockenvironment
>> 
>> 
>>> Best,
>>> Denis
>>> \setuphead[chapter][page=yes]
>>> \setupsectionblock[backmatter][setups={\setuphead[chapter][page=no]}]
>>> \starttext
>>> \chapter{One}
>>> \input knuth
>>> \chapter{Two}
>>> \input ward
>>> \startbackmatter
>>> \chapter{Three}
>>> \input knuth
>>> \chapter{Four}
>>> \input ward
>>> \stopbackmatter
>>> \stoptext
>>> Von: Jeroen  
>>> Gesendet: Donnerstag, 14. September 2023 23:50
>>> An: mailing list for ConTeXt users 
>>> Betreff: [NTG-context] Chapters without new page
>>> In the \startbackmatter ... \stopbackmatter section i would like to have 
>>> some chapters that are not automatically placed on a new page for the next 
>>> chapter. Is there an easy way to suppress the new page for these chapters?
>>> Thanks, Jeroen
>>> 
>> Best wishes,
>> Taco
>> 
>> 
> While this works, it changes behavior for **all** chapters. It does not 
> address the original question of how to have **some** chapters  "not 
> automatically placed on a new page."

Like this?

  \definehead[mychapter][chapter]
  \setuphead[mychapter][page=no]


Taco


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

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

[NTG-context] Re: Chapters without new page

2023-09-15 Thread Taco Hoekwater


> On 15 Sep 2023, at 09:58,   wrote:
> 
> I thought there should be a setups key on \setupsectionblock, but apparently 
> there isn’t. So, the example below does not work, but maybe it wouldn’t be 
> too hard to add it…

There is a ‘before' key, but note that the sectionblock itself is called 
“backpart”, not “backmatter”

Either use

\setupsectionblock[backpart][before={\setuphead[chapter][page=no]}]

Or, nicer:

\startsectionblockenvironment[backpart]
  \setuphead[chapter][page=no]
\stopsectionblockenvironment

>  Best,
> Denis
>   \setuphead[chapter][page=yes]
>  \setupsectionblock[backmatter][setups={\setuphead[chapter][page=no]}]
>  \starttext
>  \chapter{One}
> \input knuth
>  \chapter{Two}
> \input ward
>   \startbackmatter
> \chapter{Three}
> \input knuth
>  \chapter{Four}
> \input ward
> \stopbackmatter
> \stoptext
>   Von: Jeroen  
> Gesendet: Donnerstag, 14. September 2023 23:50
> An: mailing list for ConTeXt users 
> Betreff: [NTG-context] Chapters without new page
>  In the \startbackmatter ... \stopbackmatter section i would like to have 
> some chapters that are not automatically placed on a new page for the next 
> chapter. Is there an easy way to suppress the new page for these chapters?
> Thanks, Jeroen

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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: XML: flush to lua function

2023-09-12 Thread Taco Hoekwater
Hi,

xml.text(t) is safer than directly accessing t.dt[1].

Note: you may need to strip some XML tags from that content. 

If the element is not straight-up data but has nested elements, then this will 
return the full xml representation instead:

 A short title=> ‘A short title'
 A short title=> ‘'
 A short title => 'A short 
title'


Best wishes,
Taco

> On 12 Sep 2023, at 08:56,   wrote:
> 
> Ok, I’ve found a way, see below.
> But maybe someone has some nice lua (or other) tricks to share… (I’m not sure 
> accessing t.dt[1] is particularly safe when operating on nested structures.)
>  Best,
> Denis
>  \startbuffer[test]
> 
> 
> 
> A short title
> asdf asdf asdf jklö jklö jklö
>   
>   
> A longer title bla bla bla bla bla bla bla bla
> 
> asdf asdf asdf jklö jklö jklö
> 
>   
> 
> \stopbuffer
>  \startxmlsetups xml:test
> \xmlsetsetup{#1}{*}{-}
> \xmlsetsetup{#1}{doc|chapter|p}{xml:*}
> \stopxmlsetups
>  \xmlregisterdocumentsetup{test}{xml:test}
>  \startxmlsetups xml:doc
>\xmlflush{#1}
> \stopxmlsetups
>  \setuphead[chapter][expansion=yes] % make sure the stuff gets expanded on 
> time
> \startxmlsetups xml:chapter
> \startchapter
>[
>
> title={\xmlfilter{#1}{/title/command(xml:chapter:title)}},
>
> marking={\xmlfilter{#1}{/title/command(xml:chapter:title:marking)}},
>]
>\xmlflush{#1}
> \stopchapter
> \stopxmlsetups
>  \startxmlsetups xml:p
> \xmlflush{#1}\par
> \stopxmlsetups
>  \startluacode
> function xml.functions.getMarking(t)
> _,n = t.dt[1]:gsub("%S+","")
> if n > 10 then   local words = {} 
>   for word in t.dt[1]:gmatch("%S+") do table.insert(words, word) end
>   local resWords = {}
>   resWords =  { unpack( words, 1, 7 ) }
>   res = table.concat(resWords, " ") .. " …"
> else   res = t.dt[1]
> end
> context(res)
> end
> \stopluacode
>  \startxmlsetups xml:chapter:title:marking
> \xmlfunction{#1}{getMarking}
> \stopxmlsetups
>  \startxmlsetups xml:chapter:title
> \xmlflush{#1}
> \stopxmlsetups
>   \setupheadertexts[chapter]
>  \starttext
>  \xmlprocessbuffer{test}{test}{}
>  \stoptext
>   Von: denis.ma...@unibe.ch  
> Gesendet: Montag, 11. September 2023 16:47
> An: ntg-context@ntg.nl
> Betreff: [NTG-context] XML: flush to lua function
>  Hi,
> I have the following xml setup with a lua function:
>  \startluacode
> function markingLength(s)
> _,n = s:gsub("%S+","")
> if n > 3 then context("yes" .. " …") else 
> context("no") end
> end
> \stopluacode
>  \startxmlsetups xml:ink:ink-title:marking
> %\ctxlua{markingLength(\xmlflush{#1})}  % does not work
> \ctxlua{markingLength{"1 2 3 4"}}
> \stopxmlsetups
>  While the function works, I cannot use xmlflush here. How can I properly 
> pass the xml content to the lua function?
>  Best,
> Denis
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___


— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)


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

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

[NTG-context] ConTeXt meeting 2023 attendance (please read)

2023-08-22 Thread Taco Hoekwater
Hi all,

This is a reminder that the registration for the upcoming ConTeXt meeting in 
Sibrina, Czech Republic is still open. The meeting will take place from Sept 10 
to Sept 16. You can go to 

  https://meeting.contextgarden.net

for more information. You will also find the registration form there. You can 
(of course) attend in person, but registration for online only attendance is 
also possible!

We hope to see you next month!

NOTE: There have recently been problems with the delivery of the filled-in 
registration form to the organisers. If you have registered sometime *in the 
last month* but have not heard from Jano or me yet, please re-register (the 
form emailer is fixed) or at least drop us a message!

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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Re: enhancing MetaPost presentation progress graphics

2023-07-19 Thread Taco Hoekwater
Hi,

First, find the actual point along the curve of the wave you want, then you can 
ask for the direction of the wave at that time, and its point:

\startuseMPgraphic{Waves}
numeric height,stops,yoffset;
stops := 10;
height := OverlayHeight/10;
path wave[]; % storing waves

draw (0,0)--(OverlayWidth,0)--(OverlayWidth,OverlayHeight) withcolor white 
withpen pencircle scaled 0.01;

for j=1 upto 3:
 definecolor [name="Sea", y=(j/20), c=2*(j/10), m=(j/20)];
 yoffset := height/(j*2);
 wave[j] := (0,0)--(0,yoffset)...
 for i=1 upto stops:
   (OverlayWidth*i/(stops+1), (yoffset) randomized (height/2)) ...
 endfor
 (OverlayWidth,yoffset);
 fill ((0,0)--wave[j]--(OverlayWidth,0)--cycle) withcolor "Sea";
endfor;

xpos := OverlayWidth * RealPageNumber/NOfPages;
path ship;
ship := (0,10)---(70,10)...(60,0)---(10,0)...cycle;

pair itime, iangle, boatpos;

itime = (wave[3] intersectiontimes ((xpos,0)--(xpos,infinity)));
iangle = direction (xpart itime) of wave[3];
boatpos = (point (xpart itime) of wave[3]) shifted (-5,0); % shift to center 
horizontally

fill ship xysized (10,5) shifted boatpos rotatedaround (boatpos, angle iangle) 
withcolor red;
\stopuseMPgraph

> On 19 Jul 2023, at 12:32, Henning Hraban Ramm  wrote:
> 
> Hi,
> I’d like a presentation progress indicator that looks like a boat on waves – 
> and if it works, it can also become a bike on hills or a mars rover on dunes. 
> But my math skills are lacking.
> 
> Below’s a mostly working draft.
> 
> * I find the waves not yet very convincing. Would it make sense to use a 
> randomized sinus? (How?)
> 
> * The boat should sit on the middle wave and be rotated by the current slope. 
> I know I need the “time” of the upper curve and get the 1st derivation, but 
> how?
> 
> """
> \setuppapersize[SW]
> 
> \startuseMPgraphic{Waves}
> numeric height,stops,yoffset;
> stops := 10;
> height := OverlayHeight/10;
> path wave;
> 
> draw (0,0)--(OverlayWidth,0)--(OverlayWidth,OverlayHeight) withcolor white 
> withpen pencircle scaled 0.01;
> 
> for j=1 upto 3:
>  definecolor [name="Sea", y=(j/20), c=2*(j/10), m=(j/20)];
>  yoffset := height/(j*2);
>  wave := (0,0)--(0,yoffset)...
>  for i=1 upto stops:
>(OverlayWidth*i/(stops+1), (yoffset) randomized (height/2)) ...
>  endfor
>  (OverlayWidth,yoffset)--(OverlayWidth,0)--cycle;
>  fill wave withcolor "Sea";
> endfor;
> 
> pair pos;
> pos := (OverlayWidth * RealPageNumber/NOfPages, height/2 randomized 2);
> path ship;
> ship := (0,10)---(70,10)...(60,0)---(10,0)...cycle;
> 
> fill ship xysized (10,5) shifted pos rotatedaround (pos, 15) withcolor red;
> \stopuseMPgraphic
> 
> \defineoverlay[Waves][\useMPgraphic{Waves}]
> 
> \setupbackgrounds[state=repeat]
> \setupbackgrounds[page][background={Waves}]
> 
> \starttext
> 
> \dorecurse{10}{\recurselevel\page}
> 
> \stoptext
> """
> 
> Hraban
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___


— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)


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

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

[NTG-context] Re: Slow sreach with new mailing list interfache

2023-07-17 Thread Taco Hoekwater
Hi,


> On 16 Jul 2023, at 13:49, Pablo Rodriguez  wrote:
> 
> On 7/16/23 11:25, Michael Loescher wrote:
>> Hello,
>> 
>> searching the mailing list is very slow recently (since the new
>> interface hast been established). For example searching for "font"
>> takes 20 seconds for the results to show up. Is it only me
>> experiencing this phenomenon or ist it a general problem?
> I’m experiencing the delay too, Michael.
> 
> I wonder whether this is a general issue with the HyperKitty interface.

There are a lot of messages in the ntg-context archive, which is likely causing 
the problem. Officially, the search engine is a plug-in so perhaps it can be 
switched out for a faster one. I’ll see if I can investigate that in the near 
future. Meanwhile, you can just use the mail-archive search engine. 
https://www.mail-archive.com/search?l=ntg-context%40ntg.nl=context=1

> 
> BTW, it is really a pity that the new interface doesn’t consider all
> messages send from and to the list as with the address of the mailing
> list itself.
> 
> This would avoid non-intended private replies.

I do not have that? If I press “Reply” in my mailer it goes to the list.

Best wishes,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)


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

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

[NTG-context] Re: Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2023-07-10 Thread Taco Hoekwater
Hi,

Sorry about these messages. Bad permissions after server restore.

Best wishes,
Taco

> On 9 Jul 2023, at 20:01, Cron Daemon  wrote:
> 
> rsync: [generator] failed to set times on 
> "/var/www/aanhet.net/context/htdocs/.": Operation not permitted (1)
> rsync: [generator] failed to set times on 
> "/var/www/aanhet.net/context/htdocs/context/latest": Operation not permitted 
> (1)
> rsync: [receiver] mkstemp 
> "/var/www/aanhet.net/context/htdocs/.ctan.lsr.sgflWo" failed: Permission 
> denied (13)
> rsync: [receiver] mkstemp 
> "/var/www/aanhet.net/context/htdocs/.document-2.htm.5abSRS" failed: 
> Permission denied (13)
> rsync: [receiver] mkstemp 
> "/var/www/aanhet.net/context/htdocs/.download-1.htm.vr439u" failed: 
> Permission denied (13)
> rsync: [receiver] mkstemp 
> "/var/www/aanhet.net/context/htdocs/.download-2.htm.m4Kr82" failed: 
> Permission denied (13)
> rsync: [receiver] mkstemp 
> "/var/www/aanhet.net/context/htdocs/.logo-ade.png.59SWaO" failed: Permission 
> denied (13)
> rsync: [receiver] mkstemp 
> "/var/www/aanhet.net/context/htdocs/.logo-cts.png.jTUUas" failed: Permission 
> denied (13)
> rsync: [receiver] mkstemp 
> "/var/www/aanhet.net/context/htdocs/.logo-pod.png.3izuIx" failed: Permission 
> denied (13)
> rsync: [receiver] mkstemp 
> "/var/www/aanhet.net/context/htdocs/.rss.xml.Q3zR2F" failed: Permission 
> denied (13)
> rsync: [receiver] mkstemp 
> "/var/www/aanhet.net/context/htdocs/.show-fil.pdf.AV0T91" failed: Permission 
> denied (13)
> rsync: [receiver] mkstemp 
> "/var/www/aanhet.net/context/htdocs/context/latest/.cont-lmt.zip.J0XfB5" 
> failed: Permission denied (13)
> rsync: [generator] failed to set times on 
> "/var/www/aanhet.net/context/htdocs/general/manuals": Operation not permitted 
> (1)
> rsync: [receiver] mkstemp 
> "/var/www/aanhet.net/context/htdocs/context/latest/.cont-mpd.zip.kNfQs7" 
> failed: Permission denied (13)
> rsync: [receiver] mkstemp 
> "/var/www/aanhet.net/context/htdocs/context/latest/.cont-ppc.zip.3gozgp" 
> failed: Permission denied (13)
> rsync: [receiver] mkstemp 
> "/var/www/aanhet.net/context/htdocs/context/latest/.cont-sci.zip.jzutxP" 
> failed: Permission denied (13)
> rsync: [receiver] mkstemp 
> "/var/www/aanhet.net/context/htdocs/context/latest/.cont-tmf.zip.uGUuq6" 
> failed: Permission denied (13)
> rsync: [receiver] mkstemp 
> "/var/www/aanhet.net/context/htdocs/context/latest/.cont-tst.7z.BdU9MR" 
> failed: Permission denied (13)
> rsync: [receiver] mkstemp 
> "/var/www/aanhet.net/context/htdocs/context/latest/.cont-tst.tar.xz.1wVZiX" 
> failed: Permission denied (13)
> rsync: [receiver] mkstemp 
> "/var/www/aanhet.net/context/htdocs/context/latest/.cont-tst.zip.neMzS8" 
> failed: Permission denied (13)
> rsync: [receiver] mkstemp 
> "/var/www/aanhet.net/context/htdocs/general/manuals/.cld-mkiv.pdf.U8OT16" 
> failed: Permission denied (13)
> rsync: [receiver] mkstemp 
> "/var/www/aanhet.net/context/htdocs/general/manuals/.lowlevel-lines.pdf.Th1bwo"
>  failed: Permission denied (13)
> rsync: [receiver] mkstemp 
> "/var/www/aanhet.net/context/htdocs/general/manuals/.luametatex.pdf.B0oPCw" 
> failed: Permission denied (13)
> rsync error: some files/attrs were not transferred (see previous errors) 
> (code 23) at main.c(1865) [generator=3.2.7]
> receiving incremental file list
> ./
> context/latest/
> general/manuals/
> 
> sent 188,908 bytes  received 47,768,727 bytes  4,170,229.13 bytes/sec
> total size is 562,026,290  speedup is 11.72
> _______
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)


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

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

[NTG-context] Server downtime

2023-07-04 Thread Taco Hoekwater
Hi all,

Many of you have noticed that https://wiki.contextgarden.net and 
https://www.ntg.nl are down, as well as all the mailing lists at domain ntg.nl, 
and a few less obvious websites like  source.contextgarden.net and 
modules.contextgarden.net.

The ntg.nl/wiki.contextgarden.net server’s disk (raid) controller crashed so 
badly that we did not trust it to come back up in read-write mode, so we had to 
rebuild the disk setup as read-only and then copy its revived data to a 
different machine that we also still had to configure. This is a complicated 
and slow process, unfortunately.

Our apologies for the long down time! 

As of now, we at least have working emails for the mailing lists again. 
Tomorrow we will try to get the simple websites back up. We hope to at least be 
able to restore www.ntg.nl, wiki.contextgarden.net, and the mailing list web 
interface. Getting the email subsystem back up was the main priority today.

More news later (sometime tomorrow)

All the best,

Taco (also from Robbert and Jules)



Dag Allemaal,

Velen van jullie hebben gemerkt dat https://wiki.contextgarden.net en 
https://www.ntg.nl onbereikbaar zijn, evenals alle mailinglijsten op domein 
ntg.nl, en een paar minder voor de hand liggende websites zoals source. 
contextgarden.net en modules.contextgarden.net.

De schijfcontroller (raid) van de ntg.nl/wiki.contextgarden.net-server crashte 
zo erg dat we het niet vertrouwden om hem terug te laten komen in 
lees-schrijfmodus, dus moesten we de schijfconfiguratie herstellen als 
alleen-lezen om vervolgens zijn nieuw leven ingeblazen data te  kopiëren naar 
een andere machine die we ook nog moesten configureren. Dat is helaas een 
ingewikkeld en vrij langzaam proces.

Onze excuses voor de lange downtime!

Vanaf nu hebben we in ieder geval weer werkende e-mails voor de mailinglijsten. 
Morgen gaan we proberen de simpele websites weer aan de praat te krijgen. We 
hopen in ieder geval www.ntg.nl, wiki.contextgarden.net en de web-interface van 
de mailinglijsten te kunnen herstellen. Voor vandaag was het heropstarten van 
de e-mail faciliteiten de eerste prioriteit.

Later (ergens morgen) meer nieuws

Al het beste,

Taco (ook van Robbert en Jules)



— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)


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

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

Re: [NTG-context] context-on-web broken

2023-06-26 Thread Taco Hoekwater via ntg-context
Dear Miguel,

> On 25 Jun 2023, at 22:48, Miguel Diaz via ntg-context  
> wrote:
> 
> Hi everyone,
> and sorry if this is not the right place to post.
> 
> Context-on-web is no more accesible.

What is this context-on-web? I tried searching, but context+web produces rather 
useless results.

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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Wiki Down?

2023-06-16 Thread Taco Hoekwater via ntg-context
Hi Keith,

> On 16 Jun 2023, at 13:04, Keith McKay via ntg-context  
> wrote:
> 
> I am getting "safari can't find server"  for the wiki so I checked on 
> isitdownrightnow.com and it confirms it is down.

Must have been some transport issue. The server is up and has not been down 
today at all. If it keeps appearing to be down, try a traceroute tool to see 
where the problem is, e.g. https://ping.eu/traceroute/

Best wishes,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)


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

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


Re: [NTG-context] Server certificate of wiki server run out

2023-06-08 Thread Taco Hoekwater via ntg-context



> On 8 Jun 2023, at 12:21, Henning Hraban Ramm via ntg-context 
>  wrote:
> 
> Hi Mojca,
> 
> the server certificate is outdated since a few hours, can you renew it?

Fixed for now,

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

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


Re: [NTG-context] Mailing list problems

2023-05-31 Thread Taco Hoekwater via ntg-context
Hi!

Both problems should be fixed now. If you still do not see the new posts in the 
ntg-context html archive page at 
https://mailman.ntg.nl/pipermail/ntg-context/2023/thread.html , force a hard 
reload of the page in your browser.

Best wishes,
Taco

> On 28 May 2023, at 18:50, Mikael Sundqvist via ntg-context 
>  wrote:
> 
> Hi!
> 
> See https://tex.stackexchange.com/q/687020/52406. The OP there cannot 
> subscribe.
> 
> Looking at the web archive, it indeed seems to be missing several
> emails: https://www.mail-archive.com/ntg-context@ntg.nl/
> 
> I do not know who handles this, but... Ping!
> 
> /Mikael
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)


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

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


Re: [NTG-context] Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2023-05-29 Thread Taco Hoekwater via ntg-context
Hi all,

Sorry about all these. The server had a network failure earlier today (fixed 
now)

Best wishes,
Taco

> On 29 May 2023, at 15:14, Cron Daemon via ntg-context  
> wrote:
> 
> rsync: getaddrinfo: rsync.pragma-ade.nl 873: Temporary failure in name 
> resolution
> rsync error: error in socket IO (code 10) at clientserver.c(139) 
> [Receiver=3.2.7]
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Context Live

2023-05-24 Thread Taco Hoekwater via ntg-context


> On 24 May 2023, at 17:10, Jeroen via ntg-context  wrote:
> 
> I would like to setup a website with a live Context renderer like 
> live.contextgarden.net 
> Is there a procedure how to setup such a live setup?

It is a chroot jail and a few scripts to integrate with the web browser. I will 
send you the files via private email.

Best wishes,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)


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

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


Re: [NTG-context] Module authors: please update your metadata

2023-05-16 Thread Taco Hoekwater via ntg-context


> On 15 May 2023, at 19:01, Henning Hraban Ramm via ntg-context 
>  wrote:
> 
> Am 15.05.23 um 18:57 schrieb Jairo A. del Rio via ntg-context:
>> I reuploaded my module. Let me know if problems persist. Thank you very much!
>> Check again, please.
> 
> Now it’s there.
> 
> CTAN sync should happen every night.

Starting tonight, because CTAN exports have to be added by hand to an rsync 
script, I did that just now.

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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Software upgrade for ntg and contextgarden server 6 April

2023-04-11 Thread Taco Hoekwater via ntg-context
Hi,

So … the server now runs Ubuntu 22.04. Jay!

This was a much harder upgrade though. Various things were wrong, and are 
likely still a bit wrong in places. Robbert had to rescue the network 
configuration that went missing completely after the upgrade (requiring a trip 
to the data center). Various packages have been discontinued by our linux 
distribution, including the version of the mailing list software that we use 
(so that had to be installed manually). The new version of php is much stricter 
than the old version (so some website hacks were also needed). Et cetera. It 
has been a “process” ...

The basic functionality appears to be back online, although the web interface 
to the mailing lists does not work yet (we will try to fix that tomorrow). But 
there are likely to be small problems with other services still. Please *do* 
let me know if you notice something odd!

In any case, today was the last of the big software update procedures (at least 
for the next year or so).

Best wishes,
Taco and Jules and Robbert




> On 6 Apr 2023, at 18:20, Taco Hoekwater  wrote:
> 
> If you notice anything wrong, please warn either me personally or 
> ntg-ser...@ntg.nl. 
> 
> Unless major problems develop, we will continue the update process on Tuesday 
> afternoon. 



— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)


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

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


Re: [NTG-context] Software upgrade for ntg and contextgarden server 6 April

2023-04-06 Thread Taco Hoekwater via ntg-context
Hi again, from the other side!

Jules has just finished with all the updating and restarting for now, and at 
first glance everything seems to be OK. 

The server now runs Ubuntu 20.04. Jay!

If you notice anything wrong, please warn either me personally or 
ntg-ser...@ntg.nl. 

Unless major problems develop, we will continue the update process on Tuesday 
afternoon. 

Best wishes,
Taco and Jules

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

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


[NTG-context] Software upgrade for ntg and contextgarden server 6 April

2023-04-05 Thread Taco Hoekwater via ntg-context
Hi all,

Tomorrow an attempt to upgrade the software on the ntg.nl / 
server-nl.contextgarden.nl server will be made. 

This means that various services will probably be offline for a while during 
the afternoon (CET timezone). Affected will be the NTG website, all the @ntg.nl 
mailing lists, the ConTeXt wiki, and some other subsites of contextgarden.net. 

We expect to the outage to last a few hours at most.

I do not have an exhaustive list of potentially affected services and lists, so 
this message is sent out to the two largest mailing lists on the server. If you 
know of some other person or group that is likely going to be worried about a 
few hours of outage, please forward this message to them.

Best wishes,
Taco


— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)


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

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


Re: [NTG-context] English-Vietnamese facing pages

2023-04-03 Thread Taco Hoekwater via ntg-context


> On 3 Apr 2023, at 11:54, jbf via ntg-context  wrote:
> 
> Am always up for a challenge, but hope this one is not beyond my 
> possibilities! Have a request to produce a book with English-Vietnamese 
> facing pages. The text doesn't have to be strictly in sync, but generally so. 
> The only ConTeXt guidelines I think I have at the moment are (1) an old 
> module called m-streams (which I am assuming is now obsolete), and (2) an 
> exchange of emails on this list over a decade about bilingual typesetting.
> 
> It won't bother me too much if I have to tell the intending author and his 
> editor that this might be beyond me, but before taking that stance, I have a 
> couple of simple questions that someone might be able to respond to. And, 
> BTW, the Vietnamese font is not the problem. Tex Gyre Pagella seems to be 
> able to cope with that at least!
> 
> Q 1: Has anybody reading this actually produced a bilingual book (it doesn't 
> have to be en-vn) with ConTeXt? And if so would you be prepared to offer me 
> some basic guideline

Way, way back when, I did a document in NL + EN by creating two separate pdfs 
for the page bodies only and using a third context doc to included those pages 
alternated, with the correct headers added in that third document. Not a ’nice’ 
solution at all, but it worked for me. (this was in the nineties, though)

> 
> Q 2: There is some guidance from Wolfgang on 
> https://wiki.contextgarden.net/Columns towards the end of that page. I tried 
> two or three pages of the first chapter of the book, placing English in 
> outputstream[one] and the Vietnamese in outputstream[two] and kind of got a 
> suitable result except that the last paragraph of both languages ended up 
> BEFORE the chapter began. No idea why. The rest seemed okay. So my question 
> is whether or not Wolfgang's sample (where he says 'a simple example but I 
> had to write the splitter myself') would be sufficient for me to put the book 
> together?
> 
> Q 2: I suppose the third question is whether, since LMTX, there has been any 
> further development in the 'streams' mechanism that might help me?
> 
> Julian
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)


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

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


Re: [NTG-context] contextgarden wiki

2023-03-30 Thread Taco Hoekwater via ntg-context


> On 30 Mar 2023, at 00:23, Jim via ntg-context  wrote:
> 
> At https://wiki.contextgarden.net/Wiki:About there is a Contact section,
> including
> 
>For general questions (any questions!), start a new topic on the
>Context_wiki:Discussions page.
> 
>If you need the help of an administrator, there is a list of
>administrators at Context_wiki:Administrators.
> 
> There are *no* topics on the Discussions page, and the Administrators page
> doesn't exist.  This causes me to be concerned that no one is there.
> 
> Is anyone there?

Yes! And I fixed the missing interwiki prefix. The pages actually exist, but 
the link prefix didn’t.

> In case anyone wonders why I am asking... I was looking at the wiki page
> for "\listing", which is no longer in Mk IV (and may also not be in Mk II
> (I didn't check)).  In 2015 both Hans and Wolfgang mentioned in this list
> that the command was gone.

You meant "\nolist”. I am sure there are more obsolete command pages, but they 
are not easy to find. I edited this page by using the also obsolete \couplepage 
as an example. 

Berst wishes,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)


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

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


Re: [NTG-context] How to prevent \subject from being the last line

2023-02-20 Thread Taco Hoekwater via ntg-context


> On 20 Feb 2023, at 16:21, Pablo Rodriguez via ntg-context 
>  wrote:
> 
> On 2/20/23 15:47, Sylvain Hubert via ntg-context wrote:
>> [...] 
>> Btw, just in case if anyone shares this idea: is it possible to have a
>> zulip channel for ConTeXt? It's free for open source projects, has a
>> interface for existing mailing lists, and has a reasonable builtin
>> search engine, which could serve as another de-facto documentation,
>> considering the fact that very few of the massive useful use cases asked
>> in the mailing lists so far have been transcribed into official
>> documentations.
> 
> Hi Sylvain,
> 
> one main documentation source is the wiki.
> 
> Sorry, but I‘m afraid it is hard for me to understand how adding another
> information source for ConTeXt is a gain.

I had almost forgotten this, but there is also a dedicated Google Search engine
that Mojca set up more than a decade ago:

  https://cse.google.com/cse?cx=016640200293943433883%3Aw-6slqs1kjg

Some of the predefined urls may be obsolete now, I have not checked those in a 
while. Still, it seems to work quite well still, and it could be integrated 
with the wiki with a bit of effort, I guess.


Best wishes,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)


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

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


Re: [NTG-context] atan2 function

2022-10-14 Thread Taco Hoekwater via ntg-context


> On 14 Oct 2022, at 14:26, Alan Braslau via ntg-context  
> wrote:
> 
> Are you using MP in scaled integer or in doubleprecision mode?
> 
> I have not looked into the MP angle operator code, but my suspicion is that 
> it is based on some super-clever John Hobby scheme optimized for scaled 
> integer calculations.

The scaled version of “angle” is a handwritten approximation in web, not using
any math library. I really doubt that that code is faster than calling atan2()
on a modern machine, but I’ve kept it in because using a lib might give 
slightly 
different results.

The double version of “angle" uses atan2() internally already, so that the 
atantwo macro is just duplicating the internals for that case.

The decimal version of “angle’ uses a dedicated decNumberAtan2() library call.

> 
> Hans has integrated the entire math library (and more) into lmtx.
> 
> On 13/10/22 13/10/22, 13:51, Thangalin via ntg-context wrote:
>> Thank you, Max.
>> The angle function doesn't appear to provide the same calculation as
>> my atantwo in all cases.
>> https://pdfhost.io/v/Oqj7XmibJ_scaled
>> The shorter line segment should be directed towards the vertex closest
>> to the longer line segment. I tried using both:
>> theta := angle( dx, dy );
>> theta := angle( dy, dx );
>> Neither made a difference, in some cases the angle differs from what I'd 
>> expect.
>> My implementation is based on the first version given here:
>> https://en.wikipedia.org/wiki/Atan2#Definition_and_computation
>> I have something that works, so this is more of a curiosity as to
>> there being a difference between my implementation of atantwo and the
>> angle function.
>> Here's an example with many lines and the angle function:
>> https://pdfhost.io/v/1T4jgBnxh_scaled
>> On Wed, Oct 12, 2022 at 11:42 PM Max Chernoff  wrote:
>>> 
>>> Hi,
>>> 
>>>> How is atan2 called? I rolled my own as follows:
>>> 
>>>> Is atan with two parameters supposed to behave like atan2?
>>> 
>>> At mp-math.mpxl:167 there is:
>>> 
>>>vardef atan   primary x = angle(1,x)   enddef ;
>>> 
>>> The MetaPost manual says:
>>> 
>>>The angle operator takes a pair and computes the two-argument
>>>arctangent; i.e., angle is the inverse of the dir operator
>>> 
>>> So it looks like "angle" is the function that you want for "atan2".
>>> 
>>> Thanks,
>>> -- Max
>> ___
>> If your question is of interest to others as well, please add an entry to 
>> the Wiki!
>> maillist : ntg-context@ntg.nl / 
>> https://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : https://contextgarden.net
>> ___
> 
> \
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



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

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


[NTG-context] Fwd: [CG Wiki] ConTeXt with VS Code (https://wiki.contextgarden.net/VSCode)

2022-10-03 Thread Taco Hoekwater via ntg-context
Message below is forwarded from the wiki mailing list.

Anybody?

> Begin forwarded message:
> 
> From: Michal Kvasnička 
> Subject: [CG Wiki] ConTeXt with VS Code 
> (https://wiki.contextgarden.net/VSCode)
> Date: 20 September 2022 at 16:31:06 CEST
> To: w...@contextgarden.net
> 
> Hi!
> 
> I tried to use the VS Code extension described in 
> https://wiki.contextgarden.net/VSCode <https://wiki.contextgarden.net/VSCode> 
> but in
> 
> xxx
> 
> I got the following error:
> 
> /home/qasar/Stažené/cont/tex/texmf-context/context/data/vscode/extensions/context/node_modules/vsce/out/package.js:136
> return (translations ?? [])
>   ^
> 
> SyntaxError: Unexpected token '?'
> at wrapSafe (internal/modules/cjs/loader.js:915:16)
> at Module._compile (internal/modules/cjs/loader.js:963:27)
> at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
> at Module.load (internal/modules/cjs/loader.js:863:32)
> at Function.Module._load (internal/modules/cjs/loader.js:708:14)
> at Module.require (internal/modules/cjs/loader.js:887:19)
> at require (internal/modules/cjs/helpers.js:74:18)
> at Object. 
> (/home/qasar/Stažené/cont/tex/texmf-context/context/data/vscode/extensions/context/node_modules/vsce/out/main.js:27:19)
> at Module._compile (internal/modules/cjs/loader.js:999:30)
> at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
> 
> Is there any way to discuss it with the extension developer? Can I find 
> somewhere the extension source code (on github or so)? Many thanks.
> 
> Note: I downloaded the last ConTeXt and compiled it in its directory. But 
> I've got an older version (part of TeXLive) installed on my Ubuntu 22.04, 
> too. I hope this is not the cause of the problem.
> 
> Best wishes,
> Michal
> 
> ___
> Wiki mailing list
> w...@contextgarden.net
> https://lists.contextgarden.net/mailman/listinfo/wiki

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



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

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


Re: [NTG-context] Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2022-09-07 Thread Taco Hoekwater via ntg-context
As Hraban said: it is my script that checks for new ConTeXt uploads by Hans, 
which currently cannot connect to Hans’ server. 

Usually that is because Hans is reconfiguring something in his internal network 
at Pragma, and it will eventually sort itself out.

Best wishes,
Taco

> On 7 Sep 2022, at 16:51, Henning Hraban Ramm via ntg-context 
>  wrote:
> 
> Don’t panic, all is well with the list. Nothing to do, nothing to see here.
> 
> Taco included the mailing list in the message recipients of the cron demon in 
> order to get notified of ConTeXt updates.
> Seems like there is a connection problem with the pragma servers, but it 
> doesn’t affect the list.
> 
> Hraban
> 
> Am 07.09.22 um 16:32 schrieb Ursula Hermann via ntg-context:
>> I got the same Mail.
>> Uschi Hermann
>> -Ursprüngliche Nachricht-
>> Von: ntg-context  Im Auftrag von Jeong Dal via 
>> ntg-context
>> Gesendet: Mittwoch, 07. September 2022 16:27
>> An: mailing list for ConTeXt users 
>> Cc: Jeong Dal 
>> Betreff: Re: [NTG-context] Cron  
>> /var/www/aanhet.net/context/bin/cron/context-mirror
>> Dear Taco,
>> The following mail came every hour since a few days ago.
>> But I don’t get any other mail from the list.
>> I think that there is something wrong between my mail system and the server.
>> However, I don’t know how to solve it.
>> Would you please tell me what to do?
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



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

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


Re: [NTG-context] searching in the source browser

2022-09-06 Thread Taco Hoekwater via ntg-context


> On 5 Sep 2022, at 20:28, Henning Hraban Ramm via ntg-context 
>  wrote:
> 
> Hi, this is probably for Taco:
> 
> Is there a possibility in the source browser to search for macros 
> (\something) or anything containing dots (logs.errors)?
> Because neither “simple” nor with Lua patterns I get any results.

That is something we can look at next week. 

The sourcebrowser is using an lpeg-based lua script to create its search index, 
meaning
it is not impossible to extend it. :)

Best wishes,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



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

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


Re: [NTG-context] update old MP code

2022-09-01 Thread Taco Hoekwater via ntg-context


> On 1 Sep 2022, at 18:28, Henning Hraban Ramm via ntg-context 
>  wrote:
> 
> Am 01.09.22 um 15:40 schrieb Taco Hoekwater:
>> Adding grouping makes sense:
>>> 
>>> def Moire(expr size)(text densities)=
>> begingroup
>> endgroup
>> As that at least makes it an expression instead of a statement list.
>> But also depthless() is never defined?
> 
> Oops, I forgot to copy that part (confusing source...)
> 
> It still doesn’t compile:

Missing definition of “width()”, from this line:

> 
>  xs := width(q)-width(p);

Adding that should do the trick.

Best wishes.

Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



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

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


Re: [NTG-context] update old MP code

2022-09-01 Thread Taco Hoekwater via ntg-context
Hi Hraban,

Adding grouping makes sense:
> 
> def Moire(expr size)(text densities)=

begingroup

>  save dn,a,b,k,labit,n,p,q,s,xs;
>  n := 32;
>  dn := 0;
>  for i := densities:
>d[incr dn] := abs(i);
>if i>1: labit[dn]:=1; fi
>  endfor
>  a := min(d[1],d[dn]);
>  b := max(d[1],d[dn]);
>  image(
>for i=-n upto n:
> draw (0,i*in/a)--(size,i*in/b);
>  %withpen pencircle scaled 3/5defaultthickness;
>endfor
>for i=1 upto dn:
>  k:=(a/d[i]-1)/(a/b-1);
>  if known labit[i]:
>string s; s:=decimal(d[i]); xs:=0;
>picture p,q; q := p := depthless(s);
>if i=dn:
>  q := depthless(s & "  lpi");
>  xs := width(q)-width(p);
>fi
>label.top(q, (k*size+1/2xs, n*in/a+1.5mm));
>  fi
>  draw (k*size, n*in/a+1.5mm)--(k*size, k[n*in/a,n*in/b]+.5mm);
>  draw (k*size, -n*in/a-1.5mm)--(k*size, -k[n*in/a,n*in/b]-.5mm);
>endfor
>  )

endgroup

> enddef;
> draw Moire(57.5mm)(200, 175, 150, 125, 100, 75);
> % ulshiftedto (142mm, 38.5mm);
> \stopreusableMPgraphic


As that at least makes it an expression instead of a statement list.

But also depthless() is never defined?

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



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

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


Re: [NTG-context] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?

2022-08-15 Thread Taco Hoekwater via ntg-context


> On 15 Aug 2022, at 13:02, amano.kenji via ntg-context  
> wrote:
> 
> Typesetting furigana over kanji characters is common for japanese educational 
> materials.

Yes, using the \ruby command. That used to require a module, but is now in the 
core. 

The wiki page on CJK fonts should probably be updated (new fonts, broken ftp 
links, etc.) 
but at least it mentions this:

  https://wiki.contextgarden.net/CJK_fonts

Best wishes,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



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

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


Re: [NTG-context] issue with lpath

2022-08-05 Thread Taco Hoekwater via ntg-context


> On 4 Aug 2022, at 18:39, Pablo Rodriguez via ntg-context  
> wrote:
> 
> On 8/4/22 17:32, Taco Hoekwater via ntg-context wrote:
>> [...]
>> PS This sort of confusing filtering is why I do most of my xml
>> processing from the lua end, where it is much clearer to me what is
>> what.
> Many thanks for clarifying the issue, Taco.
> 
> BTW, according to the last slide from
> https://meeting.contextgarden.net/2019/talks/02-xmlprocessing/02-xmlprocessing.pdf,
> you had plans to document how to deal with XML in proper Lua.
> 
> I wonder whether you are still interested in adding this information to
> the manual.

In theory, yes. In reality, life is too short, and it is on the bottom of an 
ever rising pile of things to do. :sadface

Best wishes,
Taco

Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



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

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


Re: [NTG-context] issue with lpath

2022-08-04 Thread Taco Hoekwater via ntg-context


> On 4 Aug 2022, at 16:07, Hans Hagen  wrote:
> 
> On 8/4/2022 12:22 PM, Taco Hoekwater via ntg-context wrote:
>>> On 3 Aug 2022, at 15:54, Pablo Rodriguez via ntg-context 
>>>  wrote:
>>> 
>>> BTW, is there any way to rephrase "{h3 + blockquote}" in proper Lua?
>> I was wondering about that as well, and I really had no clue how to do that. 
>> Some
>> reading and studying later, I realised that there is a preceding-sibling:: 
>> axis.
>> That is not documented in xml-mkiv.pdf I think, but it inherited from xpath, 
>> and that means this works:
>>   \xmlsetsetup{#1}{blockquote/preceding-sibling::h3[-1]/} {xml:section}
>> “Take all blockquotes, then tests their immediate preceding siblings (index 
>> [-1]) that are h3."
>> But the CSS version is nicer. Still, both solutions fail on generic input.
>> Sorry, out of clues
> \startbuffer[demo]
> ...


That puts the whole  content inside the \section, and I don’t think that 
was the intent. I understood that Pablo only wants the “h3” node.

In the original request, the CSS “{h3 + blockquote}” matches a “blockquote” 
anyplace where it is immediately preceded by a “h3” (and nowhere else). 
After that, some trickery was needed to try and get back to the actual “h3”. 

My trick above with preceding-sibling above also gets the “h3” that is 
immediately followed by a “blockquote”, but it got easily
confused if there were multiple “h3” or “blockquote” objects in the input.

Best wishes,
Taco

PS This sort of confusing filtering is why I do most of my xml processing from 
the lua end, where it is much clearer to me what is what.

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



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

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


Re: [NTG-context] issue with lpath

2022-08-04 Thread Taco Hoekwater via ntg-context


> On 3 Aug 2022, at 15:54, Pablo Rodriguez via ntg-context  
> wrote:
> 
> BTW, is there any way to rephrase "{h3 + blockquote}" in proper Lua?


I was wondering about that as well, and I really had no clue how to do that. 
Some
reading and studying later, I realised that there is a preceding-sibling:: 
axis. 

That is not documented in xml-mkiv.pdf I think, but it inherited from xpath, 
and that means this works:

  \xmlsetsetup{#1}{blockquote/preceding-sibling::h3[-1]/} {xml:section}

“Take all blockquotes, then tests their immediate preceding siblings (index 
[-1]) that are h3."

But the CSS version is nicer. Still, both solutions fail on generic input.

Sorry, out of clues


Best wishes,Taco


— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



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

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


Re: [NTG-context] issue with lpath

2022-08-03 Thread Taco Hoekwater via ntg-context


> On 2 Aug 2022, at 21:14, Pablo Rodriguez via ntg-context  
> wrote:
> 
> Dear list,
> 
> 
> I need an lpath to select the h3 node above, but only the one with "h3 +
> blockquote" as a CSS selector (which could be added the lpath "../h3"
> after).

Lpath supports CSS selectors between curly braces as parts, so simply:

  \xmlsetsetup{#1}{{h3 + blockquote}/../h3} {xml:section}

should do. The xml-mkiv.pdf manual has lots of other lpath examples as well.

Best wishes,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



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

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


Re: [NTG-context] How to switch off the numbering of a float in a CLDocument?

2022-07-21 Thread Taco Hoekwater via ntg-context


> On 21 Jul 2022, at 13:18, Willi Egger via ntg-context  
> wrote:
> 
> Hraban thank you for your answer.
> 
> I tried diffrent approaches in the meantime, however I am unable to get it 
> working.
> 
> What is wrong with this code? — The code woks a for the context.framedtext()
> 
> \setupexternalfigures[location={local,default}]
> 
> \startluacode
> 
>   function Foto_page() --thirddata
> 
>  context.startplacefigure({number="",textstyle="red",title="A Test"})
>context.externalfigure("{cow.pdf}",{width="0.5\\textwidth"}) 

It is subtle, but you need:

   context.externalfigure({“cow.pdf"},{width="0.5\\textwidth"}) 

A “lua table” becomes [] stuff, a “lua string” becomes {} stuff. Your original 
resulted in

  \externalfigure{{cow.pdf}}[width={0.5\textwidth}]

Best wishes,
Taco

PS \enabletrackers[context.*]


>  --context.framedtext(
>   --  {frame="on",style="\\bfd"},
>   --  "{This is a test}")
>  context.stopplacefigure()
>   end
>   
> \stopluacode
> 
> \define\Test{\ctxlua{Foto_page()}}
> 
> \starttext
>   \strut
>   \Test
> \stoptext
> 
> KR
> Willi
> 
>> On 18 Jul 2022, at 20:56, Henning Hraban Ramm via ntg-context 
>>  wrote:
>> 
>> Am 18.07.22 um 20:31 schrieb Willi Egger via ntg-context:
>>> Hi all,
>>> I wanted to place a figure in a cld. The example in the cld manual does not 
>>> reveal how to influence bahavior except for the caption.
>>> context.placefigure(
>>> “caption”,
>>>   function() context.externalfigure({i}, { width = "\\textwidth" } ) end )
>>> Can anybody enlighten me?
>> 
>> Just use
>> 
>> context.startplacefigure({ option = "some", otheroption = "thing" })
>> ...
>> context.stopplacefigure()
>> 
>> Hraban
>> 
>> ___
>> If your question is of interest to others as well, please add an entry to 
>> the Wiki!
>> 
>> maillist : ntg-context@ntg.nl / 
>> https://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : https://contextgarden.net
>> ___
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



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

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


Re: [NTG-context] number of chapters

2022-07-20 Thread Taco Hoekwater via ntg-context


> On 20 Jul 2022, at 09:40, Henning Hraban Ramm via ntg-context 
>  wrote:
> 
> Am 20.07.22 um 09:06 schrieb Henning Hraban Ramm via ntg-context:
>> Hi,
>> how do I access the current chapter number and the number of chapters 
>> (including appendixes; after the first run)?
>> I’d like to setup a chapter color like
>> \definecolor[ChapterColor][
>>   s=1,v=1,
>>   h=360*\namedstructurevariable{chapter}{number}/\numberofchapters,
>> ]
>> and use it for a thumb index...
>> (I can’t access the wiki ATM; downforeveryoneorjustme.com says it would be 
>> just me.)
> 
> Ok, I can access the wiki via Tor and found
> 
> \somenamedheadnumber{chapter}{current}
> \somenamedheadnumber{chapter}{last}

These are expandable

> 
> or
> 
> \someheadnumber[chapter][current]
> \someheadnumber[chapter][last]

These are not
> 
> What’s the difference?
> 
> And even if I use \definecolor within a setup, I get the same color for every 
> chapter – how and where must I delay expansion?
> 
> \usemodule[visual]
> 
> \startsetups[MyChapterSetup]
> \definecolor[MyChapterColor][h={360*\somenamedheadnumber{chapter}{current}/\somenamedheadnumber{chapter}{last}},s=1,v=1]

\definecolor[MyChapterColor][h={\the\numexpr 
360*\somenamedheadnumber{chapter}{current}/\somenamedheadnumber{chapter}{last}\relax},s=1,v=1]

Best wishes,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



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

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


Re: [NTG-context] What is going wrong with this use of --mode for switching language?

2022-07-08 Thread Taco Hoekwater via ntg-context


> On 8 Jul 2022, at 11:42, Gerben Wierda via ntg-context  
> wrote:
> 
> I have this minimal example:
> 
> \startmode[EL]
> \setuplanguage[el][patterns={el}]\mainlanguage[el]

That (‘el’) is a non-existent language, so it never becomes active.

Best wishes,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



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

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


Re: [NTG-context] "pragma-ade.com" is now a domain parking page

2022-07-01 Thread Taco Hoekwater via ntg-context


> On 1 Jul 2022, at 09:46, Henning Hraban Ramm via ntg-context 
>  wrote:
> 
> Am 01.07.22 um 09:33 schrieb Hans Hagen via ntg-context:
>> On 7/1/2022 9:02 AM, Taco Hoekwater via ntg-context wrote:
>>> Well,
>>> 
>>> Hans had been complaining about networksolutions not allowing him to move 
>>> the domain away from them, so I guess this was to be expected.
>> indeed, and transfer is pending for ages now ... looks liek they don't like 
>> to transfer
>> make me wonder if we should just ditch that domain and stick to the nl one 
>> only, saves money too
> 
> Well, we must change a lot of dead links on the wiki now.
> 
> Taco, can you automate it? Otherwise I’ll start...

I do not know of a clean way to automate that. It may be possible, but then it 
is outside of my knowledge set. So yeah, by hand.

Best wishes,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] "pragma-ade.com" is now a domain parking page

2022-07-01 Thread Taco Hoekwater via ntg-context
asd-rc0001-cr101-be60-2.core.as33915.net (213.51.64.5)  168.494 ms  
> 169.741 ms  169.712 ms
>12  zl-rc0001-dr101-ae0-0.core.as9143.net (213.51.158.47)  178.211 ms  
> 178.195 ms  245.442 ms
>13  * * *
>14  * * *
>15  * * *
>16  * * *
>17  * * *
>18  * * *
>19  * * *
>20  * * *
>21  * * *
>22  * * *
>23  * * *
>24  * * *
>25  * * *
>26  * * *
>27  * * *
>28  * * *
>29  * * *
>30  * * *
> 
> 
> Can anyone else confirm this issue?
> 
> -- Max
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] Graphviz and ConTeXt

2022-06-23 Thread Taco Hoekwater via ntg-context
Hi,

You could just convert these separately to pdf/svg/jpg/png and then load them 
as \externalfigure. 

You could also use the filter module to be able to take them inline into the 
ConTeXt code:


\usemodule[filter]

\define[1]\ReadFigure{\externalfigure[#1]}

\defineexternalfilter[graphviz]
  [cache=yes,
   readcommand=\ReadFigure,
   output={\externalfilterbasefile.pdf},
   filtercommand={dot -Tpdf -o "\externalfilterbasefile.pdf" 
"\externalfilterinputfile"}]
  
\starttext
\startTEXpage
\startgraphviz
digraph G {
main -> parse -> execute;
main -> init;
main -> cleanup;
execute -> make_string;
execute -> printf
init -> make_string;
main -> printf;
execute -> compare;
}
\stopgraphviz
\stopTEXpage
\stoptext


See the filter module documentation for more details about that.

Best wishes,
Taco

> On 23 Jun 2022, at 14:08, juh via ntg-context  wrote:
> 
> Dear all,
> 
> I have a legacy project that I shall convert to a new ConTeXt project. 
> 
> There are a lot of Graphviz dot-files. What shall I do with these? 
> 
> Any hints?
> juh
> -- 
> Autoren-Homepage: . http://literatur.hasecke.com
> Satiren & Essays: . http://www.sudelbuch.de
> Privater Blog:  http://www.hasecke.eu
> Netzliteratur-Projekt:  http://www.generationenprojekt.de
> 
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] Cyrillic UTF8 works, greek does not?

2022-06-22 Thread Taco Hoekwater via ntg-context


> On 22 Jun 2022, at 11:44, Gerben Wierda via ntg-context  
> wrote:
> 
> What am I doing wrong?


Either use   

  range={greekandcoptic,greekextended},

or

  preset=range:greek,

The presets are defined based on combinations of ranges. The preset 
"range:greek" is defined as:

\definefontfamilypreset
  [range:greek]
  [range={greekandcoptic,
  greekextended,
  ancientgreeknumbers}]

Best wishes,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] arm osx

2022-05-30 Thread Taco Hoekwater via ntg-context
Hi,


> On 29 May 2022, at 22:15, Keith McKay via ntg-context  
> wrote:
> 
> Hi Steffen
> 
> I have TeXshop setup on my mac mini M1 but I rarely use it.

I do not use TeXshop, but I did just upgrade to an M1 Mac, and I had some 
issues with
intel binaries 'sticking around’. Perhaps this page helps (esp. point 3)?

https://www.macrumors.com/how-to/tell-apps-optimized-for-m1-apple-silicon-macs/

Best wishes,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] Fwd: ConTeXt meeting registration

2022-05-25 Thread Taco Hoekwater via ntg-context
Hi all,

I just registered myself to attend the ConTeXt meeting in 2022. This is a good 
moment to remind you all of the
meeting (September 12-18, in Dreifelden  DE) and —especially— of the need to 
register if you plan to attend,
either in person or online!

There is no finished programme yet, so I can repeat the call for papers also. 
The theme for this meeting is

  digging deep

But, as in previous years, anything at all related to ConTeXt that you would 
like to share is an acceptable 
subject for a presentation, tutorial, discussion, Q session, demonstration, 
workshop, recital, sketch, or sermon.

More details are on the website:

  https://meeting.contextgarden.net/


Hoping to see many of you in Dreifelden,

Taco

> Begin forwarded message:
> 
> From: 16th ConTeXt Meeting Registration 
> Subject: t...@bittext.nl ConTeXt meeting registration
> Date: 25 May 2022 at 09:08:47 CEST
> To: cg-treasu...@contextgarden.net
> Reply-To: t...@bittext.nl
> 
> Hi Taco,
> 
> Taco Hoekwater has registered at 2022-05-25 09:08:47.


— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)





— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] ignore not closed tags in XML input

2022-05-16 Thread Taco Hoekwater via ntg-context


> On 16 May 2022, at 18:50, Pablo Rodriguez via ntg-context 
>  wrote:
> 
> On 5/16/22 17:30, Hans van der Meer via ntg-context wrote:
>> Can't you use an editor with grep, searching for something like the
>> pattern ?
> 
> Many thanks for your reply, dr. van der Meer.
> 
> If I want to typeset the whole book
> (https://seumasjeltzz.github.io/LinguaeGraecaePerSeIllustrata/), I will
> have to download and sanitize over 20 HTML files.

Which can be done with a couple of command lines. Xmllint usually does a good
job of cleaning up dodgy html input:

  xmllint --html --xmlout  > 

(As good as can be expected from a program, anyway).

> It is really a pity that ConTeXt cannot totally ignore any given XML elements.

This statement is a little unfair: the problem is exactly that your input is 
NOT proper XML.
 
If it was proper XML, ConTeXt would not have problems with it. ConTeXt 
explicitly has
the capability to handle XML files, which your input simply is not. In fact, it 
is
sloppy HTML-esque data that modern webbrowsers happen to be able to handle more 
or less
correctly. It is not valid HTML either, because valid HTML has to be valid 
SGML, which your
input clearly is not.

That said, Tools like xmllint exist for this stuff. Just write a small batch 
driver file in 
some scripting language ((power)shell, lua, python, perl, etc.) to preprocess 
the HTML 
stuff into clean XML, and you should be fine.

Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] Can I use language as a mode (set on the command line) and simplify this?

2022-05-11 Thread Taco Hoekwater via ntg-context


> On 10 May 2022, at 23:40, Gerben Wierda via ntg-context  
> wrote:
> 
> Fix

>> I was wondering if this can be simplified, e.g. by setting language on the 
>> command line instead, enable a mode derived from a language set on the 
>> command line, 

The language settings trigger a system mode, see

https://wiki.contextgarden.net/Modes#System_modes

Best wishes,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] a cross-reference query

2022-05-10 Thread Taco Hoekwater via ntg-context


> On 10 May 2022, at 04:03, jbf via ntg-context  wrote:
> 
> Can anyone give me a hint as to what I might be doing wrong? I realise that 
> usually these references call on page numbers or section numbers, but I don't 
> want/need (or do I?) to use those. I simply the reader to be able to click on 
> a hyperlink which takes them to the referenced entry.

Check for duplicates (referenced definitions with the same key). That problem 
has hit me a number of times.

Best wishes,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



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

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


Re: [NTG-context] How to place "Content" and other chapter-level titles the same vertical distance from the top?

2022-05-09 Thread Taco Hoekwater via ntg-context
ings. But when calling \completecontent or a similar
>> title that won't get a number, because the number isn't placed, it is 
>> vertically
>> higher on the page, but I need it to be printed the same height, as it it 
>> had an
>> invisible number.
>> 
>> I've tried adding strut (the code has it in two places), but don't know if 
>> I've
>> used it appropriately, and it didn't solve the problem.
>> 
>> --Joel
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] Citeproc-lua

2022-05-06 Thread Taco Hoekwater via ntg-context
Hi,

I had a quick look at this and it seems very extensible if-not-quite 
ConTeXt-ready right away.

On the input side, it reads a LaTeX .aux file to parse things like options, 
databases, and requested citations.
For this, it uses a dedicated “citeproc” lua script that should be easy to 
modify/copy for someone who knows what
is actually in the ConTeXt .tuc file.

On the output side, it uses a lookup table to generate the desired markup (in 
citeproc-formats.lua). Right now,
there are definitions provided for HTML and LaTeX, but that is very simple to 
extend.

There is a LaTeX package for the integration (making sure the right commands 
appear in the aux file, 
option processing, et cetera), and that file I do not understand *at all*. It 
seems to be completely isolated 
from the core citeproc processing, though.

Very promising stuff, I think. 

But: I personally do not understand how to do the integration with ConTeXt’s 
new biblio system. I only understand
half of what ConTeXt does these days, and much less of what the LaTeX package 
is trying to achieve i.r.t. options.

Best wishes,
Taco

> On 3 May 2022, at 22:00, Denis Maier via ntg-context  
> wrote:
> 
> Hi,
> 
> I just came across this: https://github.com/zepinglee/citeproc-lua
> Thats’s an lua implemenation of the CSL language targeting LaTeX.
> I don’t know if the processor itself contains any LaTeX specific code, but it 
> looks like the integration basically happens here 
> :https://github.com/zepinglee/citeproc-lua/blob/main/latex/citation-style-language.sty
> So, at least in theory, shouldn’t it be possible to make this workable also 
> with context?
> 
> Best,
> 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
> ___

Taco Hoekwater
Elvenkind BV




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

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


Re: [NTG-context] XML: calculations on attribute values before output

2022-05-05 Thread Taco Hoekwater via ntg-context


> On 4 May 2022, at 22:10, Duncan Hothersall via ntg-context 
>  wrote:
> 
> Hi.
> 
> I'm processing an XML table and need to set a row span. Because we use a 
> variant of the CALS table model, spans are defined by an attribute saying how 
> many *additional* rows should be spanned, as opposed to how many *in total*. 
> So to translate this into TABLE \bTD[nr=X] syntax I need to add 1.
> 
> I'm guessing this is very easily doable (in lua?) but I've tried various 
> permutations and can't work it out. If anyone could give me a pointer that 
> would be great.
> 
> (In reality I'm going to need to handle lots of other conversions of 
> attribute values into \bTD[...] commands, so if there's a generalised way of 
> doing that sort of thing, or even better if someone has already tackled CALS 
> tables in this way, that would also be great!)

Not CALS, but I do a lot of HTML table processing. I find it all much easier on 
the lua side, because there the 
attributes are just in a table entry of the argument node t ( t.at ):

set up a lua function in the setups:

\startxmlsetups xml:demo:base
 \xmlsetsetup{#1}{*}{xml:demo:*}
 \xmlsetfunction {\xmldocument}{entry}{userdata.xmlfunctions.entry}
\stopxmlsetups

and then add this lua code:

\startluacode
userdata.xmlfunctions = {}
function userdata.xmlfunctions.entry (t)
  local rows = (t.at.morerows or 1) + 1
  context.bTD({nr=rows})
  lxml.flush(t) 
  context.eTD()
end
\stopluacode

All of the tex-side commands also exist in lua, in the lxml and/or xml table, 
e.g.:

direct output flushing: 
  lxml.flush(t)
  lxml.all(t, ‘entry’)

filter for processing:
  for b in xml.collected(lxml.getid(t),'../row/entry') do … end


(those are the ones I use a lot, there are many more)

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

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


Re: [NTG-context] Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2022-05-03 Thread Taco Hoekwater via ntg-context
Hi,

So this cron forwarding actually works ;)



> On 2 May 2022, at 17:01, Cron Daemon via ntg-context  
> wrote:
> 
> receiving incremental file list
> ./
> ctan.lsr
> document-2.htm
> download-1.htm
> download-2.htm
> install.htm
> logo-ade.png
> logo-cts.png
> logo-pod.png
> rss.xml
> show-fil.pdf
> context/latest/
> context/latest/cont-mpd.zip
> context/latest/cont-ppc.zip
> context/latest/cont-sci.zip
> context/latest/cont-tmf.zip
> 
> sent 90,352 bytes  received 18,536,958 bytes  3,386,783.64 bytes/sec
> total size is 456,819,434  speedup is 24.52

That block above means that Hans has uploaded new files to the pragma website.
That is not exactly the same thing as the packaged distribution, so bear in mind
that you probably (?) have to allow for a little bit of delay before running the
installation updater.

> 
> Running archiver:
> 
> New dir: /var/www/aanhet.net/context//htdocs/archives/context-2022-05-02.17
> 137316935 
> /var/www/aanhet.net/context//htdocs/archives/context-2022-05-02.17/latest
> 126745317 
> /var/www/aanhet.net/context//htdocs/archives/context-2022-05-02.17/current
> 18956262  
> /var/www/aanhet.net/context//htdocs/archives/context-2022-05-02.17/alpha
> 126707516 
> /var/www/aanhet.net/context//htdocs/archives/context-2022-05-02.17/beta
> 409730126 
> /var/www/aanhet.net/context//htdocs/archives/context-2022-05-02.17
> 409730126 total

This last bit is just my archiving code reporting local space requirements. I 
keep a fairly 
large collection of older downloads as well:

  http://context.aanhet.net/archives/

You may have to hunt backward in time to find a specific zip, because I delete 
duplicates 
occasionally, only keeping the oldest/first (Hans nowadays mostly updates 
‘latest’, with a
‘current’ now and then. ‘alpha’ and ‘beta’ are typically don’t change at all).

Also, the site is still plain http. I am not going to install https right now.

Best wishes,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] Need some hints to fix my standalon installation

2022-04-20 Thread Taco Hoekwater via ntg-context
Hi,

I have an rsync cron job running each hour that alerts me if there is a new 
upload. If nobody objects, I could direct the cron notification email to the 
list?

Taco

> On 20 Apr 2022, at 19:41, Pablo Rodriguez via ntg-context 
>  wrote:
> 
> On 4/20/22 19:22, Christoph Hintermüller via ntg-context wrote:
>> 
>> That's fine. As soon as post that update is ready for pulling I will
>> pull.
>> Till then i can wait.
> 
> Hi Christoph,
> 
> to check when there is a new release I use:
> 
> curl -I https://lmtx.pragma-ade.com/install-lmtx/texmf-context.zip 2>&1
> | grep -i Last-Modified
> 
> Just in case it might help you,
> 
> Pablo
> ___
> 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] Fwd: \vfill doesn't work in this example

2022-04-11 Thread Taco Hoekwater via ntg-context
Hi,

Message below forwarded on behalf of Dalyoung , who has problems submitting 
messages.

Best wishes,
Taco

> Begin forwarded message:

> 
> Hi,
> 
> To add the same vertical space in column mode,
> I usually use \vfill as in the following sample before.
> But this example doen’t add spaces after first item.
> How to locate the two subitems evenly spaced in vertically?
> 
> Thank you for reading.
> 
> Best regards,
> 
> Dalyoung
> 
> 
> %%
> \starttext
> \startcolumns[n=2]
> \startitemize[n]
> \item 111
>   \startitemize[a]
>   \item 1-1
>   \vfill
>   \item 1-2
>   \vfill
>   \stopitemize
> 
> \column
> 
> \item 222
>   \startitemize[a]
>   \item 2-1
>   \vfil
>   \item 2-2
>   \vfil
>   \stopitemize
> 
> \column
> 
> \stopitemize
> \stopcolumns
> \stoptext
> 
>> 2022. 4. 8. 오후 6:33, Taco Hoekwater > <mailto:t...@bittext.nl>> 작성:
>> 
>> Hi Dalyoung,
>> 
>> 
>>>  Forwarded Message 
>>> Subject:Re: \vfill doesn't work in this example
>>> Date:   Fri, 8 Apr 2022 15:00:21 +0900
>>> From:   Jeong Dal mailto:hak...@icloud.com>>
>>> To: ntg-context-ow...@ntg.nl <mailto:ntg-context-ow...@ntg.nl>
>>> 
>>> Hi,
>>> 
>>> I received the following mail.
>>> But I think that my message is rejected in error.
>>> 
>>> I have an account in this list for long time.
>>> 
>>> The email address of this mail may cause the error.
>>> I used email address given from Mac.com <http://mac.com/> <http://Mac.com 
>>> <http://mac.com/>>.
>>> 
>>> hak...@mac.com <mailto:hak...@mac.com> <mailto:hak...@mac.com 
>>> <mailto:hak...@mac.com>>, hak...@me.com 
>>> <mailto:hak...@me.com><mailto:hak...@me.com <mailto:hak...@me.com>>, and 
>>> hak...@icloud.com <mailto:hak...@icloud.com><mailto:hak...@icloud.com 
>>> <mailto:hak...@icloud.com>> are actually the same address.
>> 
>> Well, the mailing list did not know that. Only hak...@mac.com 
>> <mailto:hak...@mac.com> was actually subscribed. I have now added the two 
>> aliases.
>> 
>> Best wishes,
>> Taco
>> 
>> — 
>> Taco Hoekwater  E: t...@bittext.nl <mailto:t...@bittext.nl>
>> genderfluid (all pronouns)
> 

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] Nested $$ in inline math

2021-12-13 Thread Taco Hoekwater via ntg-context


> On 13 Dec 2021, at 16:15, Jack Hill via ntg-context  
> wrote:
> 
> Dear list,
> 
> I was playing around and found that nesting $$s inside of \m blocks typesets 
> the code as text.
> I can't find anything about this on the wiki or in the math-mkiv manual, so 
> I'm asking whether this is supported behaviour or just a bug?

I would say that this is unsupported expected behaviour ;) 

It is better not to use $ at all (except when using it as a dollar sign when 
\asciimode is active).

> 
> \starttext
> % All the same
> \mathematics{math $text here$ math} \\
> \math{math $text here$ math} \\
> \m{math $text here$ math} \\
> \m{math \text{text here} math} \\

A bit over-precise maybe, but while the first three are the same, the last line 
is 
actually very subtly different. 

The first three lines are essentially this in TeX82 :

  $math $text here$ math\hfill\break

while that last line is 

  $math \hbox{text here} math\hfill\break

Best wishes,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



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

2021-12-10 Thread Taco Hoekwater via ntg-context


> On 10 Dec 2021, at 11:46, Hans Hagen via ntg-context  
> wrote:
> 
> Hi,
> 
> This time the lmtx upload has a (for some maybe) interesting new features: 
> runtime pdf encryption.
> 
> 
> I would be surprised if the native apple viewer works but I can't test that.

Apple Preview works without any problems, with a quick test.

It forces a popup dialog for “user password” on opening when that is set, and 
with 

  context .. --permissions="-print”

it shows an "owner password" dialog before allowing to print

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] Bad linebreak in figure caption

2021-12-03 Thread Taco Hoekwater via ntg-context


> On 2 Dec 2021, at 19:37, Marco Patzer via ntg-context  
> wrote:
> 
> On Mon, 29 Nov 2021 16:44:07 +0100
> Marco Patzer via ntg-context  wrote:
> 
>> Why does ConTeXt not break the line between "unnecessary" and "FOO"?
> 
> Any ideas how to fix this?

Captions have their own alignment setting:

 \setupcaption[figure][align={verytolerant,stretch}]

Best wishes,
Taco


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

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


Re: [NTG-context] double underbars

2021-11-30 Thread Taco Hoekwater via ntg-context


> On 30 Nov 2021, at 14:38, Denis Maier via ntg-context  
> wrote:
> 
> Thanks, Taco. Good to know. Although it's not what I wanted to hear, of 
> course...
> 
> I was thinking using mp to draw the combination could be solution, but 
> unfortunately I don't know metafun yet.
> 
> If my understanding of https://source.contextgarden.net/node-rul.mkiv is 
> correct, it should be possible to build upon the defintion of 
> rules:under:dots (l. 327) Any hints how I could get this started?

Yes, that is the right part to get started with. You could just copy the whole 
\startuseMPgraphic and rename it for editing (to let’s say 
rules:under:bardots), then do

  \definebar[underbardot][undergraphic][mp=rules:under:bardots]

and play with the mp until you are happy with the output.

But the problem is that you have to create an “underbardot" that contains both 
the bar and the dots, to fix the non-nesting problem. It is then quite hard to 
get that definition to align properly with any enclosing “underbar” (I tried 
something like that a while ago and basically gave up. I did not want to spend 
a whole of time on it so I just told the client “computer says no").


> Another question: what do you mean with a dy-shift version?

Nested bars have a parameter ‘dy’ which controls the vertical shifts needed to 
make sure that they do not overlap. Text backgrounds do not have that option at 
all.

> 
> Best,
> Denis
> 
>> -Ursprüngliche Nachricht-
>> Von: Taco Hoekwater 
>> Gesendet: Dienstag, 30. November 2021 14:19
>> An: mailing list for ConTeXt users 
>> Cc: Maier, Denis Christian (UB) 
>> Betreff: Re: [NTG-context] double underbars
>> 
>> 
>> 
>>> On 30 Nov 2021, at 12:06, Denis Maier via ntg-context > cont...@ntg.nl> wrote:
>>> 
>>> Hi,
>>> 
>>> for a current project I’ll need different variants of underbars.
>>> 
>>> - A normal underbar
>>> - A dotted underbar
>>> - A combination of both
>>> 
>>> Is there a way to combine them? I was hoping to have the dotted variant
>> above the normal bar.
>> 
>> I would like to have this type of “complete” bar nesting as well.
>> 
>> As it stands, you can nest \underbars inside \underbars and \overstrikes
>> inside \overstrikes and \overbars inside \overbars, but no other
>> combinations work. Interoperability between these (as well as \underdot,
>> \underdash, \underrandom ...) would be really cool.
>> 
>> Either with \bar or a nestable dy-shift version of textbackgrounds would
>> be really handy sometimes. :)
>> 
>> 
>> 
>>> 
>>> This is not working
>>> 
>>> %%%
>>> \starttext
>>> 
>>> \underbar{asdf}
>>> 
>>> \underdot{asdf}
>>> 
>>> \underbar{\underdot{asdf}}
>>> 
>>> \stoptext
>>> %%%
>>> 
>>> 
>>> Best,
>>> 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
>>> 
>> __
>> 
>>> _
>> 
>> —
>> Taco Hoekwater  E: t...@bittext.nl
>> genderfluid (all pronouns)
>> 
>> 
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] double underbars

2021-11-30 Thread Taco Hoekwater via ntg-context


> On 30 Nov 2021, at 12:06, Denis Maier via ntg-context  
> wrote:
> 
> Hi,
>  
> for a current project I’ll need different variants of underbars.
>  
> - A normal underbar
> - A dotted underbar
> - A combination of both
>  
> Is there a way to combine them? I was hoping to have the dotted variant above 
> the normal bar.

I would like to have this type of “complete” bar nesting as well. 

As it stands, you can nest \underbars inside \underbars and \overstrikes inside 
\overstrikes and \overbars inside \overbars, but no other combinations work. 
Interoperability between these (as well as \underdot, \underdash, \underrandom 
...) would be really cool.

Either with \bar or a nestable dy-shift version of textbackgrounds would be 
really handy sometimes. :)



>  
> This is not working
>  
> %%%
> \starttext
>  
> \underbar{asdf}
>  
> \underdot{asdf}
>  
> \underbar{\underdot{asdf}}
>  
> \stoptext
> %%%
>  
>  
> Best,
> 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
> ___

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



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

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


Re: [NTG-context] Problem with \head inside \itemize

2021-11-22 Thread Taco Hoekwater via ntg-context


> On 22 Nov 2021, at 14:15, Jean-Philippe Rey via ntg-context 
>  wrote:
> 
> Dear list,
> 
> The following code worked perfectly well with ConTeXt  ver: 2021.01.05 10:45 
> LMTX
> but produces an error with the current LMTX version (at least since ConTeXt  
> ver: 2021.09.26 17:00 LMTX).
> Adding an explicit \par at the end of the \head line allows the example to 
> work.

It seems like the newest LMTX versions don’t handle implicit \par (empty lines) 
as argument 
delimiter any more, the argument has to be terminated by the explicit string 
“\par", just 
like any other argument delimiter. 

This is definitely a change, but I would vote for that change to stay. ;)

Best wishes,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] Can modes be used for content control?

2021-11-17 Thread Taco Hoekwater via ntg-context
Hi Idris,

I think Hans was trying to point you to the blocks mechanism. Blocks *do* nest:

\defineblock[sectionblock]
\defineblock[myblock]

\startmode[variantone]
\keepblocks[sectionblock]
\keepblocks[myblock]
\stopmode

\startmode[varianttwo]
\keepblocks[sectionblock]
\stopmode

\starttext
\beginsectionblock
\section{A to B}
\beginmyblock
A is for Amy, who fell down the stairs.
\endmyblock
\beginmyblock
B is for Basil, assaulted by bears.
\endmyblock
\endsectionblock

\stoptext



— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] Footnotes in margins

2021-11-16 Thread Taco Hoekwater via ntg-context
Hi,

Like Hraban said, inserts are generally tricky and they tend to disappear when 
used inside
other elements like floating objects / boxes / tables. However, ConTeXt has an 
easy way out
at least for your case:

\starttext
\startpostponingnotes
\inmargin{Foo\footnote{Foo 1.}}Foo\footnote{Foo 2.}
\stoppostponingnotes
\stoptext

Best wishes,
Taco

> On 16 Nov 2021, at 12:57, Marcus Vinicius Mesquita via ntg-context 
>  wrote:
> 
> Dear list,
> 
> When running the MWE below, the first footnote does not appear.
> What am I missing?
> 
> \starttext
> \inmargin{Foo\footnote{Foo 1.}}Foo\footnote{Foo 2.}
> \stoptext

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] \startbodymatter forcing new page in document

2021-11-15 Thread Taco Hoekwater via ntg-context


> On 15 Nov 2021, at 15:07, A A via ntg-context  wrote:
> 
> Dear All,
> 
> The following code generates a title and some fake text:
> 
> \setuppagenumbering[location=right]
> 
> \usemodule[visual]
> 
> \usebtxdataset[bibliography.bib]
> \starttext
> \title{test}
> \fakewords{1000}{1200}
> 
> \stoptext
> 
> The following code does the same, but wraps the fakewords in a bodymatter 
> environment:
> 
> \setuppagenumbering[location=right]
> 
> \usemodule[visual]
> 
> \usebtxdataset[bibliography.bib]
> \starttext
> \title{test}
> \startbodymatter
> \fakewords{1000}{1200}
> \stopbodymatter
> 
> \stoptext
> 
> 
> In the first case, the title remains on the same page as the fake text. In 
> the second case, a new page is forced after the title. Why does this occur? 

\startbodymatter starts a sectionblock (the “bodypart” block, to be exact) and
by default these blocks all switch to a ‘right’ page. Add this in your preamble 
to
get rid of the page switch:

\setupsectionblock[bodypart][page=no]



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

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] check installed program using Lua

2021-11-01 Thread Taco Hoekwater via ntg-context


> On 1 Nov 2021, at 14:26, Pablo Rodriguez via ntg-context  
> wrote:
> 
> Dear list,
> 
> is there a way if a program is installed on the computer using Lua.
> 
> I have the following sample:
> 
>  \starttext
>  \startluacode
>  filename = tex.jobname .. ".pdf"
>  os.exec("dir " .. filename)
>  \stopluacode
>  \stoptext
> 
> Is there a way to wrap os.exec() in the sample so that it only runs if
> "dir" is available?

if os.which(‘dir’) then
  ...
end

But note that os.which() may be unreliable in various cases (like it will fail 
for shell/command interpreter builtins, in cron jobs, in special scripted 
environments, and may incorrectly succeed for disabled/forbidden commands), as 
it just runs through the PATH environment variable to check for executable file 
existence. 

Often times, it is better to just try to run the command to see if that 
produces satisfactory results.

Best wishes,
taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] Wiki's ConTeXt updated

2021-10-29 Thread Taco Hoekwater via ntg-context
Hi,

Since yesterday  wiki.contextgarden.net, live.contextgarden.net, and 
source.contextgarden.net all use

  ConTeXt 2021.10.28 10:19 LMTX

as the installed ConTeXt.

I have also tried to reset all the “” output images so that they will 
be automatically
regenerated with this new ConTeXt, but sometimes that reset does not work 
properly, and the wiki 
has to be ‘helped' manually. 

If you see a ‘broken image’ icon (or no output at all) from a “” 
demonstration block, do this:

* right click on the ‘Edit’ link of the page so it opens in a new tab,
* go to the new tab and press ’Show preview’,
* close the tab.

The ’Show preview' will force the wiki to refresh the cached images. ’Save 
changes’ is not needed.

Best wishes,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] The certificate of the mailman site has expired

2021-10-22 Thread Taco Hoekwater via ntg-context


> On 22 Oct 2021, at 02:21, Gerben Wierda via ntg-context  
> wrote:
> 
> Just to let you know: The certificate of the mailman site has expired

Which one exactly? 

Both https://lists.contextgarden.net/ and https://mailman.ntg.nl/ seem fine to 
me

Best wishes,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] Clickable url problem with \useurl and \url

2021-10-12 Thread Taco Hoekwater via ntg-context
Hi,

> On 12 Oct 2021, at 04:30, Rik Kabel via ntg-context  
> wrote:
> 
> Hello List,
> 
> I notice an inconsistency in the clickable area when using \useurl. With the 
> following example, both the \from and the \url are clickable in some lines 
> (as noted iin the value of \from) but in others, the \from is clickable but 
> not the \url.
> 
> It does seem sensitive to the urlL, but I cannot see a pattern.

It is the pdf viewer program that automatically interprets the \url-produced 
text and 'invents' a link, it is not
ConTeXt itself. The exact rules may therefore vary depending on the pdf viewer 
you use. 

In Apple's Preview, all items are in fact clickable. But only \from produces 
actual pdf hyperlink annotations.

> Should I use something other than \url[earlXX] here to get the clickable 
> literal url from useurl?

This, maybe

\goto{\url[earlLH]}[url(earlLH)]

(perhaps wrapped in a short macro)

Best wishes,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] TLS Certificate Expired for the Wiki

2021-10-12 Thread Taco Hoekwater via ntg-context


> On 12 Oct 2021, at 08:41, Ramkumar KB via ntg-context  
> wrote:
> 
> Hello,
> 
> The TLS certificate for the Context wiki expired yesterday - valid only upto 
> 12-October-2021.

I’ll fix that in a bit.

> 
> Just an alert as Chrome now pops up the "Unsafe" alerts.
> 
> Thank you,
> 
> best regards,
> Ramkumar 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] MkIV missing?

2021-10-04 Thread Taco Hoekwater via ntg-context
Hi,

Here is what I assume has happened:

Hans gave LMTX its own "luametatex-cache” directory (around August 20). 
Previously, the cache for LMTX still used files under luatex-cache, just like 
MKIV. But since that change, the “context -—generate” call no longer updates 
files in luatex-cache, only in luametatex-cache. 


That is not a big problem unless something happens to clear any existing cache 
in that folder (like a re-install from scratch, say). 

Normally, one runs “context —-generate” to fix the cache and “context —-luatex” 
to run luatex Combined, that would be 
  “context —-generate —-luatex”. 
But the problem is that luatex cannot find “mtx-context.lua” exactly because of 
the missing cache that we are actually trying to create with that command line. 
Missing “mtx-context.lua” is usually fixed by running the more basic “mtxrun 
—generate”.

However, “mtxrun -—generate”  does not currently support a "-—luatex” argument, 
so the only way I know of right now to get the luatex-cache restored|updated is 
to run the command below.

(Incidentally, this sort of issue is why the core command is not “context 
-—generate” but “mtxrun -—generate”. It is unfortunate that that does not help 
in this case).

Best wishes,
Taco

> On 4 Oct 2021, at 15:33, Taco Hoekwater via ntg-context  
> wrote:
> 
> We are busy with this off-list.
> 
> If it is urgent: 
> 
> luatex --luaonly ~/lmtx/tex/texmf-osx-64/bin/mtxrun.lua --generate
> 
> fixed it for me (you’ll need to adjust the path, of course)
> 
> Best wishes,
> Taco
> 
>> On 4 Oct 2021, at 15:28, Marcus Vinicius Mesquita via ntg-context 
>>  wrote:
>> 
>> Same problem here, on a linux64, context current version: 2021.09.26 17:00
>> 
>> Greetings
>> 
>> Marcus Vinicius
>> 
>> On Mon, Oct 4, 2021 at 8:55 AM Henning Hraban Ramm via ntg-context 
>>  wrote:
>> 
>>> Am 04.10.2021 um 13:06 schrieb Hans Hagen :
>>> 
>>> On 10/4/2021 12:39 PM, Henning Hraban Ramm via ntg-context wrote:
>>>> Hi,
>>>> since a while, I can’t run MkIV any more, even after several runs of 
>>>> install.sh (and mtxrun --generate, of course).

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] MkIV missing?

2021-10-04 Thread Taco Hoekwater via ntg-context
We are busy with this off-list.

If it is urgent: 

 luatex --luaonly ~/lmtx/tex/texmf-osx-64/bin/mtxrun.lua --generate

fixed it for me (you’ll need to adjust the path, of course)

Best wishes,
Taco

> On 4 Oct 2021, at 15:28, Marcus Vinicius Mesquita via ntg-context 
>  wrote:
> 
> Same problem here, on a linux64, context current version: 2021.09.26 17:00
> 
> Greetings
> 
> Marcus Vinicius
> 
> On Mon, Oct 4, 2021 at 8:55 AM Henning Hraban Ramm via ntg-context 
>  wrote:
> 
> > Am 04.10.2021 um 13:06 schrieb Hans Hagen :
> > 
> > On 10/4/2021 12:39 PM, Henning Hraban Ramm via ntg-context wrote:
> >> Hi,
> >> since a while, I can’t run MkIV any more, even after several runs of 
> >> install.sh (and mtxrun --generate, of course).
> >> It’s the same on my Mac and my Linux laptop (of course the bin dir is 
> >> different on the latter):
> >> $ context --version
> >> mtx-context | ConTeXt Process Management 1.04
> >> mtx-context |
> >> mtx-context | main context file: 
> >> /Users/hraban/lmtx/tex/texmf-context/tex/context/base/mkiv/context.mkiv
> >> mtx-context | current version: 2021.09.26 17:00
> >> mtx-context | main context file: 
> >> /Users/hraban/lmtx/tex/texmf-context/tex/context/base/mkxl/context.mkxl
> >> mtx-context | current version: 2021.09.26 17:00
> >> $ context --version --luatex
> >> mtx-context | redirect luametatex -> luatex: luatex --luaonly 
> >> "/Users/hraban/lmtx/tex/texmf-osx-64/bin/mtxrun.lua" --script mtx-context 
> >> --version --luatex --redirected
> >> mtxrun  | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua'
> >> $ which context
> >> /Users/hraban/lmtx/tex/texmf-osx-64/bin/context
> >> $ which luatex
> >> /Users/hraban/lmtx/tex/texmf-osx-64/bin/luatex
> >> $ luatex --version
> >> This is LuaTeX, Version 1.13.0 (TeX Live 2021)
> >> ...
> >> $ mtxrun --version
> >> mtxrun  | ConTeXt TDS Runner Tool 1.32
> >> mtxrun  | source path
> >> I thought that was related to the server/provider move, but I guess it 
> >> isn’t.
> >> It’s a bit annoying that install.sh leaves ~/lmtx/bin in the PATH, so that 
> >> a call to mtxrun can’t find any configuration.
> > works here ... maybe a --generate issue?
> 
> I re-ran the install script with a shell ("sh install.sh" instead just ". 
> install.sh"), but that doesn’t change the "unknown script" issue.
> 
> "mtxrun --generate" seems to work without problems; or do you see something 
> suspicious in the attached log?
> 
> 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
> ___
> 
> 
> -- 
> Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo 
> nem seus membros, por ser descanso da alma, primavera do coração, distração 
> do aflito, entretenimento do solitário, e viático do viajante.
> 
> Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
> _______
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] MkIV missing?

2021-10-04 Thread Taco Hoekwater via ntg-context


> On 4 Oct 2021, at 12:39, Henning Hraban Ramm via ntg-context 
>  wrote:
> 
> I thought that was related to the server/provider move, but I guess it isn’t.
> 
> It’s a bit annoying that install.sh leaves ~/lmtx/bin in the PATH, so that a 
> call to mtxrun can’t find any configuration.

That is why I always run “sh install.sh” instead of executing the script 
directly.

Best wishes,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



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

2021-09-29 Thread Taco Hoekwater via ntg-context
Hi,

There is also a mirror of the website at http://context.aanhet.net

Best wishes,
Taco

> On 28 Sep 2021, at 23:34, Hans Hagen via ntg-context  
> wrote:
> 
> Hi,
> 
> Due to domain transfer issues (provider quits services) there is the 
> possibility that the coming days the pragma-ade.com address fails.
> The pragma-ade.nl and other addresses are okay, If all works well the 
> installer handles fallbacks. Eventually the context garden will also have the 
> files.
> 
> 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
> ___

___
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] Test for displaying a header

2021-08-26 Thread Taco Hoekwater via ntg-context

Hi,

> On 26 Aug 2021, at 16:07, Fabrice Couvreur via ntg-context 
>  wrote:
> 
> Hi, 
> I know I asked the question a few years ago, but I don't remember ! 
> The idea is to test whether the document contains only one page or not. 

Perhaps not the nicest solution, but this works:

\doifvalueelse
  {\lastpage}
  {1}
  {\message{true}}
  {\message{false}}

> If it contains only one page, the header is enabled. 
> If it contains several pages, the header is enabled only on the first page 
> but not on the others. 
> Thanks
> Fabrice
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] Indexing redux

2021-08-26 Thread Taco Hoekwater via ntg-context
Hi Rik,

> On 26 Aug 2021, at 03:14, Rik Kabel via ntg-context  
> wrote:
> 
> List,
> 
> I am trying to create an index with both "see" and "see also" cross-reference 
> entries.[1] At this point, ConTeXt provides basic support for "see" entries 
> via the \seeREGISTER command (it does not properly support references to 
> sub-entries) and it provides no support at all for "see also" entries.
> 
> Can somebody suggest a way to generate these entries? Perhaps a way of 
> inserting entries into the index before it is formatted, in the manner of 
> \writetolist or \writebetweenlist? (MkII has \writetoregister, but that did 
> not carry forward and I do not know if it would have helped here.)


Since strc-reg.mkiv starts with a number of ’todo’ comments, I think your best 
bet is to create an
actual functional example along with an explanation of what you want the 
typeset result to look 
like in the cases where it is not doing what you want.

Generally, explicit examples / test files are the best way to get replies to 
questions 
(either by Hans or anyone else).

Best wishes,
Taco

>  
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] Control of Titles appearing in \completelistoftables and \completelistoffigures

2021-08-25 Thread Taco Hoekwater via ntg-context
Hi,

There is \startplacefigure / \startplacetable , which has a ‘list’ key

 https://wiki.contextgarden.net/Command/_startplacefloat

Best wishes,
Taco

> On 25 Aug 2021, at 05:20, Richard Mahoney via ntg-context 
>  wrote:
> 
> List,
> 
> I've been wondering if there is some syntax that one can use in:
> 
> \placetable or \placefigure
> 
> to control the Table of Figure Title appearing in:
> 
> \completelistoftables and \completelistoffigures
> 
> 
> At the moment one can do this for the output of:
> 
> \completecontent
> 
> with something such as the following:
> 
> \startsection[title={Title in body},list={Title in contents}]
> 
> 
> Such a thing would be *extremely* useful for a current 
> publication. :)
> 
> 
> Best, Richard
> 
> 
> 
> -- 
> T +6433121699  M +64210640216  E rmaho...@indica-et-buddhica.org
> IM https://t.me/rmahoney  W https://indica-et-buddhica.org/
> 
> Indica et Buddhica  Littledene  Bay Road  Oxford  NZ
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

Taco Hoekwater
Elvenkind BV






— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



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

2021-08-17 Thread Taco Hoekwater via ntg-context
Hi Hans,

> On 17 Aug 2021, at 16:39, Hans van der Meer via ntg-context 
>  wrote:
> 
> I am still interested in this luacondition 733 allthough the culprit has been 
> spotted. Very nasty typo and hard to spot fo me. 

The “luacondition 733” is the \ifxmlatt . You get these numbers because the 
command is
defined using lua ‘interfaces.implement’ (lxml-ini.lua) instead of directly as 
a TeX conditional.

And yes indeed, the new lua-defined commands are hard to derive from the log 
information
(for the other Hans: is this reporting not controlled via ‘public=true’ ? ).

Best wishes,
Taco

> Shudder and enjoy:
> 
> \ifxmlatt{#1}{regime}{xml}\let\Flush\ModuleFlushXML\else\let\FlushModuleFlushTEX\fi
> instead of
> \ifxmlatt{#1}{regime}{xml}\let\Flush\ModuleFlushXML\else\let\FlushModule\FlushTEX\fi
> 
> dr. Hans van der Meer
> 
> 
>> On 17 Aug 2021, at 15:49, Hans van der Meer via ntg-context 
>>  wrote:
>> 
>> Where is this message on luacondition 733 coming from? I would be glad to 
>> get rid of it. The message does not pinpoint the problem location enough for 
>> me to find its cause.
>> 
>> close source> level 2, order 7, name './modules-docs.tex'
>> close source> level 1, order 7, name 'cont-yes.mkiv'
>> (\end occurred when luacondition 733 on line 8 was incomplete)
>> 
>> 
>> dr. Hans van der Meer
>> 
>> 
>> ___
>> If your question is of interest to others as well, please add an entry to 
>> the Wiki!
>> 
>> maillist : ntg-context@ntg.nl / 
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : http://contextgarden.net
>> ___
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] 15th International ConTeXt Meeting (registration closes Aug 22)

2021-08-13 Thread Taco Hoekwater via ntg-context
Hi all,

There is still room for some extra participants for the ConTeXt meeting in 
Bassenge, 
Belgium from Sept 20 to Sept 25. Despite the still somewhat lingering situation 
wrt
COVID-19, we are now certain that the meeting can and will in fact take place in
person. Hurrah!

Even if we still have room by then, registration will close on Aug 22, because 
by 
that time we need to make final arrangements for T-shirt printing and catering. 
So if you are still on the fence about attending, do not wait too long!


Also remember that it is possible for ConTeXt Group members to attend 
online-only
for free. That is less than ideal because you cannot join us for a drink and a 
chat,
but it gives you bragging rights for attending, and you will get a T-shirt as 
well !
(if you register before Aug 22)

You can easily become a member of CG by filling in the form at

  https://group.contextgarden.net/register.shtml

Besides being able to register for the online portion of the upcoming meeting,
you will also receive the nicely printed ConTeXt journal, and additionally you
will help the ConTeXt Group to do more for the community in the future. 

Even if you are not going to attend the online meeting, we think becoming a 
CG member is a great idea! More that fifty people have joined already!

To see more details about the upcoming meeting, see the website at

  https://meeting.contextgarden.net/


In other news, there is now a provisional programme page:

  https://meeting.contextgarden.net/2021/programme.shtml


I can't wait to see (some of) you in person in Bassenge!

Best wishes,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] nil from TeX to Lua

2021-08-10 Thread Taco Hoekwater via ntg-context


> On 9 Aug 2021, at 22:05, Aditya Mahajan via ntg-context  
> wrote:
> 
> On Mon, 9 Aug 2021, Hans van der Meer via ntg-context wrote:
> 
>> In the TeX to Lua interface with
>> 
>> \def\Macro#1{\directlua{luafunction("#1")}}
>> 
>> the transfer from TeX to Lua is by string. However what to do at the Lua end 
>> when calling \Macro{}?
>> As I understand it, then on the Lua side an empty argument and an empty 
>> string are indistinguishable. 
> 

On the TeX side, these are always indistinguishable (as TeX doesn’t have 
’strings’) so depending
on the called macro, you could just assume str == "” actually means nil?

But a clearer example of where you run into trouble would be helpful.

Best wishes,
Taco


— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] Strange new behaviour of the mailing list

2021-08-02 Thread Taco Hoekwater via ntg-context
Hi,

> On 31 Jul 2021, at 15:56, Henning Hraban Ramm via ntg-context 
>  wrote:
> 
> 
> Ah, I didn’t recognize you mean this.
> 
> Since the mail goes through the mailing list software, the sender must not be 
> the original sender any more – ntg.nl is not allowed to send emails for a 
> different domain. Many securely configured mail servers reject “faked” sender 
> addresses, as they should. Look up DANE etc.


Which is exactly why that setting was changed. So yes, the change is on purpose.

Best wishes,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] Rolling out a pandoc-context publication workflow in an organization

2021-07-01 Thread Taco Hoekwater


> On 1 Jul 2021, at 13:31, Jan U. Hasecke  wrote:
> 
> Hi Taco,
> 
> thanks for this hint.
> 
> Am 01.07.21 um 08:44 schrieb Taco Hoekwater:
>> I would put the whole context distribution in the git. That way, you can
>> potentially hotfix something centrally.
> 
> Would you put texmf-cache into .gitignore?

probably, but it depends on how homogenous your setups are. 

In principle texmf-cache can be shared, but only if nobody has personal files.

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

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] Rolling out a pandoc-context publication workflow in an organization

2021-07-01 Thread Taco Hoekwater
Hi,

> On 1 Jul 2021, at 08:02, Jan U. Hasecke  wrote:
> 
> I come up with the idea of an "organizational context distribution" that has 
> all requirements preinstalled. That could look like this:

I would put the whole context distribution in the git. That way, you can
potentially hotfix something centrally.

Best wishes,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] 15th International ConTeXt Meeting (early bird closes)

2021-06-30 Thread Taco Hoekwater


> On 30 Jun 2021, at 19:34, Bruce Horrocks  wrote:
> 
> 
>> On 30 Jun 2021, at 15:23, Taco Hoekwater  wrote:
>> 
>> Just a quick reminder that early bird registration for the ConTeXt meeting 
>> 2021
>> in Bassenge officially ends today. I’ll be a bit lenient about the actual 
>> money 
>> transfer, but you should fill in the registration form today or at the very 
>> last
>> tomorrow, if you want to be eligible for the early bird discount.
>> 
>>  https://meeting.contextgarden.net/
>> 
>> In other news, there is now an abstracts page with lots of talk topics added 
>> by Hans himself. Check that out as well!
> 
> In other news the early bird deadline in the table header row on the linked 
> page is 11th July.

You are not even the first person to point that out. 

Ok, so July 11 it is. It is still better to register right away :)

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
___


[NTG-context] 15th International ConTeXt Meeting (early bird closes)

2021-06-30 Thread Taco Hoekwater

Hi all,

Just a quick reminder that early bird registration for the ConTeXt meeting 2021
in Bassenge officially ends today. I’ll be a bit lenient about the actual money 
transfer, but you should fill in the registration form today or at the very last
tomorrow, if you want to be eligible for the early bird discount.

   https://meeting.contextgarden.net/

In other news, there is now an abstracts page with lots of talk topics added 
by Hans himself. Check that out as well!

   https://meeting.contextgarden.net/2021/abstracts.shtml

Finally: this year for the first time we do have a (small) bursary fund.
Applications can be added in the remark fields of the registration page, or
by sending a message directly to me.

I can't wait to see (some of) you in person in Bassenge!

Best wishes,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] PDF forms not creating proper children

2021-06-09 Thread Taco Hoekwater
Hi,

> On 9 Jun 2021, at 16:41, Pablo Rodriguez  wrote:
> 
> 
> Only mupdf-gl sees the signature annotation after signing it. Acrobat,
> Evince, Okular and xpdf cannot deal with the signature.

Just FYI:

On the Mac, I can sign the processed example using Adobe Acrobat Reader DC,
and it can save a signed pdf as well as re-open it, including showing that
verification bar that says it is a signed pdf.

mupdf-gl ‘sees’ the original field also, but mine is compiled without openssl 
so it cannot actually sign. It happily correctly opens the signed version 
from AR DC, of course.

Apple Preview does not recognize the signature field (well, it has zero
support for signing to begin with, so that is not a surprise).



— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] keep text strictly inside box

2021-06-08 Thread Taco Hoekwater


> On 7 Jun 2021, at 23:07, Wolfgang Schuster 
>  wrote:
> 
> Use the align key.
> 
> \starttext
> 
> \startframedtext[width=10cm,align={flushleft,nothyphenated}]

Also, ‘verytolerant’ helps:

> align={flushleft,nothyphenated,verytolerant}]

Best wishes,
Taco
> 
> Martinus, zoon van Johannes van Zonnevelt en Johanna
> Teikenbort: getuigen Adrianus van Zonnevelt en Anna
> van Oostbroek.
> \stopframedtext
> 
> \stoptext
> 
> Wolfgang
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
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] [metafun example does not compile]

2021-05-21 Thread Taco Hoekwater
Hi,

It looks like textext.dflt is undefined in the latest lmtx because it is now
renamed to textext.dlft :)


> On 21 May 2021, at 14:03, Floris van Manen  wrote:
> 
> Using the example from the wiki
> https://wiki.contextgarden.net/textext_positioning
> 
> then using the latest version of lmtx
> 
> $ context --version
> mtx-context | ConTeXt Process Management 1.04
> mtx-context |
> mtx-context | main context file: 
> /home/vm/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv
> mtx-context | current version: 2021.05.20 16:06
> mtx-context | main context file: 
> /home/vm/context/tex/texmf-context/tex/context/base/mkxl/context.mkxl
> mtx-context | current version: 2021.05.20 16:06
> 
> 
> it will produce an error (and an empty page)
> 
> 
> metapost> initializing instance 'metafun:1' using format 'metafun' 
> and method 'default'
> metapost> loading 'metafun' as 'metafun.mpxl' using method 'default'
> metapost> initializing number mode 'scaled'
> metafun > log >
> metafun > log > error: Unknown relation will be considered false
> metafun > log >
> metapost> log >
> metapost> log > 
> metapost> log >)
> metapost> log > 
> thetextext->...FIX2)(rawtextext(ddecimal(EXPR3)),(EXPR4))else:if.anchortextexts>0:image(draw(EXPR3)withprescript"tx_anchor="(EXPR4))else:(EXPR3)fi.if(mfun_labtype(SUFFIX2)>=10)
> metapost> log > :shifted(0,y...
> metapost> log > 
> thetextext->begingroup.if.string(EXPR3):thetextext(SUFFIX2)(rawtextext((EXPR3)),(EXPR4))
> metapost> log > 
> elseif.numeric(EXPR3):thetextext(SUFFIX2)(rawtextext(decimal(EXPR3)),(EXPR4))elseif.pair(EXPR3):thetextext(SU...
> metapost> log > 
> textext->begingroup.thetextext(SUFFIX2)((EXPR3),origin)
> metapost> log >   endgroup
> metapost> log > <*> ...A; draw PA withpen pencircle scaled 1.5mm 
> withcolor red; pair PB ; PB := PA shifted decal ; draw textext.drt ("DRT-" & 
> MonTexte) shifted PB; draw textext.dflt("DFLT-" & MonTexte)
> metafun > log >
> metafun > log > Oh dear. I can't decide if the expression above is 
> positive, negative, or zero.
> So this comparison test won't be 'true'.
> 
> 
> 
> 
> As in most of the cases with software, there is (probably) a reason to it ;-)
> 
> 
> .F
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] \char not working with private unicodes

2021-05-12 Thread Taco Hoekwater


> On 12 May 2021, at 14:03, Taco Hoekwater  wrote:
> 
> But \char”F1538 still shows the wrong icon (though probably a different wrong 
> one). 
> 
> I did a bit of digging, and here is where it starts to goes wrong right now 
> (tma excerpt):
> 
> 
>  [….]


Never mind that, that was wrong of me and not the problem at all! Sorry!

Retry:

  [983943]={
   ["boundingbox"]=58,
   ["index"]=903,
   ["name"]="music-note",
   ["unicode"]=983943,
   ["width"]=512,
  },
  [983944]={
   ["boundingbox"]=187,
   ["index"]=904,
   ["name"]="music-note-half",
   ["unicode"]=983945,
   ["width"]=512,
  },

“music-note” appears twice in the font encoding, at F0387 and F0388. 
The cheat sheet says that the second of those should be “music-note-eight”,
but it has the wrong name, which is probably why ConTeXt removes it.

The next one is “checkbox-blank-circle-outline”, which is at F0766 and F043D.
The latter should have been named “radiobox-blank” according to the cheat sheet.

Etc.

On my earlier note: I still think it is bad to assign unicode code points
in ’this’ case. A logo that is encoded in the PUA and happens to be named 
“minus” is very unlikely to actually be a mathematical minus.


— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



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


  1   2   3   4   5   6   7   8   9   10   >