[NTG-context] \showmakeup adds unwanted space despite accurate readings; \qquad mandatory before \TeX\
\showmakeup on \TeX\ shows a tSP:3.282 THK:-1.721 H__E X HK:-1.291 SP:3.282 I assume that SP stands for space. Correct me if I'm wrong After reading some of the manuals that mention \showmakeup with and without [spaces] and so forth, I couldn't find any more info related to this. If anyone can provide me more information as to what does HK means there? Anyhow If I were to have, say, a control _word_ such as \TeX\, the sequence of TeX kerning is thrown off. The only remedy would be to have a a \qquad preceding the control sequence e.g., {\qquad \TeX\ significantly} to sort of ameliorate this side-effect. But then again. Spacing is off. e.g., The separation of any of these four components would have hurt {\qquad\TeX\ significantly}. If I had not participated fully in But it's interesting that \showmakeup, kerning and spaces would display what's to be expected. And yet, the aformentioned set of tSP:3.282 THK:-1.721 H__E X HK:-1.291 SP:3.282 is accurate nevertheless. And a very nice implementation at that, but one I fear can't be included on a final document either. With that being said, the introduction of a \qquad, in addition to \showmakeup with, say, redundancy aside, whatever is preceding the \TeX\ alongside the file would also introduce a space where no space was ever there before. Because of all of this, and unfortunately, \showmakeup is not quite helpful here either. Although it does so displays the amount of spaces and so forth, any addition of a \qquad also adds a very subtle unwanted space. And since we're looking here, I pressume, solely for accuracy and perfection, we're left here with neither: zero, zip. It evaporates. -- Dear Emily: I'm still confused as to what groups articles should be posted to. How about an example? -- Still Confused Dear Still: Ok. Let's say you want to report that Gretzky has been traded from the Oilers to the Kings. Now right away you might think rec.sport.hockey would be enough. WRONG. Many more people might be interested. This is a big trade! Since it's a NEWS article, it belongs in the news.* hierarchy as well. If you are a news admin, or there is one on your machine, try news.admin. If not, use news.misc. The Oilers are probably interested in geology, so try sci.physics. He is a big star, so post to sci.astro, and sci.space because they are also interested in stars. Next, his name is Polish sounding. So post to soc.culture.polish. But that group doesn't exist, so cross-post to news.groups suggesting it should be created. With this many groups of interest, your article will be quite bizarre, so post to talk.bizarre as well. (And post to comp.std.mumps, since they hardly get any articles there, and a "comp" group will propagate your article further.) You may also find it is more fun to post the article once in each group. If you list all the newsgroups in the same article, some newsreaders will only show the article to the reader once! Don't tolerate this. -- Emily Postnews Answers Your Questions on Netiquette ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: MP setup for a progress bar
Am 04.07.23 um 22:53 schrieb Wolfgang Schuster: Henning Hraban Ramm schrieb am 04.07.2023 um 22:24: I used the downtime to setup a presentation style with a progress bar in the footer. But I get the same (first page) graphics on all pages, and the footer background appears under the text area as well as under the margins. * I thought \useMPgraphics would be enough to re-calculate on every page? * How can I set a background to the footer area, but page width? * I tried \overlaywidth as well as OverlayWidth in the MP graphic – how do I get the page size? You need \setupbackgrounds[state=repeat]. Thank you! But \setupbackgrounds[footer][text][background=Blocks,state=repeat] doesn’t work. Does this make sense if I don’t want layers in _all_ areas to repeat? \setuppapersize[SW] \startuseMPgraphic{Blocks} fill unitsquare xysized (OverlayWidth * PageNumber / LastPageNumber, OverlayHeight) withcolor blue; Thank you – so RealPageNumber/NOfPages was wrong? I got that from simpleslides. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: {\rm foo {\it bar}}
And the reason probably is that the font is defined as sans serif [ss]?Sent from my iPhoneOn 5 Jul 2023, at 00:12, Gerben Wierda wrote:Found it (I think)\definefontfamily defines tf= but the text says \rmIf I use \tf in the text it works.If I use \rm in the text it works for default Latin Modern but not for any font defined. This is true regardless of using rm= or tf= in the definition.So, it seems to be the combination of using definefontfamily and \rmOn 4 Jul 2023, at 23:48, Gerben Wierda <gerben.wie...@rna.nl> wrote:Also doesn't work with ConTeXt ver: 2023.06.22 14:13 LMTX fmt: 2023.7.4 int: english/englishOn 4 Jul 2023, at 23:42, Gerben Wierda <gerben.wie...@rna.nl> wrote:On 4 Jul 2023, at 23:26, Wolfgang Schuster <wolfgang.schuster.li...@gmail.com> wrote:Gerben Wierda schrieb am 04.07.2023 um 23:17:After erasing the font cache and regenerating LM was doing it right again.Helvetica did not, but maybe I made a mistake in\definefontfamily [helvetica] [ss] [Helvetica] [tf=style:Regular, bf=style:Bold, it=style:Oblique, bi=style:Bold Oblique]Does it work when you remove the manual assignments to tf, it, etc. or when you use lowercase names (without spaces), e.g. "bi=boldoblique" (or "bi=bolditalic").No and no. With th elatter it doesn't load Helvetica at all, Error shown:selectfont > the requested font 'Helvetica' has no files for the 'tf' alternative, Latin Modern is used instead.mkiv lua stats > loaded fonts: 4 files: latinmodern-math.otf, lmroman10-italic.otf, lmroman10-regular.otf, lmsans10-regular.otfWith my original it does load (but no italic):mkiv lua stats > loaded fonts: 4 files: helvetica.ttc, latinmodern-math.otf, lmroman10-italic.otf, lmroman10-regular.otfErase cache, regenerate formats, reload fonts (force) does give another (probably unrelated) error:fonts | names | identifying system font files with suffix 'ttf'fonts | names | globbing path '/Library/Fonts/**.ttf'fonts | names | globbing path '/System/Library/Fonts/**.ttf'otf reader | fatal error in file '/System/Library/Fonts/SFCompactRounded.ttf': ...-64/tex/texmf-context/tex/context/base/mkiv/font-dsp.lua:3689: attempt to index a nil value (field '?')stack traceback: ...-64/tex/texmf-context/tex/context/base/mkiv/font-otr.lua:2344: in metamethod 'index' ...-64/tex/texmf-context/tex/context/base/mkiv/font-dsp.lua:3689: in local 'reader' ...-64/tex/texmf-context/tex/context/base/mkiv/font-otr.lua:2089: in upvalue 'readtable'Gerben Wierda (LinkedIn, Mastodon)R IT Strategy (main site)Book: Chess and the Art of Enterprise ArchitectureBook: Mastering ArchiMate___If your question is of interest to others as well, please add an entry to the Wiki!maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-contextwebpage : https://www.pragma-ade.nl / http://context.aanhet.netarchive : https://bitbucket.org/phg/context-mirror/commits/wiki : https://contextgarden.net___ Gerben Wierda (LinkedIn, Mastodon)R IT Strategy (main site)Book: Chess and the Art of Enterprise ArchitectureBook: Mastering ArchiMate ___If your question is of interest to others as well, please add an entry to the Wiki!maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-contextwebpage : https://www.pragma-ade.nl / http://context.aanhet.netarchive : https://bitbucket.org/phg/context-mirror/commits/wiki : https://contextgarden.net___ Gerben Wierda (LinkedIn, Mastodon)R IT Strategy (main site)Book: Chess and the Art of Enterprise ArchitectureBook: Mastering ArchiMate ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] This site can’t be reached wiki.contextgarden.net took too long to respond.
Tried a few times to no avail. -- A novice asked the master: "I have a program that sometimes runs and sometimes aborts. I have followed the rules of programming, yet I am totally baffled. What is the reason for this?" The master replied: "You are confused because you do not understand the Tao. Only a fool expects rational behavior from his fellow humans. Why do you expect it from a machine that humans have constructed? Computers simulate determinism; only the Tao is perfect. The rules of programming are transitory; only the Tao is eternal. Therefore you must contemplate the Tao before you receive enlightenment." "But how will I know when I have received enlightenment?" asked the novice. "Your program will then run correctly," replied the master. -- Geoffrey James, "The Tao of Programming" ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Server downtime
Hi all, Many of you have noticed that https://wiki.contextgarden.net and https://www.ntg.nl are down, as well as all the mailing lists at domain ntg.nl, and a few less obvious websites like source.contextgarden.net and modules.contextgarden.net. The ntg.nl/wiki.contextgarden.net server’s disk (raid) controller crashed so badly that we did not trust it to come back up in read-write mode, so we had to rebuild the disk setup as read-only and then copy its revived data to a different machine that we also still had to configure. This is a complicated and slow process, unfortunately. Our apologies for the long down time! As of now, we at least have working emails for the mailing lists again. Tomorrow we will try to get the simple websites back up. We hope to at least be able to restore www.ntg.nl, wiki.contextgarden.net, and the mailing list web interface. Getting the email subsystem back up was the main priority today. More news later (sometime tomorrow) All the best, Taco (also from Robbert and Jules) Dag Allemaal, Velen van jullie hebben gemerkt dat https://wiki.contextgarden.net en https://www.ntg.nl onbereikbaar zijn, evenals alle mailinglijsten op domein ntg.nl, en een paar minder voor de hand liggende websites zoals source. contextgarden.net en modules.contextgarden.net. De schijfcontroller (raid) van de ntg.nl/wiki.contextgarden.net-server crashte zo erg dat we het niet vertrouwden om hem terug te laten komen in lees-schrijfmodus, dus moesten we de schijfconfiguratie herstellen als alleen-lezen om vervolgens zijn nieuw leven ingeblazen data te kopiëren naar een andere machine die we ook nog moesten configureren. Dat is helaas een ingewikkeld en vrij langzaam proces. Onze excuses voor de lange downtime! Vanaf nu hebben we in ieder geval weer werkende e-mails voor de mailinglijsten. Morgen gaan we proberen de simpele websites weer aan de praat te krijgen. We hopen in ieder geval www.ntg.nl, wiki.contextgarden.net en de web-interface van de mailinglijsten te kunnen herstellen. Voor vandaag was het heropstarten van de e-mail faciliteiten de eerste prioriteit. Later (ergens morgen) meer nieuws Al het beste, Taco (ook van Robbert en Jules) — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] how to install on M2 Mac?
Am 27.06.23 um 22:02 schrieb Hans van der Meer via ntg-context: After transferring the context directory to my new M2 Mac Studio sh.install.sh complains "Your system "Darwin arm64" is not supported (yet)". What now? I cannot live without TeX-ing 沈 You just copied the binaries from another computer? That doesn’t work. Download the arm64 binaries from https://wiki.contextgarden.net/Installation, i.e. https://lmtx.pragma-ade.com/install-lmtx/context-osx-arm64.zip Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Problem with bibliography in apa
Dear List, I am using ConTeXt with TeXlive 2023. This problem did not exist in TeXlive 2022. Also, I tried to use ConTeXt by installing it from the ConTeXt page and had the same problem. When I use the apa format in the bibliography, the text "internal(number)" appears at the beginning of each citation: For example: --- A Chapter A text (Anonymous, 2023). And (Unknown, 2022). Bibliography internal(1)Anonymous, A. (2023).Any book.Publisher Unknown. internal(2)Unknown, A. (2022).An untitled book.Publisher Non-existent. -- The source code is: \usebtxdataset[biblio.bib] \usebtxdefinitions[apa] \starttext \startchapter[title={A Chapter}] A text \cite[book1]. And \cite[book2] \stopchapter \startchapter[title=Bibliography] \placelistofpublications \stopchapter \stoptext --- The bibliographic database is: @book{book1, author={Author Anonymous}, title={An untitled book}, year=2023, publisher={Publisher Unknown}, } @book{book2, author={Author Unknown}, title={An untitled book}, year=2022, publisher={Publisher Non-existent},} Best regards, Marcelo Chaparro___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Tabulate: Change cell orienation for individual cells?
Ok, if you use p for the column definition you can just use \setupalign on individual cells... %%% \starttext \starttabulate[|pA{verytolerant,extremestretch}|pA{verytolerant,extremestretch}|] \NC Heading flushleft \NC \setupalign[flushright] Heading flushright \NC \NR \NC \input ward \NC \input ward \NC \NR \stoptabulate \stoptext %%% Best, Denis Von: ntg-context Im Auftrag von Denis Maier via ntg-context Gesendet: Dienstag, 27. Juni 2023 10:56 An: ntg-context@ntg.nl Cc: Maier, Denis Christian (UB) Betreff: [NTG-context] Tabulate: Change cell orienation for individual cells? Sie erhalten nicht oft eine E-Mail von ntg-context@ntg.nl<mailto:ntg-context@ntg.nl>. Erfahren Sie, warum dies wichtig ist<https://aka.ms/LearnAboutSenderIdentification> Hi, is it possible to override the defined orienatation for a given cell ? Take this example from the wiki: %% \starttext \starttabulate[|l|c|r|] \NC this and that \NC left and right \NC here and there \NC \NR \NC such and so \NC up and down \NC on and on \NC \NR \stoptabulate \stoptext %% How can I change the alignment for a particular cell? Best, Denis ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Tabulate: Change cell orienation for individual cells?
Hi, is it possible to override the defined orienatation for a given cell ? Take this example from the wiki: %% \starttext \starttabulate[|l|c|r|] \NC this and that \NC left and right \NC here and there \NC \NR \NC such and so \NC up and down \NC on and on \NC \NR \stoptabulate \stoptext %% How can I change the alignment for a particular cell? Best, Denis ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] context-on-web broken
On 6/26/2023 8:03 PM, Henning Hraban Ramm via ntg-context wrote: Am 26.06.23 um 19:43 schrieb Miguel Diaz: indeed it is a simple simulation of overleaf (for latex). But trying to learn the basics it is great that you can try context without an installation and configuration. unfortunately the web is no more accesible and when I heard that the maillist hat problems as result of upgrade i thought the web would be in the same server. But it seems the web is not of Pragma but of a university. Sorry for my ignorance! and thanks anyway Well, it’s not by the university, but the master(?) thesis of one student. He never published the source code, and apparently he stopped hosting it at all. i suppose that it runs on a university machine Unfortunately silent disappearance is a common fate of the really interesting ConTeXt and MetaPost projects from Brno. probably true for many projects by students who eventually move on; but if we can pick up on it ... Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] context-on-web broken
Am 26.06.23 um 19:43 schrieb Miguel Diaz: indeed it is a simple simulation of overleaf (for latex). But trying to learn the basics it is great that you can try context without an installation and configuration. unfortunately the web is no more accesible and when I heard that the maillist hat problems as result of upgrade i thought the web would be in the same server. But it seems the web is not of Pragma but of a university. Sorry for my ignorance! and thanks anyway Well, it’s not by the university, but the master(?) thesis of one student. He never published the source code, and apparently he stopped hosting it at all. Unfortunately silent disappearance is a common fate of the really interesting ConTeXt and MetaPost projects from Brno. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] TikZ \shade broken
Fixed in the latest. Thanks Hans! > On Jun 19, 2023, at 5:57 AM, Gavin via ntg-context wrote: > > Hi Hans, > >>> I am running into a problem with the \shade command... >>> tex error > tex error on line 8 in file ./TikZtest.tex: Valid keyword >>> expected, likely 'direction' >>> \pgfsys@vertshading >>> #1#2#3->{\pgf@parsefunc {#3}\pgfmathparse {#2}\setbox \pgfutil@tempboxa >>> =\hbox dir >>> ... >> luametatex doesn't have the dir keyword >> >> (I could probably add it in a simplified form just for this purpose because >> the performance penalty is less now.) > > If you have a chance to add a dir keyword, that would be great. Since the > keyword is used inside a TikZ macro, I don’t see any way I can work around it > in my document. > > I am gradually converting my diagrams from TikZ to MetaFun, but with well > over a hundred diagrams in my current project, that’s going to take some time. > > Thanks! > Gavin > > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] viewer layers (optional content groups, OCG)
On 6/22/23 18:07, Hans Hagen via ntg-context wrote: > On 6/19/2023 8:41 PM, Henning Hraban Ramm via ntg-context wrote: >> Checking viewer layers: >> >> * \setupviewerlayer doesn’t work; e.g. "state=stop" only works if I put >> it in \defineviewerlayer > in next upload Hans, since this is related to OCG, a minor improvement. /Export (inside /Usage) is actually a dictionary with a single entry (/ExportState) and values /ON and /OFF (from the PDF spec https://raw.githubusercontent.com/adobe/dc-acrobat-sdk-docs/master/docs/standards/pdfstandards/pdf/PDF32000_2008.pdf#search=ExportState): The attached patch fixes this issue. Many thanks for your help, Pablo --- lpdf-ren.lmt 2023-06-23 20:08:17.096662826 +0200 +++ mkxl/lpdf-ren.lmt 2023-06-23 20:09:05.358959481 +0200 @@ -78,8 +78,8 @@ } local pdf_export = { -[v_yes] = pdf_on, -[v_no] = pdf_off, +[v_yes] = pdfdictionary { ExportState = pdf_on }, +[v_no] = pdfdictionary { ExportState = pdf_on }, } -- We can have references to layers before they are places, for instance from ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] right and left arrowfill
On 6/23/2023 3:21 PM, Carlos via ntg-context wrote: I'm not sure how you can mess up glue so that the box is no longer a box. Boxes remain boxes. I guess that's the same mentality behind a fixed glue in LMTX, while trying not to mess up the box. Back to point A and the main reason of the op's question. I have no clue what "the same mentality behind a fixed glue in LMTX" means here. It's not like LMTX has a mentality of its own, after all it's not an AI (fwiw). Here we use \uleaders that have some feedback-after-typesetting loopback. Eventually I might add some extra callback features but only when it has no impact on performance. For now it's experimental. That said, I wonder how many users can predict the plainish tex result of: \ruledhbox to 2in{\vrule \rightarrowfill \ 1cm \leftarrowfill\vrule} \ruledhbox to 1cm{\vrule \rightarrowfill \ 1cm \leftarrowfill\vrule} Which then makes an argument for % \permanent\protected\def\adaptive % {\dowithnextbox{\adaptivecheckbox\nextbox\box\nextbox}} \adaptive\ruledhbox to 2in{\vrule \rightarrowfill \ 1cm \leftarrowfill\vrule} \adaptive\ruledhbox to 1cm{\vrule \rightarrowfill \ 1cm \leftarrowfill\vrule} doing its thing. Anyway, it is a not using "math arrows in text" that determines the functionality but "math arrows in math" that does (and in that respect we're driven by demands from power math users like Alan and Mikael); so. we're more focussed on shapes and proper rendering; these fillers in text are sort of special Then again, the only way to resemble what TeX does is by re/defining and copied verbatim from The TeXbook both rightarrowfill and leftarrowfill and hope for the best and unlike with TeX in which an \hbox to 1in{\vrule \rightarrowfill \ 1cm \leftarrowfill\vrule} it says 1cm but it'd be more than that, and accurately so Well, plain tex says: \def\rightarrowfill{$\m@th\smash-\mkern-7mu% \cleaders\hbox{$\mkern-2mu\smash-\mkern-2mu$}\hfill \mkern-7mu\mathord\rightarrow$} so, you get a smashed minus, some backtracking (a kern, not a glue), then optional leaders, and finally an overlayed arrowhead and you then cross your fingers that the minus sits on the same axis as the arrowhead because this is pretty much a cmr bound definition (and there are math fonts out there that don't fit this definition, although we got some fixes in the meantime) in lmtx (using luametatex) we use \Uhextensible instead which build from an opentype extensible (which makes me wonder: do users really expect all \macros in plain, latex and context do to the same? i bet not because \end in latex is definitely something else than \end in plain) How good would \meaning be here, notwithstanding the valuable info of the macro it provides, if it can't print out, let alone source it up, the more accurate dimension, let alone the measurement. I don't follow. Does this come from ChapGPT? That's funny. But as chatgpt says: "Sorry about that. \meaning\rightarrowfill is \begingroup \scratchunicode 8594\relax \adaptivebox [mathfiller][alterna tive=8594]{\hss \strut \hss }\endgroup " That's what lmtx returned after Hans vdM sample Nothing wrong with that, but in the meantime that can be \permanent\protected\def\mathfiller#1% {\adaptivebox[mathfiller][\c!alternative=#1]{\hss\strut\hss}} because we don't need the scratch code (was used when we played with it), so a next version wil say: \meaningfull\rightarrowfill or: frozen instance macro:\mathfiller {8594} or more texie \meaningasis\rightarrowfill like: \frozen \instance \def \rightarrowfill \mathfiller {8594} It depends on what you expect. First of all, your assumption that the arrow fill is the same as in plain tex is wrong. Why would it be wrong? because context is not plain When I type \hbox to 3cm{\rightarrowfill} without a vrule that's what I would normally expect as plain user maybe (1) one can define an arrow fill using a leader that uses some (happen to be present in tex math fonts) glyphs: repeated minuses followed by some magic kern and an arrow head. Can you apply it to pagination without breaking? Highly doubt it. you seem to know the plain definition so ... leaders don't break No. I didn't mean anything by it. Just that I disagree with the implementation. Again, I expect what TeX returns rather than what LMTX returns. well, using an arrow fill in running text is rare but who knows how uleaders evolve (after users start using it) No need to re-invent the wheel. (if there's undertone in that so be it) if so, so use plain And of course it's working! Everything works, right? And that's exactly what I meant. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69
Re: [NTG-context] right and left arrowfill
On Fri, Jun 23, 2023 at 01:38:23PM +0200, Hans Hagen via ntg-context wrote: > On 6/23/2023 12:43 PM, Carlos via ntg-context wrote: > > On Thu, Jun 22, 2023 at 03:32:25PM +0200, Hans van der Meer via ntg-context > > wrote: > > > \starttext > > > x \rightarrowfill x > > > > > > x \leftarrowfill x > > > > > > hbox to 5cm: > > > > > > y\hbox to5cm{\rightarrowfill}y > > > > > > y\hbox to5cm{\leftarrowfill}y > > > \stoptext > > > > > > But obviously not in an dimensioned \hbox, whereas Knuth's version does > > > that too. > > > > > > > > > > > > > On 22 Jun 2023, at 15:11, Hans Hagen via ntg-context > > > > wrote: > > > > > > > > x \rightarrowfill x > > > > > > > > x \leftarrowfill x > > > > > > yours sincerely > > > dr. Hans van der Meer > > > > > >  > > > > I find this interesting. I agree with Hans vdM. > > > > So what would be the acceptable standard given an x length of a glue? > > > > In the above examples, it's all preset. > > > > Is a rule of thumb — no pun intended here — to apply thereafter > > a glue, in this case a \vrule that follows the box and precedes the > > other glue? that is, the \rightarrowfill or \leftarrowfill? > > > > I mean. Once you get the glues messed up, the whole box crumbles. > > I'm not sure how you can mess up glue so that the box is no longer a box. > Boxes remain boxes. I guess that's the same mentality behind a fixed glue in LMTX, while trying not to mess up the box. Back to point A and the main reason of the op's question. Then again, the only way to resemble what TeX does is by re/defining and copied verbatim from The TeXbook both rightarrowfill and leftarrowfill and unlike with TeX in which an \hbox to 1in{\vrule \rightarrowfill \ 1cm \leftarrowfill\vrule} it says 1cm but it'd be more than that, and accurately so > > > How good would \meaning be here, notwithstanding the valuable info of > > the macro it provides, if it can't print out, let alone source it up, > > the more accurate dimension, let alone the measurement. > > I don't follow. Does this come from ChapGPT? > That's funny. But as chatgpt says: "Sorry about that. \meaning\rightarrowfill is \begingroup \scratchunicode 8594\relax \adaptivebox [mathfiller][alterna tive=8594]{\hss \strut \hss }\endgroup " That's what lmtx returned after Hans vdM sample > > So, one would need to know the preset layout of the page to have an idea > > about it? > > > > Hans H. pulled the old modified trick of 'works here'. > > Well, when used in a paragraph it works indeed. No trick involved. But as it > uses a specific mechanism in an hbox you need to trigger that (unless you > want to add overhead that will kake tex crawl). > > > Like a magician… now all of a sudden evetything works, but unlike TeX's > > Not sure what this refers to. Much of TeX is magick but what is bad about > that? > > > \hbox to 1in{\vrule \rightarrowfill \ 1in \leftarrowfill\vrule} > > > > or > > > > \hbox to 1cm{\vrule \rightarrowfill \ 1cm \leftarrowfill\vrule} > > > > which gives an accurate description, not to mention measurement, > > It depends on what you expect. First of all, your assumption that the arrow > fill is the same as in plain tex is wrong. Why would it be wrong? When I type \hbox to 3cm{\rightarrowfill} without a vrule that's what I would normally expect > > (1) one can define an arrow fill using a leader that uses some (happen to be > present in tex math fonts) glyphs: repeated minuses followed by some magic > kern and an arrow head. > Can you apply it to pagination without breaking? Highly doubt it. > (2) You can hope that the magick kern is right and that the minus aligns > with the arrows bar. > > (3) You also assume that the math font matches the text font. > > (4) Normally an arrow fill is something math anyway. Where there can also be > something on top or below, or where it can be a top or bottom accent. > > > a > > > > \vbox to 5pt{x\vrule\rightarrowfill \ x \leftarrowfill\vrule\ x} > > > > or > > > > x \rightarrowfill x > > x \leftarrowfill x > > > > or > > > > \vbox to 3pt{x\vrule\rightarrowfill \ \leftarrowfill\vrule\ x} > > > > \ \rightarrowfill \ > > \ \leftarrowfill \ > > > > > > in LMTX doesn't say much > What should it say? You get a space, an arrow and a disc
Re: [NTG-context] right and left arrowfill
On 6/23/2023 12:43 PM, Carlos via ntg-context wrote: On Thu, Jun 22, 2023 at 03:32:25PM +0200, Hans van der Meer via ntg-context wrote: \starttext x \rightarrowfill x x \leftarrowfill x hbox to 5cm: y\hbox to5cm{\rightarrowfill}y y\hbox to5cm{\leftarrowfill}y \stoptext But obviously not in an dimensioned \hbox, whereas Knuth's version does that too. On 22 Jun 2023, at 15:11, Hans Hagen via ntg-context wrote: x \rightarrowfill x x \leftarrowfill x yours sincerely dr. Hans van der Meer  I find this interesting. I agree with Hans vdM. So what would be the acceptable standard given an x length of a glue? In the above examples, it's all preset. Is a rule of thumb — no pun intended here — to apply thereafter a glue, in this case a \vrule that follows the box and precedes the other glue? that is, the \rightarrowfill or \leftarrowfill? I mean. Once you get the glues messed up, the whole box crumbles. I'm not sure how you can mess up glue so that the box is no longer a box. Boxes remain boxes. How good would \meaning be here, notwithstanding the valuable info of the macro it provides, if it can't print out, let alone source it up, the more accurate dimension, let alone the measurement. I don't follow. Does this come from ChapGPT? So, one would need to know the preset layout of the page to have an idea about it? Hans H. pulled the old modified trick of 'works here'. Well, when used in a paragraph it works indeed. No trick involved. But as it uses a specific mechanism in an hbox you need to trigger that (unless you want to add overhead that will kake tex crawl). Like a magician… now all of a sudden evetything works, but unlike TeX's Not sure what this refers to. Much of TeX is magick but what is bad about that? \hbox to 1in{\vrule \rightarrowfill \ 1in \leftarrowfill\vrule} or \hbox to 1cm{\vrule \rightarrowfill \ 1cm \leftarrowfill\vrule} which gives an accurate description, not to mention measurement, It depends on what you expect. First of all, your assumption that the arrow fill is the same as in plain tex is wrong. (1) one can define an arrow fill using a leader that uses some (happen to be present in tex math fonts) glyphs: repeated minuses followed by some magic kern and an arrow head. (2) You can hope that the magick kern is right and that the minus aligns with the arrows bar. (3) You also assume that the math font matches the text font. (4) Normally an arrow fill is something math anyway. Where there can also be something on top or below, or where it can be a top or bottom accent. a \vbox to 5pt{x\vrule\rightarrowfill \ x \leftarrowfill\vrule\ x} or x \rightarrowfill x x \leftarrowfill x or \vbox to 3pt{x\vrule\rightarrowfill \ \leftarrowfill\vrule\ x} \ \rightarrowfill \ \ \leftarrowfill \ in LMTX doesn't say much What should it say? You get a space, an arrow and a discarded space. That said: I think you miss a few points here: (1) I know Hans vd Meer well and he knows ConTeXt well. He's quite capable of figuring out how to use advanced features and I bet he likes the following variant of arrows in text. Next time we meet I'll show him some more adaptive tricks (although I bet he can figure them out himself). \starttext % \setupexternalfigures % [location={default,global}] % \startsetups adaptive:test % \setbox\usedadaptivebox\hbox to \usedadaptivewidth yoffset -\usedadaptivedepth \bgroup % \externalfigure % [cow.pdf] % [width=\usedadaptivewidth, %height=\dimexpr\usedadaptiveheight+\usedadaptivedepth\relax]% %\egroup % \stopsetups \startsetups adaptive:test \setbox\usedadaptivebox\hbox to \usedadaptivewidth yoffset .25ex \bgroup \startMPcode drawarrow ((0,0) -- (\the\usedadaptivewidth,0)) randomized (ExHeight/2); \stopMPcode \egroup \stopsetups \dorecurse{5}{ \dostepwiserecurse{1}{150}{1}{% this~#1.##1 is~#1.##1 test~#1.##1 {\adaptivebox[strut=yes,setups=adaptive:test]{\strut}} } \blank } \stoptext (2) If someone wants a plain (or fot that matter latex) solution then one can use these macro packages or write a macro that mimicks expectations. (3) I don't like "Hans H. pulled the old modified trick of 'works here'." kind of remarks because they have a rather negative undertone and I don't know how to read that. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://
Re: [NTG-context] new version
Should then \setupalign[granular] be used before defining font features? On Thu, Jun 22, 2023 at 9:37 AM Hans Hagen via ntg-context wrote: > > Hi, > > I uploaded a new lmtx version (so the next series will be luametatex > 2.10.10). Although Mikael and I are still in improving math mode, we > side tracked a bit to the par builder (better breaking of math etc). In > the end some experiments there turned features. > > (1) We already had a more granular par builder but that was never really > enabled. From now on you can do that with > > \setupalign[granular] > > After quite some tests and careful inspection of outcome we think that > the results look better, which is why if could become a default. The > main impact is a bit more even spacing between neighbouring lines, > because we operate in five instead of three ranges of primary badness now. > > (2) As side effect of (3) initialization of expansion (as well as > compression and protrusion) is delayed till it kicks in. This means that > > \definefontfeature[default][default][expansion=quality] > > has become cheaper and might as well become the default. > > (3) The biggest new feature (already known to some of you as we chat > about it) is that in addition to the (upto three) passes that create a > paragraph we can now have extra ones. This is discussed in > lowlevel-lines.pdf (preliminary). The second pass is the most important > one (it uses hyphenation but not yet emergency stretch) and, based on > criteria that can be set, between the second and third pass multiple > attempts can be triggered. > > So, for instance one can start careful (pass one), less careful (pass > two), test all kind of variants (pass 2 subpasses) etc. These subpasses > can have different tolerances, demerits, expansion, etc and quit once > soem criteria are met. > > The problem here is: what makes good defaults. Therefore we have some > tests definitions added (see spac-pas-tests) that we hope users will > test on realistic documents. > > In case one wonders: performance is quite okay and you won't notice much > difference on a reasonable run. Also, when you normally use expansion > for a whole document, you can now let it kick in more selectively. As a > result a run can be faster and the resulting pdf file can be smaller. > This feature kind of assumes (1) above. > > (4) There's also a new feature for optional content: you can have marked > sections in a paragraph that can be enabled or disabled in attempts to > get better output. Of course one can wonder it this is useful but it was > one of the older todo's. When it is considered usefull it can evolve. > > (The lowlevel-lines manual is work in progress and in a few weeks we > will pick up on that.) > > Hans > > - >Hans Hagen | PRAGMA ADE >Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > - > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ -- Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo nem seus membros, por ser descanso da alma, primavera do coração, distração do aflito, entretenimento do solitário, e viático do viajante. Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] right and left arrowfill
On 6/21/2023 10:10 PM, Hans van der Meer via ntg-context wrote: A few days ago I drew attention to the fact that \rightarrowfill and \leftarrowfill are broken in the latest ConTeXt. Imho that should not happen with basic TeX macro's. Although one can recreate their definitions from the TeX-book (see the MWE attached), I still do not understand why it should be needed. \starttext x \rightarrowfill x x \leftarrowfill x \stoptext works ok here Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] new version
Hi, I uploaded a new lmtx version (so the next series will be luametatex 2.10.10). Although Mikael and I are still in improving math mode, we side tracked a bit to the par builder (better breaking of math etc). In the end some experiments there turned features. (1) We already had a more granular par builder but that was never really enabled. From now on you can do that with \setupalign[granular] After quite some tests and careful inspection of outcome we think that the results look better, which is why if could become a default. The main impact is a bit more even spacing between neighbouring lines, because we operate in five instead of three ranges of primary badness now. (2) As side effect of (3) initialization of expansion (as well as compression and protrusion) is delayed till it kicks in. This means that \definefontfeature[default][default][expansion=quality] has become cheaper and might as well become the default. (3) The biggest new feature (already known to some of you as we chat about it) is that in addition to the (upto three) passes that create a paragraph we can now have extra ones. This is discussed in lowlevel-lines.pdf (preliminary). The second pass is the most important one (it uses hyphenation but not yet emergency stretch) and, based on criteria that can be set, between the second and third pass multiple attempts can be triggered. So, for instance one can start careful (pass one), less careful (pass two), test all kind of variants (pass 2 subpasses) etc. These subpasses can have different tolerances, demerits, expansion, etc and quit once soem criteria are met. The problem here is: what makes good defaults. Therefore we have some tests definitions added (see spac-pas-tests) that we hope users will test on realistic documents. In case one wonders: performance is quite okay and you won't notice much difference on a reasonable run. Also, when you normally use expansion for a whole document, you can now let it kick in more selectively. As a result a run can be faster and the resulting pdf file can be smaller. This feature kind of assumes (1) above. (4) There's also a new feature for optional content: you can have marked sections in a paragraph that can be enabled or disabled in attempts to get better output. Of course one can wonder it this is useful but it was one of the older todo's. When it is considered usefull it can evolve. (The lowlevel-lines manual is work in progress and in a few weeks we will pick up on that.) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] right and left arrowfill
A few days ago I drew attention to the fact that \rightarrowfill and \leftarrowfill are broken in the latest ConTeXt. Imho that should not happen with basic TeX macro's.Although one can recreate their definitions from the TeX-book (see the MWE attached), I still do not understand why it should be needed. yours sincerelydr. Hans van der Meer hboxarrowfill.tex Description: Binary data hboxarrowfill.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Fwd: [veraPDF-users] Development Preview: PDF file checker based on the Arlington PDF Model
Dear list, it is still early development, but this tool might be extremely useful to check PDF documents. Direct link to downloads (version 1.25 doesn’t seem to be available): https://software.verapdf.org/develop/arlington/1.23 Just in case it might help, Pablo Forwarded Message Subject: [veraPDF-users] Development Preview: PDF file checker based on the Arlington PDF Model Date: Wed, 21 Jun 2023 12:35:12 +0100 Dear all, On the 30th anniversary of PDF technology, we're excited to announce the availability of the first development preview of a new veraPDF-powered application. Building on the great work done by the PDF Association supported by the Defence Advanced Research Projects Agency (DARPA), veraPDF has developed an open-source PDF checker based on the Arlington PDF Model. This application is separate from the veraPDF PDF/A and PDF/UA validator but comprises a very familiar package of GUI and command-line applications. *The Arlington PDF Model is an invaluable resource for anyone developing or testing PDF tools. *Read more about the development here. <https://openpreservation.org/news/development-preview-pdf-file-checker-based-on-the-arlington-pdf-model/> The veraPDF development team have utilised Arlington in a way that's compatible with the veraPDF architecture. The Arlington PDF Model-based checker can now analyse PDF files against the full PDF 2.0 specification, including errata, by downloading the Java-based installer (Win, MacOS, Linux, requires Java 8+ JRE installed) at veraPDF Software Downloads <https://software.verapdf.org/develop/arlington/>. Best wishes, Helena -- Helena Watson (she/her), Marketing Officer Open Preservation Foundation (OPF) <https://openpreservation.org/> Twitter <http://twitter.com/openpreserve>| GitHub <https://github.com/openpreserve/>| Mailing List <http://openpreservation.org/subscribe> Please note: I work part-time for OPF, please bear with me if I don't reply to your email right away. I may email you at a time that is convenient for me, but please don't feel the need to respond outside of your working hours. Discover the benefits of OPF membership <https://openpreservation.org/membership> ___ veraPDF Users mailing list -- us...@lists.verapdf.org To unsubscribe send an email to users-le...@lists.verapdf.org ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] TikZ \shade broken
Hi Hans, >> I am running into a problem with the \shade command... >> tex error > tex error on line 8 in file ./TikZtest.tex: Valid keyword >> expected, likely 'direction' >> \pgfsys@vertshading >> #1#2#3->{\pgf@parsefunc {#3}\pgfmathparse {#2}\setbox \pgfutil@tempboxa >> =\hbox dir >> ... > luametatex doesn't have the dir keyword > > (I could probably add it in a simplified form just for this purpose because > the performance penalty is less now.) If you have a chance to add a dir keyword, that would be great. Since the keyword is used inside a TikZ macro, I don’t see any way I can work around it in my document. I am gradually converting my diagrams from TikZ to MetaFun, but with well over a hundred diagrams in my current project, that’s going to take some time. Thanks! Gavin ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Off topic: Does a 'free for commercial use' flared-sans font exist in the world?
On 6/18/2023 8:37 PM, Carlos via ntg-context wrote: On Sat, Jun 17, 2023 at 06:53:06PM +0200, Hans Hagen via ntg-context wrote: On 6/17/2023 2:06 AM, linguafalsa--- via ntg-context wrote: On Fri, Jun 16, 2023 at 06:35:49PM +0200, Gerben Wierda via ntg-context wrote: I know this is off topic, but I suspect this community is actually one of the best places to find an answer. It is the best community. And I tell you what. What happened is that all TeX engines have neglected fonts from the beginning. Really? When tex showed up digital font technology was pretty much in flux. And, with metafont being part of the tex ecosystem, one can argue that tex was quite innovative too. Ecosystem. I would be very careful by including an ecosystem there. Yes. Yes. The TeX ecosystem is obviously part of TeX but is not part of the ecosystem of fonts either. And what is done on ecosystems can either benefit or affect ecosystems greatly. And it's a known trait that humans have been known for having more of a flock group mentality for no apparent rationally-based reasons than just being themselves making these decisions/following instincts or whatever and not because of a particular ecosystem, or for the benefit of the latter. With ecosystemn I mean: tex, metafont, cmr fonts, all kind of tools ... evolving into more engines, more fonts, macro packages, distributions, user groups and use group journals, meetings etc And the above does not imply, bear with me here, that metafont was not innovative, but it can be argued that without TeX there is no metafont, so no room is left for errors either. So, yes, it must be innovative. It has to be. There had to be metafont because there was not much else that could provide what tex needed (at that time). Potscript and its fonts came aroudn at the same time and were rather closed technologies. But as soon possible backend drivers (also part of the tex ecosystem) kicked in. Then we got virtual fonts which enhanced tex's capabilities. I really like Optima, and what I really like about it is the 'flared style'. But I would like to move to a flared-sans font that gives me more licensing freedom. I haven't been able to find one after extensive searching. The only one who were reasonably priced (not free) were the URW Classico ones in Adobe Creative Cloud, but those can only be used in Adobe programs like InDesign (and not TeX). Licensing freedom is an oxymoron. There's no freedom in licensing. Only greed. The only extension engine that at one point had a plan in mind, or most of the bases covered in this regard was Omega. One needs morr than plans. Afaik omega was more about input processing and th efont part was mostly going beyond 8 bit fonts but i might have missed something (omega was never productin ready). Notwithstanding the intricacies/details of what may have actually happened with its short lifespan I think it's more than clear the lack of support behind it. I'm not going to delve into what exactly caused its demise or if it was simply the after effect of other projects that contributed to it. It's irrelevant. Hm, its time span was not that short ... I first heard of omega at the eurotex meeting in arnhem where also etex was discussed (and you dont'want me to cite things said there) .. in successive years there have been announcemnts etc. However, for an engine to be used it must work reliable and guiseppes 'aleph' was basically a variant of omega that also had etex on board. In fact, that was supported in context mkii (and some used it because of the input processor which i think was the more innovative thing in omega but i never dived into it, other users did) It makes no sense to discuss into all this as all teams involved in engines have published in user group journals or presented plans at meetings. Also keep in mind that we're talking frontend here; omega is dvi based so like regular tex and etex whatever it does with fonts is not really related to the engine bu tup to the backend: the engine only needs metrics (omega extended tfm into ofm for that). pdftex brought a pdf backend, xetex pipes into a dvi backend, luatex has a pdf backend built in; (nts being related to etec never took of also because it was not that useable and in the meantime pdftex had taken over); there are afaik some very useable japanese tex engines; the fact that dvi survived was due to dvipdfmx development But stand by for a second. I look forward to your quick witted answers. But hear me out Suppose that on my prior message I was referring indeed to 'mkii' and not to 'omega' And also suppose for a second that the term 'omega' is to be replaced with 'mkii' on your reply accordingly After careful observation the resemblance is quite possibly identical, isn't it? and it could also inarguably apply to the circumstances as well. Don't you think? no it isn't, its building upon hat is there: mkii -> mkiv -> mkxl (p
Re: [NTG-context] Off topic: Does a 'free for commercial use' flared-sans font exist in the world?
On Sat, Jun 17, 2023 at 06:53:06PM +0200, Hans Hagen via ntg-context wrote: > On 6/17/2023 2:06 AM, linguafalsa--- via ntg-context wrote: > > On Fri, Jun 16, 2023 at 06:35:49PM +0200, Gerben Wierda via ntg-context > > wrote: > > > I know this is off topic, but I suspect this community is actually one of > > > the best places to find an answer. > > > > > > > It is the best community. And I tell you what. > > > > What happened is that all TeX engines have neglected fonts from the > > beginning. > > Really? When tex showed up digital font technology was pretty much in flux. > And, with metafont being part of the tex ecosystem, one can argue that tex > was quite innovative too. Ecosystem. I would be very careful by including an ecosystem there. Yes. Yes. The TeX ecosystem is obviously part of TeX but is not part of the ecosystem of fonts either. And what is done on ecosystems can either benefit or affect ecosystems greatly. And it's a known trait that humans have been known for having more of a flock group mentality for no apparent rationally-based reasons than just being themselves making these decisions/following instincts or whatever and not because of a particular ecosystem, or for the benefit of the latter. And the above does not imply, bear with me here, that metafont was not innovative, but it can be argued that without TeX there is no metafont, so no room is left for errors either. So, yes, it must be innovative. It has to be. > > Potscript and its fonts came aroudn at the same time and were rather closed > technologies. But as soon possible backend drivers (also part of the tex > ecosystem) kicked in. > > Then we got virtual fonts which enhanced tex's capabilities. > > > > I really like Optima, and what I really like about it is the 'flared > > > style'. > > > > > > But I would like to move to a flared-sans font that gives me more > > > licensing freedom. I haven't been able to find one after extensive > > > searching. The only one who were reasonably priced (not free) were the > > > URW Classico ones in Adobe Creative Cloud, but those can only be used in > > > Adobe programs like InDesign (and not TeX). > > > > > > > Licensing freedom is an oxymoron. There's no freedom in licensing. > > Only greed. > > > > The only extension engine that at one point had a plan in mind, > > or most of the bases covered in this regard was Omega. > > One needs morr than plans. Afaik omega was more about input processing and > th efont part was mostly going beyond 8 bit fonts but i might have missed > something (omega was never productin ready). Notwithstanding the intricacies/details of what may have actually happened with its short lifespan I think it's more than clear the lack of support behind it. I'm not going to delve into what exactly caused its demise or if it was simply the after effect of other projects that contributed to it. It's irrelevant. But stand by for a second. I look forward to your quick witted answers. But hear me out Suppose that on my prior message I was referring indeed to 'mkii' and not to 'omega' And also suppose for a second that the term 'omega' is to be replaced with 'mkii' on your reply accordingly After careful observation the resemblance is quite possibly identical, isn't it? and it could also inarguably apply to the circumstances as well. Don't you think? I mean, it's like comparing oranges with apples, and mkii with mkiv and mkvi and so forth If you were to tell me then, that mkii for instance was not aimed as an input processing I can almos assure its falsiliability is written all over, even before the sentence is processed and thought out loud by you. Bottom line is that the production-ready part is an obvious byproduct of its short lifespan, but one cannot be making the claim (false as would have been seen later, because omega carbon footprint lasted more on books than on shelves really, not for selling out fast but rather discontinued quickly) and that its goal was solely within this input processing spectrum. Because it wasn't. Or heck or heck. Let's go even further. By making the dubious assertion that we've been built with noses to hold our eyeglasses lest these eyeglasses fall off while reading, or that we've been built with ears to hold pencils and pens in the ears while thinking and writing. For crying out loud. > > It is xetex that hooked into opentype although pdftex can actually deal with > truetype fonts to some extend. Before there was something 'opentype' we had > two competing but similar technologies. And it took a while before it was > even clear how to interpre the specification (also think about reverse > engeneering fonts and heuristics and ... bugs or features ...).
Re: [NTG-context] Off topic: Does a 'free for commercial use' flared-sans font exist in the world?
On 6/18/2023 10:20 AM, Bruce Horrocks via ntg-context wrote: On 16 Jun 2023, at 17:35, Gerben Wierda via ntg-context wrote: I know this is off topic, but I suspect this community is actually one of the best places to find an answer. I really like Optima, and what I really like about it is the 'flared style'. But I would like to move to a flared-sans font that gives me more licensing freedom. I haven't been able to find one after extensive searching. The only one who were reasonably priced (not free) were the URW Classico ones in Adobe Creative Cloud, but those can only be used in Adobe programs like InDesign (and not TeX). I found some flared-sans fonts, but not one with at least regular, italic, bold, and bold-italic. Is there really not a single flared-sans font that is really free (so also for commercial use) to use out there? Not free but good value: Fontspring have a font called Ophian that looks (to my untrained eye!) a reasonable match with Optima. <https://www.fontspring.com/fonts/fontsite/ophian> Optima has a very recognizable and distinctive design. One of my favourites. The palatino nova is another favourite and has a nice sans (casual). $22 for the first licence added to the shopping cart then reductions show for the subsequent licences. I'm guessing you'll need two: desktop in order to install on a PC and publish a printed book, and eBook to allow distribution of a PDF or eBook, so 33 USD in total. There's no time limit nor number of copies limit as far as I can see - just one eBook licence per title. Maybe there will be VAT etc added when you get to checkout - I didn't go that far. Yes, but it smells a bit like some clone. I have an official optima nova cd (in type one format, i can't afford the opentype right now) as well as the official palatino nova cd (in opentype format); I got them from the master himself, which makes them even more special. (It reminds me that I need to check if we can drop in replacements in the pagella math.) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] TikZ \shade broken
On 6/17/2023 7:28 PM, Gavin via ntg-context wrote: Hi List, First, a big thanks to Aditya for solving the missing pgfsys-luatex.def! That was a show-stopper on my Mac. Now that I can use TikZ again, I am running into a problem with the \shade command. Below is a small working example from the TikZ manual [pp.39-41]. The first tikzpicture is the example. The second TikZ picture is similar, but without any shading. \usemodule[tikz] \starttext \starttikzpicture \shade[top color=yellow,bottom color=black] (0,0) rectangle +(2,1); \shade[left color=yellow,right color=black] (3,0) rectangle +(2,1); \shadedraw[inner color=yellow,outer color=black,draw=yellow] (6,0) rectangle +(2,1); \shade[ball color=green] (9,.5) circle (.5cm); \stoptikzpicture \starttikzpicture \draw[color=black] (0,0) rectangle +(2,1); \fill[color=yellow] (3,0) rectangle +(2,1); \filldraw[fill=black,draw =yellow] (6,0) rectangle +(2,1); \fill[fill=green] (9,.5) circle (.5cm); \stoptikzpicture \stoptext \stoptext The second picture works. The first picture produces quite an error message (below). I’m using ConTeXt ver: 2023.06.01 09:42 LMTX fmt: 2023.6.2 on an M1 Mac with Ventura 13.4 Any help would be greatly appreciated! Gavin tex error > tex error on line 8 in file ./TikZtest.tex: Valid keyword expected, likely 'direction' \pgfsys@vertshading #1#2#3->{\pgf@parsefunc {#3}\pgfmathparse {#2}\setbox \pgfutil@tempboxa =\hbox dir TLT to\pgfmathresult pt{\vbox to\pgf@max {\vfil \pgfsys@invoke {/Sh sh}}\hfil }\pgf@process {\pgfpoint {#2}{\pgf@max }}\immediate \saveboxresource resources {/Shading luametatex doesn't have the dir keyword (I could probably add it in a simplified form just for this purpose because the performance penalty is less now.) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] TikZ \shade broken
Hi List, First, a big thanks to Aditya for solving the missing pgfsys-luatex.def! That was a show-stopper on my Mac. Now that I can use TikZ again, I am running into a problem with the \shade command. Below is a small working example from the TikZ manual [pp.39-41]. The first tikzpicture is the example. The second TikZ picture is similar, but without any shading. \usemodule[tikz] \starttext \starttikzpicture \shade[top color=yellow,bottom color=black] (0,0) rectangle +(2,1); \shade[left color=yellow,right color=black] (3,0) rectangle +(2,1); \shadedraw[inner color=yellow,outer color=black,draw=yellow] (6,0) rectangle +(2,1); \shade[ball color=green] (9,.5) circle (.5cm); \stoptikzpicture \starttikzpicture \draw[color=black] (0,0) rectangle +(2,1); \fill[color=yellow] (3,0) rectangle +(2,1); \filldraw[fill=black,draw =yellow] (6,0) rectangle +(2,1); \fill[fill=green] (9,.5) circle (.5cm); \stoptikzpicture \stoptext \stoptext The second picture works. The first picture produces quite an error message (below). I’m using ConTeXt ver: 2023.06.01 09:42 LMTX fmt: 2023.6.2 on an M1 Mac with Ventura 13.4 Any help would be greatly appreciated! Gavin tex error > tex error on line 8 in file ./TikZtest.tex: Valid keyword expected, likely 'direction' \pgfsys@vertshading #1#2#3->{\pgf@parsefunc {#3}\pgfmathparse {#2}\setbox \pgfutil@tempboxa =\hbox dir TLT to\pgfmathresult pt{\vbox to\pgf@max {\vfil \pgfsys@invoke {/Sh sh}}\hfil }\pgf@process {\pgfpoint {#2}{\pgf@max }}\immediate \saveboxresource resources {/Shading ...dafter \expandafter \def \expandafter \expandafter \expandafter \@@args \expandafter \expandafter \expandafter {\csname pgf@args\pgf@shadingname \endcsname }\expandafter \expandafter \expandafter \@temp \expandafter \@args \@@args \expandafter ... \pgfutil@firstoftwo #1#2->#1 ...r \expandafter \expandafter {\csname pgf@args\pgf@shadingname \endcsname }\expandafter \expandafter \expandafter \@temp \expandafter \@args \@@args \expandafter \pgfmath@smuggleone \csname \pgf@shadingxname \endcsname \endgroup }{} \pgf@invokesh ... \pgfutil@secondoftwo #1#2->#2 \pgfshadepath ...e@cos }{0pt}{0pt}\pgfsys@transformcm {\pgf@sys@tonumber {\pgf@xc }}{0}{0}{\pgf@sys@tonumber {\pgf@yc }}{0pt}{0pt}\ifx \pgf@shade@extra@transform \pgfutil@empty \else \pgflowlevel {\pgf@shade@extra@transform }\fi \pgfuseshading {#1} \pgfsys@endsc ... ... \shade[top color=yellow,bottom color=black] (0,0) rectangle +(2,1); 1 % !TEX useAlternatePath 2 % !TEX useConTeXtSyncParser 3 4 \usemodule[tikz] 5 6 \starttext 7 \starttikzpicture 8 >> \shade[top color=yellow,bottom color=black] (0,0) rectangle +(2,1); 9 \shade[left color=yellow,right color=black] (3,0) rectangle +(2,1); 10 \shadedraw[inner color=yellow,outer color=black,draw=yellow] (6,0) rectangle +(2,1); 11 \shade[ball color=green] (9,.5) circle (.5cm); 12 \stoptikzpicture 13 \starttikzpicture 14 \draw[color=black] (0,0) rectangle +(2,1); 15 \fill[color=yellow] (3,0) rectangle +(2,1); 16 \filldraw[fill=black,draw =yellow] (6,0) rectangle +(2,1); 17 \fill[fill=green] (9,.5) circle (.5cm); 18 \stoptikzpicture You started a keyword but it seems to be an invalid one. The first character(s) might give you a clue. You might want to quit unwanted lookahead with \relax. mtx-context | fatal error: return code: 1 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Off topic: Does a 'free for commercial use' flared-sans font exist in the world?
On 6/17/2023 2:06 AM, linguafalsa--- via ntg-context wrote: On Fri, Jun 16, 2023 at 06:35:49PM +0200, Gerben Wierda via ntg-context wrote: I know this is off topic, but I suspect this community is actually one of the best places to find an answer. It is the best community. And I tell you what. What happened is that all TeX engines have neglected fonts from the beginning. Really? When tex showed up digital font technology was pretty much in flux. And, with metafont being part of the tex ecosystem, one can argue that tex was quite innovative too. Potscript and its fonts came aroudn at the same time and were rather closed technologies. But as soon possible backend drivers (also part of the tex ecosystem) kicked in. Then we got virtual fonts which enhanced tex's capabilities. I really like Optima, and what I really like about it is the 'flared style'. But I would like to move to a flared-sans font that gives me more licensing freedom. I haven't been able to find one after extensive searching. The only one who were reasonably priced (not free) were the URW Classico ones in Adobe Creative Cloud, but those can only be used in Adobe programs like InDesign (and not TeX). Licensing freedom is an oxymoron. There's no freedom in licensing. Only greed. The only extension engine that at one point had a plan in mind, or most of the bases covered in this regard was Omega. One needs morr than plans. Afaik omega was more about input processing and th efont part was mostly going beyond 8 bit fonts but i might have missed something (omega was never productin ready). It is xetex that hooked into opentype although pdftex can actually deal with truetype fonts to some extend. Before there was something 'opentype' we had two competing but similar technologies. And it took a while before it was even clear how to interpre the specification (also think about reverse engeneering fonts and heuristics and ... bugs or features ...). TeX was always pretty fast in picking up new stuff (maybe users less so). When it came to commercial fonts the plan of action ahead was by including PFC data on these very same commercial fonts that would benefit primarily its opentype versions in the long run. What is PFC data? What do you have right now? Opentype fonts only. Sure. Quality can be even the same than its type1 counterpart, and at times not so much according so some folks that have bothered to go the extra length in making the most accurate comparison that's available between them two. For most fonts it's just 'more shapes' which then also leads to more ligatures, kerns etc btu that is already nice. And when fonts lack something we can always tweak them (runtime). But looking at it from a bright side/perspective, I think we're no longer facing the same pre-historic constraints of including a font as before, as long as it's not for commercial purposes, You are well aware of these non and commercial uses even before your extensive search anyway, I'm not sure what is the difference between commercial fonts and free ones as they use the same technology; with some exceptions, fonts are not that expensive (take lucida from tug, making fonts takes time after all); and for publishers it's noise on their budgets. p.s many many years ago I read and followed some publications about the aformentioned extension and just went over them recently, to have an idea what did and did not work. In regards to typefaces, its goal was unmatched, or so I think. It might be comforting to know that right from the start luatex made a lot possible wrt fonts (runtime manipulation) and was also one of the first to support variable fonts, color fonts etc (not that many care about that). And with luametatex we go even further. I found some flared-sans fonts, but not one with at least regular, italic, bold, and bold-italic. Is there really not a single flared-sans font that is really free (so also for commercial use) to use out there? I had to search the net to figure out that flare sans fonts are sans fonts with serifs For those into fonts: https://tug.org/TUGboat/tb44-1/tb136carter-romano.pdf I a very nice overview of how it went with digital fonts (and what we probably lost in getting where we are now and might loose soon). Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https
[NTG-context] Can I use 'extend' and 'slant' in \definefontfamily to create fake italics etc.?
Libertinus Sans does not have Bold Italic. With this, I come close in ConTeXt: \definefontfeature [fakeitalic] [slant=0.25] \definefontfamily [archimate] [ss] [Libertinus Sans] [rscale=1.0395] [tf=style:Regular, bf=style:Bold, it=style:Italic, bi={style:Bold,features:fakeitalic}] It is slightly 'thicker' and the lowercases have a somewhat lower height percentage of the uppercases than Optima, but this is the closest I have come. G > On 16 Jun 2023, at 18:55, Gerben Wierda via ntg-context > wrote: > > Only regular, italic, bold, no bold italic (just as the Linux Bilonium it was > forked from) > >> On 16 Jun 2023, at 18:39, Henning Hraban Ramm via ntg-context >> mailto:ntg-context@ntg.nl>> wrote: >> >> Am 16.06.23 um 18:35 schrieb Gerben Wierda via ntg-context: >>> I know this is off topic, but I suspect this community is actually one of >>> the best places to find an answer. >>> I really like Optima, and what I really like about it is the 'flared style'. >>> But I would like to move to a flared-sans font that gives me more licensing >>> freedom. I haven't been able to find one after extensive searching. The >>> only one who were reasonably priced (not free) were the URW Classico ones >>> in Adobe Creative Cloud, but those can only be used in Adobe programs like >>> InDesign (and not TeX). >>> I found some flared-sans fonts, but not one with at least regular, italic, >>> bold, and bold-italic. >>> Is there really not a single flared-sans font that is /really/ free (so >>> also for commercial use) to use out there? >> >> How about Libertinus Sans? >> https://github.com/alerque/libertinus <https://github.com/alerque/libertinus> >> >> Hraban >> >> ___ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl / >> https://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : https://www.pragma-ade.nl / http://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> wiki : https://contextgarden.net >> ___ > > Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>, Mastodon > <https://newsie.social/@gctwnl>) > R IT Strategy <https://ea.rna.nl/> (main site) > Book: Chess and the Art of Enterprise Architecture > <https://ea.rna.nl/the-book/> > Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/> > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>, Mastodon <https://newsie.social/@gctwnl>) R IT Strategy <https://ea.rna.nl/> (main site) Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/> Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/> ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Off topic: Does a 'free for commercial use' flared-sans font exist in the world?
On Fri, Jun 16, 2023 at 06:35:49PM +0200, Gerben Wierda via ntg-context wrote: > I know this is off topic, but I suspect this community is actually one of the > best places to find an answer. > It is the best community. And I tell you what. What happened is that all TeX engines have neglected fonts from the beginning. > I really like Optima, and what I really like about it is the 'flared style'. > > But I would like to move to a flared-sans font that gives me more licensing > freedom. I haven't been able to find one after extensive searching. The only > one who were reasonably priced (not free) were the URW Classico ones in Adobe > Creative Cloud, but those can only be used in Adobe programs like InDesign > (and not TeX). > Licensing freedom is an oxymoron. There's no freedom in licensing. Only greed. The only extension engine that at one point had a plan in mind, or most of the bases covered in this regard was Omega. When it came to commercial fonts the plan of action ahead was by including PFC data on these very same commercial fonts that would benefit primarily its opentype versions in the long run. What do you have right now? Opentype fonts only. Sure. Quality can be even the same than its type1 counterpart, and at times not so much according so some folks that have bothered to go the extra length in making the most accurate comparison that's available between them two. But looking at it from a bright side/perspective, I think we're no longer facing the same pre-historic constraints of including a font as before, as long as it's not for commercial purposes, You are well aware of these non and commercial uses even before your extensive search anyway, p.s many many years ago I read and followed some publications about the aformentioned extension and just went over them recently, to have an idea what did and did not work. In regards to typefaces, its goal was unmatched, or so I think. > I found some flared-sans fonts, but not one with at least regular, italic, > bold, and bold-italic. > > Is there really not a single flared-sans font that is really free (so also > for commercial use) to use out there? > > Yours, > > Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>, Mastodon > <https://newsie.social/@gctwnl>) > R IT Strategy <https://ea.rna.nl/> (main site) > Book: Chess and the Art of Enterprise Architecture > <https://ea.rna.nl/the-book/> > Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/> > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ -- I must have slipped a disk -- my pack hurts! ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Protect the lettrine
On 6/15/2023 8:35 AM, Max Chernoff via ntg-context wrote: Hi Dave, How would you instruct ConTeXt to "protect" the lettrine such that regardless of whether the first paragraph spans multiple lines, a short first paragraph will still prevent the second paragraph from overlapping the lettrine? Here's the output I'm looking to achieve: https://i.stack.imgur.com/XeZQS.png Note how the second line honours the lettrine's width and padding, in the same way that the second line of the first paragraph in Knuth's quote respects the width and padding. Here's a questionable Lua-based solution: \startluacode userdata.hangindent = 0 function userdata.post_lettrine(head) nodes.tasks.disableaction("finalizers", "userdata.post_lettrine") if tex.prevgraf < math.abs(tex.hangafter) then userdata.hangindent = tex.hangindent nodes.tasks.enableaction("processors", "userdata.next_par") end return head end nodes.tasks.appendaction("finalizers", "before", "userdata.post_lettrine") nodes.tasks.disableaction("finalizers", "userdata.post_lettrine") function userdata.next_par(head) nodes.tasks.disableaction("processors", "userdata.next_par") if head.next.id == node.id("glue") and head.next.subtype == 20 then head.next.width = userdata.hangindent end return head end nodes.tasks.appendaction("processors", "before", "userdata.next_par") nodes.tasks.disableaction("processors", "userdata.next_par") local default = typesetters.initials.actions.default function typesetters.initials.actions.default(...) nodes.tasks.enableaction("finalizers", "userdata.post_lettrine") return default(...) end \stopluacode \setupinitial[n=2] [...] Normally manipulating nodes inside the callbacks is the wrong way to do something, but in this case, that's exactly how the standard initial code works. We need to modify the "default" alternative since "\setupinitial" provides no way for us to set a different alternative. A better solution would be to provide a new alternative so we wouldn't need to make questionable overrides to the base code. Indeed, and it might also sort of fragile due to the prevgraf although we can assume sane usage. All this stuff is also a bit order sensitive. I'll added this: \setupinitial[n=2,continue=yes] But I'll also cheat a bit by adding a prevdepth field to the parstate that remembers the previous one (as it gets lost otherwise). Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Off topic: Does a 'free for commercial use' flared-sans font exist in the world?
Only regular, italic, bold, no bold italic (just as the Linux Bilonium it was forked from) > On 16 Jun 2023, at 18:39, Henning Hraban Ramm via ntg-context > wrote: > > Am 16.06.23 um 18:35 schrieb Gerben Wierda via ntg-context: >> I know this is off topic, but I suspect this community is actually one of >> the best places to find an answer. >> I really like Optima, and what I really like about it is the 'flared style'. >> But I would like to move to a flared-sans font that gives me more licensing >> freedom. I haven't been able to find one after extensive searching. The only >> one who were reasonably priced (not free) were the URW Classico ones in >> Adobe Creative Cloud, but those can only be used in Adobe programs like >> InDesign (and not TeX). >> I found some flared-sans fonts, but not one with at least regular, italic, >> bold, and bold-italic. >> Is there really not a single flared-sans font that is /really/ free (so also >> for commercial use) to use out there? > > How about Libertinus Sans? > https://github.com/alerque/libertinus > > Hraban > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>, Mastodon <https://newsie.social/@gctwnl>) R IT Strategy <https://ea.rna.nl/> (main site) Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/> Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/> ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Using the open source Cabin font
Removed the variable width from the system, installed the static fonts. This works. Thank you. G > On 16 Jun 2023, at 15:25, Wolfgang Schuster via ntg-context > wrote: > > Hi Gerben, > > can you try the static version of the fonts. When I tried the variable width > version no files are listed but with the static version I had no problems to > load the font. > > \definefontfamily [archimate] [ss] [Cabin] > > \setupbodyfont [archimate] > > \starttext > {\bf The quick brown fox jumped over the lazy dog} > > \input knuth > \stoptext > > Wolfgang > > Gerben Wierda via ntg-context schrieb am 16.06.2023 um 15:19: >> I was wrong, not just the bold doesn't work, everything is replaced with >> Latin Modern. Cabin isn't used at all. >> >>> On 16 Jun 2023, at 15:05, Gerben Wierda via ntg-context >> <mailto:ntg-context@ntg.nl>> wrote: >>> >>> I've been trying to use the open source Cabin font >>> (https://fonts.google.com/specimen/Cabin >>> <https://fonts.google.com/specimen/Cabin>) like this: >>> >>> \definefontfamily >>> [archimate] >>> [ss] >>> [Cabin] >>> [tf=style:Regular, >>> bf=style:Semibold, >>> it=style:Italic, >>> bi=style:Semibold Italic] >>> \setupbodyfont[archimate] >>> >>> \setuplanguage[en][patterns={en}]\mainlanguage[en] >>> >>> \starttext >>> \setupindenting[none] >>> \setupindenting[no] >>> {\bf The quick brown fox jumped over the lazy dog} >>> >>> \input knuth >>> \stoptext >>> >>> But when compiling I get no bold text >>> >>> I installed it in LMTX and it has been installed: >>> >>> gerben@hermione% mtxrun --script fonts --list --all --pattern='*abin*' >>> identifier familyname fontname filename >>> subfont instances >>> >>> cabinitalic cabincabinitalic >>> /Users/gerben/Library/Fonts/Cabin-Italic-VariableFont_wdth,wght.ttf >>> italic mediumitalic semibolditalic bolditalic >>> cabinitalicbolditalic cabincabinitalic >>> /Users/gerben/Library/Fonts/Cabin-Italic-VariableFont_wdth,wght.ttf >>> italic mediumitalic semibolditalic bolditalic >>> cabinitalicitalic cabincabinitalic >>> /Users/gerben/Library/Fonts/Cabin-Italic-VariableFont_wdth,wght.ttf >>> italic mediumitalic semibolditalic bolditalic >>> cabinitalicmediumitalic cabincabinitalic >>> /Users/gerben/Library/Fonts/Cabin-Italic-VariableFont_wdth,wght.ttf >>> italic mediumitalic semibolditalic bolditalic >>> cabinitalicsemibolditalic cabincabinitalic >>> /Users/gerben/Library/Fonts/Cabin-Italic-VariableFont_wdth,wght.ttf >>> italic mediumitalic semibolditalic bolditalic >>> cabinnormal cabincabinregular >>> /Users/gerben/Library/Fonts/Cabin-VariableFont_wdth,wght.ttf >>> regular medium semibold bold >>> cabinregularcabincabinregular >>> /Users/gerben/Library/Fonts/Cabin-VariableFont_wdth,wght.ttf >>> regular medium semibold bold >>> cabinregularboldcabincabinregular >>> /Users/gerben/Library/Fonts/Cabin-VariableFont_wdth,wght.ttf >>> regular medium semibold bold >>> cabinregularmedium cabincabinregular >>> /Users/gerben/Library/Fonts/Cabin-VariableFont_wdth,wght.ttf >>> regular medium semibold bold >>> cabinregularregular cabincabinregular >>> /Users/gerben/Library/Fonts/Cabin-VariableFont_wdth,wght.ttf >>> regular medium semibold bold >>> cabinregularsemiboldcabincabinregular >>> /Users/gerben/Library/Fonts/Cabin-VariableFont_wdth,wght.ttf >>> regular medium semibold bold >>> >>> What am I missing? >>> >>> Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>, >>> Mastodon <https://newsie.social/@gctwnl>) >>> R IT Strategy <https://ea.rna.nl/> (main site) >>> Book: Chess and the Art of Enterprise Architecture &
Re: [NTG-context] Protect the lettrine
Hi Dave, > How would you instruct ConTeXt to "protect" the lettrine such that > regardless of whether the first paragraph spans multiple lines, a short > first paragraph will still prevent the second paragraph from overlapping > the lettrine? > Here's the output I'm looking to achieve: > > https://i.stack.imgur.com/XeZQS.png > > Note how the second line honours the lettrine's width and padding, in the > same way that the second line of the first paragraph in Knuth's quote > respects the width and padding. Here's a questionable Lua-based solution: \startluacode userdata.hangindent = 0 function userdata.post_lettrine(head) nodes.tasks.disableaction("finalizers", "userdata.post_lettrine") if tex.prevgraf < math.abs(tex.hangafter) then userdata.hangindent = tex.hangindent nodes.tasks.enableaction("processors", "userdata.next_par") end return head end nodes.tasks.appendaction("finalizers", "before", "userdata.post_lettrine") nodes.tasks.disableaction("finalizers", "userdata.post_lettrine") function userdata.next_par(head) nodes.tasks.disableaction("processors", "userdata.next_par") if head.next.id == node.id("glue") and head.next.subtype == 20 then head.next.width = userdata.hangindent end return head end nodes.tasks.appendaction("processors", "before", "userdata.next_par") nodes.tasks.disableaction("processors", "userdata.next_par") local default = typesetters.initials.actions.default function typesetters.initials.actions.default(...) nodes.tasks.enableaction("finalizers", "userdata.post_lettrine") return default(...) end \stopluacode \setupinitial[n=2] [...] Normally manipulating nodes inside the callbacks is the wrong way to do something, but in this case, that's exactly how the standard initial code works. We need to modify the "default" alternative since "\setupinitial" provides no way for us to set a different alternative. A better solution would be to provide a new alternative so we wouldn't need to make questionable overrides to the base code. -- Max ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Protect the lettrine
On Tue, Jun 13, 2023 at 08:46:59PM -0700, Thangalin via ntg-context wrote: > Thank you for taking the time to reply, linguafalsa, I appreciate it. > > The source document is written in Markdown using KeenWrite, my Markdown > editor. Inserting typesetting instructions into the document would defeat > the software's architecture, hence being untenable. After the Markdown is > transformed into XHTML, a specific theme instructs ConTeXt how to typeset > the XHTML. Never heard of it (keenwrite), but your request is indeed, valid all along. I haven't checked the code that lmtx uses but by just looking at the bare macros, it seems as if `\forgetplaceinitial` is limited in what it can and can't do. I think it's reasonable the way it was implemented but nevertheless this is something that ought to be looked at rather than ignore it or put aside for later I didn't see the video, it's distracting, but as I said, is a valid request on your part Perhaps `\setuphead` can have such of a feature in the future — that of different settings for different chapters, and if one exists now, I'm just simply unaware of, but either way, you're dealing mainly here with a table and tabskips and whatnot. It seems that there's one feature for subsubsections, written in lua, but this is entirely different Even with something as the following I just wouldn't know how to specify it to apply it concurrently for each particular chapter thereafter and dissuade it from subsequently applying it to where not otherwise. I just don't know. \setuphead[chapter][ after={\placeinitial\vbox to 1cm{\relax {K{\hskip 2pt \lower 5pt \hbox{ermit MUffins \vbox to -0.055cm {\hskip -2.8cm \raise 1pt \hbox{meet me at the second line}}}, page=no, %] \starttext \startchapter[1] \stopchapter \forgetinitial \par \startchapter[2] \input knuth \stopchapter \stoptext > > Here's a video showing how theme selection works: > > https://youtu.be/3QpX70O5S30?list=PLB-WIt1cZYLm1MMx2FBG9KWzPIoWZMKu_=14 > > I hope this explains the situation more clearly about why changing the code > between \starttext and \stoptext isn't an option, as you've done with > introducing and using a macro. > > Greets! take care Tangalin Carlos > > On Tue, Jun 13, 2023 at 7:33 PM linguafalsa--- via ntg-context < > ntg-context@ntg.nl> wrote: > > > On Tue, Jun 13, 2023 at 02:01:14PM -0700, Thangalin via ntg-context wrote: > > > Thanks Otared, > > > > > > Unfortunately, that's adding content between \starttext and \stoptext, > > > which isn't tenable in my situation. The user is writing in Markdown, > > which > > > is automatically converted to XHTML then passed to ConTeXt, and so the > > > setups need to account for this scenario without modifying the source > > > document. > > > > > > > Yeah yeah yeah, tenable. A lot of things aren't tenable. Anyhow, > > What source document are you talking about here? > > > > You're already sourcing the lines after chapter one. As a matter of > > fact, if you weren't sourcing, then you'd have zilch, nada, zero, empty, > > null, void, an space, a separation, an abstract > > > > Just define Kermit Muffins and it should be good to go > > > > > > \setupinitial[n=2] > > > > \def\KermitMuffins{\vbox{Kermit Muffins\par\hskip 1.3cm \tfd Meet me at > > the second line}} > > > > \setuphead[chapter][ > > after={\placeinitial}, > > page=no, > > ] > > > > \starttext > > \chapter{one} > > \KermitMuffins > > > > \chapter{two} > > \input knuth > > > > Meet me at the second line. > > \stoptext > > > > > > > > > Cheers! > > > > > > On Tue, Jun 13, 2023 at 1:30 AM Otared Kavian via ntg-context < > > > ntg-context@ntg.nl> wrote: > > > > > > > Hi, > > > > > > > > Adding \hfill\break to the short line solves the issue, but probably > > there > > > > is a better way to achieve the correct result. > > > > > > > > \setupinitial[n=2] > > > > > > > > \setuphead[chapter][ > > > > after={\placeinitial}, > > > > page=no, > > > > ] > > > > > > > > \starttext > > > > \chapter{one} > > > > Kermit Ruffins \hfill\break % <--- > > > > > > > > Meet me at the second line. > > > > > > > > \chapter{two} > > > > \input knuth > > > > > > > > Meet me at the second line. > > > > \stoptext > > > > > > > > > > > > > > > > > > > >
Re: [NTG-context] regular online meet-up
Reminder: this is in a few hours! Looking forward to seeing you again, Hraban Am 09.06.23 um 13:29 schrieb Henning Hraban Ramm via ntg-context: You’re invited to join on Wednesday, June 14th, 15:00 CEST (UTC+2) at https://lecture.senfcall.de/hen-rbr-rku-oke (same, but shorter: https://v34h.de/ctxmtg) ConTeXt users of all levels are welcome! Next meeting will be on July 12th. (Same blurb as every time:) [Howto] * No special software installation required; most modern browsers should work (WebRTC required). * Open the above URL, accept the privacy statement, * enter your name, * click "join" (or "start" if you’re the first), * click "with microphone", allow your browser to access it, check the audio. * Your microphone is muted if you join. Activate microphone and/or camera with the buttons at the bottom. * Minimize the default presentation with the "screen" button, bottom right. * If you’d like to share your screen or upload a file, you can make yourself the presenter: Click on your user name, change the setting, then you’ll see the "screen sharing" button beside the camera button; also there’s now "manage presentations" behind the "plus" button. Beware there is only one presenter at a time, so don’t kill someone else’s presentation. [Technical hints] * Sound is usually better if you use a headset (less noise for everyone). * Connection problems are mostly due to low bandwidth or high latency on your side, e.g. with mobile connections. * If audio/video doesn’t work for you, you can still use the text chat. * Screen sharing needs a lot of bandwidth. * BigBlueButton documentation applies: https://bigbluebutton.org/teachers/tutorials/ [Netiquette] * Please use a name that we recognize from here. Some feel uncomfortable with anonymous lurkers. * Mute your microphone while you’re not talking. * It’s nice to show your face at least when you join. * If there are connection problems, stop camera sharing. * The room is set to “everyone’s a moderator“, I trust you... See you, Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Protect the lettrine
Thank you for taking the time to reply, linguafalsa, I appreciate it. The source document is written in Markdown using KeenWrite, my Markdown editor. Inserting typesetting instructions into the document would defeat the software's architecture, hence being untenable. After the Markdown is transformed into XHTML, a specific theme instructs ConTeXt how to typeset the XHTML. Here's a video showing how theme selection works: https://youtu.be/3QpX70O5S30?list=PLB-WIt1cZYLm1MMx2FBG9KWzPIoWZMKu_=14 I hope this explains the situation more clearly about why changing the code between \starttext and \stoptext isn't an option, as you've done with introducing and using a macro. Greets! On Tue, Jun 13, 2023 at 7:33 PM linguafalsa--- via ntg-context < ntg-context@ntg.nl> wrote: > On Tue, Jun 13, 2023 at 02:01:14PM -0700, Thangalin via ntg-context wrote: > > Thanks Otared, > > > > Unfortunately, that's adding content between \starttext and \stoptext, > > which isn't tenable in my situation. The user is writing in Markdown, > which > > is automatically converted to XHTML then passed to ConTeXt, and so the > > setups need to account for this scenario without modifying the source > > document. > > > > Yeah yeah yeah, tenable. A lot of things aren't tenable. Anyhow, > What source document are you talking about here? > > You're already sourcing the lines after chapter one. As a matter of > fact, if you weren't sourcing, then you'd have zilch, nada, zero, empty, > null, void, an space, a separation, an abstract > > Just define Kermit Muffins and it should be good to go > > > \setupinitial[n=2] > > \def\KermitMuffins{\vbox{Kermit Muffins\par\hskip 1.3cm \tfd Meet me at > the second line}} > > \setuphead[chapter][ > after={\placeinitial}, > page=no, > ] > > \starttext > \chapter{one} > \KermitMuffins > > \chapter{two} > \input knuth > > Meet me at the second line. > \stoptext > > > > > Cheers! > > > > On Tue, Jun 13, 2023 at 1:30 AM Otared Kavian via ntg-context < > > ntg-context@ntg.nl> wrote: > > > > > Hi, > > > > > > Adding \hfill\break to the short line solves the issue, but probably > there > > > is a better way to achieve the correct result. > > > > > > \setupinitial[n=2] > > > > > > \setuphead[chapter][ > > > after={\placeinitial}, > > > page=no, > > > ] > > > > > > \starttext > > > \chapter{one} > > > Kermit Ruffins \hfill\break % <--- > > > > > > Meet me at the second line. > > > > > > \chapter{two} > > > \input knuth > > > > > > Meet me at the second line. > > > \stoptext > > > > > > > > > > > > > Best regards: Otared > > > > > > On 13 Jun 2023, at 04:43, Thangalin via ntg-context < > ntg-context@ntg.nl> > > > wrote: > > > > > > I'm using KeenWrite Themes (specifically, Boschet) to typeset a chapter > > > wherein the first letter is a lettrine. When the first paragraph is too > > > short, the second paragraph overlaps the lettrine. > > > > > > % SOT > > > \setupinitial[n=2] > > > > > > \setuphead[chapter][ > > > after={\placeinitial}, > > > page=no, > > > ] > > > > > > \starttext > > > \chapter{one} > > > Kermit Ruffins > > > > > > Meet me at the second line. > > > > > > \chapter{two} > > > \input knuth > > > > > > Meet me at the second line. > > > \stoptext > > > % EOT > > > > > > Produces: https://i.stack.imgur.com/kNDqw.png > > > > > > How would you instruct ConTeXt to "protect" the lettrine such that > > > regardless of whether the first paragraph spans multiple lines, a short > > > first paragraph will still prevent the second paragraph from > overlapping > > > the lettrine? > > > > > > That is, the setups should work in both cases, without any knowledge > about > > > the first paragraph length being added between \starttext and > \stoptext. > > > > > > ConTeXt LMTX version: 2023.06.04 18:58 > > > > > > Thank you! > > > > > > > ___ > > > If your question is of interest to others as well, please add an entry > to > > > the Wiki! > > > > > > maillist : ntg-context@ntg.nl / > > >
Re: [NTG-context] Protect the lettrine
On Tue, Jun 13, 2023 at 02:01:14PM -0700, Thangalin via ntg-context wrote: > Thanks Otared, > > Unfortunately, that's adding content between \starttext and \stoptext, > which isn't tenable in my situation. The user is writing in Markdown, which > is automatically converted to XHTML then passed to ConTeXt, and so the > setups need to account for this scenario without modifying the source > document. > Yeah yeah yeah, tenable. A lot of things aren't tenable. Anyhow, What source document are you talking about here? You're already sourcing the lines after chapter one. As a matter of fact, if you weren't sourcing, then you'd have zilch, nada, zero, empty, null, void, an space, a separation, an abstract Just define Kermit Muffins and it should be good to go \setupinitial[n=2] \def\KermitMuffins{\vbox{Kermit Muffins\par\hskip 1.3cm \tfd Meet me at the second line}} \setuphead[chapter][ after={\placeinitial}, page=no, ] \starttext \chapter{one} \KermitMuffins \chapter{two} \input knuth Meet me at the second line. \stoptext > Cheers! > > On Tue, Jun 13, 2023 at 1:30 AM Otared Kavian via ntg-context < > ntg-context@ntg.nl> wrote: > > > Hi, > > > > Adding \hfill\break to the short line solves the issue, but probably there > > is a better way to achieve the correct result. > > > > \setupinitial[n=2] > > > > \setuphead[chapter][ > > after={\placeinitial}, > > page=no, > > ] > > > > \starttext > > \chapter{one} > > Kermit Ruffins \hfill\break % <--- > > > > Meet me at the second line. > > > > \chapter{two} > > \input knuth > > > > Meet me at the second line. > > \stoptext > > > > > > Best regards: Otared > > > > On 13 Jun 2023, at 04:43, Thangalin via ntg-context > > wrote: > > > > I'm using KeenWrite Themes (specifically, Boschet) to typeset a chapter > > wherein the first letter is a lettrine. When the first paragraph is too > > short, the second paragraph overlaps the lettrine. > > > > % SOT > > \setupinitial[n=2] > > > > \setuphead[chapter][ > > after={\placeinitial}, > > page=no, > > ] > > > > \starttext > > \chapter{one} > > Kermit Ruffins > > > > Meet me at the second line. > > > > \chapter{two} > > \input knuth > > > > Meet me at the second line. > > \stoptext > > % EOT > > > > Produces: https://i.stack.imgur.com/kNDqw.png > > > > How would you instruct ConTeXt to "protect" the lettrine such that > > regardless of whether the first paragraph spans multiple lines, a short > > first paragraph will still prevent the second paragraph from overlapping > > the lettrine? > > > > That is, the setups should work in both cases, without any knowledge about > > the first paragraph length being added between \starttext and \stoptext. > > > > ConTeXt LMTX version: 2023.06.04 18:58 > > > > Thank you! > > > > ___ > > If your question is of interest to others as well, please add an entry to > > the Wiki! > > > > maillist : ntg-context@ntg.nl / > > https://www.ntg.nl/mailman/listinfo/ntg-context > > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > > archive : https://bitbucket.org/phg/context-mirror/commits/ > > wiki : https://contextgarden.net > > > > ___ > > > > > > Otared Kavian > > e-mail: ota...@gmail.com > > Phone: +33 6 88 26 70 95 > > > > > > > > > > > > ___ > > If your question is of interest to others as well, please add an entry to > > the Wiki! > > > > maillist : ntg-context@ntg.nl / > > https://www.ntg.nl/mailman/listinfo/ntg-context > > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > > archive : https://bitbucket.org/phg/context-mirror/commits/ > > wiki : https://contextgarden.net > > > > ___ > > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > arc
Re: [NTG-context] Protect the lettrine
Here's the output I'm looking to achieve: https://i.stack.imgur.com/XeZQS.png Note how the second line honours the lettrine's width and padding, in the same way that the second line of the first paragraph in Knuth's quote respects the width and padding. On Tue, Jun 13, 2023 at 2:01 PM Thangalin wrote: > Thanks Otared, > > Unfortunately, that's adding content between \starttext and \stoptext, > which isn't tenable in my situation. The user is writing in Markdown, which > is automatically converted to XHTML then passed to ConTeXt, and so the > setups need to account for this scenario without modifying the source > document. > > Cheers! > > On Tue, Jun 13, 2023 at 1:30 AM Otared Kavian via ntg-context < > ntg-context@ntg.nl> wrote: > >> Hi, >> >> Adding \hfill\break to the short line solves the issue, but probably >> there is a better way to achieve the correct result. >> >> \setupinitial[n=2] >> >> \setuphead[chapter][ >> after={\placeinitial}, >> page=no, >> ] >> >> \starttext >> \chapter{one} >> Kermit Ruffins \hfill\break % <--- >> >> Meet me at the second line. >> >> \chapter{two} >> \input knuth >> >> Meet me at the second line. >> \stoptext >> >> >> Best regards: Otared >> >> On 13 Jun 2023, at 04:43, Thangalin via ntg-context >> wrote: >> >> I'm using KeenWrite Themes (specifically, Boschet) to typeset a chapter >> wherein the first letter is a lettrine. When the first paragraph is too >> short, the second paragraph overlaps the lettrine. >> >> % SOT >> \setupinitial[n=2] >> >> \setuphead[chapter][ >> after={\placeinitial}, >> page=no, >> ] >> >> \starttext >> \chapter{one} >> Kermit Ruffins >> >> Meet me at the second line. >> >> \chapter{two} >> \input knuth >> >> Meet me at the second line. >> \stoptext >> % EOT >> >> Produces: https://i.stack.imgur.com/kNDqw.png >> >> How would you instruct ConTeXt to "protect" the lettrine such that >> regardless of whether the first paragraph spans multiple lines, a short >> first paragraph will still prevent the second paragraph from overlapping >> the lettrine? >> >> That is, the setups should work in both cases, without any knowledge >> about the first paragraph length being added between \starttext and >> \stoptext. >> >> ConTeXt LMTX version: 2023.06.04 18:58 >> >> Thank you! >> >> ___ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl / >> https://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : https://www.pragma-ade.nl / http://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> wiki : https://contextgarden.net >> >> ___ >> >> >> Otared Kavian >> e-mail: ota...@gmail.com >> Phone: +33 6 88 26 70 95 >> >> >> >> >> >> ___ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl / >> https://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : https://www.pragma-ade.nl / http://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> wiki : https://contextgarden.net >> >> ___ >> > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Protect the lettrine
Thanks Otared, Unfortunately, that's adding content between \starttext and \stoptext, which isn't tenable in my situation. The user is writing in Markdown, which is automatically converted to XHTML then passed to ConTeXt, and so the setups need to account for this scenario without modifying the source document. Cheers! On Tue, Jun 13, 2023 at 1:30 AM Otared Kavian via ntg-context < ntg-context@ntg.nl> wrote: > Hi, > > Adding \hfill\break to the short line solves the issue, but probably there > is a better way to achieve the correct result. > > \setupinitial[n=2] > > \setuphead[chapter][ > after={\placeinitial}, > page=no, > ] > > \starttext > \chapter{one} > Kermit Ruffins \hfill\break % <--- > > Meet me at the second line. > > \chapter{two} > \input knuth > > Meet me at the second line. > \stoptext > > > Best regards: Otared > > On 13 Jun 2023, at 04:43, Thangalin via ntg-context > wrote: > > I'm using KeenWrite Themes (specifically, Boschet) to typeset a chapter > wherein the first letter is a lettrine. When the first paragraph is too > short, the second paragraph overlaps the lettrine. > > % SOT > \setupinitial[n=2] > > \setuphead[chapter][ > after={\placeinitial}, > page=no, > ] > > \starttext > \chapter{one} > Kermit Ruffins > > Meet me at the second line. > > \chapter{two} > \input knuth > > Meet me at the second line. > \stoptext > % EOT > > Produces: https://i.stack.imgur.com/kNDqw.png > > How would you instruct ConTeXt to "protect" the lettrine such that > regardless of whether the first paragraph spans multiple lines, a short > first paragraph will still prevent the second paragraph from overlapping > the lettrine? > > That is, the setups should work in both cases, without any knowledge about > the first paragraph length being added between \starttext and \stoptext. > > ConTeXt LMTX version: 2023.06.04 18:58 > > Thank you! > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > > ___ > > > Otared Kavian > e-mail: ota...@gmail.com > Phone: +33 6 88 26 70 95 > > > > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Protect the lettrine
Hi, Adding \hfill\break to the short line solves the issue, but probably there is a better way to achieve the correct result. \setupinitial[n=2] \setuphead[chapter][ after={\placeinitial}, page=no, ] \starttext \chapter{one} Kermit Ruffins \hfill\break % <--- Meet me at the second line. \chapter{two} \input knuth Meet me at the second line. \stoptext Best regards: Otared > On 13 Jun 2023, at 04:43, Thangalin via ntg-context > wrote: > > I'm using KeenWrite Themes (specifically, Boschet) to typeset a chapter > wherein the first letter is a lettrine. When the first paragraph is too > short, the second paragraph overlaps the lettrine. > > % SOT > \setupinitial[n=2] > > \setuphead[chapter][ > after={\placeinitial}, > page=no, > ] > > \starttext > \chapter{one} > Kermit Ruffins > > Meet me at the second line. > > \chapter{two} > \input knuth > > Meet me at the second line. > \stoptext > % EOT > > Produces: https://i.stack.imgur.com/kNDqw.png > <https://i.stack.imgur.com/kNDqw.png> > > How would you instruct ConTeXt to "protect" the lettrine such that regardless > of whether the first paragraph spans multiple lines, a short first paragraph > will still prevent the second paragraph from overlapping the lettrine? > > That is, the setups should work in both cases, without any knowledge about > the first paragraph length being added between \starttext and \stoptext. > > ConTeXt LMTX version: 2023.06.04 18:58 > > Thank you! > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ Otared Kavian e-mail: ota...@gmail.com Phone: +33 6 88 26 70 95 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Protect the lettrine
I'm using KeenWrite Themes (specifically, Boschet) to typeset a chapter wherein the first letter is a lettrine. When the first paragraph is too short, the second paragraph overlaps the lettrine. % SOT \setupinitial[n=2] \setuphead[chapter][ after={\placeinitial}, page=no, ] \starttext \chapter{one} Kermit Ruffins Meet me at the second line. \chapter{two} \input knuth Meet me at the second line. \stoptext % EOT Produces: https://i.stack.imgur.com/kNDqw.png How would you instruct ConTeXt to "protect" the lettrine such that regardless of whether the first paragraph spans multiple lines, a short first paragraph will still prevent the second paragraph from overlapping the lettrine? That is, the setups should work in both cases, without any knowledge about the first paragraph length being added between \starttext and \stoptext. ConTeXt LMTX version: 2023.06.04 18:58 Thank you! ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] TiKz with LMTX
On 6/12/2023 6:49 PM, Carlos via ntg-context wrote: On Thu, Jun 08, 2023 at 11:57:36PM -0400, Aditya Mahajan via ntg-context wrote: On Thu, 8 Jun 2023, Jigé via ntg-context wrote: Thanks a lot Aditya. The very simple TikZ example with the cross works. The more complex example with the trigonometric circle from the pgf manual, quoted in https://wiki.contextgarden.net/TikZ , does not compile unless you also comment out or find(n,"pdftex") in line 181 of the mtx-install-modules.lua file before doing mtxrun --script install-modules --install tikz but I could guess that from a: Driver file ``pgfsys-pdftex.def'' not found.. message Ah so tikz uses both drivers. @Hans, so the validate function should be: local function validate(n) return not ( find(n,"latex") what's the point of latex there? -- or find(n,"lualatex") or for that matter this one lualatex too or find(n,"plain") or find(n,"optex") -- or find(n,"luatex") -- or find(n,"pdftex") ) end just getting rid of files we don't need Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] TiKz with LMTX
On Thu, Jun 08, 2023 at 11:57:36PM -0400, Aditya Mahajan via ntg-context wrote: > On Thu, 8 Jun 2023, Jigé via ntg-context wrote: > > > Thanks a lot Aditya. > > > > The very simple TikZ example with the cross works. > > The more complex example with the trigonometric circle from the pgf manual, > > quoted in https://wiki.contextgarden.net/TikZ , does not compile > > unless you also comment out > > or find(n,"pdftex") > > in line 181 of the mtx-install-modules.lua file > > before doing mtxrun --script install-modules --install tikz > > but I could guess that from a: > > Driver file ``pgfsys-pdftex.def'' not found.. > > message > > Ah so tikz uses both drivers. > > @Hans, so the validate function should be: > > local function validate(n) > return not ( >find(n,"latex") what's the point of latex there? > -- or find(n,"lualatex") or for that matter this one lualatex too > or find(n,"plain") > or find(n,"optex") > -- or find(n,"luatex") > -- or find(n,"pdftex") > ) > end > > > Aditya Through rsync only and by default without mtx-install-modules script, obviously, it'll simply fall back loading by pgfsys-pdftex so you'd be better off by just having local function validate(n) return not ( find(n,"latex") or find(n,"lualatex") or find(n,"plain") or find(n,"optex") -- or find(n,"luatex") or find(n,"pdftex") ) end instead. Also, forget about the curl --ssl or whatever you mentioned earlier. > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ -- Brian Kernighan has an automobile which he helped design. Unlike most automobiles, it has neither speedometer, nor gas gauge, nor any of the numerous idiot lights which plague the modern driver. Rather, if the driver makes any mistake, a giant "?" lights up in the center of the dashboard. "The experienced driver", he says, "will usually know what's wrong." ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] TiKz with LMTX
On Fri, 9 Jun 2023, Hans Hagen via ntg-context wrote: > On 6/9/2023 5:57 AM, Aditya Mahajan via ntg-context wrote: > > On Thu, 8 Jun 2023, Jigé via ntg-context wrote: > > > >> Thanks a lot Aditya. > >> > >> The very simple TikZ example with the cross works. > >> The more complex example with the trigonometric circle from the pgf > >> manual, > >> quoted in https://wiki.contextgarden.net/TikZ , does not compile > >> unless you also comment out > >> or find(n,"pdftex") > >> in line 181 of the mtx-install-modules.lua file > >> before doing mtxrun --script install-modules --install tikz > >> but I could guess that from a: > >> Driver file ``pgfsys-pdftex.def'' not found.. > >> message > > > > Ah so tikz uses both drivers. > > > > @Hans, so the validate function should be: > > > > local function validate(n) > > return not ( > > find(n,"latex") > > -- or find(n,"lualatex") > > or find(n,"plain") > > or find(n,"optex") > > -- or find(n,"luatex") > > -- or find(n,"pdftex") > > ) > > end > so an alternative is to ignore deleting those two files > > what is in lualatex that we need? can hardly be something generic pgf/tikz doesn't have anything with lualatex in the name. The only files that match luatex/pdftex are these def files. > (it being pretty big makes me wonder if we should have texmf-tikz for it as i > don't want to polute the modules tree too much - it gets hard to check other > modules for instance when i want to see if some change has impact) If it makes things easier to manage, we can definitely do that. We already have 7 trees, one more isn't going to make any difference :-) Aditya___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] regular online meet-up
You’re invited to join on Wednesday, June 14th, 15:00 CEST (UTC+2) at https://lecture.senfcall.de/hen-rbr-rku-oke (same, but shorter: https://v34h.de/ctxmtg) ConTeXt users of all levels are welcome! Next meeting will be on July 12th. (Same blurb as every time:) [Howto] * No special software installation required; most modern browsers should work (WebRTC required). * Open the above URL, accept the privacy statement, * enter your name, * click "join" (or "start" if you’re the first), * click "with microphone", allow your browser to access it, check the audio. * Your microphone is muted if you join. Activate microphone and/or camera with the buttons at the bottom. * Minimize the default presentation with the "screen" button, bottom right. * If you’d like to share your screen or upload a file, you can make yourself the presenter: Click on your user name, change the setting, then you’ll see the "screen sharing" button beside the camera button; also there’s now "manage presentations" behind the "plus" button. Beware there is only one presenter at a time, so don’t kill someone else’s presentation. [Technical hints] * Sound is usually better if you use a headset (less noise for everyone). * Connection problems are mostly due to low bandwidth or high latency on your side, e.g. with mobile connections. * If audio/video doesn’t work for you, you can still use the text chat. * Screen sharing needs a lot of bandwidth. * BigBlueButton documentation applies: https://bigbluebutton.org/teachers/tutorials/ [Netiquette] * Please use a name that we recognize from here. Some feel uncomfortable with anonymous lurkers. * Mute your microphone while you’re not talking. * It’s nice to show your face at least when you join. * If there are connection problems, stop camera sharing. * The room is set to “everyone’s a moderator“, I trust you... See you, Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] TiKz with LMTX
On 6/9/2023 5:57 AM, Aditya Mahajan via ntg-context wrote: On Thu, 8 Jun 2023, Jigé via ntg-context wrote: Thanks a lot Aditya. The very simple TikZ example with the cross works. The more complex example with the trigonometric circle from the pgf manual, quoted in https://wiki.contextgarden.net/TikZ , does not compile unless you also comment out or find(n,"pdftex") in line 181 of the mtx-install-modules.lua file before doing mtxrun --script install-modules --install tikz but I could guess that from a: Driver file ``pgfsys-pdftex.def'' not found.. message Ah so tikz uses both drivers. @Hans, so the validate function should be: local function validate(n) return not ( find(n,"latex") -- or find(n,"lualatex") or find(n,"plain") or find(n,"optex") -- or find(n,"luatex") -- or find(n,"pdftex") ) end so an alternative is to ignore deleting those two files what is in lualatex that we need? can hardly be something generic (it being pretty big makes me wonder if we should have texmf-tikz for it as i don't want to polute the modules tree too much - it gets hard to check other modules for instance when i want to see if some change has impact) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] TiKz with LMTX
On Thu, 8 Jun 2023, Jigé via ntg-context wrote: > Thanks a lot Aditya. > > The very simple TikZ example with the cross works. > The more complex example with the trigonometric circle from the pgf manual, > quoted in https://wiki.contextgarden.net/TikZ , does not compile > unless you also comment out > or find(n,"pdftex") > in line 181 of the mtx-install-modules.lua file > before doing mtxrun --script install-modules --install tikz > but I could guess that from a: > Driver file ``pgfsys-pdftex.def'' not found.. > message Ah so tikz uses both drivers. @Hans, so the validate function should be: local function validate(n) return not ( find(n,"latex") -- or find(n,"lualatex") or find(n,"plain") or find(n,"optex") -- or find(n,"luatex") -- or find(n,"pdftex") ) end Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] TiKz with LMTX
Thanks a lot Aditya. The very simple TikZ example with the cross works. The more complex example with the trigonometric circle from the pgf manual, quoted in https://wiki.contextgarden.net/TikZ , does not compile unless you also comment out or find(n,"pdftex") in line 181 of the mtx-install-modules.lua file before doing mtxrun --script install-modules --install tikz but I could guess that from a: Driver file ``pgfsys-pdftex.def'' not found.. message Thanks again Jean-Guillaume Le jeudi 8 juin 2023 à 12:28:34 UTC+2, a écrit : Date: Mon, 5 Jun 2023 22:32:37 -0400 (EDT) From: Aditya Mahajan To: Aditya Mahajan via ntg-context Subject: Re: [NTG-context] TiKz with LMTX Message-ID: Content-Type: text/plain; charset="iso-8859-15" On Mon, 5 Jun 2023, Aditya Mahajan via ntg-context wrote: > On Sun, 4 Jun 2023, Jig? via ntg-context wrote: > > > > $ mkdir ~/.local/share/context > > $ cd ~/.local/share/context > > $ wget https://lmtx.pragma-ade.com/install-lmtx/context-linux-64.zip > > $ unzip context-linux-64.zip > > $ sh install.sh > > $ rm context-linux-64.zip > > $ cd ~/.local/share/context/tex > > $ mtxrun --script install-modules --list > > $ mtxrun --script install-modules --install tikz > > (And for good measure, I later did `mtxrun --script install-modules > > --install all`) > > > > $ cd my-working-directory > > $ vi some-sample-context-file.tex > > $ export PATH=/home/myname/.local/share/context/tex/texmf-linux-64/bin:$PATH > > $ context some-sample-context-file.tex > > > > Did I miss anything? It works just fine. > > On a new machine and pgfsys-luatex.def is missing for me as well. I'll try to > check what is going on. This was a bit crazy to track down. Here is the fix: In line 180 of mtx-install-modules.lua, comment the line or find(n,"luatex") Otherwise, the file tex/generic/pgf/systemlayer/pgfsys-luatex.def is not extracted from the tikz.zip! I don't know why OP and I (both on archlinux) were the only ones who had pgfsys-luatex.def missing. Everyone should have been affected by this. Aditya PS: Also on line 103, it may be a good idea to change the curl call to curl --ssl --location mirros.ctan.org will also do a HTTP 302 redirect and without the --location flag, curl will not follow the redirect. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] TiKz with LMTX
On Mon, 5 Jun 2023, Aditya Mahajan via ntg-context wrote: > On Sun, 4 Jun 2023, Jigé via ntg-context wrote: > > > > $ mkdir ~/.local/share/context > > $ cd ~/.local/share/context > > $ wget https://lmtx.pragma-ade.com/install-lmtx/context-linux-64.zip > > $ unzip context-linux-64.zip > > $ sh install.sh > > $ rm context-linux-64.zip > > $ cd ~/.local/share/context/tex > > $ mtxrun --script install-modules --list > > $ mtxrun --script install-modules --install tikz > > (And for good measure, I later did `mtxrun --script install-modules > > --install all`) > > > > $ cd my-working-directory > > $ vi some-sample-context-file.tex > > $ export PATH=/home/myname/.local/share/context/tex/texmf-linux-64/bin:$PATH > > $ context some-sample-context-file.tex > > > > Did I miss anything? It works just fine. > > On a new machine and pgfsys-luatex.def is missing for me as well. I'll try to > check what is going on. This was a bit crazy to track down. Here is the fix: In line 180 of mtx-install-modules.lua, comment the line or find(n,"luatex") Otherwise, the file tex/generic/pgf/systemlayer/pgfsys-luatex.def is not extracted from the tikz.zip! I don't know why OP and I (both on archlinux) were the only ones who had pgfsys-luatex.def missing. Everyone should have been affected by this. Aditya PS: Also on line 103, it may be a good idea to change the curl call to curl --ssl --location mirros.ctan.org will also do a HTTP 302 redirect and without the --location flag, curl will not follow the redirect. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] TiKz with LMTX
On Mon, Jun 05, 2023 at 03:43:59PM -0400, Carlos via ntg-context wrote: > On Mon, Jun 05, 2023 at 03:06:10PM +0200, Floris van Manen via ntg-context > wrote: > > > > > > On 05/06/2023 14:49, Carlos via ntg-context wrote: > > > %# Synchronize all modules from ConTeXt Garden in the 'modules' > > > directory, which is created if it doesn’t exist. > > > to wherever the modules are > > > > > > isn't the command > > > > mtxrun --script install-modules --install tikz > > > > or > > > > mtxrun --script install-modules --install --all > > > > doing exactly that? > > > > Okay Floris. I see Aditya nearby. He'll take over from now on :) stand > by please. I know you didn't ask the original question but this is over > the pgfsys-pdftex and the pgfsys-luatex. It's a race between them !! > sort of > > The solutions are a few if any really, either as I suggested first and update > afterwards or install tikz > > if the driver is the problem, what does common sense tells you Floris? > the database needs to be updated, correct? The driver needs to be > loaded somehow, right? > > > system > ConTeXt ver: 2023.06.04 18:58 LMTX fmt: 2023.6.5 int: > english/english > > So install tikz. then run the file > > mtx-install-modules | from > 'https://mirrors.ctan.org/install/graphics/pgf/base/pgf.tds.zip' > mtx-install-modules | into 'texmf-modules' > 64 files of 642 done,2108636 bytes, 0.015 seconds > 128 files of 642 done, 13693106 bytes, 0.089 seconds > 194 files of 642 done, 15194110 bytes, 0.100 seconds > 317 files of 642 done, 16096396 bytes, 0.108 seconds > 382 files of 642 done, 17178524 bytes, 0.116 seconds > 446 files of 642 done, 17768214 bytes, 0.123 seconds > 510 files of 642 done, 18327708 bytes, 0.130 seconds > 574 files of 642 done, 18656649 bytes, 0.136 seconds > 638 files of 642 done, 18860083 bytes, 0.142 seconds > 642 files of 642 done, 18864376 bytes, 0.142 seconds > mtx-install-modules | from > 'https://mirrors.ctan.org/install/graphics/pgf/contrib/pgfplots.tds.zip' > mtx-install-modules | into 'texmf-modules' > 29 files of 168 done, 69116 bytes, 0.002 seconds > 48 files of 168 done,1596420 bytes, 0.010 seconds > 67 files of 168 done,1889062 bytes, 0.012 seconds > 83 files of 168 done,2761170 bytes, 0.017 seconds > 100 files of 168 done,3156638 bytes, 0.021 seconds > 116 files of 168 done,3508192 bytes, 0.024 seconds > 132 files of 168 done,4035279 bytes, 0.027 seconds > 148 files of 168 done,4163894 bytes, 0.029 seconds > 168 files of 168 done,4195360 bytes, 0.029 seconds > mtx-install-modules | from > 'https://mirrors.ctan.org/install/graphics/pgf/contrib/circuitikz.tds.zip' > mtx-install-modules | into 'texmf-modules' >7 files of 70 done, 14967 bytes, 0.000 seconds > 21 files of 70 done, 61604 bytes, 0.001 seconds > 28 files of 70 done,4839027 bytes, 0.033 seconds > 35 files of 70 done,5906994 bytes, 0.040 seconds > 42 files of 70 done,6399050 bytes, 0.043 seconds > 70 files of 70 done,6879048 bytes, 0.045 seconds > mtx-install-modules | wiping 17 files in 'tex/context/third/pgf/**' > mtx-install-modules | wiping 0 files in 'doc/context/third/pgf/**' > mtx-install-modules | wiping 0 files in 'source/context/third/pgf/**' > mtx-install-modules | wiping 0 files in 'tex/context/pgf/**' > mtx-install-modules | wiping 0 files in 'doc/context/pgf/**' > mtx-install-modules | wiping 0 files in 'source/context/pgf/**' > mtx-install-modules | wiping 0 files in 'scripts/pgf/**' > mtx-install-modules | wiping 2 files in 'tex/context/third/pgfplots/**' > mtx-install-modules | wiping 3 files in 'doc/context/third/pgfplots/**' > mtx-install-modules | wiping 1 files in 'source/context/third/pgfplots/**' > mtx-install-modules | wiping 0 files in 'tex/context/pgfplots/**' > mtx-install-modules | wiping 0 files in 'doc/context/pgfplots/**' > mtx-install-modules | wiping 0 files in 'source/context/pgfplots/**' > mtx-install-modules | wiping 4 files in 'scripts/pgfplots/**' > mtx-install-modules | wiping 8 files in 'tex/context/third/circuitikz/**' > mtx-install-modules | wiping 2 files in 'doc/context/third/circuitikz/**' > mtx-install-modules | wiping 0 files in 'source/context/third/circuitikz/**' > mtx-install-modules | wiping 0 files in 'tex/context/circuitikz/**' > mtx-install-modules | wiping 0 files in 'doc/context/circuitikz/**' > mtx-install-modules | wiping 0 files in 'source/context/circuitikz/**' > mtx-install-modules | wiping 0 files in 'scripts/circuitikz/**' > mtx-install-modul
Re: [NTG-context] TiKz with LMTX
On Mon, Jun 05, 2023 at 03:06:10PM +0200, Floris van Manen via ntg-context wrote: > > > On 05/06/2023 14:49, Carlos via ntg-context wrote: > > %# Synchronize all modules from ConTeXt Garden in the 'modules' directory, > > which is created if it doesn’t exist. > > to wherever the modules are > > > isn't the command > > mtxrun --script install-modules --install tikz > > or > > mtxrun --script install-modules --install --all > > doing exactly that? > Okay Floris. I see Aditya nearby. He'll take over from now on :) stand by please. I know you didn't ask the original question but this is over the pgfsys-pdftex and the pgfsys-luatex. It's a race between them !! sort of The solutions are a few if any really, either as I suggested first and update afterwards or install tikz if the driver is the problem, what does common sense tells you Floris? the database needs to be updated, correct? The driver needs to be loaded somehow, right? system > ConTeXt ver: 2023.06.04 18:58 LMTX fmt: 2023.6.5 int: english/english So install tikz. then run the file mtx-install-modules | from 'https://mirrors.ctan.org/install/graphics/pgf/base/pgf.tds.zip' mtx-install-modules | into 'texmf-modules' 64 files of 642 done,2108636 bytes, 0.015 seconds 128 files of 642 done, 13693106 bytes, 0.089 seconds 194 files of 642 done, 15194110 bytes, 0.100 seconds 317 files of 642 done, 16096396 bytes, 0.108 seconds 382 files of 642 done, 17178524 bytes, 0.116 seconds 446 files of 642 done, 17768214 bytes, 0.123 seconds 510 files of 642 done, 18327708 bytes, 0.130 seconds 574 files of 642 done, 18656649 bytes, 0.136 seconds 638 files of 642 done, 18860083 bytes, 0.142 seconds 642 files of 642 done, 18864376 bytes, 0.142 seconds mtx-install-modules | from 'https://mirrors.ctan.org/install/graphics/pgf/contrib/pgfplots.tds.zip' mtx-install-modules | into 'texmf-modules' 29 files of 168 done, 69116 bytes, 0.002 seconds 48 files of 168 done,1596420 bytes, 0.010 seconds 67 files of 168 done,1889062 bytes, 0.012 seconds 83 files of 168 done,2761170 bytes, 0.017 seconds 100 files of 168 done,3156638 bytes, 0.021 seconds 116 files of 168 done,3508192 bytes, 0.024 seconds 132 files of 168 done,4035279 bytes, 0.027 seconds 148 files of 168 done,4163894 bytes, 0.029 seconds 168 files of 168 done,4195360 bytes, 0.029 seconds mtx-install-modules | from 'https://mirrors.ctan.org/install/graphics/pgf/contrib/circuitikz.tds.zip' mtx-install-modules | into 'texmf-modules' 7 files of 70 done, 14967 bytes, 0.000 seconds 21 files of 70 done, 61604 bytes, 0.001 seconds 28 files of 70 done,4839027 bytes, 0.033 seconds 35 files of 70 done,5906994 bytes, 0.040 seconds 42 files of 70 done,6399050 bytes, 0.043 seconds 70 files of 70 done,6879048 bytes, 0.045 seconds mtx-install-modules | wiping 17 files in 'tex/context/third/pgf/**' mtx-install-modules | wiping 0 files in 'doc/context/third/pgf/**' mtx-install-modules | wiping 0 files in 'source/context/third/pgf/**' mtx-install-modules | wiping 0 files in 'tex/context/pgf/**' mtx-install-modules | wiping 0 files in 'doc/context/pgf/**' mtx-install-modules | wiping 0 files in 'source/context/pgf/**' mtx-install-modules | wiping 0 files in 'scripts/pgf/**' mtx-install-modules | wiping 2 files in 'tex/context/third/pgfplots/**' mtx-install-modules | wiping 3 files in 'doc/context/third/pgfplots/**' mtx-install-modules | wiping 1 files in 'source/context/third/pgfplots/**' mtx-install-modules | wiping 0 files in 'tex/context/pgfplots/**' mtx-install-modules | wiping 0 files in 'doc/context/pgfplots/**' mtx-install-modules | wiping 0 files in 'source/context/pgfplots/**' mtx-install-modules | wiping 4 files in 'scripts/pgfplots/**' mtx-install-modules | wiping 8 files in 'tex/context/third/circuitikz/**' mtx-install-modules | wiping 2 files in 'doc/context/third/circuitikz/**' mtx-install-modules | wiping 0 files in 'source/context/third/circuitikz/**' mtx-install-modules | wiping 0 files in 'tex/context/circuitikz/**' mtx-install-modules | wiping 0 files in 'doc/context/circuitikz/**' mtx-install-modules | wiping 0 files in 'source/context/circuitikz/**' mtx-install-modules | wiping 0 files in 'scripts/circuitikz/**' mtx-install-modules | wiping 0 files in 'tex/latex/**' mtx-install-modules | wiping 0 files in 'tex/plain/**' mtx-install-modules | wiping 0 files in 'doc/latex/**' mtx-install-modules | wiping 0 files in 'doc/plain/**' mtx-install-modules | wiping 148 files in 'doc/generic/**' mtx-install-modules | wiping 0 files in 'source/latex/**' mtx-install-modules | wiping 0 files in 'source/plain/**' mtx-install-modules | mtx-install-modules | renewing file database mtx-install-modules | mtx-install-modules | installed: tikz mtx-install-modules | system > b
Re: [NTG-context] knuth
On Mon, Jun 05, 2023 at 04:50:53PM +0200, luigi scarso via ntg-context wrote: > On Mon, 5 Jun 2023 at 15:18, Alan Braslau via ntg-context < > ntg-context@ntg.nl> wrote: > > > > > On 04/06/23 04/06/23, 15:57, Berend de Boer via ntg-context wrote: > > >> Probably some on this list already checked how well chatgpt answers > > >> questions about domains one knows well and then probably noted that in > > >> spite of impressive wording, one can run into quite incorrect answers. > > > > > > I've been using it for ConTeXt, and to be honest, it works amazingly > > > well. It hallucinates sometimes, but it's such a time saver. > > > > Maybe someone should try asking it to write documentation/manuals? > > > > As a teacher, we are accustomed to seeing Google/Wikipedia/etc. > > cut-and-paste nonsense; now, this nonsense appears more polished, and > > our students are none the wiser. Saves them time, too! ;-) > > > > Who said: "the best way to economize thought is not to think at all"? > > > > > not all is bad: sometimes a textual description can replace a formalized > notation, e.g. > https://fosstodon.org/@t...@mathstodon.xyz/110250604086213386 > I can imagine similar examples with tables. > Of course a very high level text is often ambiguous (as some kind of > formalized grammars, after all) > but the example shows that in these cases it is better to fix something > already almost ok than to typeset it from scratch. > > -- > luigi Not all is bad, no, except the company behind chatgpt ought to pay its users for feeding more data into it. It's a westernized company after all. Lots of baggage. I'm surprised it hasn't applied for a patent yet really. > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ -- You know you've been spending too much time on the computer when your friend misdates a check, and you suggest adding a "++" to fix it. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] knuth
On 05/06/23 05/06/23, 08:50, luigi scarso wrote: On Mon, 5 Jun 2023 at 15:18, Alan Braslau via ntg-context mailto:ntg-context@ntg.nl>> wrote: On 04/06/23 04/06/23, 15:57, Berend de Boer via ntg-context wrote: >> Probably some on this list already checked how well chatgpt answers >> questions about domains one knows well and then probably noted that in >> spite of impressive wording, one can run into quite incorrect answers. > > I've been using it for ConTeXt, and to be honest, it works amazingly > well. It hallucinates sometimes, but it's such a time saver. Maybe someone should try asking it to write documentation/manuals? As a teacher, we are accustomed to seeing Google/Wikipedia/etc. cut-and-paste nonsense; now, this nonsense appears more polished, and our students are none the wiser. Saves them time, too! ;-) Who said: "the best way to economize thought is not to think at all"? not all is bad: sometimes a textual description can replace a formalized notation, e.g. https://fosstodon.org/@t...@mathstodon.xyz/110250604086213386 <https://fosstodon.org/@t...@mathstodon.xyz/110250604086213386> I can imagine similar examples with tables. Of course a very high level text is often ambiguous (as some kind of formalized grammars, after all) but the example shows that in these cases it is better to fix something already almost ok than to typeset it from scratch. As an Artificial Intelligence machine, I cannot speculate why it is so hard to write correct LaTeX that does not need to be tweaked in order to give an aesthetic result. However, from monitoring the ConTeXt mailing list, I have observed that most problems seem to have an answer that work correctly when used correctly. In the rare case that ConTeXt users report something not working correctly, this usually is revealed to be a small typographic error in the macros appearing following a major internal code rewrite. I have recorded in all of these rare cases a pattern that reoccurs repeatedly with the phrase "fixed in next upload". I cannot speculate as to how such fixes appear so rapidly and so consistently. My analytical artificial intelligence is thrown off by seemingly irrelevant statements about listening to this or that CD. What could this possibly mean? In supplement, I have not yet deciphered what is meant by the acronym MWE that also repeatedly occurs. This does not appear to fit with something that is reported as being broken. (Written with the assistance of ChatGPT.) Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] TiKz with LMTX
When I asked about the fresh install, I think I was asking to Mikael who can compile the sample file. Sorry Floris, this was not clear enough because I've been answering to the mailing-list digest and not to invidual messages. Mikael, maybe you have in your $PATH some remembrances of past installation / files? Jean-Guillaume Le lundi 5 juin 2023 à 15:15:46 UTC+2, a écrit : For whatever it is worth, I just tried to install tikz with mtxrun --script install-modules --install tikz and then your example in your first mail did compile here (and gave a cross, and that looks right from the source). /Mikael On 05/06/2023 12:33, Jig? via ntg-context wrote: > Did you do that in a fresh install? yes ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] knuth
On Mon, 5 Jun 2023 at 15:18, Alan Braslau via ntg-context < ntg-context@ntg.nl> wrote: > > On 04/06/23 04/06/23, 15:57, Berend de Boer via ntg-context wrote: > >> Probably some on this list already checked how well chatgpt answers > >> questions about domains one knows well and then probably noted that in > >> spite of impressive wording, one can run into quite incorrect answers. > > > > I've been using it for ConTeXt, and to be honest, it works amazingly > > well. It hallucinates sometimes, but it's such a time saver. > > Maybe someone should try asking it to write documentation/manuals? > > As a teacher, we are accustomed to seeing Google/Wikipedia/etc. > cut-and-paste nonsense; now, this nonsense appears more polished, and > our students are none the wiser. Saves them time, too! ;-) > > Who said: "the best way to economize thought is not to think at all"? > not all is bad: sometimes a textual description can replace a formalized notation, e.g. https://fosstodon.org/@t...@mathstodon.xyz/110250604086213386 I can imagine similar examples with tables. Of course a very high level text is often ambiguous (as some kind of formalized grammars, after all) but the example shows that in these cases it is better to fix something already almost ok than to typeset it from scratch. -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] TiKz with LMTX
On Mon, Jun 05, 2023 at 03:06:10PM +0200, Floris van Manen via ntg-context wrote: > > > On 05/06/2023 14:49, Carlos via ntg-context wrote: > > %# Synchronize all modules from ConTeXt Garden in the 'modules' directory, > > which is created if it doesn’t exist. > > to wherever the modules are > > > isn't the command > > mtxrun --script install-modules --install tikz > > or > > mtxrun --script install-modules --install --all > > doing exactly that? supposedly I guess it's supposed to work. That's what Mikael said. Your version is younger system > ConTeXt ver: 2023.06.01 09:42 LMTX fmt: 2023.6.4 int: english/english whereas mine is older system > ConTeXt ver: 2023.04.27 17:04 LMTX fmt: 2023.6.5 int: english/english > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ -- Thus spake the master programmer: "Without the wind, the grass does not move. Without software, hardware is useless." -- Geoffrey James, "The Tao of Programming" ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] TiKz with LMTX
On 05/06/2023 14:49, Carlos via ntg-context wrote: %# Synchronize all modules from ConTeXt Garden in the 'modules' directory, which is created if it doesn’t exist. to wherever the modules are isn't the command mtxrun --script install-modules --install tikz or mtxrun --script install-modules --install --all doing exactly that? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] TiKz with LMTX
On Mon, Jun 05, 2023 at 01:02:43PM +0200, Floris van Manen via ntg-context wrote: > > > On 05/06/2023 12:33, Jigé via ntg-context wrote: > > Did you do that in a fresh install? > > yes %copied from the wiki %# Synchronize all modules from ConTeXt Garden in the 'modules' directory, which is created if it doesn’t exist. to wherever the modules are $ rsync --recursive --links --times --info=progress2,remove,symsafe,flist,del --human-readable --del rsync://contextgarden.net/minimals/current/modules/ modules then forget context --generate, it won't do anything else but going on a loop but rather do a context --make > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ -- God is real, unless declared integer. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] TiKz with LMTX
Did you do that in a fresh install? Le lundi 5 juin 2023 à 08:26:15 UTC+2, a écrit : For whatever it is worth, I just tried to install tikz with mtxrun --script install-modules --install tikz and then your example in your first mail did compile here (and gave a cross, and that looks right from the source). /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] TiKz with LMTX
On 05/06/2023 07:43, Mikael Sundqvist via ntg-context wrote: For whatever it is worth, I just tried to install tikz with mtxrun --script install-modules --install tikz and then your example in your first mail did compile here (and gave a cross, and that looks right from the source). did exctly the same steps, but still get the fatal error code 1 Driver file for pgf: pgfsys-luatex.def ! Package pgf Error: Driver file ``pgfsys-luatex.def'' not found.. \pgfutil@packageerror #1#2#3->\errhelp {#3}\errmessage {Package #1 Error: #2} \pgfutil@IfFileExists #1#2#3->\openin \pgfutil@inputcheck =#1 \ifeof \pgfutil@inputcheck #3 \relax \else #2\relax \fi \closein \pgfutil@inputcheck \pgferror{Driver file ``\pgfsysdriver'' not found.}} .F ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Page breaks with \defineparagraphs possible?
Hi Wolfgang, You can use the tabulate environment to create parallel paragraphs. Ah yes, that's working! Thank you so much! One question on the pA{normal,verytolerant,stretch}: what does that do exactly? From the manual I got that A only takes one key, what does specifying three keys mean? -- All the best, Berend de Boer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] TiKz with LMTX
Hi Floris, On Sun, Jun 4, 2023 at 11:59 PM Floris van Manen via ntg-context wrote: > > > > On 04/06/2023 18:18, Hans Hagen via ntg-context wrote: > > can you try with > > > > -- "source/generic/**", > > > > in > > > >mtx-install-imp-tikz.lua > > > > (comment line 25) > > > does not make a difference here. For whatever it is worth, I just tried to install tikz with mtxrun --script install-modules --install tikz and then your example in your first mail did compile here (and gave a cross, and that looks right from the source). /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] TiKz with LMTX
I tried: $ mtxrun --generate and also commenting out "source/generic/**" in mtx-install-imp-tikz.lua but with no success. Same error: Driver file ``pgfsys-luatex.def'' not found. This file does not exist in my installation. $ find ~/.local/share/context -iname "*.def" /home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-vtex.def /home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-textures.def /home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-common-postscript.def /home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-dvisvgm4ht.def /home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-dvipdfm.def /home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-dvipdfmx.def /home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-common-pdf.def /home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-common-pdf-via-dvi.def /home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-tex4ht.def /home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-dvisvgm.def /home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-dvi.def /home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-common-svg.def /home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-xetex.def /home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-dvips.def /home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-context.def /home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgfplots/sys/pgflibrarypgfplots.surfshading.pgfsys-xetex.def /home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgfplots/sys/pgflibrarypgfplots.surfshading.pgfsys-dvips.def /home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgfplots/sys/pgflibrarypgfplots.surfshading.pgfsys-dvipdfmx.def Il tried using some of these files by writing them in context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgf.cfg , by the way, but it either doesn't compile or produces a bad picture. Here are some quotes from the online pgf/tikz manual ( https://tikz.dev/drivers#section-formats ) : > 10.2.1 Selecting the Backend Driver > > When TEX typesets your document, it does not know which program you are going > to use to transform the .dvi-file. If your .dvi-file does not contain any > special commands, > this would be fine; but these days almost all .dvi-files contain lots of > special commands. > It is thus necessary to tell TEX which program you are going to use later on. > > Unfortunately, there is no “standard” way of telling this to TEX. > For the LATEX format a sophisticated mechanism exists inside the graphics > package > and pgf plugs into this mechanism. For other formats and when this plugging > does not work > as expected, it is necessary to tell pgf directly which program you are going > to use. > This is done by redefining the macro \pgfsysdriver to an appropriate value > before you load pgf. > If you are going to use the dvips program, you set this macro to the value > pgfsys-dvips.def; > if you use pdftex or pdflatex, you set it to pgfsys-pdftex.def; and so on. > In the following, details of the support of the different programs are > discussed. > > 10.2.2 Producing PDF Output > > pgf supports three programs that produce pdf output [...]: > dvipdfm, pdftex, and vtex. The pdflatex program is the same as the pdftex > program: > it uses a different input format, but the output is exactly the same. > > File pgfsys-pdftex.def > This is the driver file for use with pdfTEX, that is, with the pdftex or > pdflatex command. > It includes pgfsys-common-pdf.def. > > This driver has a lot of functionality. > (Almost) everything pgf “can do at all” is implemented in this driver. > > File [...] [...] (And so on with pgfsys-dvipdfm.def pgfsys-xetex.def pgfsys-vtex.def... Basicaly all the other drivers cited have serious shortcomings in processing TiKz pictures.) So, we need the driver: pgfsys-luatex.def . Or do we? The name of this driver is guessed at compile time. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] TiKz with LMTX
On 04/06/2023 16:44, Hans Hagen via ntg-context wrote: what if you run "mtxrun --generate" beforehand? is that file somewhere in the tree? it works here i tried it here as well, does not work. $ context tk-tst.tex resolvers | formats | executing runner 'run luametatex format': /home/vm/context/tex/texmf-linux-64/bin/luametatex --jobname="./tk-tst.tex" --socket --shell-escape --fmt=/home/vm/luametatex-cache/context/formats/luametatex/cont-en.fmt --lua=/home/vm/luametatex-cache/context/formats/luametatex/cont-en.lui --c:currentrun=1 --c:fulljobname="./tk-tst.tex" --c:input="./tk-tst.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:texmfbinpath="/home/vm/context/tex/texmf-linux-64/bin" system > system > ConTeXt ver: 2023.06.01 09:42 LMTX fmt: 2023.6.4 int: english/english system > system > 'cont-new.mkxl' loaded open source > level 1, order 1, name '/home/vm/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl' system > beware: some patches loaded from cont-new.mkiv close source> level 1, order 1, name '/home/vm/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl' system > files > jobname './tk-tst', input './tk-tst.tex', result './tk-tst' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > level 1, order 2, name './tk-tst.tex' modules > 'tikz' is loaded open source > level 2, order 3, name '/home/vm/context/tex/texmf-context/tex/context/modules/mkxl/m-tikz.mkxl' open source > level 3, order 4, name 'pgfutil-common.tex' close source> level 3, order 4, name 'pgfutil-common.tex' open source > level 3, order 5, name 'pgfutil-context.def' close source> level 3, order 5, name 'pgfutil-context.def' open source > level 3, order 6, name 'pgfrcs.code.tex' open source > level 4, order 7, name 'pgf.revision.tex' close source> level 4, order 7, name 'pgf.revision.tex' close source> level 3, order 7, name 'pgfrcs.code.tex' open source > level 3, order 8, name 'pgfsys.code.tex' open source > level 4, order 9, name 'pgfkeys.code.tex' open source > level 5, order 10, name 'pgfkeyslibraryfiltered.code.tex' close source> level 5, order 10, name 'pgfkeyslibraryfiltered.code.tex' close source> level 4, order 10, name 'pgfkeys.code.tex' cld > stack > cld > stack > use : slot = context.functions.register(f) cld > stack > and : context.functions.unregister(slot) cld > stack > open source > level 4, order 11, name 'pgf.cfg' close source> level 4, order 11, name 'pgf.cfg' Driver file for pgf: pgfsys-luatex.def ! Package pgf Error: Driver file ``pgfsys-luatex.def'' not found.. \pgfutil@packageerror #1#2#3->\errhelp {#3}\errmessage {Package #1 Error: #2} \pgfutil@IfFileExists #1#2#3->\openin \pgfutil@inputcheck =#1 \ifeof \pgfutil@inputcheck #3 \relax \else #2\relax \fi \closein \pgfutil@inputcheck \pgferror{Driver file ``\pgfsysdriver'' not found.}} open source > level 4, order 12, name 'tk-tst.pgf' close source> level 4, order 12, name 'tk-tst.pgf' close source> level 3, order 12, name 'pgfsys.code.tex' open source > level 3, order 13, name 'pgfkeys.code.tex' close source> level 3, order 13, name 'pgfkeys.code.tex' open source > level 3, order 14, name 'pgfsyssoftpath.code.tex' close source> level 3, order 14, name 'pgfsyssoftpath.code.tex' open source > level 3, order 15, name 'pgfsysprotocol.code.tex' close source> level 3, order 15, name 'pgfsysprotocol.code.tex' open source > level 3, order 16, name 'pgfcore.code.tex' open source > level 4, order 17, name 'pgfmath.code.tex' open source > level 5, order 18, name 'pgfmathutil.code.tex' close source> level 5, order 18, name 'pgfmathutil.code.tex' open source > level 5, order 19, name 'pgfmathparser.code.tex' close source> level 5, order 19, name 'pgfmathparser.code.tex' open source > level 5, order 20, name 'pgfmathfunctions.code.tex' close source> level 5, order 20, name 'pgfmathfunctions.code.tex' open source > level 5, order 21, name 'pgfmathfunctions.basic.code.tex' close source> level 5, order 21, name 'pgfmathfunctions.basic.code.tex' open source > level 5, order 22, name 'pgfmathfunctions.trigonometric.code.tex' close source> level 5, order 22, name 'pgfmathfunctions.trigonometric.code.tex' open source > level 5, order 23, name 'pgfmathfunctions.random.code.tex' close source> level 5, order 23, name 'pgfmathfunctions.random.code.tex' open source > level 5, order 24, name 'pgfmathfunctions.comparison.code.tex' close source>
Re: [NTG-context] TiKz with LMTX
On 6/4/2023 11:11 AM, Jigé via ntg-context wrote: Hi all. I'm trying to use TiKz inside ConTeXt. It has not been working for some time... I checked the messages from last month on the mailing list (late april, early may). Il didn't quit actually understand what was going on but I read that some files had to be updated. Maybe as a workaround, while waiting for a new LMTX format? Users reported it to work after some file updates. So, because I was using a TeXlive package on Gnu/Archlinux, which might be updated only after a few months or a year, I followed the wiki and did a personal fresh install like this : $ mkdir ~/.local/share/context $ cd ~/.local/share/context $ wget https://lmtx.pragma-ade.com/install-lmtx/context-linux-64.zip $ unzip context-linux-64.zip $ sh install.sh $ rm context-linux-64.zip $ cd ~/.local/share/context/tex $ mtxrun --script install-modules --list $ mtxrun --script install-modules --install tikz (And for good measure, I later did `mtxrun --script install-modules --install all`) $ cd my-working-directory $ vi some-sample-context-file.tex $ export PATH=/home/myname/.local/share/context/tex/texmf-linux-64/bin:$PATH $ context some-sample-context-file.tex Did I miss anything? It works just fine. But with a TiKz picture included, a very simple one like this: \usemodule[tikz] \starttext We are working on \starttikzpicture \draw (-1.5,0) -- (1.5,0); \draw (0,-1.5) -- (0,1.5); \stoptikzpicture. \stoptext It doesn't compile. The output begins with: resolvers | formats | executing runner 'run luametatex format': [...] and ends with: [...] open source > level 4, order 11, name 'pgf.cfg' close source> level 4, order 11, name 'pgf.cfg' Driver file for pgf: pgfsys-luatex.def tex error > tex error on line 1757 in file pgfsys.code.tex: Package pgf Error: Driver file ``pgfsys-luatex.def'' not found. what if you run "mtxrun --generate" beforehand? is that file somewhere in the tree? it works here \pgfutil@packageerror #1#2#3->\errhelp {#3}\errmessage {Package #1 Error: #2} \pgfutil@IfFileExists #1#2#3->\openin \pgfutil@inputcheck =#1 \ifeof \pgfutil@inputcheck #3 \relax \else #2\relax \fi \closein \pgfutil@inputcheck \pgferror{Driver file ``\pgfsysdriver'' not found.}} This error message was generated by an \errmessage command, so I can't give any explicit help. Pretend that you're Hercule Poirot: Examine all clues, and deduce the truth by order and method. mtx-context | fatal error: return code: 1 The PATH is set correctly, this is not the output from using the regular TeXlive package which uses luatex, terminates because it doesn't understand \pgfsetxvec{\pgfpoint{1cm}{0cm}} and makes no reference to Hercule Poirot. I ingenuously tried to explicitly set some formats in the file ~/.local/share/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgf.cfg but with no success. Is it related to this issue: https://github.com/pgf-tikz/pgf/issues/990 ? Thanks in advance!... Best regards Jean-Guillaume ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___ -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] TiKz with LMTX
Hi all. I'm trying to use TiKz inside ConTeXt. It has not been working for some time... I checked the messages from last month on the mailing list (late april, early may). Il didn't quit actually understand what was going on but I read that some files had to be updated. Maybe as a workaround, while waiting for a new LMTX format? Users reported it to work after some file updates. So, because I was using a TeXlive package on Gnu/Archlinux, which might be updated only after a few months or a year, I followed the wiki and did a personal fresh install like this : $ mkdir ~/.local/share/context $ cd ~/.local/share/context $ wget https://lmtx.pragma-ade.com/install-lmtx/context-linux-64.zip $ unzip context-linux-64.zip $ sh install.sh $ rm context-linux-64.zip $ cd ~/.local/share/context/tex $ mtxrun --script install-modules --list $ mtxrun --script install-modules --install tikz (And for good measure, I later did `mtxrun --script install-modules --install all`) $ cd my-working-directory $ vi some-sample-context-file.tex $ export PATH=/home/myname/.local/share/context/tex/texmf-linux-64/bin:$PATH $ context some-sample-context-file.tex Did I miss anything? It works just fine. But with a TiKz picture included, a very simple one like this: \usemodule[tikz] \starttext We are working on \starttikzpicture \draw (-1.5,0) -- (1.5,0); \draw (0,-1.5) -- (0,1.5); \stoptikzpicture. \stoptext It doesn't compile. The output begins with: resolvers | formats | executing runner 'run luametatex format': [...] and ends with: [...] open source > level 4, order 11, name 'pgf.cfg' close source> level 4, order 11, name 'pgf.cfg' Driver file for pgf: pgfsys-luatex.def tex error > tex error on line 1757 in file pgfsys.code.tex: Package pgf Error: Driver file ``pgfsys-luatex.def'' not found. \pgfutil@packageerror #1#2#3->\errhelp {#3}\errmessage {Package #1 Error: #2} \pgfutil@IfFileExists #1#2#3->\openin \pgfutil@inputcheck =#1 \ifeof \pgfutil@inputcheck #3 \relax \else #2\relax \fi \closein \pgfutil@inputcheck \pgferror{Driver file ``\pgfsysdriver'' not found.}} This error message was generated by an \errmessage command, so I can't give any explicit help. Pretend that you're Hercule Poirot: Examine all clues, and deduce the truth by order and method. mtx-context | fatal error: return code: 1 The PATH is set correctly, this is not the output from using the regular TeXlive package which uses luatex, terminates because it doesn't understand \pgfsetxvec{\pgfpoint{1cm}{0cm}} and makes no reference to Hercule Poirot. I ingenuously tried to explicitly set some formats in the file ~/.local/share/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgf.cfg but with no success. Is it related to this issue: https://github.com/pgf-tikz/pgf/issues/990 ? Thanks in advance!... Best regards Jean-Guillaume ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] knuth
On Thu, 1 Jun 2023 at 11:45, Hans Hagen via ntg-context wrote: > Hi, > > Probably some on this list already checked how well chatgpt answers > questions about domains one knows well and then probably noted that in > spite of impressive wording, one can run into quite incorrect answers. > > One can get really stupid responses about tex and friends, but also can > get impressive exmapled when asked for. (I'm still planning a wrap up of > some.) > > That said, one should read: > >https://cs.stanford.edu/~knuth/chatGPT20.txt > > and this makes a pretty nice new sample file: > > It's amazing how the confident tone lends credibility to all of that > made-up nonsense. Almost impossible for anybody without knowledge > of the book to believe that those "facts" aren't authorititative > and well researched. > you can happily include the email that I have sent to you that declares that *you* are the author of MFlua and *I* have nothing to do with it (chatgpt3: as far as I know, the overall number of users+developers of MFLua in the entire solar system is exactly 1 -- me -- at least from 10 years) . For a moment I was even convinced that it was true. On the other hand, I am pretty sure that it will be able to generate perfect lualatex files for articles, reports, and later books. How and when it's more a matter of interest rather than capabilities. -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Super slow installation
On 31 May 2023, at 01:51, Thangalin wrote: > > From twelve99.net: > > If you’re interested in our IP city prefixes, we have a lookup table on our > website: https://www.arelion.com/our-network/bgp-routing/bgp-communities > Scroll down to “Origin + Communities” and expand that section. You can see > that sea-b1 (your hop 8) is not in Brussels, but is our router in Seattle. > > My guess would be that the hostname “us-was” for Liberty Global (aorta.net) > stands for U.S.A. and Washington D.C, not Warsaw. They’re probably using ICMP > tunneling for their MPLS backbone, that’s why the ping times are weird for > you. Good point about the MPLS. I was using https://www.geolocation.com/ to do the geolocation and it claims Warsaw but that - in hindsight - is wrong. So "us-was" is likely to be Washington as per the name and is also the device "taking the blame" for the entirety of the MPLS latency. Since that will include the transatlantic time the extra 75ms isn't quite so bad as it looks. — Bruce Horrocks Hampshire, UK ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Super slow installation
Hi all, I think that this is all resolved now, but if not, maybe this extra info will help? I'm using this script to test: #!/bin/sh for x in \ "https://speed.cloudflare.com/__down?bytes=$(echo '50*1024^2' | bc)" \ "https://speedtest1.mnd.bulk.iss.as9143.net:8080/random5000x5000.jpg; \ "http://lmtx.pragma-ade.com/install-lmtx/texmf.zip; \ ;do echo "$x" curl -w 'scale=2;%{speed_download}*8/1024^2\n' -sSo /dev/null "$x" | bc echo done Cloudflare should have a fast data centre near anywhere, and ...as9143.net is hosted directly by the ISP that lmtx.pragma-ade.com uses. I'll also run traceroute -I lmtx.pragma-ade.com This is what I get from home (Red Deer, Alberta; with Telus): https://speed.cloudflare.com/__down?bytes=52428800 41.27 https://speedtest1.mnd.bulk.iss.as9143.net:8080/random5000x5000.jpg 12.49 http://lmtx.pragma-ade.com/install-lmtx/texmf.zip 13.92 traceroute to lmtx.pragma-ade.com (213.125.29.165), 30 hops max, 60 byte packets 1 _gateway (10.XX.XX.XX) 1.422 ms 1.634 ms 1.888 ms 2 10.XX.XX.XX (10.XX.XX.XX) 7.211 ms 7.429 ms * 3 154.11.15.111 (154.11.15.111) 28.474 ms * * 4 ae57.edge6.Seattle1.Level3.net (4.14.240.209) 31.370 ms * * 5 * * * 6 us-sjo01a-ri3-ae-6-0.aorta.net (213.46.190.57) 43.847 ms * 42.311 ms 7 us-nyc01b-rd2-ae-18-0.aorta.net (84.116.146.34) 201.019 ms * * 8 us-was03a-rd1-ae-5-0.aorta.net (84.116.146.142) 172.439 ms * 174.154 ms 9 * * * 10 asd-rc0001-cr101-be60-2.core.as33915.net (213.51.64.5) 173.222 ms * * 11 213.51.7.227 (213.51.7.227) 174.405 ms * * 12 D57D1DA5.static.ziggozakelijk.nl (213.125.29.165) 202.408 ms * * And this is what I get from a server in Germany (Hetzner): https://speed.cloudflare.com/__down?bytes=52428800 714.28 https://speedtest1.mnd.bulk.iss.as9143.net:8080/random5000x5000.jpg 478.20 http://lmtx.pragma-ade.com/install-lmtx/texmf.zip 38.13 traceroute to lmtx.pragma-ade.com (213.125.29.165), 30 hops max, 60 byte packets 1 static.161.94.4.46.clients.your-server.de (46.4.94.161) 0.439 ms 0.433 ms 0.433 ms 2 core24.fsn1.hetzner.com (213.239.229.117) 0.424 ms 0.427 ms 0.432 ms 3 juniper6.dc2.nbg1.hetzner.com (213.239.245.53) 2.864 ms 2.867 ms 2.867 ms 4 ae12-500.nbg40.core-backbone.com (80.255.9.21) 2.867 ms 2.867 ms 2.867 ms 5 ae5-2074.ams10.core-backbone.com (81.95.2.138) 11.049 ms 11.052 ms 11.052 ms 6 nl-ams04a-ri3-ae-29-0.aorta.net (213.46.182.185) 11.465 ms 11.293 ms 11.310 ms 7 asd-rc0001-cr101-be64.core.as9143.net (213.51.64.65) 17.658 ms 17.785 ms 17.789 ms 8 asd-tr0021-dr141-lag2-2.core.as33915.net (213.51.7.227) 17.386 ms 17.402 ms 17.397 ms 9 D57D1DA5.static.ziggozakelijk.nl (213.125.29.165) 25.103 ms 27.319 ms 27.323 ms Thanks, -- Max ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Super slow installation
>From twelve99.net: If you’re interested in our IP city prefixes, we have a lookup table on our website: https://www.arelion.com/our-network/bgp-routing/bgp-communities Scroll down to “Origin + Communities” and expand that section. You can see that sea-b1 (your hop 8) is not in Brussels, but is our router in Seattle. My guess would be that the hostname “us-was” for Liberty Global (aorta.net) stands for U.S.A. and Washington D.C, not Warsaw. They’re probably using ICMP tunneling for their MPLS backbone, that’s why the ping times are weird for you. Cheers! ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Super slow installation
On 5/30/2023 9:16 PM, Jim via ntg-context wrote: On Tue, May 30, 2023 at 13:40 (-0400), Aditya Mahajan via ntg-context wrote: On Tue, 30 May 2023, Thangalin via ntg-context wrote: FWIW, I'm seeing the same slow down issue from three different machines: 1. My personal computer in Vancouver BC. 2. A work computer on Vancouver Island (Victoria BC) 3. Microsoft ADO servers (presumably in Seattle WA). Is it possible there's a slow pipe from North America to Europe? Could be. For me (Montreal, Canada) it took more than a minute: ❯ wget http://lmtx.pragma-ade.com/install-lmtx//texmf.zip --2023-05-30 13:38:26-- http://lmtx.pragma-ade.com/install-lmtx//texmf.zip Resolving lmtx.pragma-ade.com (lmtx.pragma-ade.com)... 213.125.29.165 Connecting to lmtx.pragma-ade.com (lmtx.pragma-ade.com)|213.125.29.165|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 53293716 (51M) [application/zip] Saving to: ‘texmf.zip’ texmf.zip 100%[==>] 50.82M 637KB/sin 72s 2023-05-30 13:39:38 (721 KB/s) - ‘texmf.zip’ saved [53293716/53293716] Can I play too? time wget http://lmtx.pragma-ade.com/install-lmtx//texmf.zip --2023-05-30 16:14:51-- http://lmtx.pragma-ade.com/install-lmtx//texmf.zip Resolving lmtx.pragma-ade.com (lmtx.pragma-ade.com)... 213.125.29.165 Connecting to lmtx.pragma-ade.com (lmtx.pragma-ade.com)|213.125.29.165|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 53293716 (51M) [application/zip] Saving to: ?texmf.zip? texmf.zip 100%[===>] 50.82M 3.76MB/sin 13s 2023-05-30 16:15:05 (3.79 MB/s) - ?texmf.zip? saved [53293716/53293716] wget http://lmtx.pragma-ade.com/install-lmtx//texmf.zip 0.06s user 0.61s system 4% cpu 13.780 total So that is 13.78 seconds from Dartmouth, NS (that's the "far east" for those of you who don't know Canadian geography :-). i restarted the modems, switches, routers, virtual host and virtual machines .. that's all i can do, ok, i also updated the zips the lmtx web server is a opensuse vm on a proxmox server on xeon driven hardware; the router is a fast pfsense (with failover) and the connection used is guaranteed 300/40 cable connection (i can't provide a fallback on the reasonable fast dsl line because that one as only one ip address that is used for something else http(s) so it must be some hickup in the chain outside Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Super slow installation
On Tue, May 30, 2023 at 13:40 (-0400), Aditya Mahajan via ntg-context wrote: > On Tue, 30 May 2023, Thangalin via ntg-context wrote: >> FWIW, I'm seeing the same slow down issue from three different machines: >>1. My personal computer in Vancouver BC. >>2. A work computer on Vancouver Island (Victoria BC) >>3. Microsoft ADO servers (presumably in Seattle WA). >> Is it possible there's a slow pipe from North America to Europe? > Could be. For me (Montreal, Canada) it took more than a minute: > ❯ wget http://lmtx.pragma-ade.com/install-lmtx//texmf.zip > --2023-05-30 13:38:26-- http://lmtx.pragma-ade.com/install-lmtx//texmf.zip > Resolving lmtx.pragma-ade.com (lmtx.pragma-ade.com)... 213.125.29.165 > Connecting to lmtx.pragma-ade.com (lmtx.pragma-ade.com)|213.125.29.165|:80... > connected. > HTTP request sent, awaiting response... 200 OK > Length: 53293716 (51M) [application/zip] > Saving to: ‘texmf.zip’ > texmf.zip 100%[==>] 50.82M 637KB/sin 72s > 2023-05-30 13:39:38 (721 KB/s) - ‘texmf.zip’ saved [53293716/53293716] Can I play too? time wget http://lmtx.pragma-ade.com/install-lmtx//texmf.zip --2023-05-30 16:14:51-- http://lmtx.pragma-ade.com/install-lmtx//texmf.zip Resolving lmtx.pragma-ade.com (lmtx.pragma-ade.com)... 213.125.29.165 Connecting to lmtx.pragma-ade.com (lmtx.pragma-ade.com)|213.125.29.165|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 53293716 (51M) [application/zip] Saving to: ?texmf.zip? texmf.zip 100%[===>] 50.82M 3.76MB/sin 13s 2023-05-30 16:15:05 (3.79 MB/s) - ?texmf.zip? saved [53293716/53293716] wget http://lmtx.pragma-ade.com/install-lmtx//texmf.zip 0.06s user 0.61s system 4% cpu 13.780 total So that is 13.78 seconds from Dartmouth, NS (that's the "far east" for those of you who don't know Canadian geography :-). Jim ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Super slow installation
On 30/05/2023 19:33, Thangalin via ntg-context wrote: Is it possible there's a slow pipe from North America to Europe? it is slow here in the Netherlands too. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Super slow installation
Here's a comparison of miljuschka.nl and lmtx.pragma-ade.com: $ ping miljuschka.nl PING miljuschka.nl (162.159.135.42) 56(84) bytes of data. 64 bytes from 162.159.135.42 (162.159.135.42): icmp_seq=1 ttl=59 time=16.5 ms 64 bytes from 162.159.135.42 (162.159.135.42): icmp_seq=2 ttl=59 time=15.6 ms 64 bytes from 162.159.135.42 (162.159.135.42): icmp_seq=3 ttl=59 time=16.2 ms 64 bytes from 162.159.135.42 (162.159.135.42): icmp_seq=4 ttl=59 time=16.4 ms $ traceroute miljuschka.nl 3 rc1bb-be150-1.vc.shawcable.net (64.59.147.161) 15.574 ms 15.619 ms 15.660 ms 4 24.244.60.185 (24.244.60.185) 16.303 ms 16.509 ms 16.609 ms 5 24.244.62.57 (24.244.62.57) 17.562 ms 17.878 ms 17.648 ms 6 rc1bb-be214.vc.shawcable.net (24.244.58.61) 16.742 ms 13.168 ms 13.281 ms 7 rc1wt.wa.shawcable.net (66.163.76.66) 15.847 ms 15.384 ms 15.665 ms 8 six.as13335.com (206.81.81.10) 24.052 ms 24.243 ms 24.509 ms 9 172.71.144.3 (172.71.144.3) 26.393 ms 172.71.140.3 (172.71.140.3) 23.617 ms 108.162.243.11 (108.162.243.11) 23.044 ms 10 162.159.135.42 (162.159.135.42) 22.763 ms 23.258 ms 22.567 ms $ ping lmtx.pragma-ade.com PING lmtx.pragma-ade.com (213.125.29.165) 56(84) bytes of data. 64 bytes from D57D1DA5.static.ziggozakelijk.nl (213.125.29.165): icmp_seq=1 ttl=51 time=177 ms 64 bytes from D57D1DA5.static.ziggozakelijk.nl (213.125.29.165): icmp_seq=2 ttl=51 time=168 ms 64 bytes from D57D1DA5.static.ziggozakelijk.nl (213.125.29.165): icmp_seq=3 ttl=51 time=169 ms 64 bytes from D57D1DA5.static.ziggozakelijk.nl (213.125.29.165): icmp_seq=4 ttl=51 time=169 ms $ traceroute lmtx.pragma-ade.com 3 rc1bb-be150-1.vc.shawcable.net (64.59.147.161) 22.062 ms 22.094 ms 22.127 ms 4 24.244.60.185 (24.244.60.185) 23.964 ms 24.273 ms 23.612 ms 5 24.244.62.57 (24.244.62.57) 24.565 ms 24.926 ms 25.269 ms 6 rc1bb-be214.vc.shawcable.net (24.244.58.61) 23.201 ms 16.376 ms 16.637 ms 7 rc1wt.wa.shawcable.net (66.163.76.66) 20.228 ms 15.492 ms 15.227 ms 8 sea-b1-link.ip.twelve99.net (213.248.67.224) 24.968 ms 28.435 ms 24.726 ms 9 chi-b23-link.ip.twelve99.net (62.115.132.154) 64.194 ms 64.310 ms 64.081 ms 10 nyk-bb2-link.ip.twelve99.net (62.115.137.58) 80.232 ms nyk-bb1-link.ip.twelve99.net (80.91.246.163) 80.730 ms nyk-bb2-link.ip.twelve99.net (62.115.137.58) 80.335 ms 11 nyk-b1-link.ip.twelve99.net (62.115.135.133) 84.971 ms 85.189 ms 84.776 ms 12 upc-ic-355153.ip.twelve99-cust.net (62.115.190.245) 90.268 ms 90.132 ms 90.416 ms 13 us-was03a-rd1-ae-8-0.aorta.net (84.116.133.98) 165.845 ms 159.578 ms 161.045 ms 14 nl-ams17b-rc1-lag-105-0.aorta.net (84.116.130.65) 168.328 ms 161.507 ms 162.117 ms 15 asd-rc0001-cr101-be60-2.core.as33915.net (213.51.64.5) 164.180 ms 168.938 ms 169.739 ms 16 213.51.7.227 (213.51.7.227) 165.693 ms 161.384 ms 161.558 ms 17 * * * Something is funky on the network. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Super slow installation
On Tue, 30 May 2023, Thangalin via ntg-context wrote: > FWIW, I'm seeing the same slow down issue from three different machines: > >1. My personal computer in Vancouver BC. >2. A work computer on Vancouver Island (Victoria BC) >3. Microsoft ADO servers (presumably in Seattle WA). > > Is it possible there's a slow pipe from North America to Europe? Could be. For me (Montreal, Canada) it took more than a minute: ❯ wget http://lmtx.pragma-ade.com/install-lmtx//texmf.zip --2023-05-30 13:38:26-- http://lmtx.pragma-ade.com/install-lmtx//texmf.zip Resolving lmtx.pragma-ade.com (lmtx.pragma-ade.com)... 213.125.29.165 Connecting to lmtx.pragma-ade.com (lmtx.pragma-ade.com)|213.125.29.165|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 53293716 (51M) [application/zip] Saving to: ‘texmf.zip’ texmf.zip 100%[==>] 50.82M 637KB/sin 72s 2023-05-30 13:39:38 (721 KB/s) - ‘texmf.zip’ saved [53293716/53293716] Aditya___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Super slow installation
FWIW, I'm seeing the same slow down issue from three different machines: 1. My personal computer in Vancouver BC. 2. A work computer on Vancouver Island (Victoria BC) 3. Microsoft ADO servers (presumably in Seattle WA). Is it possible there's a slow pipe from North America to Europe? On Tue, May 30, 2023 at 10:28 AM Thangalin wrote: > Here's the result from downloading a YouTube video using yt-dlp: > > [download] 100% of 225.74MiB in 00:00:09 at 24.43MiB/s > > 9 seconds for 225 MB. > > I haven't touched my router configuration in years. > > https://www.speedtest.net/result/14802746497 > > Download 935 Mbps; Upload 106 MBps. > > Looks fine on my side? > > > On Tue, May 30, 2023 at 9:16 AM Thomas A. Schmitz via ntg-context < > ntg-context@ntg.nl> wrote: > >> 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 >> > <http://lmtx.pragma-ade.com/install-lmtx//texmf.zip> >> > --2023-05-30 09:02:50-- >> > http://lmtx.pragma-ade.com/install-lmtx//texmf.zip >> > <http://lmtx.pragma-ade.com/install-lmtx//texmf.zip> >> > Resolving lmtx.pragma-ade.com <http://lmtx.pragma-ade.com> >> > (lmtx.pragma-ade.com <http://lmtx.pragma-ade.com>)... 213.125.29.165 >> > Connecting to lmtx.pragma-ade.com <http://lmtx.pragma-ade.com> >> > (lmtx.pragma-ade.com <http://lmtx.pragma-ade.com>)|213.125.29.165|:80... >> >> > connected. >> > HTTP request sent, awaiting response... 200 OK >> > Length: 53293716 (51M) [application/zip] >> > Saving to: ‘texmf.zip’ >> > >> > texmf.zip 100%[===>] 50.82M 2.48MB/sin >> 22s >> > >> > 2023-05-30 09:03:13 (2.26 MB/s) - ‘texmf.zip’ saved [53293716/53293716] >> > >> > In the past, downloading 50MB has been much faster. >> >> >> Couldn't it be something on your side, like a misconfigured router or ad >> blocker or something? I get faster download times: >> >> wget http://lmtx.pragma-ade.com/install-lmtx//texmf.zip >> --2023-05-30 18:12:43-- >> http://lmtx.pragma-ade.com/install-lmtx//texmf.zip >> Resolving lmtx.pragma-ade.com (lmtx.pragma-ade.com)... 213.125.29.165 >> Connecting to lmtx.pragma-ade.com >> (lmtx.pragma-ade.com)|213.125.29.165|:80... connected. >> HTTP request sent, awaiting response... 200 OK >> Length: 53293716 (51M) [application/zip] >> Saving to: ‘texmf.zip’ >> >> texmf.zip 100%[===>] 50,82M 4,85MB/sin >> 11s >> >> 2023-05-30 18:12:53 (4,82 MB/s) - ‘texmf.zip’ saved [53293716/53293716] >> >> Thomas >> >> ___ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl / >> https://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : https://www.pragma-ade.nl / http://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> wiki : https://contextgarden.net >> >> ___ >> > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Super slow installation
Here's the result from downloading a YouTube video using yt-dlp: [download] 100% of 225.74MiB in 00:00:09 at 24.43MiB/s 9 seconds for 225 MB. I haven't touched my router configuration in years. https://www.speedtest.net/result/14802746497 Download 935 Mbps; Upload 106 MBps. Looks fine on my side? On Tue, May 30, 2023 at 9:16 AM Thomas A. Schmitz via ntg-context < ntg-context@ntg.nl> wrote: > 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 > > <http://lmtx.pragma-ade.com/install-lmtx//texmf.zip> > > --2023-05-30 09:02:50-- > > http://lmtx.pragma-ade.com/install-lmtx//texmf.zip > > <http://lmtx.pragma-ade.com/install-lmtx//texmf.zip> > > Resolving lmtx.pragma-ade.com <http://lmtx.pragma-ade.com> > > (lmtx.pragma-ade.com <http://lmtx.pragma-ade.com>)... 213.125.29.165 > > Connecting to lmtx.pragma-ade.com <http://lmtx.pragma-ade.com> > > (lmtx.pragma-ade.com <http://lmtx.pragma-ade.com>)|213.125.29.165|:80... > > > connected. > > HTTP request sent, awaiting response... 200 OK > > Length: 53293716 (51M) [application/zip] > > Saving to: ‘texmf.zip’ > > > > texmf.zip 100%[===>] 50.82M 2.48MB/sin > 22s > > > > 2023-05-30 09:03:13 (2.26 MB/s) - ‘texmf.zip’ saved [53293716/53293716] > > > > In the past, downloading 50MB has been much faster. > > > Couldn't it be something on your side, like a misconfigured router or ad > blocker or something? I get faster download times: > > wget http://lmtx.pragma-ade.com/install-lmtx//texmf.zip > --2023-05-30 18:12:43-- > http://lmtx.pragma-ade.com/install-lmtx//texmf.zip > Resolving lmtx.pragma-ade.com (lmtx.pragma-ade.com)... 213.125.29.165 > Connecting to lmtx.pragma-ade.com > (lmtx.pragma-ade.com)|213.125.29.165|:80... connected. > HTTP request sent, awaiting response... 200 OK > Length: 53293716 (51M) [application/zip] > Saving to: ‘texmf.zip’ > > texmf.zip 100%[===>] 50,82M 4,85MB/sin > 11s > > 2023-05-30 18:12:53 (4,82 MB/s) - ‘texmf.zip’ saved [53293716/53293716] > > Thomas > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Super slow installation
On 5/30/2023 1:03 AM, Thangalin via ntg-context wrote: Hi, Installation of a fresh copy of LMTX has gone from a few minutes to about 30 minutes. Here's what I ran: 1. Open terminal 2. Change to root 3. cd /opt 4. mkdir context-2023-05-29 5. cd context-2023-05-29 6. wget "http://lmtx.pragma-ade.com/install-lmtx//texmf.zip; 7. unzip texmf.zip 8. chmod +x install.sh 9. ./install.sh mtx-install | unzipping 'texmf-context.zip' 518 files of 5180 done, 81058499 bytes, 0.403 seconds ... snip ... 5180 files of 5180 done, 171691491 bytes, 1.035 seconds mtx-install | installing tex/texmf-context, 4924 files mtx-install | new : 0 % : 2447 : tex/texmf-context/context-readme.txt ... snip ... mtx-install | new : 48 % :21898 : tex/texmf-context/doc/context/sources/general/manuals/about/still-expanding-10.png Getting to this point has taken shy of 15 minutes. Any ideas what's going on or how to fix it? Note that upgrading against the version prior to 2023.05.29 (i.e., without re-installing from scratch), the process happens pretty quickly. can you try again? maybe the vm was in the process of beging backed up Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Super slow installation
Hi, Installation of a fresh copy of LMTX has gone from a few minutes to about 30 minutes. Here's what I ran: 1. Open terminal 2. Change to root 3. cd /opt 4. mkdir context-2023-05-29 5. cd context-2023-05-29 6. wget "http://lmtx.pragma-ade.com/install-lmtx//texmf.zip; 7. unzip texmf.zip 8. chmod +x install.sh 9. ./install.sh mtx-install | unzipping 'texmf-context.zip' 518 files of 5180 done, 81058499 bytes, 0.403 seconds ... snip ... 5180 files of 5180 done, 171691491 bytes, 1.035 seconds mtx-install | installing tex/texmf-context, 4924 files mtx-install | new : 0 % : 2447 : tex/texmf-context/context-readme.txt ... snip ... mtx-install | new : 48 % :21898 : tex/texmf-context/doc/context/sources/general/manuals/about/still-expanding-10.png Getting to this point has taken shy of 15 minutes. Any ideas what's going on or how to fix it? Note that upgrading against the version prior to 2023.05.29 (i.e., without re-installing from scratch), the process happens pretty quickly. Thank you! ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] \doifelseoddpage not working as expected
Am 29.05.23 um 16:47 schrieb Hans Hagen via ntg-context: Is this also the right approach to check for the current page within a float placement? Like \startplacefigure[] \dontleavehmode\signalrightpage % necessary? \doifelserightpage{RIGHT}{LEFT} \doifelseoddpage {ODD }{EVEN} \stopplacefigure ? In my macros from 2015 I’m still using manual right/left page versions, and I’d like to enhance them. I need e.g. different \offset values for \externalfigure depending on right/left page. normally you will use "inner*" and "outer*" placement there as in other cases (which uses the same tricks) I have one macro to place an page-width image with bleed, it uses \placefigure[top] and then \offset to move the image, so that it starts with bleed on the top side and with/without on the left side depending on a parameter that I change manually if the page breaking changes. The caption must stay within the type area – that works so far. But it shouldn’t be necessary to define left/right manually, and that’s my question: if these \doifs work correctly within a float placement. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] \doifelseoddpage not working as expected
On 5/29/2023 4:10 PM, Henning Hraban Ramm via ntg-context wrote: Am 27.05.23 um 23:54 schrieb Hans Hagen via ntg-context: You never know when tex will break a page unless you are explicit so you typeset the status too soon. \setuppagenumbering[alternative=doublesided] % \setuppagenumbering[alternative={singlesided,doublesided}] \starttext \dorecurse{200}{ \dontleavehmode\signalrightpage \doifelserightpage{RIGHT}{LEFT} \doifelseoddpage {ODD }{EVEN} \par } \stoptext The rightpage check combined with putting a signal at the spot where you test will work ok. The odd/even test works as expected when you're in the page builder (wrapping up the page). Is this also the right approach to check for the current page within a float placement? Like \startplacefigure[] \dontleavehmode\signalrightpage % necessary? \doifelserightpage{RIGHT}{LEFT} \doifelseoddpage {ODD }{EVEN} \stopplacefigure ? In my macros from 2015 I’m still using manual right/left page versions, and I’d like to enhance them. I need e.g. different \offset values for \externalfigure depending on right/left page. normally you will use "inner*" and "outer*" placement there as in other cases (which uses the same tricks) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] \doifelseoddpage not working as expected
Am 27.05.23 um 23:54 schrieb Hans Hagen via ntg-context: You never know when tex will break a page unless you are explicit so you typeset the status too soon. \setuppagenumbering[alternative=doublesided] % \setuppagenumbering[alternative={singlesided,doublesided}] \starttext \dorecurse{200}{ \dontleavehmode\signalrightpage \doifelserightpage{RIGHT}{LEFT} \doifelseoddpage {ODD }{EVEN} \par } \stoptext The rightpage check combined with putting a signal at the spot where you test will work ok. The odd/even test works as expected when you're in the page builder (wrapping up the page). Is this also the right approach to check for the current page within a float placement? Like \startplacefigure[] \dontleavehmode\signalrightpage % necessary? \doifelserightpage{RIGHT}{LEFT} \doifelseoddpage {ODD }{EVEN} \stopplacefigure ? In my macros from 2015 I’m still using manual right/left page versions, and I’d like to enhance them. I need e.g. different \offset values for \externalfigure depending on right/left page. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] dirty tricks
Hi, Here is a new dirty trick: \starttext % we make sure that we get two passes. \setupalign[verytolerant] % we enable some tracing \tracinglousiness1 % \tracinglousiness2 this gives the breakpoints that tex considers as it progresses \hsize8cm \lousiness 0 \samplefile{ward} % let's see what their demerits are {\tt \the\lousiness} % and overload one of them (index 11) \hsize8cm \silliness 11 \samplefile{ward} % do how about overloading more (index 11 and 8) \hsize8cm \lousiness 2 11 0 8 200 \samplefile{ward} \stoptext As the names suggest, it's a bit weird feature but so is \looseness. It might evolve from playground into some interfaced feature. Of course changing the text gives different results. But then, \looseness also assumes a stable paragraph. Hans (a byproduct of more advanced experiments) - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Mailing list problems
On 5/28/23 18:50, Mikael Sundqvist via ntg-context wrote: > Hi! > > See https://tex.stackexchange.com/q/687020/52406. The OP there cannot > subscribe. > > Looking at the web archive, it indeed seems to be missing several > emails: https://www.mail-archive.com/ntg-context@ntg.nl Hi Mikael, I mentioned this in a message from 04/30/23, 15:47 with subject: no recent message listed in the web interface But no luck yet. Most recent message there seems to be https://mailman.ntg.nl/pipermail/ntg-context/2023/date.html#108157. > I do not know who handles this, but... Ping! Taco asked to report him personally or to a maling list (https://mailman.ntg.nl/pipermail/ntg-context/2023/108140.html). I sent a message to the mailing list (two weeks after having sent a private message to Taco), but I received an automated reply (in Dutch) to cancel the message being sent mentioning the fact that I’m not subscribed to that list. I hope the message now reaches Taco. Best, Pablo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] [ cleaning up ]
As I use luametatex for compiling context docs to pdf, I wonder what files/folders could safely removed from the context base folder? e.g. is there a script to purge unused features? .Floris ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] upload
Hi, I uploaded a new lmtx. Apart from the modules installer (that Hraban has to check) and subtle improvements in math (we're now in tweaking penalties mode) there are a few changes: - The endstrut in framed got lost but is back again; there is now alao a location=inline option. - Single character math as in "text $x$ text" will from now on behave kind of like "text~x$ text" but that ~ always felt kind of weird anyway. Tests on large documents with plenty math and single char cases shows that it works quite ok and in most cases the paragraph will have the same number of lines (single char moves have little impact). - The \lastlinefit (etec) feature is now controlled by the "fit" option in \setupalign etc; i'm still pondering how to control the orphan penalty feature that has been around for a while now but never really configured) and if we should have a decent default for that (like \orphanpenalties 2 150 100 ). - Math formula number placement (as well as alignment sinside narrower) has been made a bit more robust and we added some placement options that will be discussed in the (by now 1739 page thick) upcoming math manual. You really don't want to know how many combinations we had to check. In an upcoming release there might also be some new text related tweaking features as side effect of the math tweaks which leads to some experiments with the par builder (so again we got sidetracked). Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Can ConTeXt write its pdf to a different directory?
On 5/27/2023 11:51 AM, Denis Maier via ntg-context wrote: I usually use a makefile for this. There I have build rule that first cds into the target directory, then calls context from there. That is indeed the solution (also because the --path option will then fetch from the source). The more lua hackery the more danger of interference. The problem here is that a rename won't work in all scenarios (different drives on windows for instance, or from local disk to network drive). Anyway, one can also give --runpath=sometargetpath which i actually use to run for instance manuals, but there it is driven in the file itself: % language=us runpath=texruns:manuals/musings in combination with TEXRUNS=c:\data\temporary\texruns so that I don't overwrite a stable manual in the source path. Over the decades that context evolved there have been plenty such tricks added. I could probably add a move option to the job ticket mechanism but that has not changed in ages so ... workflows demands are too different. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Can ConTeXt write its pdf to a different directory?
I usually use a makefile for this. There I have build rule that first cds into the target directory, then calls context from there. Best Denis Von: ntg-context im Auftrag von peter.hopcroft--- via ntg-context Gesendet: Samstag, 27. Mai 2023 03:52:42 An: ntg-context@ntg.nl Cc: peter.hopcr...@icloud.com Betreff: [NTG-context] Can ConTeXt write its pdf to a different directory? My .tex file is in a directory within my working directory. I would like ConTeXt to write its output in the same directory as my .tex file. But it writes to the working directory. This was asked 10 years ago: `tex.stackexchange.com/questions/67928/how-to-set-output-directory-in-context-command` The answer given then was to use: `context filename --result=output-directory/filename` But this doesn't work now. When I compile my .tex file, I get a message: `results are to be on the running path, not on 'output-directory', ignoring --result` I've looked in the wiki: `https://wiki.contextgarden.net/Context` Thank you, Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] font size and style
Hans van der Meer via ntg-context schrieb am 26.05.2023 um 21:38: Calling "\bf\tfa TEXT" for example leaves the TEXT not in bold because \tfa does not respect the current style. As does \small, etc. Shown by looking at the meaning of for example \small: \small=protected macro:\triggergroupedcommand {\setsmallbodyfont \tf } and \tx=protected macro:\currentxfontsize \plusone \ifmmode \scriptstyle \orelse \ifconditional \c_font_inherit_scale \font_scale_inherit_x \else \font_scale_defined_x \fi \al ways\let \tx \txx Thus in contrast \tx and \txx do respect the current style setting. My question: It seems most convenient if I could retrieve the current style and reset that after a size command. I rather would refrain from tinkering with those. Since there is a \currentxfontsize is there an analogue for the style? \tf is the switch for the normal upright style and when you have \bf\tfa the first font switch is just replaced by the second switch. To get a larger text in bold style you can use \bfa. \starttext text {\tfa\bf text} text text {\bfa text} text \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] font size and style
Calling "\bf\tfa TEXT" for example leaves the TEXT not in bold because \tfa does not respect the current style. As does \small, etc. Shown by looking at the meaning of for example \small: \small=protected macro:\triggergroupedcommand {\setsmallbodyfont \tf } and \tx=protected macro:\currentxfontsize \plusone \ifmmode \scriptstyle \orelse \ifconditional \c_font_inherit_scale \font_scale_inherit_x \else \font_scale_defined_x \fi \al ways\let \tx \txx Thus in contrast \tx and \txx do respect the current style setting. My question: It seems most convenient if I could retrieve the current style and reset that after a size command. I rather would refrain from tinkering with those. Since there is a \currentxfontsize is there an analogue for the style? dr. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] module installer: unknown script 'install-modules.lua' or 'mtx-install-modules.lua'
On 5/24/2023 9:32 PM, Denis Maier via ntg-context wrote: -Ursprüngliche Nachricht- Von: Aditya Mahajan Gesendet: Mittwoch, 24. Mai 2023 14:49 An: Denis Maier via ntg-context Cc: Maier, Denis Christian (UB) Betreff: Re: [NTG-context] module installer: unknown script 'install- modules.lua' or 'mtx-install-modules.lua' On Wed, 24 May 2023, Denis Maier via ntg-context wrote: I've just tested with a couple of other scripts... Doesn't matter which one I try to call: Mtxrun --script XYZ will always results in the equivalent error message, e.g.: mtxrun | unknown script 'interface.lua' or 'mtx-interface.lua' I have ..\context\tex\texmf-win64\bin ..\context\bin In my path. Do I need to add something else to the Path? I would remove context/bin from the PATH. Thanks - that was it. Apparently, it used the executable in the wrong path. Just out of interest, why do we have mtxrun in both locations? one is used by the installer, the other can then be updated and when ok will replace the one used for the installer; idem for binaries Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] module installer: unknown script 'install-modules.lua' or 'mtx-install-modules.lua'
> -Ursprüngliche Nachricht- > Von: Aditya Mahajan > Gesendet: Mittwoch, 24. Mai 2023 14:49 > An: Denis Maier via ntg-context > Cc: Maier, Denis Christian (UB) > Betreff: Re: [NTG-context] module installer: unknown script 'install- > modules.lua' or 'mtx-install-modules.lua' > > On Wed, 24 May 2023, Denis Maier via ntg-context wrote: > > > I've just tested with a couple of other scripts... > > > > Doesn't matter which one I try to call: > > Mtxrun --script XYZ > > > > will always results in the equivalent error message, e.g.: > > mtxrun | unknown script 'interface.lua' or 'mtx-interface.lua' > > > > I have > > ..\context\tex\texmf-win64\bin > > ..\context\bin > > In my path. > > > > Do I need to add something else to the Path? > > I would remove context/bin from the PATH. Thanks - that was it. Apparently, it used the executable in the wrong path. Just out of interest, why do we have mtxrun in both locations? Best, Denis ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] module installer: unknown script 'install-modules.lua' or 'mtx-install-modules.lua'
On Wed, 24 May 2023, Denis Maier via ntg-context wrote: > I've just tested with a couple of other scripts... > > Doesn't matter which one I try to call: > Mtxrun --script XYZ > > will always results in the equivalent error message, e.g.: > mtxrun | unknown script 'interface.lua' or 'mtx-interface.lua' > > I have > ..\context\tex\texmf-win64\bin > ..\context\bin > In my path. > > Do I need to add something else to the Path? I would remove context/bin from the PATH. Try running mtxrun --generate to regenerate the files database. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] module installer: unknown script 'install-modules.lua' or 'mtx-install-modules.lua'
I've just tested with a couple of other scripts... Doesn't matter which one I try to call: Mtxrun --script XYZ will always results in the equivalent error message, e.g.: mtxrun | unknown script 'interface.lua' or 'mtx-interface.lua' I have ..\context\tex\texmf-win64\bin ..\context\bin In my path. Do I need to add something else to the Path? Best, Denis > -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von Hans Hagen > via ntg-context > Gesendet: Mittwoch, 24. Mai 2023 09:00 > An: Denis Maier via ntg-context > Cc: Hans Hagen > Betreff: Re: [NTG-context] module installer: unknown script 'install- > modules.lua' or 'mtx-install-modules.lua' > > On 5/24/2023 8:51 AM, Denis Maier via ntg-context wrote: > > Hi, > > > > I’m setting up a new computer, and I’ve wanted to benefit from the new > > module installer. However, the commands I should use gives me the > > following error message : > > > > mtxrun --script install-modules --list > > > > mtxrun | unknown script 'install-modules.lua' or 'mtx-install-modules.lua' > > > > I’m using a fresh context installation (2023.05.08 17:39) on Windows. > > I’ve see a couple of others had/have( ?) the same issue. It does not > > matter from where I run the command (i.e., I’m getting the same error > > message also from inside context\tex) > > > > Is there anything I should do to make this work? > just wait till the next update because the module installer is work in > progress > > - >Hans Hagen | PRAGMA ADE >Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > - > > ___ > > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg- > context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : > https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Noto Emoji COLRv1
On 5/23/2023 11:31 PM, Max Chernoff via ntg-context wrote: Hi Hans, I tried using the code from [1] for Noto Emoji in COLRv1 format [2]: \startTEXpage \definefontfeature[colored][default][colr=9] \definedfont[Noto-COLRv1.ttf*colored] 閭 % U+1F986 \stopTEXpage but ConTeXt gives the following error: fonts > otf loading > loading 'Noto-COLRv1.ttf', hash 'noto-colrv1' otf reader > table version 1 of 'colr' is partially supported for font Noto-COLRv1.ttf otf reader > unsupported colr type 2 paint format 0 otf reader > unsupported colr type 2 paint format %i otf reader > fatal error in file 'Noto-COLRv1.ttf': ...ext/tex/texmf-context/tex/context/base/mkxl/font-dsp.lmt:3575: table index is nil stack traceback: ...ext/tex/texmf-context/tex/context/base/mkiv/font-otr.lua:2344: in metamethod 'newindex' ...ext/tex/texmf-context/tex/context/base/mkxl/font-dsp.lmt:3575: in metamethod 'index' ...ext/tex/texmf-context/tex/context/base/mkxl/font-dsp.lmt:3677: in metamethod 'index' ...ext/tex/texmf-context/tex/context/base/mkxl/font-dsp.lmt:3150: in upvalue 'getpaintoffset' ...ext/tex/texmf-context/tex/context/base/mkxl/font-dsp.lmt:3564: in field '?' ...ext/tex/texmf-context/tex/context/base/mkxl/font-dsp.lmt:3677: in metamethod 'index' ...ext/tex/texmf-context/tex/context/base/mkxl/font-dsp.lmt:3685: in local 'reader' ...ext/tex/texmf-context/tex/context/base/mkiv/font-otr.lua:2089: in upvalue 'readtable' ...ext/tex/texmf-context/tex/context/base/mkiv/font-otr.lua:2204: in upvalue 'readdata' ...ext/tex/texmf-context/tex/context/base/mkiv/font-otr.lua:2257: in function <...ext/tex/texmf-context/tex/context/base/mkiv/font-otr.lua:2240> [C]: in function 'xpcall' ...ext/tex/texmf-context/tex/context/base/mkiv/font-otr.lua:2346: in upvalue 'loadfont' ...ext/tex/texmf-context/tex/context/base/mkiv/font-otr.lua:2401: in field 'loadfont' ...ext/tex/texmf-context/tex/context/base/mkxl/font-otl.lmt:160: in field 'load' ...ext/tex/texmf-context/tex/context/base/mkxl/font-otl.lmt:624: in upvalue 'otftotfm' ...ext/tex/texmf-context/tex/context/base/mkxl/font-otl.lmt:652: in function <...ext/tex/texmf-context/tex/context/base/mkxl/font-otl.lmt:651> (...tail calls...) ...ext/tex/texmf-context/tex/context/base/mkxl/font-def.lmt:362: in function <...ext/tex/texmf-context/tex/context/base/mkxl/font-def.lmt:350> (...tail calls...) ...ext/tex/texmf-context/tex/context/base/mkxl/font-def.lmt:465: in field 'read' ...ext/tex/texmf-context/tex/context/base/mkxl/font-ctx.lmt:1371: in function <...ext/tex/texmf-context/tex/context/base/mkxl/font-ctx.lmt:1228> (...tail calls...) fonts > otf loading > loading failed due to read error fonts > defining > forced type 'ttf' of 'Noto-COLRv1' not found fonts > defining > unable to define 'Noto-COLRv1.ttf' as 'thedefinedfont--0' system > print height forced to paper height system > print width forced to paper width fonts > checking > char 閭 (U+1F986) in font 'LMRoman10-Regular' with id 1: missing From what I can tell, the Lua code is trying to read past the end of font file. I tried debugging the error further, but this is well beyond my understanding. (Also, paintreaders[6--11] in font-dsp.lmt are missing "offset" in the function signature, and paintreaders itself is glboal. Maybe related?) I'm using the current latest (2023.05.08 17:39). i'll check it but as usuel with these new things in fonts, one depends on fonts for testing so all that goes stepwise (as - hopefully correct - fonts come available) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] module installer: unknown script 'install-modules.lua' or 'mtx-install-modules.lua'
Am 24.05.23 um 08:51 schrieb Denis Maier via ntg-context: Hi, I’m setting up a new computer, and I’ve wanted to benefit from the new module installer. However, the commands I should use gives me the following error message : mtxrun --script install-modules --list mtxrun | unknown script 'install-modules.lua' or 'mtx-install-modules.lua' I’m using a fresh context installation (2023.05.08 17:39) on Windows. I’ve see a couple of others had/have( ?) the same issue. It does not matter from where I run the command (i.e., I’m getting the same error message also from inside context\tex) Is there anything I should do to make this work? While --install only works within the "tex" directory, --list should work regardless of current directory. Can mtxrun find other scripts, like "fonts"? After a new installation, I usually need a new terminal window, otherwise the PATH is wrong or something like that. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] module installer: unknown script 'install-modules.lua' or 'mtx-install-modules.lua'
On 5/24/2023 8:51 AM, Denis Maier via ntg-context wrote: Hi, I’m setting up a new computer, and I’ve wanted to benefit from the new module installer. However, the commands I should use gives me the following error message : mtxrun --script install-modules --list mtxrun | unknown script 'install-modules.lua' or 'mtx-install-modules.lua' I’m using a fresh context installation (2023.05.08 17:39) on Windows. I’ve see a couple of others had/have( ?) the same issue. It does not matter from where I run the command (i.e., I’m getting the same error message also from inside context\tex) Is there anything I should do to make this work? just wait till the next update because the module installer is work in progress - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] module installer: unknown script 'install-modules.lua' or 'mtx-install-modules.lua'
Hi, I'm setting up a new computer, and I've wanted to benefit from the new module installer. However, the commands I should use gives me the following error message : mtxrun --script install-modules --list mtxrun | unknown script 'install-modules.lua' or 'mtx-install-modules.lua' I'm using a fresh context installation (2023.05.08 17:39) on Windows. I've see a couple of others had/have( ?) the same issue. It does not matter from where I run the command (i.e., I'm getting the same error message also from inside context\tex) Is there anything I should do to make this work? Best, Denis ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Noto Emoji COLRv1
Hi Hans, I tried using the code from [1] for Noto Emoji in COLRv1 format [2]: \startTEXpage \definefontfeature[colored][default][colr=9] \definedfont[Noto-COLRv1.ttf*colored] 閭 % U+1F986 \stopTEXpage but ConTeXt gives the following error: fonts > otf loading > loading 'Noto-COLRv1.ttf', hash 'noto-colrv1' otf reader > table version 1 of 'colr' is partially supported for font Noto-COLRv1.ttf otf reader > unsupported colr type 2 paint format 0 otf reader > unsupported colr type 2 paint format %i otf reader > fatal error in file 'Noto-COLRv1.ttf': ...ext/tex/texmf-context/tex/context/base/mkxl/font-dsp.lmt:3575: table index is nil stack traceback: ...ext/tex/texmf-context/tex/context/base/mkiv/font-otr.lua:2344: in metamethod 'newindex' ...ext/tex/texmf-context/tex/context/base/mkxl/font-dsp.lmt:3575: in metamethod 'index' ...ext/tex/texmf-context/tex/context/base/mkxl/font-dsp.lmt:3677: in metamethod 'index' ...ext/tex/texmf-context/tex/context/base/mkxl/font-dsp.lmt:3150: in upvalue 'getpaintoffset' ...ext/tex/texmf-context/tex/context/base/mkxl/font-dsp.lmt:3564: in field '?' ...ext/tex/texmf-context/tex/context/base/mkxl/font-dsp.lmt:3677: in metamethod 'index' ...ext/tex/texmf-context/tex/context/base/mkxl/font-dsp.lmt:3685: in local 'reader' ...ext/tex/texmf-context/tex/context/base/mkiv/font-otr.lua:2089: in upvalue 'readtable' ...ext/tex/texmf-context/tex/context/base/mkiv/font-otr.lua:2204: in upvalue 'readdata' ...ext/tex/texmf-context/tex/context/base/mkiv/font-otr.lua:2257: in function <...ext/tex/texmf-context/tex/context/base/mkiv/font-otr.lua:2240> [C]: in function 'xpcall' ...ext/tex/texmf-context/tex/context/base/mkiv/font-otr.lua:2346: in upvalue 'loadfont' ...ext/tex/texmf-context/tex/context/base/mkiv/font-otr.lua:2401: in field 'loadfont' ...ext/tex/texmf-context/tex/context/base/mkxl/font-otl.lmt:160: in field 'load' ...ext/tex/texmf-context/tex/context/base/mkxl/font-otl.lmt:624: in upvalue 'otftotfm' ...ext/tex/texmf-context/tex/context/base/mkxl/font-otl.lmt:652: in function <...ext/tex/texmf-context/tex/context/base/mkxl/font-otl.lmt:651> (...tail calls...) ...ext/tex/texmf-context/tex/context/base/mkxl/font-def.lmt:362: in function <...ext/tex/texmf-context/tex/context/base/mkxl/font-def.lmt:350> (...tail calls...) ...ext/tex/texmf-context/tex/context/base/mkxl/font-def.lmt:465: in field 'read' ...ext/tex/texmf-context/tex/context/base/mkxl/font-ctx.lmt:1371: in function <...ext/tex/texmf-context/tex/context/base/mkxl/font-ctx.lmt:1228> (...tail calls...) fonts > otf loading > loading failed due to read error fonts > defining > forced type 'ttf' of 'Noto-COLRv1' not found fonts > defining > unable to define 'Noto-COLRv1.ttf' as 'thedefinedfont--0' system > print height forced to paper height system > print width forced to paper width fonts > checking > char 閭 (U+1F986) in font 'LMRoman10-Regular' with id 1: missing From what I can tell, the Lua code is trying to read past the end of font file. I tried debugging the error further, but this is well beyond my understanding. (Also, paintreaders[6--11] in font-dsp.lmt are missing "offset" in the function signature, and paintreaders itself is glboal. Maybe related?) I'm using the current latest (2023.05.08 17:39). Thanks, -- Max [1]: https://mailman.ntg.nl/pipermail/ntg-context/2022/107279.html [2]: https://github.com/googlefonts/noto-emoji/raw/main/fonts/Noto-COLRv1.ttf ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___