Re: [NTG-context] Create an enumeration style

2021-08-11 Thread Thomas A. Schmitz via ntg-context
> On 11. Aug 2021, at 10:09, Otared Kavian via ntg-context > wrote: > > Thanks for the example and the fix, but I would rather think that the « > french » part of ordinals should be > > french = function(n) > if n == 1 then > return « er" >

[NTG-context] ligature exceptions

2021-07-28 Thread Thomas A. Schmitz via ntg-context
Hi all, just two quick questions: a couple of weeks ago, there was a long discussion on ligature exceptions in, e.g., German. Hans provided an elegant new mechanism (\startlanguageoptions). So my two questions: 1. Is the old mechanism (\replaceword[eg][Auflage][Au{fl}age]) now obsolete? I

Re: [NTG-context] Code document and simpleslides and create in one go the document with simpleslides added

2021-07-31 Thread Thomas A. Schmitz via ntg-context
On 7/31/21 3:27 PM, Jeroen via ntg-context wrote: Is there an easy way to write a Context document and also code simpleslides in the same document so that the simpleslides are automatically added to the document as for example an appendix? Ie one tex document with Context code, perhaps with

Re: [NTG-context] Code document and simpleslides and create in one go the document with simpleslides added

2021-07-31 Thread Thomas A. Schmitz via ntg-context
On 7/31/21 4:06 PM, Pablo Rodriguez via ntg-context wrote: BTW, I cannot get simpleslides working with LMTX. I had to make some slight adjustments but have been to lazy to upload a new and improved version. One reason being that I can't remember my username and password for the modules

Re: [NTG-context] Strange new behaviour of the mailing list

2021-07-31 Thread Thomas A. Schmitz via ntg-context
On 7/31/21 11:41 AM, Denis Maier via ntg-context wrote: I think so too. Especially since the original sender's address isn't included in "reply to all" messages. I think it's an improvement. I have never understood why the original sender needs an additional mail, on top of the one (s)he

Re: [NTG-context] Harvard bibliography style

2021-08-10 Thread Thomas A. Schmitz via ntg-context
To get you started: the APA standards are defined in publ-imp-apa.mkvi and publ-imp-apa.lua. You could try and copy these files to different names (beginning with publ-imp-) and then make changes. You’ll have to replace the “apa:” prefix with the name you give your own style. From my

[NTG-context] Something smells rotten in the state of luametatex...

2021-10-08 Thread Thomas A. Schmitz via ntg-context
Hi all, I have a document here for one of my classes: xml processed via context, some layers, some two column paragraphs, a bibliography, nothing out of the ordinary. With mkiv, it compiles cleanly: mkiv lua stats > used engine: luatex version: 1.13, functionality level: 7420, banner:

[NTG-context] metafun: circular arc

2021-10-05 Thread Thomas A. Schmitz via ntg-context
Hi all, I hope the following example is not too convoluted: \useMPlibrary [txt] \define\EmpArrow{\getscaledglyph{1.6}{name:dejavumath}{\char"2B05}} \setupbodyfont [ss,9pt] \starttext \startuseMPgraphic{empedocles} %numeric a ; a = 6.56cm ; %numeric b ; b = 1.1 ; save S; path S[] ; S[1] =

Re: [NTG-context] metafun: circular arc

2021-10-05 Thread Thomas A. Schmitz via ntg-context
Thank you so much, Hans, that's a neat solution! I was banging my head against the wall, but this makes sense. On 10/5/21 6:38 PM, Hans Hagen wrote: Because you know how to rotate and scale: \startuseMPgraphic{empedocless} path p, q, r ; pair a ; p := fullcircle scaled 10cm ; drawarrow p   

Re: [NTG-context] Critical Editions?

2022-01-04 Thread Thomas A. Schmitz via ntg-context
I basically agree with everything you say, Jean-Pierre. Publishers are modern-day robber barons, and they have been stifling and exploiting scholars and scholarship for many years now. Behemoths such as Brill, de Gruyter, or Elsevier are bankrupting libraries in the entire world. However, we

Re: [NTG-context] adjusting vertical space

2021-11-25 Thread Thomas A. Schmitz via ntg-context
On 11/25/21 00:06, jbf via ntg-context wrote: The following MWE You do know what MWE stands for, right? Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

Re: [NTG-context] rule beneath chapter number

2021-11-12 Thread Thomas A. Schmitz via ntg-context
On 11/12/21 18:13, Henning Hraban Ramm via ntg-context wrote: You’re right, tabular numbers are nonproportional. I meant versal (“normal”) numbers in opposite of oldstyle (mediaeval) numbers. I think there are two mutually exclusive feature pairs that you're mixing up: lnum vs onum:

Re: [NTG-context] Critical Editions?

2022-01-04 Thread Thomas A. Schmitz via ntg-context
> On 3. Jan 2022, at 10:43, hanneder--- via ntg-context > wrote: > > While the system is ingenious > and a great relief (for we do not have to work with xml directly), I am also > critical about these > new demands, because they force us to use a fairly complex system for > sometimes quite

Re: [NTG-context] SimpleSlides and Visual counters

2022-01-16 Thread Thomas A. Schmitz via ntg-context
On 16.01.22 15:56, Otared Kavian via ntg-context wrote: Hi Aditya, Some time ago I reported an issue with LMTX regarding your visual counter (at least the version used in the simpleslides module). Now I think I have found where the issue comes from: it is due to the fact that somehow the

Re: [NTG-context] Force a hyphenation

2022-03-16 Thread Thomas A. Schmitz via ntg-context
Hi Willi, I must admit that after the reform some 20 years ago, I'm no longer certain about German rules. But I think that in fact, according to the new rules, ß is no longer hyphenated the way you suggest. Duden § 164.3: "Ein einzelner Konsonantenbuchstabe im Wortinneren kommt in der Regel

Re: [NTG-context] New upload is DOA on my M1 Mac

2022-03-15 Thread Thomas A. Schmitz via ntg-context
> On 15. Mar 2022, at 15:03, Gavin via ntg-context wrote: > > JP and Bruce, > > Do either of you have the new upload working on an M1 Mac? > > I appreciate the ideas, but I’m not entirely new to this. I’ve kept several > different ConTeXt installations. I can run them from terminal or

Re: [NTG-context] PageNumber in MetaFun

2022-03-02 Thread Thomas A. Schmitz via ntg-context
On 3/2/22 13:05, Marco Patzer via ntg-context wrote: LMTX 2022.01.21 20:13 produces a rectangle on page 2, an older MkIV produces a circle on page 2. Is this expected behaviour? Marco This has changed some time ago; try "RealPageNumber" instead of "PageNumber." Thomas

Re: [NTG-context] Trying to get a simple bibliography

2022-03-26 Thread Thomas A. Schmitz via ntg-context
> On 26. Mar 2022, at 14:04, A A via ntg-context wrote: > > The next question I guess is whether ConTeXt support other specs like MLA or > Chicago style. I tried MLA but without sucess. Is MLA possible in ConTeXt? One (admittedly far-fetched) possibility would be to read the documentation.

Re: [NTG-context] Trying to get a simple bibliography

2022-03-26 Thread Thomas A. Schmitz via ntg-context
Hi Amine, The bibliography subsystem is rather complex, and Alan, who has worked with Hans on support for APS and APA, wants to do things the right way, which means he wants to code for all corner cases. From my own experience: it is difficult to just copy and modify the existing publ-imp-XXX

Re: [NTG-context] Trying to get a simple bibliography

2022-03-26 Thread Thomas A. Schmitz via ntg-context
> On 26. Mar 2022, at 16:42, Denis Maier via ntg-context > wrote: > > I think you've done that already ... Oh my goodness, I’m getting too old for this… Thanks for pointing that out! [Historical context: the Greek scholar Didymus had several nicknames. One was Chalcenterus “Bronze-Guts”

[NTG-context] Xml - lua - context

2022-03-28 Thread Thomas A. Schmitz via ntg-context
Dear all, For a small project, I have two questions (without MWE…) on processing xml via Lua and context. I’ll write two messages so eager volunteers can reply more easily! So question one: given an xml structure like this Introduction: the Iliad Introduction:

[NTG-context] Xml - Lua - context

2022-03-28 Thread Thomas A. Schmitz via ntg-context
And here comes question 2, a very basic one: on A4 landscape pages, I want to place two images next to each other (like the spread pages of a book). What would be the preferred way of the really competent users to do this, again keeping in mind that I want to loop over page numbers in a pdf

Re: [NTG-context] modify kern between two glyphs

2022-04-05 Thread Thomas A. Schmitz via ntg-context
> On 5. Apr 2022, at 13:02, mf via ntg-context wrote: > > Is it possible to solve it globally and only for a single font? > > Thanks, > Massi Have you looked at chapter 5.4 “Goodies” of fonts-mkiv.pdf? That should get you started. Thomas

Re: [NTG-context] Xml - Lua - context

2022-03-28 Thread Thomas A. Schmitz via ntg-context
> On 28. Mar 2022, at 18:21, Adam Reviczky via ntg-context > wrote: > > Hi Thomas, > > Not sure whether it helps or not, but in regards to combinations and Lua I > have had some challenges as well, but Hans' and Wolfgangs' solution with > externalfigures works fine for me now: > >

Re: [NTG-context] How to make an in-text list without periods

2022-01-23 Thread Thomas A. Schmitz via ntg-context
This is a FAQ: you can't mix keywords and assignments, hence: \startitemize [n,text] [stopper=] Thomas On 23.01.22 21:05, Joel via ntg-context wrote: Strangely when I use `\startitemize[text, n, stopper=]`, which I hoped would make the period go away, I just get a regular bulleted list, it

Re: [NTG-context] Compiling a large metapost document

2022-06-01 Thread Thomas A. Schmitz via ntg-context
On 6/1/22 22:15, Stefan Nedeljkovic via ntg-context wrote: The problem *is* the file size. There is not a minimal example, because everything works when there is less drawdot commands. There is 125000+ drawdot commands in the file. The run ends with the message: If you really absolutely need

Re: [NTG-context] Compiling a large metapost document

2022-06-01 Thread Thomas A. Schmitz via ntg-context
On 6/1/22 19:35, Stefan Nedeljkovic via ntg-context wrote: Sorry, i just updated the file, should now compile, but fail due to resources. Are the configuration options to context that would enable this file to be compiled? The question still stands: what do you expect us to do? Hunt for a

Re: [NTG-context] Compiling a large metapost document

2022-06-02 Thread Thomas A. Schmitz via ntg-context
On 01.06.22 23:30, Stefan Nedeljkovic wrote: I Tried editing the file context/tex/texmf/web2c/texmfcnf.lua, and running context --generate, context --make, but the error persists. I'm new to context and I don't know how to configure this file. Running --usage reveals in the log that the

[NTG-context] Backgrounds has changed in latest lmtx

2022-10-21 Thread Thomas A. Schmitz via ntg-context
Hi everybody, With the latest lmtx, my page backgrounds don’t work any more. I think Otared mentioned that the simpleslides module is having problems. I’m trying to figure out what is happening, but I don’t see any warnings or errors, just unexpected results (which is not a good thing). I’m

Re: [NTG-context] Backgrounds has changed in latest lmtx

2022-10-23 Thread Thomas A. Schmitz via ntg-context
Here comes another one that works with the switch --luatex but not in lmtx: \setuppapersize[A6,landscape][A6,landscape] \startuseMPgraphic{ornament} StartPage ; save diff ;numeric diff; diff = .3cm ; save w; numeric w; w = xpart (lrcorner Field[Text][Text] - llcorner Field[Text][Text]) - diff

Re: [NTG-context] Backgrounds has changed in latest lmtx

2022-10-23 Thread Thomas A. Schmitz via ntg-context
On 10/23/22 15:51, Hans Hagen wrote: there was another fix yesterday (already uploaded) Hans Ah sorry, I missed that! It runs with my test file now, thanks! But my real file dies with this error: fatal lua error: registered function call [1141]:

Re: [NTG-context] Backgrounds has changed in latest lmtx

2022-10-23 Thread Thomas A. Schmitz via ntg-context
On 10/23/22 21:34, Otared Kavian via ntg-context wrote: Hi Thomas, Both your examples typeset fine with my installation of LMTX (version 2022.10.22 11:23) on MacOS 11.7. (Indeed you previous file test file reporting the background issue is typeset fine also). Best regards : Otared Thanks,

Re: [NTG-context] Backgrounds has changed in latest lmtx

2022-10-23 Thread Thomas A. Schmitz via ntg-context
On 10/23/22 21:54, Leah Neukirchen wrote: FWIW I get the error too on linux64. OK, found it. File lmtx/tex/texmf-context/tex/context/fonts/mkiv/xits-math.lfg is missing the lines local common = fonts.goodies.load("common-math.lfg") local presets = common.mathematics.tweaks.presets at the

Re: [NTG-context] Backgrounds has changed in latest lmtx

2022-10-23 Thread Thomas A. Schmitz via ntg-context
On 10/23/22 16:21, Mikael Sundqvist via ntg-context wrote: It works here. Are you sure that you updated to the latest? (There was a few updates lately) /Mikael I have just update to current version: 2022.10.22 11:23 so I think that's the latest. Minimal example: \definefontfamily [test]

[NTG-context] TUG 2023

2023-01-04 Thread Thomas A. Schmitz via ntg-context
Hi everybody, an excellent year 2023 to all of you - I hesitate to say "it can only get better from 2022." That's what we thought last year, and boy were we wrong and did it get worse... Let's hope that this year will be more peaceful and less pandemic... But to my topic: the official

[NTG-context] Trouble with latest...

2023-01-08 Thread Thomas A. Schmitz via ntg-context
Hi all, I tried upgrading to the 2023 version, but generating the format fails with lots of these messages: ! Control sequence expected instead of undefined. \syst_basics_allocate_yes #1#2#3#4#5->\ifnum #1<#4\relax \global \advanceby #1\plusone \permanent \global #3#5=#1\relax \else

Re: [NTG-context] Trouble with latest...

2023-01-08 Thread Thomas A. Schmitz via ntg-context
On 1/8/23 21:02, Wolfgang Schuster via ntg-context wrote: You luametatex binary is too old and fails on the new \advanceby command. When I tried to update my current installation a few moments ago the updater also failed to load the new luametatex binary (I haven't tried to regenerate the

[NTG-context] Heisenbug in current?

2022-11-23 Thread Thomas A. Schmitz via ntg-context
Hi all, I'm very hesitant to report this because I can't reproduce it consistently: some of my files don't compile with bizarre font errors, sometimes. At first I thought it may be a hardware problem on my laptop, but I've seen more or less the same error on 3 different computers now,

Re: [NTG-context] Heisenbug in current?

2022-11-23 Thread Thomas A. Schmitz via ntg-context
On 11/23/22 23:25, Hans Hagen via ntg-context wrote: probably not that random ... can you put this on top of font-otr.lua local number = number and see if that helps .. if so you can then spend the rest of the evening figuring out where 'number' gets defined global Yup, that seems to help!

Re: [NTG-context] Xml filtering in Lua

2022-11-16 Thread Thomas A. Schmitz via ntg-context
Hi Duncan, Thank you for pointing this out! I knew this was true inside the xmlns namespace, so you can’t have identical xml:id tags, but you’re probably right that it’s better to avoid this confusion altogether. Alas, this doesn’t help with my problem. Since there was a type in my minimal

[NTG-context] Xml filtering in Lua

2022-11-16 Thread Thomas A. Schmitz via ntg-context
Hi all, I thought this was easy, but I overestimated my competence… I want to filter xml elements via their attributes and retrieve and typeset parts belonging together. Here is a small test file that explains what I’m trying: \startbuffer[test] This is the first test

Re: [NTG-context] Xml filtering in Lua

2022-11-20 Thread Thomas A. Schmitz via ntg-context
On 11/17/22 11:04, Hans Hagen via ntg-context wrote: so, basically you collect data and use it later ... for huge datasets that saves some time if you have only chapters to process you can even decide to flush in that function Alright, I'm making very good progress here, but right now I'm

Re: [NTG-context] Xml filtering in Lua

2022-11-21 Thread Thomas A. Schmitz via ntg-context
On 11/20/22 19:19, Thomas A. Schmitz via ntg-context wrote: I load data from an external xml file (not the one I'm processing) and store some of it in a lua table. local examples = lxml.load ("my_examples", "examples.xml") Replying to myself, and sorry for the noise (

Re: [NTG-context] Xml filtering in Lua

2022-11-16 Thread Thomas A. Schmitz via ntg-context
On 11/16/22 19:56, mf via ntg-context wrote: local ch_id = t.at["ch:id"] You're right, of course, using a colon was a stupid idea. When I replace it with an underscore, you can see that both are in fact identical: \startbuffer[test] This is the first test 22/11/16

Re: [NTG-context] Xml filtering in Lua

2022-11-16 Thread Thomas A. Schmitz via ntg-context
On 11/16/22 21:51, Denis Maier via ntg-context wrote: Just a quick question regarding this? Is xml.filter equivalent to \xmlfilter? If so, how do you pass the match to a command as you'd do with \xmlfilter? I'm still digesting and playing with Massi's reply; will probably be back with more

Re: [NTG-context] Xml filtering in Lua

2022-11-17 Thread Thomas A. Schmitz via ntg-context
> On 17. Nov 2022, at 11:04, Hans Hagen via ntg-context > wrote: > > so, basically you collect data and use it later ... for huge datasets that > saves some time > > if you have only chapters to process you can even decide to flush in that > function > > Hans I think this is exactly the

Re: [NTG-context] rewrite for Greek in the wiki

2023-01-21 Thread Thomas A. Schmitz via ntg-context
Hi Pablo, thanks for this; it is very informative and clear. Just one short remark and one correction: 1. "Before 1982, Greek ort[h]ography was polytonic." That's a bit of an oversimplification. I'm no expert here, but I think many Greek print publications had already given up on using

[NTG-context] font features

2022-11-03 Thread Thomas A. Schmitz via ntg-context
Hi, is there an easy way to get a list of all features that a font has and typeset a sample text to see the result of every single feature? There probably is, but I couldn't find anything... All best Thomas ___

Re: [NTG-context] font features

2022-11-03 Thread Thomas A. Schmitz via ntg-context
On 11/3/22 12:52, Herbert Voss via ntg-context wrote: You'll get only the features with otfinfo in the terminal. For example: Thank you, I was aware of that. But that's only the first step: you still have to use this list to define ConTeXt featuresets and then typeset. I was trying to build

Re: [NTG-context] font features

2022-11-03 Thread Thomas A. Schmitz via ntg-context
On 11/3/22 13:27, Henning Hraban Ramm via ntg-context wrote: If it works for you, then it’s a problem of my installation, otherwise a regression in current LMTX... No, I get the same error message, this looks promising but doesn't work. And at the risk of sounding grumpy, but all of this is

Re: [NTG-context] font features

2022-11-03 Thread Thomas A. Schmitz via ntg-context
On 11/3/22 19:24, Hans Hagen via ntg-context wrote: You're going way too complex. Access to features and info has alwaye been part of mkic (and therefore lmtx). You can peek into the s-font* styles for all kind of ways to get overviews. Anyway, the following helper operates on the current

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

2023-04-17 Thread Thomas A. Schmitz via ntg-context
Use \xmltexentity Thomas > On 17. Apr 2023, at 12:32, Hans van der Meer via ntg-context > wrote: > > I would like to change an entity 'on the fly'. Example ___ If your question is of interest to others as well,

[NTG-context] fallbacks

2023-04-22 Thread Thomas A. Schmitz via ntg-context
Hi all, today, I was struggling with a fallback font I had defined, and I discovered that the key "check" doesn't work as I expected. Here's a small example: \definefallbackfamily [presentation] [serif] [TeXGyreTermes] [range=0x2329-0x232A,check=yes] \definefontfamily [presentation]

Re: [NTG-context] fallbacks

2023-04-22 Thread Thomas A. Schmitz via ntg-context
Thank you, Pablo, but that doesn't help. I know how to use fallback fonts. I was wondering if the check key is working as it should. Thomas On 4/22/23 20:33, Pablo Rodriguez via ntg-context wrote: Hi Thomas, I don’t know what check does (maybe just check?), but the standard behaviour with

[NTG-context] meta-imp-fen in mkxl?

2023-03-30 Thread Thomas A. Schmitz via ntg-context
Hi all, I wanted to use a rightbrace as background for a table, as defined in meta-imp-fen.mkiv. Unfortunately, I can't get it to work, for 2 reasons: 1. meta-imp-fen doesn't appear to be ported to mkxl. 2. When I try to compile with the --luatex switch, I get this error message: tex error

Re: [NTG-context] Super slow installation

2023-05-30 Thread Thomas A. Schmitz via ntg-context
On 5/30/23 18:07, Thangalin via ntg-context wrote: Still sluggish. Downloading texmf.zip took 22s for 50MB: $ wget http://lmtx.pragma-ade.com/install-lmtx//texmf.zip --2023-05-30 09:02:50-- http://lmtx.pragma-ade.com/install-lmtx//texmf.zip