[NTG-context] Re: Issue with italics

2024-02-26 Thread Thomas A. Schmitz
I just tried your example with the latest version of GFSDidot (the older version I had on my system did not show some diacritics; this problem disappeared when I installed the latest), and the italics are there, I don’t see any problem in the pdf. If you want the Greek displayed in Theano, you

[NTG-context] Re: upload

2024-01-23 Thread Thomas A. Schmitz
Hi Otared, I just tried, and my Macbook ran the update without any problem. Does it make any difference if you chmod +x the script install.sh? All best Thomas On 1/23/24 21:59, Otared Kavian wrote: Hi Dr Hans Van der Meer, Thank you for your help. It seems that since January 18 something

[NTG-context] Named characters

2024-01-15 Thread Thomas A. Schmitz
Hi all, not a complaint, just a question (for Hans and Wolfgang, I guess): in recent versions of lmtx, Greek named characters (constructs such as \greekdasiatonos) don't work any more. Which means I have to adapt some of my older macros. Is this an oversight or did they get axed? All best

[NTG-context] Re: How can I use a variable for a MetaPost coordinate ?

2023-10-05 Thread Thomas A. Schmitz
Have a look at chapter 6.4 of the metafun manual. You need StartPage ... StopPage in your MPcode, then you can knock yourself out by using variables such as PaperHeight or TextHeight and do all sorts of calculations. All best Thomas On 10/5/23 05:54, peter.hopcroft--- via ntg-context wrote:

[NTG-context] Re: Offline documentations

2023-10-02 Thread Thomas A. Schmitz
On 02.10.23 10:32, Juliano David Hilario wrote: If I were to download the entire wiki with the exception of the discussion files and the user pages, do you think it would be wise? I would try to make it dynamically updatable too, if possible, and also try to make as offline-friendly as the

[NTG-context] Re: xmldoif: checking for contents of attribute

2023-08-24 Thread Thomas A. Schmitz
One way would be to do the search in Lua; when you have multiple searches to perform, that may be the easiest way to go. For example: \startxmlsetups xml:test \xmlsetsetup{#1}{*}{-} \xmlsetsetup{#1}{doc|element}{xml:*} \stopxmlsetups

[NTG-context] Re: MAPS nr 53

2023-08-23 Thread Thomas A. Schmitz
On 22.08.23 21:16, Hans Hagen wrote: On 8/22/2023 8:24 PM, Keith McKay wrote: Would it be possible to list the contents to whet our appetites? the successive chapters are basically the long articles that taco wrote about mp fundamentals for ctx meetings / journal + one extra Hans I just

[NTG-context] Re: XML processing beginner's question

2023-08-21 Thread Thomas A. Schmitz
On 8/21/23 18:36, Michael Löscher wrote: Thank you so far. But what I would like to understand first ist how the different setups work togehter. How are they processed? What is the order of processing, which are the stets taken by the enginge when processing an xml document? Without

[NTG-context] Re: XML processing beginner's question

2023-08-21 Thread Thomas A. Schmitz
On 8/21/23 17:59, Michael Löscher wrote: Yes, I have done that. But I don't seem to have the basic context of how the processing works in order. All I have so far is this as a starting point: Really? I told you about the various commands \xmldoif, but there's nothing in your starting point.

[NTG-context] Re: XML processing beginner's question

2023-08-21 Thread Thomas A. Schmitz
Have you looked at chapter 3.10 "Testing" of the manual xml-mkiv.pdf? There are a lot of commands there that should help you, such as \xmldoiftext {#1} {/mdata/date} {\bf \xmlflush {#1}} or \xmldoifelsetext. There's also \xmlfilter, which you can use to test for the content of tags. And of

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-21 Thread Thomas A. Schmitz
On 8/21/23 14:22, Carlos wrote: fuck this shit. The first reaction would of course be to respond in the same tone. I think it would be wrong. You should be aware that to most of us, your messages sound like they come from a sociopath. Nothing in the subject we're talking about warrants

[NTG-context] Re: hyphenation inside quotation

2023-08-19 Thread Thomas A. Schmitz
On 8/19/23 17:51, Wolfgang Schuster wrote: You can use the font method to have hyphenated words back. The culprit which prevents hyphenation are the penalty settings which are added by ConTeXt when the default method is used. \mainlanguage [de] \setuppapersize [A6]

[NTG-context] hyphenation inside quotation

2023-08-19 Thread Thomas A. Schmitz
Hi, is this a limitation or a bug? Text inside \quotation{} is not hyphenated. It appears to be like this for a couple of versions, but I'm not sure if it has always been the case. Silly example to test: \mainlanguage [de] \setuppapersize [A6] \setupbodyfont [14pt] \starttext

[NTG-context] side-by-side paragraphs broken?

2023-08-13 Thread Thomas A. Schmitz
Hi, in more recent versions of lmtx, the side-by-side mechanism appears to be broken; example below. The right-hand paragraph does not respect the margin and backspace setting. The output looks fine in mkiv and with older versions of lmtx (the one from texlive, so 2023.03.10). Not sure if

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

2023-08-07 Thread Thomas A. Schmitz
On 8/7/23 20:08, Hans van der Meer via ntg-context wrote: Please phrase your reaction differently. This is absolutely not about my sense of humor. But if you have observed the news media these last few years, you may have noticed how sensitive the public opinion has become about "humor" of

[NTG-context] Re: Problem with latest

2023-07-20 Thread Thomas A. Schmitz
> On 20. Jul 2023, at 17:38, Hans Hagen wrote: > > patch in that file: > >local popen = io.popen > Thank you, that fixes it! Thomas ___ If your question is of interest to others as well, please add an

[NTG-context] Problem with latest

2023-07-20 Thread Thomas A. Schmitz
Hi everybody, The latest (2023.07.18 22:07) has a consistent problem with all files on my computer; every run has this: fatal lua error: registered function call [1715]: ...s/lmtx/tex/texmf-context/tex/context/base/mkxl/l-lua.lmt:84: attempt to call a nil value (upvalue 'popen’) Does anyone

[NTG-context] OSFONTDIR

2023-07-19 Thread Thomas A. Schmitz
Hi everybody, just a short question: I was under the impression that ConTeXt would not look for system fonts unless we set OSFONTDIR explicitly; this appears to be the basis of the page Use_the_fonts_you_want on the wiki, and I prefer this behavior because it lets me control the fonts I want

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

Re: [NTG-context] fallbacks

2023-04-22 Thread Thomas A. Schmitz via ntg-context
e it might help, -- Prof. Dr. Thomas A. Schmitz Institut für Klassische und Romanische Philologie Universität Bonn Am Hof 1e 53113 Bonn http://www.philologie.uni-bonn.de/de/personal/schmitz ___ If your question is

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

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

[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

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!

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

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

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

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

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

[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

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

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”

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

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

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   

[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] 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" >

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

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

[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] reusableMPgraphic

2021-07-15 Thread Thomas A. Schmitz
On 7/15/21 11:10 PM, Jairo A. del Rio wrote: Hi, list! Is this already fixed in a new upload? I'm compiling old documents and having the same problem as Thomas, although Wolfgang's comment fixes it nicely. Cordially, There hasn't been a new upload since I asked my question, so for the time

[NTG-context] reusableMPgraphic

2021-07-12 Thread Thomas A. Schmitz
Hi all, I don’t know if I’m overlooking something really basic or if this is a bug. The following MWE compiles with mkiv, but not with lmtx: \startreusableMPgraphic{fold} fill unitsquare xyscaled (1mm,1mm) withcolor blue ; \stopreusableMPgraphic

Re: [NTG-context] font feature

2021-07-09 Thread Thomas A. Schmitz
> On 8. Jul 2021, at 23:33, Hans Hagen wrote: > > you forgot the 'default' so you basically force basemode which is does > permanent features .. add/subtract works only in node mode > > \definefontfeature > [f:onum] > [onum=yes,pnum=yes] > > \definefontfamily [test] [serif]

[NTG-context] font feature

2021-07-08 Thread Thomas A. Schmitz
Hi all, is it possible to subtract a featureset that has been applied to a fontfamily? MWE: \definefontfeature [f:frac] [frac=yes,onum=no,pnum=no] \definefontfeature [f:onum] [onum=yes,pnum=yes] \definefontfamily [test] [serif] [AntykwaTorunska] [features=f:onum] \definefontfamily

Re: [NTG-context] Question about "streams" module

2021-06-22 Thread Thomas A. Schmitz
On 6/22/21 5:43 PM, MANUEL GONZALEZ SUAREZ wrote: Hello everybody: My question is this: Is the "streams" module obsolete? If not, where can I find documentation on its use? Thanks M. González. Hans is working on a new mechanism and has recently been thinking about integrating (some of)

Re: [NTG-context] LMTX and my custom typescripts

2021-05-28 Thread Thomas A. Schmitz
> On 28. May 2021, at 18:40, Michael Guravage > wrote: > > Any encouragement in how to resolve this would be much appreciated. > Hi Michael, Try renaming it to type-imp-DollyPro.tex (and then of course \usetypescriptfile[type-imp-DollyPro]), that should help. This changed a couple of

Re: [NTG-context] TeX capacity exceeded

2021-05-19 Thread Thomas A. Schmitz
On 19.05.21 18:34, Hans Hagen wrote: Can you check the latest upload? You should be able to go way higher. Yes, with 2021.05.19 18:22, the file compiles again in lmtx! I'm also trying your suggestions for improving the Lua code and rethinking my tables for analyzing the vocabulary. Thank

[NTG-context] TeX capacity exceeded

2021-05-17 Thread Thomas A. Schmitz
Hi all, I have a rather large (almost 120,000 lines) xml file, processing pulls in another large xml file. The project compiles under mkiv; with lmtx, I get tex error > tex error on line 8 in file : TeX capacity exceeded, sorry [reference count=32767] \reallanguagetag just twenty

Re: [NTG-context] randomize direction of arrow in metafun

2021-05-15 Thread Thomas A. Schmitz
On 5/15/21 2:42 PM, Mikael Sundqvist wrote: Hi, you could do something like this: \startMPpage for i = 0 upto 10: drawarrow if uniformdeviate(1)<0.5: reverse fi ((0,0)--(2cm,0)) yshifted i*cm; endfor; \stopMPpage /Mikael Hi Mikael, wonderful, thanks for the quick answer! Yes that works

[NTG-context] randomize direction of arrow in metafun

2021-05-15 Thread Thomas A. Schmitz
Hi all, for a slide template, I want to draw colored arrows in a randomized color (from a list of colors). This works (and the code is far too clever for me, I must have copied it somewhere): save mycolor ; color mycolor[] ; mycolor[1] := (0.2, 0.3, 0.4) ; mycolor[2] := (0.6, 0.6, 0.4) ;

Re: [NTG-context] Fuzzy lines

2021-05-14 Thread Thomas A. Schmitz
> On 13. May 2021, at 21:42, Henning Hraban Ramm wrote: > > Hi Thomas, > > for my test files you only also need Aditya’s latest mp-sketch.mp, now > attached. > > Find also attached my (somewhat simplified) attempt on a cover for a new > workbook series. > In the original I’m using the

Re: [NTG-context] Fuzzy lines

2021-05-13 Thread Thomas A. Schmitz
On 5/13/21 8:02 PM, Henning Hraban Ramm wrote: Unfortunately, the deviation of edge points is too big – try my attached test file. Strangely, if I include the MP code in a ConTeXt document, I find the discussion interesting. Could you send complete documents, like Aditya did? When I try to

Re: [NTG-context] Corrupt PDF files with LMTX?

2021-04-24 Thread Thomas A. Schmitz
On 24.04.21 08:03, Jairo A. del Rio wrote: Hi, list! When I try to convert a PDF generated by ConTeXt LMTX to PNG using ImageMagick's convert the following happens: Error: stream Length incorrect. Output may be incorrect. Error: An error occurred while reading

Re: [NTG-context] xml processing in latest

2021-04-21 Thread Thomas A. Schmitz
On 4/21/21 10:34 AM, denis.ma...@ub.unibe.ch wrote: Hi What's the exact issue? You're not using the latest version: 2021.04.20 18:45 Thomas ___ If your question is of interest to others as well, please add an

[NTG-context] xml processing in latest

2021-04-21 Thread Thomas A. Schmitz
Hi all, the latest has some strange problems with xml processing. The example below shows an issue with itemize. In my real file, I also get pages that are filled only two thirds and rugged right instead of justified, but I haven't been able to reproduce this in a MWE. Maybe this one can

Re: [NTG-context] autopdf on MacOS?

2021-04-16 Thread Thomas A. Schmitz
On 4/16/21 10:26 AM, Hans Åberg wrote: That it doesn’t update in the background is more a feature than a bug, otherwise it would complain about broken/unavailable files during the TeX runs. It is likely a bug: It has worked in some past versions. It still works for me (I'm on the latest

Re: [NTG-context] issue field in bibliography

2021-03-29 Thread Thomas A. Schmitz
On 3/29/21 10:45 AM, Damien Thiriet wrote: I have questions related with a journal named "Documentation photographque". Each issue is devoted to another theme. How should I declare this theme in bibliography fields when quoting articles? It is quite important to get it, because the main

[NTG-context] bug in lmtx

2021-03-09 Thread Thomas A. Schmitz
Hi Hans, I've found a very interesting bug in lmtx. The following MWE gives the expected result in mkiv; in lmtx, one character is missing. Perhaps you can figure out what's happening... All best Thomas \setupbodyfont [gentium, 12pt] \starttext Test \hskip1em ἀβ Test \hskip1em ἁβ

Re: [NTG-context] lmtx error: You can't use 'integer 340' in internal vertical mode

2021-02-23 Thread Thomas A. Schmitz
On 2/23/21 6:14 PM, Hans Hagen wrote: I have no clue because it just works here. I uploaded a new version (no real changed in that area) so who knows ... Are you sure? You have to compile with the --arrange switch. I just tested with 2021.02.23 17:47, still same error. Thomas

Re: [NTG-context] lmtx error: You can't use 'integer 340' in internal vertical mode

2021-02-23 Thread Thomas A. Schmitz
On 20.02.21 17:12, Hans Hagen wrote: hm, but it still makes sense to know if something fails .. keep en eye on it I just stumbled upon the same error. Arranging is broken in lmtx. MWE: \setuppapersize[A6][A4] \setuparranging[2*4] \starttext \dorecurse{8}{Test: \recurselevel \page}

Re: [NTG-context] Loop?

2021-02-12 Thread Thomas A. Schmitz
On 2/12/21 7:39 PM, Angel M Alganza wrote: Is it possible to do that with just ConTeXt or would I need to resort to Lua.  I guess it should be possible both ways, but I haven't figure out how to do it.  Any pointer, please? https://wiki.contextgarden.net/Processing_Lists which wasn't

Re: [NTG-context] composing commands

2021-02-05 Thread Thomas A. Schmitz
On 2/5/21 10:30 PM, Hans Hagen wrote: Is this ok for you? tex error   > tex error on line 6 in file ./oeps.tex: Undefined control sequence \v  4  5 \starttext  6 >>  \v  7 \stoptext  8 Otared has already replied what I was thinking: would it be possible, for a certain

Re: [NTG-context] composing commands

2021-02-05 Thread Thomas A. Schmitz
On 2/5/21 5:38 PM, Hans Hagen wrote: etc ... the ones that make 'composed characters'. I think that anyone who needs them uses utf . They can be in (say) m-oldschool.mkxl or so. Objections? Hurt feelings? Sentiments? No hurt feelings, but I know that in my bib files, there are a couple of

Re: [NTG-context] Bib support broken in lmtx

2021-01-30 Thread Thomas A. Schmitz
On 1/30/21 10:50 AM, Philipp A. wrote: Am I caught in a spam filter somewhere? Compiles fine here with 2021.01.28 18:22 Thomas ___ If your question is of interest to others as well, please add an entry to the

Re: [NTG-context] code 139

2021-01-29 Thread Thomas A. Schmitz
> On 29. Jan 2021, at 17:55, Otared Kavian wrote: > > Out of curiosity I tested your MWE and I get > > mtx-context | fatal error: return code: 11 Maybe lmtx uses the random number generator to produce its return codes? :-) Thomas

Re: [NTG-context] code 139

2021-01-29 Thread Thomas A. Schmitz
> On 29. Jan 2021, at 16:27, Hans Hagen wrote: > > fixed in next upload Thank you for the fix! Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

  1   2   3   4   5   6   7   8   9   10   >