[NTG-context] Re: Why don't footnotes appear in floats or figures?

2024-04-22 Thread Hans Hagen via ntg-context
On 4/22/2024 2:45 AM, Joel via ntg-context wrote: I'm three days out from sending my work to an editor, and found some serious problem: many footnotes just aren't rendering. I have a history text that uses ConTeXt-SBL for the citations, as such, it has lots of footnotes. Sometimes the

[NTG-context] Re: \luaescapestring in proper Lua

2024-04-11 Thread Hans Hagen via ntg-context
On 4/11/2024 5:07 PM, Pablo Rodriguez via ntg-context wrote: On 4/10/24 21:48, Hans Hagen via ntg-context wrote: On 4/10/2024 7:49 PM, Pablo Rodriguez via ntg-context wrote: [...] I wonder whether there is a proper way in the Lua code to avoid [[\luaescapestring{}]] in \ctxlua

[NTG-context] Re: unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua

2024-04-11 Thread Hans Hagen via ntg-context
On 4/11/2024 5:25 PM, Pablo Rodriguez via ntg-context wrote: On 4/10/24 22:28, Denis Maier wrote: [...] context --luatex --generate Thanks, Pablo. I've tried it, but it doesn't seem to work... I get the same result on Win64 when I move the luatex binary from the tex/texmf-win64/bin/

[NTG-context] Re: \luaescapestring in proper Lua

2024-04-10 Thread Hans Hagen via ntg-context
On 4/10/2024 7:49 PM, Pablo Rodriguez via ntg-context wrote: Dear list, I have the following sample: \starttext \startluacode function document.print_the_thing(str) context(str) end \stopluacode \unexpanded\def\PrintTheThing#1{%

[NTG-context] Re: PDF/UA-2, WTPDF

2024-04-07 Thread Hans Hagen via ntg-context
On 4/7/2024 9:31 AM, Henning Hraban Ramm wrote: Am 07.04.24 um 08:06 schrieb Hans Hagen: On 4/6/2024 5:34 PM, Henning Hraban Ramm wrote: 1. PDF/UA-2 https://pdfa.org/iso-14289-2-pdfua-2/ looks likes one has to pay for it That’s not how you promote open standards. should have been an ecma

[NTG-context] Re: what about "textdisplay"?

2024-04-02 Thread Hans Hagen via ntg-context
On 4/2/2024 7:44 AM, Henning Hraban Ramm wrote: Am 01.04.24 um 18:54 schrieb Wolfgang Schuster: Henning Hraban Ramm schrieb am 01.04.2024 um 18:29: Am 01.04.24 um 18:21 schrieb Wolfgang Schuster: Henning Hraban Ramm schrieb am 01.04.2024 um 17:19: A while ago, I was pointed (by Wolfgang or

[NTG-context] Re: OT: San Seriffe

2024-04-01 Thread Hans Hagen via ntg-context
On 4/1/2024 3:56 PM, Henning Hraban Ramm wrote: in honour of Knuth and the current occasion: https://realdougwilson.com/writing/san-serriffe the subject title suggest that you found an open type version Hans -

[NTG-context] Re: how to include an an svg file?

2024-03-15 Thread Hans Hagen via ntg-context
On 3/13/2024 9:16 AM, Henning Hraban Ramm wrote: Am 12.03.24 um 23:59 schrieb seyal zavira: You are correct. when i convert this svg to pdf via inkscape it works like a charm. But what is standard way of including an svg file with context if we want to inkscape render the images?

[NTG-context] Re: \intertext and highlighting with \alignhere/\breakhere

2024-03-13 Thread Hans Hagen via ntg-context
On 3/13/2024 12:26 PM, Mikael Sundqvist wrote: Hi, On Wed, Mar 13, 2024 at 11:37 AM Max Chernoff wrote: Hi Hans, On Tue, 2024-03-12 at 15:21 +0100, Hans Hagen wrote: the next upload will support the attached ... so no ugly hacky code needed "\texthere[inbetween]" looks perfect, thanks!

[NTG-context] Re: \em issue in MkXL (2024.03.05 11:26)

2024-03-10 Thread Hans Hagen via ntg-context
On 3/10/2024 9:32 AM, Pablo Rodriguez via ntg-context wrote: On 3/9/24 16:04, Wolfgang Schuster wrote: Pablo Rodriguez via ntg-context schrieb am 08.03.2024 um 19:39: [...] \enableexperiments[fonts.compact] Which seeems weird to me. Or at least, I thought I read that Hans enabled it by

[NTG-context] Re: How can I do this?

2024-03-10 Thread Hans Hagen via ntg-context
On 3/8/2024 6:36 PM, Henning Hraban Ramm wrote: Am 08.03.24 um 17:56 schrieb Otared Kavian: Hi Ursula, The reason for which you did not get the expected result is that you have « } » missing in your file, that is the closing brace after your italic command « {\it » at the end of your

[NTG-context] Re: issue mixing font features (LMTX & MkIV)

2024-03-04 Thread Hans Hagen via ntg-context
On 3/3/2024 11:54 AM, Pablo Rodriguez via ntg-context wrote: Dear list, I have the following sample: \definefontfeature[wider][extend=2] \definefontfamily[mainface][rm][TeX Gyre Pagella] [features={default, quality, wider}, it={style: regular, features:{default, slanted,

[NTG-context] Re: issues scaling glyphs of Twemoji Mozilla

2024-03-04 Thread Hans Hagen via ntg-context
On 3/2/2024 1:46 PM, Pablo Rodriguez via ntg-context wrote: Dear list, I have the following sample: \definefontfamily[mainface][rm][TeX Gyre Termes] \definefontfamily[mainface][cg][Twemoji Mozilla][features={color}] \setupbodyfont[mainface] \starttext \scale[width=30em]{a}

[NTG-context] Re: MetaPost lines in tables?

2024-02-22 Thread Hans Hagen via ntg-context
On 2/21/2024 7:47 PM, Henning Hraban Ramm wrote: Am 21.02.24 um 19:43 schrieb Wolfgang Schuster: … but it would be visible on a colored background. I’m sure you can show me a better way… \startuseMPgraphic{dottedborder}    draw bottomboundary OverlayBox withpen pencircle scaled 2 dashed

[NTG-context] manuals

2024-02-14 Thread Hans Hagen via ntg-context
There's also: https://github.com/contextgarden/not-so-short-introduction-to-context Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands

[NTG-context] Re: \type ignores space between command and bracket

2024-02-02 Thread Hans Hagen via ntg-context
On 2/2/2024 11:16 AM, wolfgangbackes--- via ntg-context wrote: I have stumbeld across the same bug. Seems to be very elementary, but is still present after many years. Sigh. don't confuse bugs and features ... \starttext here a \type{\test is} done here a \type{\test [is]} done here a

[NTG-context] Re: hyphenation question

2024-02-02 Thread Hans Hagen via ntg-context
On 2/2/2024 1:03 PM, Hans van der Meer via ntg-context wrote: In the 18th century documents I am transcribing often words are abbreviated as for example /voorschreeve/ becoming /voors:/ In the transcription it is usual to write this as /voors[chreeve]/ indicating to the reader how the

[NTG-context] Re: upload

2024-01-23 Thread Hans Hagen via ntg-context
On 1/20/2024 10:32 AM, Ursula Hermann wrote: 32 bits Windows download does not work, because 404 report. i uploaded a win32 installer (for now we only keep 32 bit win but once all users are on 64 bit ...) the current upload is as usual work in progress Hans

[NTG-context] Re: context version 20240118 ("Registerhaltigkeit")

2024-01-22 Thread Hans Hagen via ntg-context
On 1/22/2024 10:47 AM, Thomas Meyer wrote: Hi Hans, maybe you understand the question mark now, you are part of it. Unfortunately, I haven't received a reply to my last e-mail from January 18. No I don't. Are you sayign that you want an instant reply every time? I assume you realize that

[NTG-context] Re: cont-new.mkiv and \everymathematics

2024-01-21 Thread Hans Hagen via ntg-context
On 1/20/2024 7:49 PM, Rogers, Michael K wrote: Hi all, In writing class notes, I frequently make one-letter macros for formatted symbols, such \v and \w for vectors. Generally speaking, one-letter names for function/macros/variables is frowned upon in programming, but I find this localized

[NTG-context] Re: upload

2024-01-20 Thread Hans Hagen via ntg-context
On 1/19/2024 6:34 PM, Pablo Rodriguez via ntg-context wrote: On 1/18/24 20:43, Denis Maier via ntg-context wrote: *Von:*Alain Delmotte *Gesendet:* Donnerstag, 18. Januar 2024 20:04 *An:* ntg-context@ntg.nl *Betreff:* [NTG-context] Re: upload [...] When I go to https://www.pragma-ade.nl, I get

[NTG-context] Re: Why LuaMetaTex is so slow?

2024-01-18 Thread Hans Hagen via ntg-context
On 1/19/2024 12:34 AM, Aditya Mahajan wrote: On Thu, 18 Jan 2024, Hans Hagen wrote: Of course we'll never be as fast as (pure) plain tex (no layers added) or latex (which often is advocated as faster than context). I was curious, so did a quick experiment: typeset \input knuth 500 times.

[NTG-context] Re: context version 20240118

2024-01-18 Thread Hans Hagen via ntg-context
On 1/18/2024 12:59 PM, Thomas Meyer wrote: What is going on? Yesterday I got a perfect on-grid-written document! But today, with the newest context-version (20240118) all changed for the worse. as follow up on the keyword thread we decided to treat bad values to equivalent to 'no' I may

[NTG-context] Re: [ \copypages ]

2024-01-18 Thread Hans Hagen via ntg-context
On 1/17/2024 10:20 PM, vm via ntg-context wrote: Is there a (hidden) option that allows for changing the font color of external included pdfs yes but experimental and not yet documented Hans -

[NTG-context] Re: font error in float placement?

2024-01-14 Thread Hans Hagen via ntg-context
Hi, to index a nil value (field 'embed') fixed in next upload (this merge upgrade is a bit work in progress) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH

[NTG-context] Re: Chemnitz, Leipzig, Call for Poster

2024-01-10 Thread Hans Hagen via ntg-context
On 1/10/2024 8:00 AM, juh via ntg-context wrote: Dear Hraban, Am Sun, Jan 07, 2024 at 09:59:14AM +0100 schrieb Henning Hraban Ramm: I’d like to have a poster that shows off ConTeXt/MetaFun features. Do you have suggestions or (even better) would you like to create it? It would be nice to have

[NTG-context] update

2024-01-08 Thread Hans Hagen via ntg-context
Hi, With the build farm still down I now use an alternative build, that is, I run a compile script on s bunch of machines and hope for the best. In the process I decided to drop 32 bit installers (users can generate bins themselves if needed). I also drop bsd version and just use the

[NTG-context] Re: Metapost docs

2024-01-08 Thread Hans Hagen via ntg-context
On 1/8/2024 1:50 AM, Shiv Shankar Dayal wrote: I see many libraries for Metapost in Context source. Where are these documented? I see Metafun manual as well, but I do not find all the included libraries described. i'm not sure what you mean with library ... can you give an example? Hans

[NTG-context] Re: Solaris 11 SPARC Support [SEC=OFFICIAL]

2024-01-05 Thread Hans Hagen via ntg-context
On 1/5/2024 12:54 AM, Michael Wigston via ntg-context wrote: Hi, Would you consider supporting Solaris 11 on SPARC? Alternatively if you could provide documentation how to build Context on "SunOS sun4v" hardware would also be beneficial. I have compiled luametatex, but getting below error

[NTG-context] Re: 2024

2024-01-02 Thread Hans Hagen via ntg-context
On 1/1/2024 3:33 PM, vm via ntg-context wrote: On 01/01/2024 13:28, Hans Hagen wrote: Of course it screams metapost but tex and lua are also involved. See it as compensation for the lack of an end-of-year update. The last page of the result has a bit of explanation. Beautiful indeed ! (And

[NTG-context] Re: MetaFun path joiners && and &&&& do not like single point paths

2023-12-31 Thread Hans Hagen via ntg-context
On 12/31/2023 8:06 AM, Mikael Sundqvist wrote: \startMPpage path p[], q ; p1 = fullcircle scaled 3cm ; p2 = fullcircle scaled 2cm shifted (3cm,0) ; p3 = (3cm,2cm) ; p4 = fullcircle ; q = p[1] for i = 2 upto 3: if (length(p[i]) == 0): &&& else: && fi p[i] endfor && cycle ; eofill q withcolor 0.9

[NTG-context] Re: Seeking advice for module that draws globes

2023-12-18 Thread Hans Hagen via ntg-context
On 12/18/2023 5:22 PM, Gavin wrote: Hi Hans, On Dec 18, 2023, at 3:12 AM, Hans Hagen via ntg-context wrote: about names: how about t-luageo.lmt t-luageo.mpxl so that one knows what comes with the module (we do the same with s-* modules) "t-luageo.lmt" is fine, but &quo

[NTG-context] Re: Seeking advice for module that draws globes

2023-12-18 Thread Hans Hagen via ntg-context
On 12/17/2023 11:22 PM, Gavin via ntg-context wrote: Hello ConTeXters, I wrote a little ConTeXt module for drawing globes. I would love some advice on how to improve it and share it. The code is quite short (about 250 lines). Most of the work is done by Lua, which reads the data files and

[NTG-context] Re: Seeking advice for module that draws globes

2023-12-18 Thread Hans Hagen via ntg-context
On 12/18/2023 4:49 AM, Gavin wrote: Hi Hans, Thanks for all the suggestions! I am going through them carefully. - in mp you can do this vardef theglobe(expr lat, lon) = for i = 1 upto lua.mp.makeglobe(lat, lon): (lua.mp.getglobepath(i)) endfor cycle enddef ; Does

[NTG-context] Re: Seeking advice for module that draws globes

2023-12-17 Thread Hans Hagen via ntg-context
On 12/17/2023 11:22 PM, Gavin via ntg-context wrote: Hello ConTeXters, I wrote a little ConTeXt module for drawing globes. I would love some advice on how to improve it and share it. The code is quite short (about 250 lines). Most of the work is done by Lua, which reads the data files and

[NTG-context] Re: Seeking advice for module that draws globes

2023-12-17 Thread Hans Hagen via ntg-context
On 12/17/2023 11:22 PM, Gavin via ntg-context wrote: 1. How do I avoid redrawing diagrams with every typeset? The globe above takes about 0.7s, which is not bad, but it adds up in a book with many diagrams. \startbuffer[demo] \usemodule [luageo] \startMPpage GlobeDiameter = 10cm ;

[NTG-context] Re: error with definestartstop and startmode

2023-12-16 Thread Hans Hagen via ntg-context
On 12/16/2023 9:17 AM, Peter Münster wrote: Hi, I get an "runaway error" with the following example: --8<---cut here---start->8--- \definestartstop[H][color=blue, before={\startmode[h]}, after={\stopmode}] \starttext test \startH TEST \stopH \stoptext

[NTG-context] Re: Fractions (was \placefigure[location=here...] problem)

2023-12-10 Thread Hans Hagen via ntg-context
On 12/9/2023 4:33 PM, Aditya Mahajan wrote: On Sat, 9 Dec 2023, Wolfgang Schuster wrote: \starttext \startlines \type{\frac{1}{3}}: \m{\frac{1}{3}} \type{\xfrac{1}{3}}: \m{\xfrac{1}{3}} \type{\xxfrac{1}{3}}: \m{\xxfrac{1}{3}} \type{\tfrac{1}{3}}: \m{\tfrac{1}{3}} \type{\sfrac{1}{3}}:

[NTG-context] Re: mtx-synctex.lua question

2023-12-08 Thread Hans Hagen via ntg-context
On 12/7/2023 7:23 PM, Jim wrote: Hi, In mtx-synctex.lua, inside local function findlocation(filename,page,xpos,ypos,tolerance) there is the following code: for s=1,tolerance,max(tolerance//10,1) do locate( s, 0) if fi ~= 0 then tl = s ; goto done

[NTG-context] Re: Inline math spacing

2023-12-04 Thread Hans Hagen via ntg-context
On 12/4/2023 2:42 PM, Alexandre Christe wrote: Hi Hans, Thanks for your answer. It helps a lot. Would there be a way to only add space when inline math is not followed by punctuation, i.e., when inline math is followed by a space? A. Christe Le 4 déc. 2023 à 14:08 +0100, Hans Hagen , a

[NTG-context] Re: externalfigure crashed

2023-12-04 Thread Hans Hagen via ntg-context
On 12/4/2023 5:38 PM, Pablo Rodriguez via ntg-context wrote: On 11/24/23 18:16, Hans Hagen via ntg-context wrote: […] will do for now ... i can't upload a new installer .. pending the built; the advantage is that i can do some experiments that would otherwise break the current version (making

[NTG-context] Re: Inline math spacing

2023-12-04 Thread Hans Hagen via ntg-context
On 12/4/2023 6:43 AM, Alexandre Christe wrote: Hi, Here’s a MWE: \setupinterlinespace[line=3ex] \definefontfeature[default][default][lnum=yes,tnum=yes] \usetypescriptfile[alegreya_libertinus] \setupbodyfont[alegreya-light,ss,10pt] \setupmathematics[autopunctuation={all}] % math definitions

[NTG-context] Re: externalfigure crashed

2023-11-24 Thread Hans Hagen via ntg-context
On 11/22/2023 10:02 PM, Hans van der Meer via ntg-context wrote: Here too, I find 'undefined' from \meaning\expandeddetokenize \ifdefined\expandeddetokenize\else \let\expandeddetokenize\detokenize \fi will do for now ... i can't upload a new installer .. pending the built; the advantage is

[NTG-context] Re: hard clipping in ConTeXt?

2023-11-11 Thread Hans Hagen via ntg-context
On 11/10/2023 6:17 PM, Pablo Rodriguez via ntg-context wrote: Dear list, I have the following sample: \setuplayout[page] \starttext \clip[hoffset=5mm, voffset=5mm, width=15mm, height=15mm] {\externalfigure[xml-mkiv.pdf]} \stopnotmode \stoptext Using PDF.js (from

[NTG-context] Re: How to encircle text?

2023-11-05 Thread Hans Hagen via ntg-context
On 11/5/2023 7:23 AM, anton.chig...@mail.com wrote: I want to use \bigcirc to encircle text. Is there a way to do it. if you're wiling to compensate for its depth: \defineoverlay [BigCirc] [{\scale [width=\overlaywidth] {\setbox0\hpack{\bigcirc}\raise\dp0\box0}}] \framed

[NTG-context] Re: Adobe Source Typescript With Design Sizes

2023-11-01 Thread Hans Hagen via ntg-context
On 10/31/2023 8:18 PM, Vincent Hennebert wrote: Hello there, I had mentioned this on a thread some (long) time ago, finally got around to finishing a first version of a typescript with the Adobe Source font family, in all its weight alternatives and design sizes (the latter being available

[NTG-context] Re: Inline mathematics is stretched

2023-10-30 Thread Hans Hagen via ntg-context
On 10/30/2023 8:05 AM, Mia Bikey wrote: Yes well of course no issue arises if I just change the whole font. But I wanted to keep using the mono font thus reporting issues with it. In that case you have to go for flushleft \setupalign[verytolerant,nothyphenated,flushleft] because otherwise tex

[NTG-context] Re: Inline mathematics is stretched

2023-10-29 Thread Hans Hagen via ntg-context
On 10/29/2023 1:33 PM, Mia Bikey wrote: Hi, I was using \setupalign[verytolerant,stretch] so that the mono font does not go inside the right inline image but after using that command the inline math seems to spread. how about just using this \setupbodyfont[concrete] \starttext When $a, b,

[NTG-context] Re: colors for links

2023-10-14 Thread Hans Hagen via ntg-context
On 10/14/2023 7:55 PM, Pablo Rodriguez wrote: On 10/14/23 14:19, Hans Hagen via ntg-context wrote: On 10/12/2023 3:14 PM, Pablo Rodriguez wrote: […] I see that the directive for link borders only allows one color for links per document. Many thanks for your reply, Hans. I apologize for my

[NTG-context] Re: colors for links

2023-10-14 Thread Hans Hagen via ntg-context
On 10/12/2023 3:14 PM, Pablo Rodriguez wrote: Hi Hans, I have the following source, which tries to resemble three kinds of links: \setupinteraction[state=start, style=, focus=standard] \def\inone#1{% \start\setupinteraction[color=darkgreen]%

[NTG-context] Re: regular online meetup

2023-10-11 Thread Hans Hagen via ntg-context
On 10/11/2023 11:28 AM, Bruce Horrocks wrote: I'd quite like to discuss this if people don't mind. There's a PDF attached which illustrates the issue. exploring / solutions to this has been moved off list Hans

[NTG-context] Re: Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-22 Thread Hans Hagen via ntg-context
On 9/22/2023 3:51 PM, Hamid,Idris wrote: -- Original Message -- From "Hans Hagen" mailto:j.ha...@xs4all.nl>> To "ntg-context@ntg.nl" mailto:ntg-context@ntg.nl>> Date 9/22/2023 7:15:25 AM Subject [NTG-context] Re: Toggling the symbol for the zero-width joiner

[NTG-context] Re: Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-22 Thread Hans Hagen via ntg-context
On 9/22/2023 6:16 AM, Hamid,Idris wrote: -- Original Message -- From "Hans Hagen" mailto:j.ha...@xs4all.nl>> To "Hamid,Idris" mailto:idris.ha...@colostate.edu>>; "mailing list for ConTeXt users" mailto:ntg-context@ntg.nl>> Date 9/21/2023 3:29:22 PM Subject Re: [NTG-context] Re:

[NTG-context] Re: stackrel in context?

2023-09-21 Thread Hans Hagen via ntg-context
On 9/21/2023 11:21 AM, Aditya Mahajan wrote: On Thu, 21 Sep 2023, Xavier B. wrote: Hi, I want to write: $0,00\stackrel{\smallfrown}{4}$ like latex [https://tex.stackexchange.com/questions/39225/differences-between-stackrel-and-stackbin] but context LMTX does not recognize stackrel What

[NTG-context] Re: streams reversed?

2023-09-17 Thread Hans Hagen via ntg-context
On 9/16/2023 12:57 AM, jbf wrote: Thanks Idris. See my response to Bruce, and indeed his response to mine earlier. I'll have to leave it at that for now. Too many other matters pressing. Julian This is why mechanism like these never come to completion: it takes times, experimenting,

[NTG-context] Re: # verbatim typesetting

2023-09-07 Thread Hans Hagen via ntg-context
On 9/7/2023 2:47 PM, Marcus Vinicius Mesquita wrote: Dear List, The MWE below gives a pdf with two #'s instead of only one. Why is that? \starttext \startluacode context.type("#") \stopluacode \stoptext because by default tex loves to duplicate hashes when it serializes token lists

[NTG-context] Re: XML, multiple spaces encoded as %20 get merged into one space

2023-09-06 Thread Hans Hagen via ntg-context
On 9/6/2023 4:59 PM, Pablo Rodriguez wrote: On 9/6/23 12:28, denis.ma...@unibe.ch wrote: Hi, I have the example below that uses the three images in the attachment. For some reason multiple spaces encoded as %20 get merged into a single %20. Hi Denis, this is standard TeX behavior (not only

[NTG-context] Fwd: escaping \ in Lua

2023-09-05 Thread Hans Hagen via ntg-context
Forwarded Message Subject: Re: [NTG-context] escaping \ in Lua Date: Tue, 5 Sep 2023 21:00:21 +0200 From: Hans Hagen To: Pablo Rodriguez On 9/5/2023 6:43 PM, Pablo Rodriguez wrote: Dear list, I have the following source: \setupinteraction[state=start, display=new]

[NTG-context] Re: out of order sectionsblocks

2023-09-05 Thread Hans Hagen via ntg-context
On 9/5/2023 4:06 AM, Rik Kabel wrote: The following example generates a log file which begins with the line    structure   > lists > out of order sectionsblocks, maybe use    \setsectionblock My larger document has over a hundred of these at the beginning.    \setupnote [endnote]

[NTG-context] Re: Adjust pagenumbering while skipping first page

2023-09-04 Thread Hans Hagen via ntg-context
On 9/4/2023 6:09 PM, Jeroen wrote: The following MWE shows pagenumbering starting at the second page with page number 1. With the totalnumberofpages we end up with one page too many. Is there a way to reduce this with 1? \setupfootertexts [title] [\pagenumber{} of \totalnumberofpages]

[NTG-context] Re: no packed in current latest (LMTX only)

2023-09-04 Thread Hans Hagen via ntg-context
On 9/4/2023 6:12 PM, Pablo Rodriguez wrote: Dear list, after updating to current latest (from 2023.09.03 19:03), packed list doesn’t seem to work in LMTX: \starttext \startTEXpage[offset=1em] \startitemize[packed] \item item \item item \stopitemize \stopTEXpage

[NTG-context] Re: Bug or feature? \numexpression and hashes

2023-09-04 Thread Hans Hagen via ntg-context
On 9/4/2023 8:17 AM, Jairo A. del Rio wrote: Hi, list. The following fails with a "Missing number, treated as zero" error prompt: \starttext \expandedrepeat2{\expandedrepeat2{\the\numexpression#I+#P\relax\ }} \stoptext OTOH, \numexpr works seamlessly. Tested on ConTeXt 2023.09.03 19:03. Thanks

[NTG-context] Re: Reinserting a section title followed by (continued) after a page break

2023-09-04 Thread Hans Hagen via ntg-context
On 9/4/2023 5:55 AM, Calvin Ross wrote: On the off chance anyone seeing this is interested, I have a solution uploaded as part of a module I wrote for screenplay and stageplay writing: https://github.com/cjayross/drama.mkiv/blob/4a9b2576c8630fd03352d95f99456092f6e21190/drama.mkiv#L480 A few

[NTG-context] Re: XML: Correct usage of hash symbol in url / new upload

2023-08-27 Thread Hans Hagen via ntg-context
Hi Denis, I need to process URLs in XML documents differently depending on the target. Thanks to Hans and Thomas I can now deal with the attributes. Now I need to prefix certain kind of targets with a certain URL (a web viewer for IIIF images in this particular case). The prefix contains a #,

[NTG-context] Re: XML: Correct usage of hash symbol in url

2023-08-25 Thread Hans Hagen via ntg-context
On 8/25/2023 10:16 AM, denis.ma...@unibe.ch wrote: Hi, I need to process URLs in XML documents differently depending on the target. Thanks to Hans and Thomas I can now deal with the attributes. Now I need to prefix certain kind of targets with a certain URL (a web viewer for IIIF images in

[NTG-context] Re: Better option for a macro with lots of arguments

2023-08-23 Thread Hans Hagen via ntg-context
On 8/23/2023 4:12 AM, Andres Conrado Montoya wrote: I have been using the following macro to add a bunch of sections to the start of chapters in a book, it works but I think is kind of weak: %%% \define[7]\metadatos{ \startsection[title={Resumen}] #1 \stopsection

[NTG-context] Re: Fallbacks for design sizes in the current typescripts regime

2023-08-22 Thread Hans Hagen via ntg-context
On 8/22/2023 6:31 AM, Hamid,Idris wrote: Dear gang, Design sizes for typefaces -- aka "optical sizes" -- are no longer directly implemented in typescripts. From the manual Fonts out of ConTeXt by Hans Hagen, p. 109: You can still do it but for all these years only cm has design sizes so one

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

2023-08-22 Thread Hans Hagen via ntg-context
On 8/22/2023 9:06 AM, denis.ma...@unibe.ch wrote: But, I think the way this is processed differs a bit from XSLT. In XSLT the most specific match will be applied, but ConTeXt seems to proceed from top to bottom until it finds a match. (Is that correct?) it just associates the most recent

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

2023-08-22 Thread Hans Hagen via ntg-context
On 8/22/2023 8:53 AM, denis.ma...@unibe.ch wrote: -Ursprüngliche Nachricht- Von: Hans Hagen via ntg-context Gesendet: Montag, 21. August 2023 19:09 you need a bit of imagination because basically (depends a bit on what you do) one big nested expansion is going on, as Thomas explained

[NTG-context] Re: Not getting a page break in the ToC

2023-08-22 Thread Hans Hagen via ntg-context
On 8/22/2023 8:51 AM, Andres Conrado Montoya wrote: Apologies, I just found the solution: https://wiki.contextgarden.net/Command/setinjector El lun, 21 ago 2023 a las 23:43, Andres Conrado Montoya (< andresconr...@gmail.com>) escribió: I'm trying to force a page break in a table of contents,

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

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

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

2023-08-20 Thread Hans Hagen via ntg-context
Carlos, > On 8/20/2023 6:41 PM, Wolfgang Schuster wrote: And now it gets even worse, see https://meeting.contextgarden.net/2021/talks/2021-09-21/starttext.pdf why \starttext is necessar And watch how \startTEXpage is defined. It clearly explains why that works without. Also watch how

[NTG-context] Re: [ export to svg ]

2023-08-19 Thread Hans Hagen via ntg-context
On 8/19/2023 1:12 PM, vm via ntg-context wrote: Is there a (simple) way to export the results of a \startMPpage ... \stopMPpage directly to a svg file? My current route is to import the pdf into inkscape, group path objects by stroke color, then save the result as svg and translate that into a

[NTG-context] Re: Experiments with \doloopoverlist

2023-08-17 Thread Hans Hagen via ntg-context
On 8/17/2023 3:50 AM, Andres Conrado Montoya wrote: Hello List. I've been trying to typeset a somewhat complex list of authors for several articles and a book. My proof of concept seems to work fine, however, I know I am doing weird things that I think could probably be done in a better way.

[NTG-context] Re: startitemize[a, text] space in LMTX

2023-08-16 Thread Hans Hagen via ntg-context
On 8/16/2023 9:27 PM, Xavier B. wrote: OK. Thanks but it's about luatex [https://tracker.luatex.org/changelog_page.php]. Does we use luametatex? lmtx uses luametatex ... luatex dev is basically frozen (has to be stable because used by several macro packages now) Hans

[NTG-context] Re: new upload

2023-08-16 Thread Hans Hagen via ntg-context
Hi Pablo, I Uploaded an update so you can spend the evening wikifying units ... see lowlevel manual for the full list \startTEXpage[offset=1ex] x\vrule height 1fa depth 1fd\relax x % \ascender \descender x\vrule height 1sh depth 1sd\relax x % \strutht \strutdp x\vrule height 1fc

[NTG-context] Re: new align option

2023-08-16 Thread Hans Hagen via ntg-context
On 8/16/2023 11:54 AM, Hraban Ramm wrote: Hi, I don’t really understand this option. With paragraphs, it’s like flushright, but the last line is right-indented. Within typing, in your eaxmple it’s flushright except the first line; with my code examples with long lines it looks just flushleft

[NTG-context] Re: new upload

2023-08-16 Thread Hans Hagen via ntg-context
On 8/15/2023 10:54 PM, Pablo Rodriguez wrote: On 8/15/23 22:16, Hans Hagen via ntg-context wrote: On 8/15/2023 9:27 PM, Pablo Rodriguez wrote: [...] I wonder whether we could have (current) frame width and height as unit. we can have fw fh fo lw (width height offset linewidth) but keep

[NTG-context] new align option

2023-08-15 Thread Hans Hagen via ntg-context
Hi, Especially for long verbatim lines we now can do this: \starttext \setupalign[hangright] \starttyping test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test

[NTG-context] Re: new upload

2023-08-15 Thread Hans Hagen via ntg-context
On 8/15/2023 9:27 PM, Pablo Rodriguez wrote: On 8/15/23 19:08, Hans Hagen wrote: [...] The units starting with 'u' are considered user units but be carefulk with other combinations as we have (and will have more) built into context ones, like pi : pi for Mikael ft : foot for Alan fs : (global

[NTG-context] itemize

2023-08-15 Thread Hans Hagen via ntg-context
Hi, There has been some additions to itemize wrt columns. One problem with columns is that we have a 'cross page' and 'balancing' situation. The existing columns features has been improved a bit. That leaves the problem that mixing single and multi columns is not really tex's strong point.

[NTG-context] itemize

2023-08-15 Thread Hans Hagen via ntg-context
Hi, There has been some additions to itemize wrt columns. One problem with columns is that we have a 'cross page' and 'balancing' situation. The existing columns features has been improved a bit. That leaves the problem that mixing single and multi columns is not really tex's strong point.

[NTG-context] Re: [ odd spacing ]

2023-08-15 Thread Hans Hagen via ntg-context
On 8/15/2023 9:13 PM, vm via ntg-context wrote: Placing identical images in a n x m grid shows extra space every two rows. you're missing \startcaption \stopcaption after each content section and have one content too many Also the vertical and horizontal spaces are different. There is

[NTG-context] Re: Very strange error:

2023-08-14 Thread Hans Hagen via ntg-context
On 8/14/2023 11:24 PM, Xavier B. wrote: Thanks, Rik, for the comment. You're right. Note that I've never been aware of such requirement because always in MKIV I use \head without \par. @all, please comment it out this behaviour in somewhere. The weak point of context is documentation: wiki is

[NTG-context] Re: Why overbar is so big

2023-08-14 Thread Hans Hagen via ntg-context
On 8/14/2023 9:13 AM, Xavier B. wrote: It does not work: \directlua{ 34require "lualibs-os" 35 >> tex.sprint(math.floor(os.resultof("git log --pretty=oneline | wc -l")+1))} What do you run directlua in LMTX? in this case, what does does lualibs-os provide? os.resultof is built

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-13 Thread Hans Hagen via ntg-context
On 8/13/2023 12:56 AM, Hamid,Idris wrote: On Aug 12, 2023, 4:20 PM -0600, Hans Hagen , wrote: btw, no need for squeezine as there are virtual commands for scaling; not for rotating From your original CLD template: local function topthing(characters,target,base,accent) --if not

[NTG-context] Re: Why overbar is so big

2023-08-13 Thread Hans Hagen via ntg-context
On 8/13/2023 9:08 AM, Xavier B. wrote: So, Finally is it a bug in MKIV? It seems you fix some kind of bug in your messages. Is it true? Not really. It's a a bug in the fonts (that will stay if only for compaibility reasons). There is a catch in mkiv that compensates for it but only when

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hans Hagen via ntg-context
On 8/12/2023 8:05 PM, Hamid,Idris wrote: On Aug 12, 2023, 9:35 AM -0600, Hans Hagen , wrote: ** Caution: EXTERNAL Sender ** On 8/12/2023 4:03 PM, Hamid,Idris wrote: \tfx causes a switch to computer modern. Indeed. Something I need to discuss with Wolfgang as double checking is needed before

[NTG-context] Re: Pass string into text background graphic

2023-08-12 Thread Hans Hagen via ntg-context
On 8/12/2023 7:19 PM, Thangalin wrote: Thanks Hans. The \newinteger approach would always increment the value, regardless of conditionals within the MetaPost code (i.e., it was like legend := "\ConcurrentTextGet" would always invoke the macro just be referencing the MPgraphic and nothing would

[NTG-context] Re: Why overbar is so big

2023-08-12 Thread Hans Hagen via ntg-context
On 8/12/2023 10:10 AM, Xavier B. wrote: The font is the default: \setupbodyfont [modern, 12pt] % modern o cmr, 11pt I use Linux (arch derivative). if you want nicer math switch over to lmtx as mkiv is sort of frozen and efforts wrt math go into lmtx Hans

[NTG-context] Re: Why overbar is so big

2023-08-12 Thread Hans Hagen via ntg-context
On 8/12/2023 11:46 AM, Wolfgang Schuster wrote: Hans Hagen via ntg-context schrieb am 12.08.2023 um 11:13: On 8/12/2023 10:10 AM, Xavier B. wrote: The font is the default: \setupbodyfont [modern, 12pt] % modern o cmr, 11pt I use Linux (arch derivative). Looks ok here (see atached). Does

[NTG-context] Re: Why overbar is so big

2023-08-12 Thread Hans Hagen via ntg-context
On 8/12/2023 10:10 AM, Xavier B. wrote: The font is the default: \setupbodyfont [modern, 12pt] % modern o cmr, 11pt I use Linux (arch derivative). Looks ok here (see atached). Does the modern-math.lfg file have: AccentTopShiftUp = -60,

[NTG-context] Re: xml: matches always child of other element

2023-08-10 Thread Hans Hagen via ntg-context
Hi Denis, Ok, after a bit of more testing I can now come up with another example. The version using startstop works, but with the normal command, I'm always getting back the content of the first element. I thought it might be an expansion issue, but \expanded and also expansion=yes or

[NTG-context] Re: upload

2023-08-10 Thread Hans Hagen via ntg-context
On 8/10/2023 3:52 PM, Wolfgang Schuster wrote: Henning Hraban Ramm schrieb am 10.08.2023 um 15:33: I was already on the latest, and the problem persists. Here’s a MWE: """ \setupreferencing[left=,right=,] \starttext \about[something] \stoptext """ It's unrelated to \about. Using nothing

[NTG-context] Re: Map XML attributes to variables, dynamically

2023-08-10 Thread Hans Hagen via ntg-context
On 8/10/2023 10:50 AM, Hans Hagen via ntg-context wrote: On 8/10/2023 10:37 AM, Hans Hagen wrote: On 8/10/2023 10:14 AM, Thangalin wrote: Here's an MWE: attached the more final version

[NTG-context] Re: Map XML attributes to variables, dynamically

2023-08-10 Thread Hans Hagen via ntg-context
On 8/10/2023 10:37 AM, Hans Hagen wrote: On 8/10/2023 10:14 AM, Thangalin wrote: Here's an MWE: % SOT \startbuffer[demo] Text Goes Here Different Text Goes Here \stopbuffer \startxmlsetups xml:xhtml    \xmlsetsetup{\xmldocument}{*}{-}    \xmlsetsetup{\xmldocument}{html|body}{xml:*}   

[NTG-context] Re: Tracker for hyphens at the end of lines

2023-08-09 Thread Hans Hagen via ntg-context
On 8/9/2023 12:10 PM, denis.ma...@unibe.ch wrote: Keith, you can also check hyphenations using a script: -- check-hyphens.lua --[[ analyze hyphenations based on a ConTeXt log file enable hyphenation tracking in the ConTeXt file with \enabletrackers[hyphenation.applied] then

[NTG-context] Re: Triaging tikz error: Cannot parse this coordinate

2023-08-09 Thread Hans Hagen via ntg-context
On 8/9/2023 1:00 PM, Xavier B. wrote: Yes. The problem is syntactic: with \startscope[shift={(\p)}] it works. that's one way to look at it, kind of like (10,20) shifted (10,100) which looks somewhat weird (does {\p} actually work?) one can wonder why the coordinate is not

[NTG-context] Re: Triaging tikz error: Cannot parse this coordinate

2023-08-08 Thread Hans Hagen via ntg-context
On 8/8/2023 8:59 PM, Xavier B. wrote: First of all, thanks, Hans for the answer. I just do want others do [1] and it seems to work. What's my error here? it looks like tikz expects shift={(a,b)} so with a brace but not a macro inside as it does not expand the value; it sees \p and not the

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

2023-08-08 Thread Hans Hagen via ntg-context
On 8/8/2023 11:19 AM, Otared Kavian wrote: On 7 Aug 2023, at 20:25, Henning Hraban Ramm wrote: […] The TeX community, mostly consisting of LaTeX users, is joking about LaTeX vs. latex all the time. At least the part of the community that meets at open source conferences and hacker camps.

  1   2   3   4   5   6   7   8   9   10   >