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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
\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
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
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
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
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
> 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
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}
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
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:
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
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()}]
\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
> 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
\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
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
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)
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
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
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
> 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
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
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
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
>
> 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
>
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
>
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:
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.
&
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
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
\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
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'
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
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
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
60 matches
Mail list logo