[NTG-context] Re: Comments placed in the margin

2024-03-19 Thread Hans van der Meer via ntg-context
I am using: \margindata[]{group to isolate change e.g. {\rm \it etc}} yours sincerely dr. Hans van der Meer > On 19 Mar 2024, at 15:38, Jeroen wrote: > > For comments that are placed in the margin, the \inleft{}, \inouter{} etc > will place text in the margin in bold. Can this text be

[NTG-context] behaviour sy in externalfigure

2024-02-16 Thread Hans van der Meer via ntg-context
The scaling in \externalfigure[][] with option sy=number seems to have a discrete change in behaviour between sy=1.0 and sy=(not 1.0).The MWE (see below, FIGURE REMOVED BECAUSE OTHERWISE  MESSAGE TOO LARGE) shows that factor sy≠1.0 is applied to the original height of the figure, but for sy=1.0

[NTG-context] Re: hyphenation question

2024-02-02 Thread Hans van der Meer via ntg-context
ext > wrote: > > On 2/2/2024 1:03 PM, Hans van der Meer via ntg-context wrote: >> In the 18th century documents I am transcribing often words are abbreviated >> as for example /voorschreeve/ becoming /voors:/ In the transcription it is >> usual to write this as /voors[chre

[NTG-context] hyphenation question

2024-02-02 Thread Hans van der Meer via ntg-context
In the 18th century documents I am transcribing often words are abbreviated as for example voorschreeve becoming voors: In the transcription it is usual to write this as voors[chreeve] indicating to the reader how the abbreviation was interpreted. The problem then arises with hyphenation,

[NTG-context] Re: upload

2024-01-23 Thread Hans van der Meer via ntg-context
Just did 'sh install.sh' a moment ago without problems. In the past I had to do xattr -d com.apple.quarantaine path-to-executable once but not anymore. I think the xattr resides in the Apple command tools. Are you sure you have them? yours sincerely dr. Hans van der Meer > On 23 Jan 2024, at

[NTG-context] Re: externalfigure crashed

2023-11-22 Thread Hans van der Meer via ntg-context
Here too, I find 'undefined' from \meaning\expandeddetokenize yours sincerely dr. Hans van der Meer > On 22 Nov 2023, at 21:55, Aditya Mahajan wrote: > > On Wed, 22 Nov 2023, Wolfgang Schuster wrote: > >> Hans van der Meer schrieb am 22.11.2023 um 21:22: >>> The problem persists. Here the

[NTG-context] externalfigure crashed

2023-11-22 Thread Hans van der Meer via ntg-context
When \externalfigure could not find the file it used to graciously place a rectangle kindly telling the user that the file has not been found.But now, however, it seems the default in this case is a crash. Very annoying in comparison with the earlier behaviour.I might make a mistake, but the MWE

[NTG-context] Re: marginwidths

2023-11-22 Thread Hans van der Meer via ntg-context
But changing the width of the section in the middle is not changing. Adapt \textwidth narrows the textwidth but does not allow wider margins.see next example. So how to adapt the page to for example:[leftmargin 40mm][middle what is left][rightmargin 60mm] this should leave 210-40-60=110mm in the

[NTG-context] marginwidths

2023-11-22 Thread Hans van der Meer via ntg-context
I would like to change the width of the margins on the page.In the MWE here, the pagelayout does not seem to obey the \setuplayout command. Why are the margins shown uneffected by \setuplayout? yours sincerelydr. Hans van der Meer showlayout.pdf Description: Adobe PDF document

[NTG-context] unwanted blank page

2023-11-19 Thread Hans van der Meer via ntg-context
I should have a first page without pagenumber and pagenumbers on the subsequent ones.However the MWE here introduces an unwanted blank page from the call to \setuppagenumbering[state=start].And the \setuppagenumbering has to come after the \page, of course.Should I program otherwise? yours

[NTG-context] placing \externalfigure

2023-11-12 Thread Hans van der Meer via ntg-context
In placing \externalfigure[file] I observe the figure is placed with its bottom on the baseline, thus: [externalfigure] --- baseline I looked into the option list of setupexternalfigure but could not find one whereby the location with respect to the baseline is

[NTG-context] \xmlinclusion?

2023-11-09 Thread Hans van der Meer via ntg-context
I cannot get \xmlinclusion working. Below an MWE with its output. What I am missing here or is \xmlinclusion not ok?\startxmlsetups demo \xmlsetsetup{#1}{ root|test }{demo:*}\stopxmlsetups\xmlregisterdocumentsetup{demo}{demo}\startxmlsetups demo:root \blank{\bf Start test}\crlf

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

2023-10-17 Thread Hans van der Meer via ntg-context
But there is also \ifxmlattempty{#1}{prefix} .. \else .. \fi yours sincerely dr. Hans van der Meer > On 17 Oct 2023, at 13:37, Taco Hoekwater wrote: > > > >> On 17 Oct 2023, at 12:43, Michael Guravage >> wrote: >> >> Hi, >> >> I am typesetting a very simple address list whose

[NTG-context] Re: Offline documentations

2023-10-02 Thread Hans van der Meer via ntg-context
I find offline documentation in the installed ConteXt files in ConTeXt/tex/texmf-context/doc/context/documents/general/manuals with more in neighboring directories. Hope this helps. met vriendelijke groet, dr. Hans van der Meer Burgemeester Rijnderslaan 244 ingang D 1185 MC Amstelveen tel. 020

[NTG-context] rotation weirdness

2023-09-16 Thread Hans van der Meer via ntg-context
I encountered something weird, that I cannot explain. It could be an error, but I was not able to pinpoint this.It seems as if the \rotate macro plays havoc with the macro definitions used to set the color of the frame and an outside title.Placing the outside title before the rotate proves that

[NTG-context] Re: ifxmlselfempty

2023-09-04 Thread Hans van der Meer via ntg-context
e:IDK. But why do have a setup for , which does not appear in your xml source (shouldn’t it be ?)?  Von: Hans van der Meer via ntg-context <ntg-context@ntg.nl> Gesendet: Sonntag, 3. September 2023 14:11An: NTG ConTeXt <ntg-context@ntg.nl>Cc: Hans van der Meer <havdm...@z

[NTG-context] ifxmlselfempty

2023-09-03 Thread Hans van der Meer via ntg-context
Is it possible that  the new \ifxmlselfempty has reversed its outcome? Or did I something wrong in this MWE?Here an MWE. yours sincerelydr. Hans van der Meer xmlsetup-template.pdf Description: Adobe PDF document \startbuffer[test]!not empty node!\stopbuffer\startxmlsetups xml:mysetups   

[NTG-context] Re: attribute selection

2023-08-30 Thread Hans van der Meer via ntg-context
Finally I saw the problem. Calling \xmlfilter{#1}{./node/command(demo:attribute:node)} is the right way. Sorry for the noise. dr. Hans van der Meer > On 30 Aug 2023, at 13:49, Hans van der Meer via ntg-context > wrote: > > This line of code comes from the xml documentat

[NTG-context] attribute selection

2023-08-30 Thread Hans van der Meer via ntg-context
This line of code comes from the xml documentation (page 31): \xmlfilter{#1}{./node[@type=="cleanup"]} It should select among the 's those with . However, this node is not selected in the call to \xmlfilter. Where am I wrong? MWE follows % failure to typeset attribute selected.

[NTG-context] Re: ideas for ConTeXt stickers?

2023-08-07 Thread Hans van der Meer via ntg-context
community (for which I care) in a less favourable light. yours sincerely dr. Hans van der Meer > On 7 Aug 2023, at 19:57, Henning Hraban Ramm wrote: > > Am 07.08.23 um 19:20 schrieb Hans van der Meer via ntg-context: >> I would say: Don't use this one. This sticker could

[NTG-context] Re: ideas for ConTeXt stickers?

2023-08-07 Thread Hans van der Meer via ntg-context
I would say: Don't use this one. This sticker could be interpreted as having a sexual connotation and that is not the way (excuse the Mandalorian). yours sincerelydr. Hans van der Meer On 7 Aug 2023, at 19:13, Henning Hraban Ramm wrote:Hi,while it’s too late for this year’s conferences, I’d

[NTG-context] Re: Replacing %20 with spaces in xml attributes

2023-07-21 Thread Hans van der Meer via ntg-context
Here in Terminal on my Mac: 21 ~: lua Lua 5.4.6 Copyright (C) 1994-2023 Lua.org, PUC-Rio > string.gsub('a%20b', '%%20', ' ') a b 1 > (string.gsub('a%20b', '%%20', ' ')) a b > ^D 21 ~: The first call returns the 1 giving the match, the extra ()'s get rid of that second return value. yours

[NTG-context] Re: \hidewidth disappeared

2023-07-16 Thread Hans van der Meer via ntg-context
r enlightment and not too old to learn. yours sincerely dr. Hans van der Meer > On 16 Jul 2023, at 14:08, Hans Hagen via ntg-context > wrote: > > On 7/16/2023 1:31 PM, Hans van der Meer via ntg-context wrote: >> What happened to \hidewidth? It looks as if it disappeared. See the

[NTG-context] \hidewidth disappeared

2023-07-16 Thread Hans van der Meer via ntg-context
What happened to \hidewidth? It looks as if it disappeared. See the accompanying MWE.However, searching the ConTeXt source I find it used in enco-ini.mkiv, defined in syst-ini.mkiv, but commented out in syst-ini.mkxl.Why is that? It seems a harmless definition, and its body is even used twice in

[NTG-context] depth of framed

2023-07-16 Thread Hans van der Meer via ntg-context
I cannot get rid of some depth in framed. Used various combinations of the depth and backgrounddepth setting, nothing helps.What am I doing wrong? Or is something in \framed not working in the way I expected?See the accompanying MWE. yours sincerelydr. Hans van der Meer framedepth.pdf

[NTG-context] how to install on M2 Mac?

2023-06-27 Thread Hans van der Meer via ntg-context
After transferring the context directory to my new M2 Mac Studio sh.install.sh complains "Your system "Darwin arm64" is not supported (yet)". What now? I cannot live without TeX-ing 沈 yours sincerely dr. Hans van der Meer

Re: [NTG-context] right and left arrowfill

2023-06-22 Thread Hans van der Meer via ntg-context
\starttext   x \rightarrowfill x   x \leftarrowfill xhbox to 5cm:   y\hbox to5cm{\rightarrowfill}y   y\hbox to5cm{\leftarrowfill}y\stoptextBut obviously not in an dimensioned \hbox, whereas Knuth's version does that too. On 22 Jun 2023, at 15:11, Hans Hagen via ntg-context wrote:   x

[NTG-context] right and left arrowfill

2023-06-21 Thread Hans van der Meer via ntg-context
A few days ago I drew attention to the fact that \rightarrowfill and \leftarrowfill are broken in the latest ConTeXt. Imho that should not happen with basic TeX macro's.Although one can recreate their definitions from the TeX-book (see the MWE attached), I still do not understand why it should be

[NTG-context] right/left-arrowfill not seen

2023-06-18 Thread Hans van der Meer via ntg-context
Why do the \rightarrowfill and \leftarrowfill not show up in the accompanying MWE? yours sincerelydr. Hans van der Meer hboxfill.pdf Description: Adobe PDF document hboxfill.tex Description: Binary data hboxfill.log Description: Binary data

Re: [NTG-context] letfrozen?

2023-06-13 Thread Hans van der Meer via ntg-context
ntg-context > wrote: > > On 6/12/2023 12:32 PM, Hans van der Meer via ntg-context wrote: >>> On 12 Jun 2023, at 11:12, Hans Hagen via ntg-context >>> wrote: >>> >>> On 6/12/2023 10:57 AM, Hans van der Meer via ntg-context wrote: >>>> The

[NTG-context] xml nbsp?

2023-06-13 Thread Hans van der Meer via ntg-context
What happened to the non breaking space in XML? It has disappeared in a way. See the minimal example attached.dr. Hans van der Meer test-nbsp.pdf Description: Adobe PDF document ___ If your question is of interest to

Re: [NTG-context] letfrozen?

2023-06-12 Thread Hans van der Meer via ntg-context
> On 12 Jun 2023, at 11:12, Hans Hagen via ntg-context > wrote: > > On 6/12/2023 10:57 AM, Hans van der Meer via ntg-context wrote: >> The manual LMTX-primitives on page 21 tells me: >> You can explicitly freeze an unfrozen macro. >> ... >> A r

[NTG-context] letfrozen?

2023-06-12 Thread Hans van der Meer via ntg-context
The manual LMTX-primitives on page 21 tells me: You can explicitly freeze an unfrozen macro. ... A redefinition will now give: You can't redefine a frozen macro. But is this true? The following code seems to contradict this: \def\HOME{myhome}

Re: [NTG-context] font style and size interaction

2023-05-30 Thread Hans van der Meer via ntg-context
ans Hagen via ntg-context > wrote: > > On 5/30/2023 10:18 AM, Hans van der Meer via ntg-context wrote: >> There is -- in my perception -- a problem with the interaction between font >> style and font size changes. >> The order of calling for example \it\small m

[NTG-context] font style and size interaction

2023-05-30 Thread Hans van der Meer via ntg-context
There is -- in my perception -- a problem with the interaction between font style and font size changes. The order of calling for example \it\small matters because \small\it leads to a different result. I would however reason that size and style changes should be in orthogonal spaces, that is:

[NTG-context] font size and style

2023-05-26 Thread Hans van der Meer via ntg-context
Calling "\bf\tfa TEXT" for example leaves the TEXT not in bold because \tfa does not respect the current style. As does \small, etc. Shown by looking at the meaning of for example \small: \small=protected macro:\triggergroupedcommand {\setsmallbodyfont \tf } and \tx=protected

[NTG-context] position in xmlfilter

2023-05-22 Thread Hans van der Meer via ntg-context
I do not understand the behaviour of certain function is xml processing. My problem is finding the position of the current node, for example with I would like to see the first resulting in 1 and the second in 2. The result of some experiments: return=[\xmlfilter{#1}{../tag()}]

Re: [NTG-context] Probably simple: using a variable for \switchtobodyfont size

2023-05-19 Thread Hans van der Meer via ntg-context
\def\relationsFontSize{8pt}\starttextHello World!\crlf\switchtobodyfont[\relationsFontSize]Hello, world!\stoptext Untitled.pdf Description: Adobe PDF document dr. Hans van der MeerOn 19 May 2023, at 11:43, Gerben Wierda via ntg-context wrote:I want to use a variable for a font size so I can set

Re: [NTG-context] new module installer and .tar.gz compression

2023-05-09 Thread Hans van der Meer via ntg-context
> On 9 May 2023, at 01:19, Hans Hagen via ntg-context > wrote: > > On 5/8/2023 8:55 PM, Henning Hraban Ramm via ntg-context wrote: > >> But either the module scripts should re-pack tgz archives or the installer >> must learn to handle them. > The script now > > -- before installing

[NTG-context] missing xml call

2023-04-21 Thread Hans van der Meer via ntg-context
\xmlatt{}{} has a counterpart \xmlattribute{}{LPATH}{} where one can start the search for the attribute at LPATH. for \xmlchainatt{}{} I am missing such a counterpart \xmlchainattribute{}{LPATH}{} where one can do the same. The problem now is that \xmlchainatt{#1}{att} always finds attribute

Re: [NTG-context] xmlsetentity on the fly?

2023-04-19 Thread Hans van der Meer via ntg-context
that part of the input? I examined files lxml-ent.lua and lxml-tex.lua but could not find how to this. dr. Hans van der Meer > On 17 Apr 2023, at 18:11, Hans van der Meer via ntg-context > wrote: > > I tried > \directlua{xml.registerentity("DATE","NEWDATE")} &g

Re: [NTG-context] xmlsetentity on the fly?

2023-04-17 Thread Hans van der Meer via ntg-context
I tried \directlua{lxml.registerentity("DATE","NEWDATE")} and \directlua{lxml.registerentity("DATE","NEWDATE")} but neither does effect a change in the entity. Why is that entry not set in the Lua-table entities? (file xml-ent.lua) has as that function: function xml.registerentity(key,value)

Re: [NTG-context] xmlsetentity on the fly?

2023-04-17 Thread Hans van der Meer via ntg-context
Thomas A. Schmitz via ntg-context > wrote: > > Use \xmltexentity > > Thomas > >> On 17. Apr 2023, at 12:32, Hans van der Meer via ntg-context >> wrote: >> >> I woul

[NTG-context] xmlsetentity on the fly?

2023-04-17 Thread Hans van der Meer via ntg-context
I would like to change an entity 'on the fly'. Example \def\DATE{THEDATE}\expanded{\xmlsetentity{DATE}{\DATE}} \startxmlsetups typ:event \def\DATE{NEWDATE}\expanded{\xmlsetentity{DATE}{\DATE}} Using within the . \stopxmlsetups However, using inside an always results in THEDATE and

[NTG-context] accessing tex.sprint from pure Lua code.

2022-08-30 Thread Hans van der Meer via ntg-context
How can ik access the tex library in pure Lua for tex.sprint and token.setmacro? I guess something like require XYZ ? dr. Hans van der Meer ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] SHA calculation

2022-08-28 Thread Hans van der Meer via ntg-context
> On 28 Aug 2022, at 19:07, Pablo Rodriguez via ntg-context > wrote: > > On 8/28/22 12:25, Hans van der Meer via ntg-context wrote: >> >> With \directlua{context(md5.hex([===[#1]===]))} I can calculate the MD5 >> checksum. >> I thought there was another

[NTG-context] SHA calculation

2022-08-28 Thread Hans van der Meer via ntg-context
With \directlua{context(md5.hex([===[#1]===]))} I can calculate the MD5 checksum. I thought there was another call for the calculation of the SHA checksum, but I could not find it in the documentation or on the context garden. Where to look? dr. Hans van der Meer

Re: [NTG-context] Metafun : save memory content ?

2022-07-18 Thread Hans van der Meer via ntg-context
Storing in a memory block in the computers' internal memory would be super, of course. But I am afraid that is asking a bit too much;-) dr. Hans van der Meer > On 18 Jul 2022, at 18:31, Hans Hagen via ntg-context > wrote: > > On 7/18/2022 3:20 PM, Fabrice L via ntg-context wrote: >> Dear

Re: [NTG-context] ignore not closed tags in XML input

2022-05-16 Thread Hans van der Meer via ntg-context
Can't you use an editor with grep, searching for something like the pattern (with appropriate escapes of course). dr. Hans van der Meer > On 16 May 2022, at 17:08, Pablo Rodriguez via ntg-context > wrote: > > Dear list, > > I would like to feed >

Re: [NTG-context] Error: attempt to index a nil value

2021-10-13 Thread Hans van der Meer via ntg-context
> tex.print("\string\\latinmodern") should be at least double backslashes: tex.print("\\string\\latinmodern") I would think met vriendelijke groet dr. Hans van der Meer > On 13 Oct 2021, at 18:01, Hans Åberg via ntg-context > wrote: > > I was suggested a long ago to hack the file >

Re: [NTG-context] modules not found

2021-09-08 Thread Hans van der Meer via ntg-context
their location in the .bashrc. # The current version of the ConTeXt luametatex in use: CONTEXTLMTX=/Volumes/REALM/TeX/context export CONTEXTLMTX PATH=$CONTEXTLMTX/tex/texmf-osx-64/bin:$PATH ; export PATH dr. Hans van der Meer > On 8 Sep 2021, at 12:46, Hans van der Meer via ntg-context >

[NTG-context] modules not found

2021-09-08 Thread Hans van der Meer via ntg-context
Here is something I do not understand about \usemodule. My modules are in two places because I wanted development and production separated: (1) Volume/TeX/texmf/modules/ (2) Volume/TeX/texmf/modules-new/ Unexpected and suddenly loading files from the first directory does not occur any longer:

Re: [NTG-context] parameters TeX->LuaTeX

2021-09-05 Thread Hans van der Meer via ntg-context
And \ListSort[[abc]]{value} turns out to be worse: doesn't makes it into LuaTeX at all. dr. Hans van der Meer > On 5 Sep 2021, at 10:14, Hans van der Meer via ntg-context > wrote: > > There is something I do not understand in the passing of parameters from TeX > to LuaTex. &

[NTG-context] parameters TeX->LuaTeX

2021-09-05 Thread Hans van der Meer via ntg-context
There is something I do not understand in the passing of parameters from TeX to LuaTex. This is my TeX definition: \def\ListSort[#1]#2{\directlua{hvdm.listsort([===[#2]===],[===[#1]===])}} Calling \ListSort[sep={ + }]{} delivers the string 'sep={ + }' into LuaTeX as the printout in the logfile

Re: [NTG-context] Curiosity about math.random in LuaTeX

2021-08-23 Thread Hans van der Meer via ntg-context
I guess the underlying library calls are from Lua5.4? Then it is perhaps useful to know that between 5.3 and 5.4 there is mentioned a new implementation for math.random. Perhaps it changes the sequence of random values generated? Someone who knows? dr. Hans van der Meer > On 23 Aug 2021, at

Re: [NTG-context] lua

2021-08-17 Thread Hans van der Meer via ntg-context
\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 locatio

[NTG-context] lua

2021-08-17 Thread Hans van der Meer via ntg-context
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'

[NTG-context] file to buffer

2021-08-17 Thread Hans van der Meer via ntg-context
Is it possible to retrieve the contents of a file directly into a buffer? On the Wiki I could not find such a command. That is, equivalent to something like: \startbuffer[from file] contents of the file \stopbuffer dr. Hans van der Meer

[NTG-context] nil from TeX to Lua

2021-08-09 Thread Hans van der Meer via ntg-context
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. This is not

Re: [NTG-context] How to check if buffer or block has content

2021-08-02 Thread Hans van der Meer via ntg-context
And in pathological cases where even this does not work (as I encountered a few days ago): \setbox\scratchbox=\vboxx{content}\ifdim\wd\scratchbox>\zeropoint .. \else .. \fi dr. Hans van der Meer > On 2 Aug 2021, at 17:17, Hans Hagen via ntg-context > wrote: > > On 8/2/2021 4:43 PM, Aditya