[NTG-context] Re: using command line arguments

2024-10-28 Thread Thomas A. Schmitz
On 28.10.24 12:18, Henning Hraban Ramm wrote: Hi, I’m trying to use a command line argument in parameter names – color name in the example below, variable namespace in my actual project. I guess I need more expansion, but where? Or what’s the problem here? Perhaps my approach is too simplistic

[NTG-context] Re: Margins using 2UP imposition schema

2024-09-14 Thread Thomas A. Schmitz
On 9/14/24 19:08, Angel M Alganza wrote: I wonder how I could reduce the left margin and increase the left one on the even pages. Any pointers, please? Thank you so much in advance. Ángel You need to tell ConTeXt that you want to have a doublesided layout. This is achieved with \setuppage

[NTG-context] Re: ConTeXt source from XML

2024-06-08 Thread Thomas A. Schmitz
On 6/8/24 10:49, vm via ntg-context wrote: in the document https://wiki.contextgarden.net/images/8/8c/xhtml.pdf near the end an essential line got truncated: \startxmlsetups xml:img \placefigure[here] [\xmlatt{#1}{src}] {\xmlatt{#1}{alt}} {\externalfigure[\xmlatt{#1}{src}][width=\ctxlua{getmeas

[NTG-context] Re: Number in a circle

2024-05-30 Thread Thomas A. Schmitz
On 30.05.24 18:18, Kip Warner wrote: Thanks Hrabab. With respect to the latter wiki page, the project might consider adding a PPA. They're very popular among the over a hundred different Debian based distros out there. They reconcile both system requirements of proper FHS usage and file tracking

[NTG-context] Re: more register questions!

2024-05-03 Thread Thomas A. Schmitz
tnote={\rawcountervalue[footnote]}]}}%    \samplefile{lorem}} \page \placeindex \stoptext Wolfgang -- Prof. Dr. Thomas A. Schmitz Institut für Klassische und Romanische Philologie Universität Bonn Rabinstr. 8 53111 Bonn http://www.philologie.uni-bonn.de/de/personal/sc

[NTG-context] Re: more register questions!

2024-05-03 Thread Thomas A. Schmitz
as ##1; maybe the page number of the occurrence. In that case, I'd look for a way to store the association between that occurrence and the footnote number, and retrieve that in the custom command. Massi -- Prof. Dr. Thomas A. Schmitz Institut für Klassische und Romanisc

[NTG-context] more register questions!

2024-05-02 Thread Thomas A. Schmitz
Hi, making wonderful progress on my registers and translating from xml. There is one thing I can't figure out (and I or some other good soul may have asked in the past...). Is it possible to mark occurrences in footnotes? Ideally, the entry in the register would look like p. 100\high{20} to

[NTG-context] Re: start/stopregister

2024-04-26 Thread Thomas A. Schmitz
On 4/26/24 10:22 AM, Hans Hagen wrote: That's because mkii is AI enhanced. Can you try this: Ah, I see where I was wrong, thank you! I'm mapping from xml, so I became confused with the optional parameters that I write as attributes, with a number of ifs... But now it should be clear! All

[NTG-context] Re: start/stopregister

2024-04-26 Thread Thomas A. Schmitz
On 4/26/24 9:30 AM, Thomas A. Schmitz wrote: And here I am again! Both in mkiv and in mkxl, start/stopregister does not work when there is already an index entry before. Example below! All best Thomas \setuppapersize [A6] \starttext     A\index{A} B \page     A\startregister [index] {A} B

[NTG-context] Re: start/stopregister

2024-04-26 Thread Thomas A. Schmitz
On 4/25/24 6:27 PM, Thomas A. Schmitz wrote: Ah, simple typo! After fixing abel to label, startregister gives the expected results again! Thanks Hans! I may be back with more register questions soon... And here I am again! Both in mkiv and in mkxl, start/stopregister does not work when there

[NTG-context] Re: start/stopregister

2024-04-25 Thread Thomas A. Schmitz
On 4/25/24 18:16, Hans Hagen wrote: Let's seen if we can make Thomas more of an expert as he's zooming in on the issue:     extendregister {     metadata   = { name =  name },     references = { abel =  label },     } Let me know if you't see it. A

[NTG-context] Re: start/stopregister

2024-04-25 Thread Thomas A. Schmitz
On 4/25/24 16:13, Henning Hraban Ramm wrote: I’m using it like \startregister[index][bibliografie]{Bibliografie} … \stopregister[index][bibliografie] i.e. very similar to your example, and can confirm it doesn’t result in a page range in the index. Also gives no error. Since I've become an e

[NTG-context] start/stopregister

2024-04-25 Thread Thomas A. Schmitz
Hi all, has \startregister been superseded in luametatex or is it not yet implemented? I tried to read strc-reg.lmt but couldn't figure out what is going on. The following silly minimal test produces the expected result with mkiv but not in mkxl. All best Thomas \setuppapersize [A6] \star

[NTG-context] Re: utiliydata

2024-04-25 Thread Thomas A. Schmitz
> > Nope, very sorry, can’t figure it out… I see job.register, I see I can access > structures.refrences.collected, but what about the next level > > utilitydata.structures.references.collected={ > [""]={ > [“REF"]={ > > What does the empty key do? And how do I retrieve the value of > > REF.

[NTG-context] Re: utiliydata

2024-04-24 Thread Thomas A. Schmitz
> On 24. Apr 2024, at 17:59, Hans Hagen wrote: > > grep for "job." (i bet you can figure it out and compensate the embaressment > that way) > > Hans Nope, very sorry, can’t figure it out… I see job.register, I see I can access structures.refrences.collected, but what about the next level ut

[NTG-context] utiliydata

2024-04-24 Thread Thomas A. Schmitz
Hi all, I’m slightly embarrassed because this should be easy, but I can’t figure out how to do this: in the tuc/tua file, I have the complete references of my document. How can I access it from within my Lua code? For instance, something like utilitydata.structures.references.collected.”MyRef

[NTG-context] Re: Wiki - test/proposal to further clarify documentation

2024-04-16 Thread Thomas A. Schmitz
> On 16. Apr 2024, at 21:56, Peter Hopcroft via ntg-context > wrote: > > > >> On 17/04/2024, at 7:11 AM, Henning Hraban Ramm wrote: >> >> In my poster (still WIP) I wrote: >> … > > Excellent No, I must admit I don’t like the first two paragraphs. The question is “what is ConTeXt,” and t

[NTG-context] Re: Is TIFF image no longer supported?

2024-04-14 Thread Thomas A. Schmitz
On 4/14/24 22:18, Thomas A. Schmitz wrote: I don't think tiff has ever be supported? Thomas s/be/been/ Sorry! Thomas ___ If your question is of interest to others as well, please add an entry to the

[NTG-context] Re: Is TIFF image no longer supported?

2024-04-14 Thread Thomas A. Schmitz
On 4/14/24 22:11, Joel via ntg-context wrote: I have a document with PNG, JPG, and TIFF. When I try using \externalfigure[filename][frame=on, width=.\textwidth] it displays JPG and PNG fine, but the TIFF files don't render. Is TIFF not supported in ConTeXt anymore? --Joel I don't think ti

[NTG-context] Re: Very bizarre bug

2024-04-07 Thread Thomas A. Schmitz
On 4/7/24 22:33, Hans Hagen wrote: No problem, is it a rpi 5? If so, how does that one perform? Yes, it's a Pi 5 with 8GB of RAM, and I'm very satisfied with the performance. I use it headless for backup, file serving, and the occasional context job that ties the cpu up for a long time, and i

[NTG-context] Re: Very bizarre bug

2024-04-07 Thread Thomas A. Schmitz
On 4/7/24 19:44, Hans Hagen wrote: ok, so this "on" ... where does it come from .. you can try to run with \tracingall and then quit the run after the first and search the log for !on to get a clue Hans Found it - and I'm embarrassed to say it was in my own environment file, not in the lmtx

[NTG-context] Re: Very bizarre bug

2024-04-07 Thread Thomas A. Schmitz
On 4/7/24 19:21, Hans Hagen wrote: can you make a format with line 25 of context.mkxl uncommented to see if you get a message (not production, just a test) Hans That should give a message "some spurious input in line..." in the output or the log, right? No, did not see such a message. Thom

[NTG-context] Very bizarre bug

2024-04-07 Thread Thomas A. Schmitz
Hi everybody, this is bizarre, but hear me out: a file that I have has a mixture of xml, TeX and Lua. It compiles cleanly, no problem, on macos and linux. I also have a little raspberry pi on which I have installed lmtx. The file compiles, BUT: it has one additional page. The first page of the

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

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

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

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

2023-10-04 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 Pyth

[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 \xmlregisterdocumentsetup{tes

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

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

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

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

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

[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] \setupquotation[method=text

[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 „Originalgen

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

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

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

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

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
n case 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 questi

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

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

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

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 form

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

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

[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, intermi

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 no

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 ap

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 qu

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 exam

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

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 to

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 a

[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 ___ I

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

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

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]: ...x/tex/texmf-context/tex/context/

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 sta

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 catego

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 m

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 pro

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

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

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

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

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 f

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

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 a

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 TeXSho

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 se

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 cond

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 sch

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 si

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

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

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

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

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

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 sect

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 some

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 recei

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

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 b

[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 \definelayer[foldingmarkslayer][width=\pap

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

  1   2   3   4   5   6   7   8   9   10   >