[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. C

[NTG-context] behaviour sy in externalfigure

2024-02-16 Thread Hans van der Meer via ntg-context
sy=1.001 in order to get the original height. Although not to difficult with a jump to Lua code, I would prefer not.yours sincerelydr. Hans van der Meer\starttext\ConTeXt\space version \contextversion\blank\type{\externalfigure[testfile.jpg]} source figure\crlf\externalfigure[testfile.jpg]\crlf\t

[NTG-context] Re: hyphenation question

2024-02-02 Thread Hans van der Meer via ntg-context
Yes, that is a possibilty that did not escape me. But this is but an example. In those documents such abbreviations are quite common and frequent. I hoped therefore to find a generic solution! yours sincerely dr. Hans van der Meer > On 2 Feb 2024, at 18:25, Hans Hagen via ntg-cont

[NTG-context] hyphenation question

2024-02-02 Thread Hans van der Meer via ntg-context
, because voors[chreeve] in the example will not be hyphenated as if the []'s were absent. Which is what I would like to happen. Question: is it possible to realize this and how? yours sincerely dr. Hans van der Meer

[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 2

[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: >>>

[NTG-context] externalfigure crashed

2023-11-22 Thread Hans van der Meer via ntg-context
is as simple as can be.The filename is test.jpeg, then this runs ok:\starttext\externalfigure[test.jpeg][]\stoptextBut this crashes, see the log:\starttext\externalfigure[test.jpg][]\stoptext yours sincerelydr. Hans van der Meer showlayout.log Description: Binary data

[NTG-context] Re: marginwidths

2023-11-22 Thread Hans van der Meer via ntg-context
in the middle, but doesn't.The textwidth is narrowed but the margins refuse to obey their setting. yours sincerelydr. Hans van der Meer\setuppapersize[A4][A4]\setuplayout[leftmargin=40mm,rightmargin=60mm,textwidth=110mm]\showframe\starttextsetuplayout: leftmargin=40mm, rightmargin=60mm, textwidth=110mm

[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
sincerelydr. Hans van der Meer % test pagenumbering start-stop\setuppapersize[A5][A5]\starttext\setuppagenumbering[state=stop]\ConTeXt\space\contextversion\blankThis is page 1 without pagenumber.\crlf\page\setuppagenumbering[state=start]This should be a page with pagenumber 2.\crlfBut the pagenumber

[NTG-context] placing \externalfigure

2023-11-12 Thread Hans van der Meer via ntg-context
is either top, bottom or center. Such an option might not exist and then I must program around it. But I prefer to use something that is already there and fits my needs. yours sincerely dr. Hans van der Meer ___ If your

[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

[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
that the call to \rotate is the culprit.I enclose an MWE with a little jpeg figure as illustration. yours sincerelydr. Hans van der Meer\def\formattitle#1{\color[\boxtitlecolor]{#1\strut}}\def\boxfigurerotate#1#2{% \rotate[rotation=10]% {% \externalfigure[#1]% [rulethickness=4pt,width=100pt,height=50pt

[NTG-context] Re: ifxmlselfempty

2023-09-04 Thread Hans van der Meer via ntg-context
on this subject. I added the relevant portion of the code for clarity.I am sure the next update will reflect it in the source ;-)dr. Hans van der Meer   implement {        name      = "ifxmlselfempty",        public    = true,        usage     = "condition",        arguments = "

[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
te-select.pdf Description: Adobe PDF document 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 / https://www.ntg.nl/mailman/l

[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
e. yours sincerely dr. Hans van der Meer > On 21 Jul 2023, at 12:37, denis.ma...@unibe.ch wrote: > > Hi, > > I’m typesetting an XML document where the links to the images contain spaces > which are encoded as %20 > > > Using this works in cases without spaces: &

[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
in enco-ini.mkxl.I dare say, with all due respect, it is not pleasant (and a waste of time) to find working code suddenly broken because of leftout macro's. And I feel lucky to not having used \ialign, because something similar happened to it. yours sincerelydr. Hans van der Meer hidewidth.pdf

[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 d

Re: [NTG-context] right and left arrowfill

2023-06-22 Thread Hans van der Meer via ntg-context
\rightarrowfill x   x \leftarrowfill xyours sincerelydr. Hans van der Meer hboxarrowfill.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg

[NTG-context] right and left arrowfill

2023-06-21 Thread Hans van der Meer via ntg-context
be needed. yours sincerelydr. Hans van der Meer  hboxarrowfill.tex Description: Binary data hboxarrowfill.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry

[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
Of course. But without that \enabledirective I can redefine the frozen macro at will, as a simple test did show. The crux, however, is that one wants to protect the frozen code always, irrespective of that directive setting. dr. Hans van der Meer > On 12 Jun 2023, at 19:47, Hans Hagen via

[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

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
} \letfrozen\HOME \writestatus{2}{\meaning\HOME} \def\HOME{other home} \writestatus{3}{\meaning\HOME}  Is this mechanism broken? It looks so useful to prevent accidental redefinition! dr. Hans van der Meer

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

2023-05-30 Thread Hans van der Meer via ntg-context
Hans, I see this as a no with respect to changing the behaviour of \small and friends. Which I can well understand: changes on this level may trigger a lot of unwanted problems. But now I can program around it with a clear conscience;-) dr. Hans van der Meer > On 30 May 2023, at 11:33, H

[NTG-context] font style and size interaction

2023-05-30 Thread Hans van der Meer via ntg-context
the same result? 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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage

[NTG-context] font size and style

2023-05-26 Thread Hans van der Meer via ntg-context
d retrieve the current style and reset that after a size command. I rather would refrain from tinkering with those. Since there is a \currentxfontsize is there an analogue for the style? dr. Hans van der Meer ___ If you

[NTG-context] position in xmlfilter

2023-05-22 Thread Hans van der Meer via ntg-context
[] i.e. returns nothing expecting a number return=[\xmlfilter{#1}{../index()}] returns [0] expecting a number larger than 0 return=[\xmlfilter{#1}{./index()}] returns [0] expecting a number larger than 0 dr. Hans van der Meer

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
now > > -- before installing uninstalls a previous installation > -- can uninstall an installed module > -- can list installed modules > Please don't do this! I fear it will break my habit of keeping older versions that worked for me. As a safeguard against things that are broken and wi

[NTG-context] missing xml call

2023-04-21 Thread Hans van der Meer via ntg-context
e . yours sincerely 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 / https://www.ntg.nl/mailman/listinfo/ntg-conte

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
: function xml.registerentity(key,value) entities[key] = value if trace_entities then report_xml("registering entity %a as %a",key,value) end end > On 17 Apr 2023, at 12:32, Hans van der Meer wrote: > > I would like to change an entity 'on the fly'. Example

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

2023-04-17 Thread Hans van der Meer via ntg-context
> Use \xmltexentity Already tried this. But doesn't work. I guess it has more to do with the definition of the entity in the stsrem. met vriendelijke groet, dr. Hans van der Meer Burgemeester Rijnderslaan 244 1185 MC Amstelveen tel. 020 6452701 / 06 53743629 > On 17 Apr 2023, at 13:00,

[NTG-context] xmlsetentity on the fly?

2023-04-17 Thread Hans van der Meer via ntg-context
and never in NEWDATE. How can I change the value of the entity inside the xmlsetups? dr. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg

[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 wr

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 > https://s

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

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
empty line. What happens inside \usemodule to cause this? I confess being baffled. And how to convince ConTeXt to find all my modules? dr. Hans van der Meer ___ If your question is of interest to others as well, plea

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
interface? 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

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 2

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
s.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

[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
nguishable. This is not always wanted, for example when one needs to place either a nil or an empty string into a Lua table. I am running in trouble when to t.key set to \Macro{} should become nil or when it should become "". Is there some common understanding about how to handle this situation? d

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

[NTG-context] date formatting

2021-07-18 Thread Hans van der Meer
mentioned normal behaviour for english. That is [en] and [en-gb] produce the day-month-year order and that [us] and [en-us] month-day-year. dr. Hans van der Meer ___ If your question is of interest to others a

[NTG-context] languages

2021-07-18 Thread Hans van der Meer
. An option I would prefer for clarity, because now the order of calling \language and \mainlanguage makes a difference. dr. Hans van der Meer ___ If your question is of interest to others as well, please add an entry

[NTG-context] hang error

2021-07-08 Thread Hans van der Meer
documents. But maybe it is just an error in the distribution. 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

[NTG-context] xmldisplayverbatim

2021-07-08 Thread Hans van der Meer
I get the impression that \xmldisplayverbatim changes ' (apostroph) into and " (quotation mark) into etc. How can I get rid of this translation? I would prefer to have typeset ' and " instead of the entity representations. dr. Hans va

Re: [NTG-context] whiteline before xmldisplayverbatim

2021-07-05 Thread Hans van der Meer
Found the problem: should not be preceded by \crlf but by \par. dr. Hans van der Meer > On 5 Jul 2021, at 19:21, Hans van der Meer wrote: > > I cannot get rid of the whiteline that \xmldisplayverbatim generates before > its output. Changing to other \xmldisplay macro's di

[NTG-context] whiteline before xmldisplayverbatim

2021-07-05 Thread Hans van der Meer
out: no change \xmldisplayverbatim{#1} \stopxmlsetups result, see the empty lines between abc and the \new.. dr. Hans van der Meer ___ If your question is of interest to others as well, please add an en

[NTG-context] Bug in Luatex file handling?

2021-06-15 Thread Hans van der Meer
in LuaTeX. The lines with and >>>> directly come from print statements inserted in the Lua code. dr. Hans van der Meer Open file in directory 1 and 2 levels deep - direct call succeeds ..io.open("events/hga-0372-345-62.xml","r")=>file (0x7fff97415f88) ...

[NTG-context] keep text strictly inside box

2021-06-07 Thread Hans van der Meer
. 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

[NTG-context] frameoffset in textbackground?

2021-06-07 Thread Hans van der Meer
In the following MWE for a textbackground the parameter backgroundoffset has the expected effect. But for positive values only. A backgroundoffset=-10pt has no visible effect.But the real problem is the parameter frameoffset. No effect at all, whatever frameoffset= is set to. dr. Hans van der Meer

[NTG-context] setup parameter problem

2021-06-07 Thread Hans van der Meer
here. What? \def\Macro{\dosingleargument\doMacro} \def\doMacro[#1]#2{#1X#2} The code below shows that it should be possible. \startsection[title=\Macro{arg} no braces needed]\stopsection \startsection[title={\Macro[arg1]{arg2} enclosed in braces}]\stopsection \stoptext dr. Hans van der Meer

[NTG-context] yscale not working

2021-06-05 Thread Hans van der Meer
scaling.pdf Description: Adobe PDF document 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

Re: [NTG-context] chapter number sought

2021-05-30 Thread Hans van der Meer
Thanks. This helps. dr. Hans van der Meer > On 30 May 2021, at 13:40, Adam Reviczky wrote: > > Hi Hans, > > Does this help: > https://tex.stackexchange.com/questions/134474/context-part-chapter-section-and-subsection-names > > <https://tex.stackexchange.com/qu

[NTG-context] chapter number sought

2021-05-30 Thread Hans van der Meer
With \pagenumber I can call up the current pagenumber and typeset it. But \chapternumber is not defined. How can I typeset the current chapternumber or even the current chapternumber.sectionnumber.subsectionnumber, for example? dr. Hans van der Meer

[NTG-context] no leavevmode

2021-05-27 Thread Hans van der Meer
\crlf ghi jkl xyz \stopsubsection 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

[NTG-context] setupindentations

2021-05-27 Thread Hans van der Meer
This macro \setupindentations is mentioned in my ConText the manual from november 12, 2001. It seems to have disappeared. Is that so? Then why? What replacement? dr. Hans van der Meer ___ If your question

[NTG-context] font message?

2021-04-26 Thread Hans van der Meer
What does it mean? Is there something I should do? 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.n

Re: [NTG-context] How to write readable source files?

2021-04-24 Thread Hans van der Meer
>> Is there a best practice for ConTeXt source files, at all? Readable code is not just about formatting. Adding clear and complete comments that document the code can be considered even more important. dr. Hans van der Meer > On 24 Apr 2021, at 13:55, Henning Hraban Ramm wrote: &g

Re: [NTG-context] nbsp in XML (S01E01)

2021-04-21 Thread Hans van der Meer
> Why tilde is displayed? Wouldn't the simple answer not be: because XML is not TeX? dr. Hans van der Meer > On 21 Apr 2021, at 20:17, Jano Kula wrote: > > Dear list, > > first episode of series on nbsp of XML in lmtx. > Unfortunately, not that catchy as Netflix. >

Re: [NTG-context] autopdf on MacOS?

2021-04-15 Thread Hans van der Meer
Thanks. At least worked twice  met vriendelijke groet dr. Hans van der Meer > On 15 Apr 2021, at 11:45, Henning Hraban Ramm wrote: > > > >> Am 15.04.2021 um 10:26 schrieb Hans van der Meer : >> >> When running the command: context --autopdf --run myfile.tex

[NTG-context] autopdf on MacOS?

2021-04-15 Thread Hans van der Meer
to the Preview application. It something wrong here? Is it not functional in MacOS? Am I missing some clue? met vriendelijke groet dr. Hans van der Meer ___ If your question is of interest to others as well, please add

Re: [NTG-context] latest lmtx, \startitemeze and Multipage TABLEs no longer works

2020-11-16 Thread Hans van der Meer
Shouldn't it be \startitemize ? Or is there another problem? dr. Hans van der Meer > On 16 Nov 2020, at 14:29, Bertrand Masson wrote: > > Hello > With the latest version of lmtx (ConTeXt ver: 2020.11.04 09:40 LMTX fmt: > 2020.11.14) \ startitemeze [2] no longer works. Bullet

Re: [NTG-context] Unwanted whitespace at beginning of document

2020-09-29 Thread Hans van der Meer
Of old I have found the wolf fence tactics useful: Put for example an X at the beginning of a suspected section and somewhat further a Y. OIf they bracket the culprit the offending space will be between them. Otherwise narrow the fence. dr. Hans van der Meer > On 29 Sep 2020, at 14:26, De

Re: [NTG-context] Best way to store text for later use

2020-09-18 Thread Hans van der Meer
A possibility is saving the data as text in a Lua-table. If you are not afraid to use some Lua, I can send my code for saving files and data for repeated use. dr. Hans van der Meer > On 18 Sep 2020, at 15:36, Denis Maier wrote: > > Hi, > > For typesetting XML I'm wondering ho

Re: [NTG-context] catch % in gsub("%", "\\letterpercent")

2020-08-27 Thread Hans van der Meer
In Lua patterns % is a socalled magic character like ^$ etc. These are esacped with a %. Thus %% is what you need in the first string. dr. Hans van der Meer > On 27 Aug 2020, at 17:11, Pablo Rodriguez wrote: > > Dear list, > > I have and \xmlraw command that gives some te

Re: [NTG-context] please explain

2020-08-07 Thread Hans van der Meer
> It is because ffi is a multi-part ligature. Indeed, of course. I am getting old, I fear. It kept me awake in bed yesterday until I realised (far too late) it must be the ffi ligature. dr. Hans van der Meer > On 7 Aug 2020, at 09:29, Taco Hoekwater wrote: > > > >>

[NTG-context] please explain

2020-08-06 Thread Hans van der Meer
n to 'suff' and the message goes away.I have put the full set of files inside the zip. dr. Hans van der Meer \setupbodyfont[termes]\starttext%=ConTeXt versie \contextversion \crlf%

Re: [NTG-context] how to with \margindata

2020-07-15 Thread Hans van der Meer
I didn't miss that argument, of course, my actual code was: \margindata[outer][hoffset=\marginoffset] dr. Hans van der Meer > On 15 Jul 2020, at 22:10, Wolfgang Schuster > wrote: > > Hans van der Meer schrieb am 15.07.2020 um 21:48: >> Using the following: >>

[NTG-context] how to with \margindata

2020-07-15 Thread Hans van der Meer
happens, I conclude that the result of the first expansion is lost and is not carried into the actual placement of the marginnote. The question this is: how to solve this problem? dr. Hans van der Meer ___ If your

[NTG-context] lmtx install fails to run

2020-07-09 Thread Hans van der Meer
. An overfsight somewhere? Below the last part of the context --make en run. Mark the lang-mis.mkxl is not found line. met vriendelijke groet dr. Hans van der Meer resolvers > lua > loading file '/Users/hansm/TeX/context-lmtx/tex/texmf-context/tex/context/base/mkiv/node-bck.lua' succeeded

[NTG-context] overfull message

2020-07-03 Thread Hans van der Meer
there a remedy making these messages disappear from the log? dr. Hans van der Meer hbadness.tex Description: Binary data hbadness.pdf Description: Adobe PDF document ___ If your question is of interest to others as well

Re: [NTG-context] explain please

2020-06-24 Thread Hans van der Meer
\\currentdate Neat solution, worked without a hitch. Now I have to remember this for future use ... dr. Hans van der Meer > On 24 Jun 2020, at 21:10, Hans Hagen wrote: > > On 6/24/2020 9:00 PM, Hans van der Meer wrote: >> How can the crash in the minimal example he

[NTG-context] explain please

2020-06-24 Thread Hans van der Meer
How can the crash in the minimal example here be explained? And is there a solution to avoid this and make the crash going away "without having to jump through special hoops"? dr. Hans van der Meer currentdate.pdf Description: Adobe PDF document currentdate.tex Description: B

[NTG-context] loading xml error

2020-06-23 Thread Hans van der Meer
MLProcessBuffer{#1}% % simply does an \xmlprocessbuffer{}{}{} } The following buffer gives the error: \startbuffer[german] \stopbuffer \loadvocabularyfrombuffer{german} But the others below are ok and load as expected. \startbuffer[german] \stopbuffer and \startbuffer[german] \stop

Re: [NTG-context] Checking existence of a macro (control sequence) by Lua - problem after updating MkIV

2020-06-18 Thread Hans van der Meer
Why can you not simply use one of the doifundefined macro's? Something for example: \doifundefined{ExitStatus}{\gdef\ExitStatus{0}} % default to ok as in UNIX dr. Hans van der Meer > On 18 Jun 2020, at 10:27, Lukas/ConTeXt wrote: > > Hello, > I'm using Hans' macro suggested some

Re: [NTG-context] problem since previous versions

2020-06-07 Thread Hans van der Meer
,% ... ]% and I checked that it had the value: center. But if you are interested, I can send you the module code. dr. Hans van der Meer > On 7 Jun 2020, at 12:20, Wolfgang Schuster > wrote: > > Hans van der Meer schrieb am 07.06.2020 um 12:07: >> A problem has arisen up since previo

[NTG-context] problem since previous versions

2020-06-07 Thread Hans van der Meer
box makes the error disappear. Thanks for looking into it, because my work more or less depends on this code working in good order. dr. Hans van der Meer ___ If your question is of interest to others as well, please add

[NTG-context] errors in margindata?

2020-06-07 Thread Hans van der Meer
its definition l.9 \margindata{ text1}% One has to use \margindata[]{test} to avoid the error.(2) \margindata[]{test} has spurious whitespace,  \margindata[]{test}% must be used to avoid that.Below the minimal example and the output. met vriendelijke groetdr. Hans van der M

[NTG-context] mtxrun exit code

2020-05-29 Thread Hans van der Meer
te the pdf produced, what is my intention in this case. Is this an option or is there presently another (standard) procedure to communicate from ConTeXt to the shell. dr. Hans van der Meer ___ If your question is o

Re: [NTG-context] Is it possible to make xml.load a bit more 'verbose' when it encounters errors?

2020-05-14 Thread Hans van der Meer
}% {\xmlcommand{#1}{.}{xmlcommon:checkxml}} % Execute this code if no error was found. etc. dr. Hans van der Meer \startluacode -- Define our namespace as hvdm hvdm = hvdm or {} -- Function checks the correctness of an XML tree. hvdm.checkXMLtree = function (xml, linesep

Re: [NTG-context] Bug (Lua) ?

2020-03-19 Thread Hans van der Meer
Lua strings can be split across lines by using so called long brackets according to the Lua Reference Manual: [[split string]] or (very first newline ignored): [[ split string]] or with matched levels: [==[ ]==] dr. Hans van der Meer > On 19 Mar 2020, at 14:29, Aditya Mahajan wr

  1   2   3   4   5   6   7   8   >