[NTG-context] Re: Space after hyphen in exported html

2025-07-24 Thread Florent Michel
Thanks again for that, Hans! Much appreciated! On Thu, 24 Jul 2025, 13:09 Hans Hagen via ntg-context, wrote: > On 7/22/2025 2:25 PM, Florent Michel wrote: > > Hi again, > > > > In case someone else is wondering, it looks > > like \setupalign[stretch,fullhz] prevents

[NTG-context] Re: Space after hyphen in exported html

2025-07-22 Thread Florent Michel
Hi again, In case someone else is wondering, it looks like \setupalign[stretch,fullhz] prevents breaks after hyphens in the examples I've tried. Cheers, Florent Le mar. 22 juil. 2025 à 08:54, Florent Michel a écrit : > Hi, > > Thanks a lot Hans and everyone who has worked on

[NTG-context] Space after hyphen in exported html

2025-07-22 Thread Florent Michel
Hi, Thanks a lot Hans and everyone who has worked on it for the new upload! >From what I can tell from my few projects, math in HTML export seems to have significantly improved. I have just noticed what seems to be a small issue with hyphenated words in the HTML export: an extra space is added wh

[NTG-context] Frame/hrules around column content

2025-07-15 Thread Florent Michel
Hi, I have encountered another issue with columns: it seems that in some cases the height of the content is not entirely accounted for. From the small experiments I made, the problem seems to only occur when the content of the left column is larger than the content of the right one by a fraction o

[NTG-context] Re: Vertical alignment and columns

2025-07-15 Thread Florent Michel
Hi Mikael, Thanks a lot for your reply! Yes, using \startboxedcolumns ... \stopboxedcolums gives (as far as I can see) a consistent alignment. Cheers, Florent On Tue, 15 Jul 2025, 12:14 Mikael Sundqvist, wrote: > Hi, > > Just guessing: Does \startboxedcolumns ... \stopboxedcolumns work? > > /

[NTG-context] Vertical alignment and columns

2025-07-15 Thread Florent Michel
Hi! I've encountered a (to me) unexpected behaviour with the columns environment: the vertical alignment looks slightly different depending on whether the text fits on a single column or not. The following example demonstrates this behaviour (ConTeXt LMTX version 2025.07.08 17:48 on a 64-bits Linu

[NTG-context] Re: no list method for \placecombinedlist[content]

2025-07-08 Thread Florent Michel
Thanks a lot Wolfgang and Hans for your replies! Your suggested change seems to solve the issue on my side (64-bits Linux system). Best regards, Florent Le mar. 8 juil. 2025 à 15:51, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> a écrit : > Am 08.07.2025 um 15:57 schrieb Flore

[NTG-context] Re: no list method for \placecombinedlist[content]

2025-07-08 Thread Florent Michel
> Le mar. 8 juil. 2025 à 14:39, Hans Hagen via ntg-context < ntg-context@ntg.nl> a écrit : > On 7/8/2025 5:48 AM, jbf wrote: > > Strange issue that has just happened. I updated the latest ConTeXt > > [ConTeXt ver: 2025.07.07 23:34 LMTX fmt: 2025.7.8 ] and for some > > reason \placecombinedlist[c

[NTG-context] Re: Custom background color for \framed inside lmt_text

2025-07-02 Thread Florent Michel
Ah, indeed that's much more practical than computing the ratios explicitly! Thank you Wolfgang! On Wed, 2 Jul 2025, 18:50 Wolfgang Schuster, < wolfgang.schuster.li...@gmail.com> wrote: > Am 02.07.2025 um 14:50 schrieb Florent Michel: > > Hi, > > > > In addition to

[NTG-context] Re: Custom background color for \framed inside lmt_text

2025-07-02 Thread Florent Michel
Hi, In addition to Mikael's solution, defining the color using the ConTeXt function \definecolor seems to work: \starttext \definecolor[rose_color_ctx][r=.99609375,g=.796875,b=.99609375] \startMPcode color rose_color; rose_color = 1/256(255,204,255); %now working draw lmt_text [text ="\framed

[NTG-context] Re: Aligning sub- and superscripts

2025-04-24 Thread Florent Michel
Thanks a lot Hans for the explanation! Cheers, Florent Le jeu. 24 avr. 2025 à 10:53, Hans Hagen a écrit : > On 4/24/2025 11:27 AM, Florent Michel wrote: > > > \starttext > >$T^a_b^c$ > >$T^a{}_b{}^c{}$ > > \stoptext > > > > produces (unles

[NTG-context] Re: Aligning sub- and superscripts

2025-04-24 Thread Florent Michel
tion 2.7 in > https://www.pragma-ade.com/general/manuals/mathincontext-screen.pdf > help you? > > /Mikael > > On Thu, Apr 24, 2025 at 11:29 AM Florent Michel > wrote: > > > > Hi, > > > > I was going through the ‘Mathematics/Mathematical glyphs’ sectio

[NTG-context] Aligning sub- and superscripts

2025-04-24 Thread Florent Michel
Hi, I was going through the ‘Mathematics/Mathematical glyphs’ section of the wiki. Unless I am missing something, the first method proposed in the section ‘Subscript and superscript’ ( https://wiki.contextgarden.net/Mathematics/Mathematical_glyphs#Subscript_and_superscript) to align sub- and super

[NTG-context] Re: outlinetext, fractions, and square roots

2025-02-20 Thread Florent Michel
Hi Hans, Thanks a lot for that! I confirm that these methods, along with the change in mlib-fnt.lmt you suggested, work perfectly. Cheers, Florent Le jeu. 20 févr. 2025 à 08:42, Hans Hagen a écrit : > On 2/19/2025 10:23 PM, Florent Michel wrote: > > Hi, > > When experimenting w

[NTG-context] outlinetext, fractions, and square roots

2025-02-19 Thread Florent Michel
Hi, When experimenting with outlinetext, I found it generally works well for both text and equations but seems to fail for fractions or square roots. The code below demonstrates the issue: \startMPpage draw outlinetext("$\frac{1}{\sqrt{2}}$"); \stopMPpage __

[NTG-context] Re: Invalid href in ToC in exported html

2025-02-16 Thread Florent Michel
févr. 2025 à 21:39, Florent Michel a écrit : > Hi, > > It seems (unless I am missing something) that hyperlinks in the table of > contents for the exported html are incorrect when `reference` is set. > > Minimal(-ish) working example: > _

[NTG-context] Invalid href in ToC in exported html

2025-02-12 Thread Florent Michel
Hi, It seems (unless I am missing something) that hyperlinks in the table of contents for the exported html are incorrect when `reference` is set. Minimal(-ish) working example: _ \setupbackend[export=yes] \setupinteraction[state=start] \starttext \placecontent

[NTG-context] Re: error in metafun of context version 2025.02.04

2025-02-08 Thread Florent Michel
kael > > On Fri, Feb 7, 2025 at 10:34 AM Florent Michel > wrote: > >> Hi, >> >> On a related note, the second example from >> https://wiki.contextgarden.net/Command/startuniqueMPgraphic seems to >> have a similar issue, although it seems to work fine after

[NTG-context] Re: error in metafun of context version 2025.02.04

2025-02-07 Thread Florent Michel
Hi, On a related note, the second example from https://wiki.contextgarden.net/Command/startuniqueMPgraphic seems to have a similar issue, although it seems to work fine after replacing xyscaled (\overlaywidth, \overlayheight) with xyscaled (OverlayWidth, OverlayHeight) Best regards, Floren

[NTG-context] Re: images with alt text

2025-02-06 Thread Florent Michel
t; > > > Am 06.02.2025 um 13:06 schrieb Steffen Wolfrum : > > When running the test with an older (2022.07.06 21:42) LMTX > and opening the PDF with Acrobat Reader, checking the Document Properties > “Tagged PDF?” it says “Yes”! > > Steffen > > > Am 06.02.2025 um

[NTG-context] Re: images with alt text

2025-02-06 Thread Florent Michel
er and checking the Document > Properties “Tagged PDF?” it says “No”. > (Even though it is recognised as PDF/A) > > Steffen > > > Am 04.02.2025 um 16:40 schrieb Florent Michel : > > Hi, > > It seems that the accessibility page has moved here: > https://wiki.cont

[NTG-context] Re: images with alt text

2025-02-04 Thread Florent Michel
Hi, It seems that the accessibility page has moved here: https://wiki.contextgarden.net/Input_and_compilation/Accessibility . Maybe the last example is suitable? (It seems to correctly embed the alt text in the pdf; this can be checked by using the `--nocompression` flag and opening the resulting

[NTG-context] Re: Functional shading with MetaPost / MetaFun

2025-01-09 Thread Florent Michel
effect in MetaPost? Here are two screenshots to whos the difference: https://imgur.com/a/SlJ4BiE Thank you also for pointing me to the test suite! It seems to have many useful examples! Cheers, Florent On Fri, Jan 10, 2025, 00:17 Hans Hagen wrote: > On 1/9/2025 10:44 PM, Florent Michel

[NTG-context] Functional shading with MetaPost / MetaFun

2025-01-09 Thread Florent Michel
Hi, I was trying to see if I could use MetaFun / MetaPost as my main tool for generating figures. I really like its close integration with ConTeXt, speed, and expressivity making it, even for a beginner like me, a pleasure to work with. One difficulty I encountered is for generating 2D functiona

[NTG-context] Re: You can't use '\prevdepth' in restricted horizontal mode

2025-01-03 Thread Florent Michel
Dear Dalyoung, I am not sure what the issue is; but as a workaround it seems that using \ctxlua works: ___ \starttext \startluacode function makeHead(a) local n = #a context.HL() for i = 1, n do context.NC() context(a[i])

[NTG-context] Re: [ scaling colors ]

2025-01-01 Thread Florent Michel
Hi, It seems to work when defining a color as described in https://wiki.contextgarden.net/Color_in_MetaPost , if that's an option: \startMPcode color MyColor ; MyColor = (.5, .25, .25) ; fill fullsquare xyscaled (40mm, 15mm) withcolor MyColor ; fill

[NTG-context] Re: Row span in tabulate

2024-12-29 Thread Florent Michel
\NC\AR \HL \stoptabulate } \stoptext _ Best regards, Florent Le dim. 29 déc. 2024 à 09:58, Jeong Dal via ntg-context a écrit : > Dear Florent Michel, > > Thank you for the checking. > As you said, using \starttabulate … \sto

[NTG-context] Re: Row span in tabulate

2024-12-29 Thread Florent Michel
Hi, Not sure whether that's the best solution or not, but your example seems to work on my side if I replace \starttable with \starttabulate and \stoptable with \stoptabulate as follows: _ \startuseMPgraphic{recBox}{w,h,sx,sy,lColor

[NTG-context] Issues with included images on some epub readers

2024-12-28 Thread Florent Michel
Hi, I'm not sure whether the following is an issue with ConTeXt or with the epub readers I'm using; my apologies for the noise if it's not relevant to this list! I was experimenting creating ebooks with ConTeXt, and found it works very well on most epub readers (except with Calibre, as was previo

[NTG-context] Issue loading an otf variable font

2024-12-18 Thread Florent Michel
Hi, I was experimenting with variable fonts in ConTeXt. While all seems to work well when using a ttf font (like Recursive_VF_1.085.ttf), I am struggling to use .otf ones, like the Source Code Pro (downloaded from https://github.com/adobe-fonts/source-code-pro/releases/tag/2.042R-u%2F1.062R-i%2F1.

[NTG-context] Re: Line break after a Metapost picture at start of paragraph

2024-11-29 Thread Florent Michel
you will be fine. There is something to read about it here: > > https://wiki.contextgarden.net/Unexpected_behavior > > /Mikael > > On Fri, Nov 29, 2024 at 10:11 AM Florent Michel > wrote: > > > > Hi, > > > > I have just encountered a (to me) slightly

[NTG-context] Line break after a Metapost picture at start of paragraph

2024-11-29 Thread Florent Michel
Hi, I have just encountered a (to me) slightly surprising behaviour in ConTeXt LMTX 2024.10.31: there seems to be an automatic line break after a Metapost picture if it is at the start of a paragraph. Here is a simple example showing this behaviour: ---

[NTG-context] Re: Background colour in PDF with export activated

2024-11-20 Thread Florent Michel
Le mer. 20 nov. 2024 à 17:09, Henning Hraban Ramm a écrit : > Why don’t use use a mode? > \startmode[export] > \setupbackend[export=yes] > \stopmode > > Then you can call "context --mode=export" etc. > Thanks a lot for that, Henning! It indeed works perfectly! Le mer. 20 nov. 2024 à 17:15, Wolf

[NTG-context] Background colour in PDF with export activated

2024-11-20 Thread Florent Michel
Hi, I'm having issues generating PDF files with a coloured background when export is set to ‘yes’. Minimal example: \setupbackend[export=yes] \setupbackgrounds [page] [background=color,backgroundcolor=black] \starttext \startcolor[white] test \stoptext This example seems to work as expected whe

[NTG-context] Re: Hyphenated word in html export

2024-11-07 Thread Florent Michel
Thank you Rik! I confirm this works, both on my minimal example and longer document. On Fri, Nov 8, 2024, 02:51 Rik Kabel wrote: > On 2024-11-07 17:56, Florent Michel wrote: > > Apologies for the double email. > > I raised just after sending the previous one that using the

[NTG-context] Re: Hyphenated word in html export

2024-11-07 Thread Florent Michel
Apologies for the double email. I raised just after sending the previous one that using the ‘proper’ utf-8 hyphen character (0x2010) instead of 0x002d solves the issue. I'd be interested to hear if someone has an easier-to-type solution, though. Le jeu. 7 nov. 2024 à 22:35, Florent Mich

[NTG-context] Hyphenated word in html export

2024-11-07 Thread Florent Michel
Hello, Is there a way to preserve hyphenated words in the html export? When exporting a document with ConTeXt, hyphens in the middle of words seem to be replaced by soft hyphens, which are not displayed by my web browser. Minimal example: \setupbackend[export=yes] \starttext co-worker \stoptext

[NTG-context] Re: (ConTeXt LMTX) (Beginner) how do i set up vertical CJK?

2024-10-07 Thread Florent Michel
Hi, Out of curiosity, I tried compiling the followingup manual with ConTeXt LMTX 2024.09.25. I did not check the whole manual, but section 6 seems to render fine as far as I can tell, up to two small issues (not sure whether they are due to changes in ConTeXt or to font issues on my side): * I ha

[NTG-context] Re: Example for switching page numbering from roman to numeric in PDF outline

2024-09-25 Thread Florent Michel
Wed, Sep 25, 2024 at 3:52 AM Florent Michel > wrote: > > > > Hi, > > > > After looking at it a bit more, one solution can be found in the > accepted answer to this question: > https://tex.stackexchange.com/questions/108676/page-numbers-roman-number-and-arabi

[NTG-context] Re: Example for switching page numbering from roman to numeric in PDF outline

2024-09-24 Thread Florent Michel
19:50, Florent Michel a écrit : > Hi, > > I do not know how to do that properly (if someone has a solution, I'd also > be interested), but here is something which seems to give a partial > solution: > > ``` > \usemodule[ipsum] > > \starttext > > \placecontent >

[NTG-context] Re: Example for switching page numbering from roman to numeric in PDF outline

2024-09-24 Thread Florent Michel
Hi, I do not know how to do that properly (if someone has a solution, I'd also be interested), but here is something which seems to give a partial solution: ``` \usemodule[ipsum] \starttext \placecontent \section{Section 1} \dorecurse {6} \ipsum \pagebreak \section{Section 2} \def\romanpag

[NTG-context] Re: Envelopes and shaded paths

2024-09-21 Thread Florent Michel
Apologies for the double email. Seems I slightly misunderstood what you aimed for - the corrected (assuming there is no other misunderstanding from me) is: \startMPpage pair A,B; path p, psubPath, asPathEnvelope; A = (0cm,0cm);B = (5cm,0cm); p = A{dir 60} .. B; fill fullsquare scaled 12cm withcolo

[NTG-context] Re: Envelopes and shaded paths

2024-09-21 Thread Florent Michel
Hi, It's probably not the best solution as it uses the ‘old’ shading method, but seems to give the result you were expecting: \startMPpage pair A,B; path p, psubPath, asPathEnvelope; A = (0cm,0cm);B = (5cm,0cm); p = A{dir 60} .. B; fill fullsquare scaled 12cm withcolor 0.5[blue,white]; for i = 0

[NTG-context] Inline equations and html export

2024-09-18 Thread Florent Michel
Hello, Thanks Hans and everyone who has worked on it for the new upload! I have noticed a change which seems to break XML/html export for inline equations; although I don't know if the issue is with the new version or with how I'm using it. Minimal example: ``` \setupbackend[export=yes] \setupex

[NTG-context] Re: Calling C code from ConTeXt LMTX

2024-09-16 Thread Florent Michel
oject or a future one! Best regards, Florent Le lun. 16 sept. 2024 à 13:08, Bruce Horrocks a écrit : > On 16 Sep 2024, at 12:15, Henning Hraban Ramm wrote: > > > > Am 16.09.24 um 12:59 schrieb Bruce Horrocks: > >>> On 15 Sep 2024, at 22:11, Florent Michel > wrote

[NTG-context] Re: Calling C code from ConTeXt LMTX

2024-09-15 Thread Florent Michel
: > > > > On 14 Sep 2024, at 21:46, Florent Michel wrote: > > > > TL;DR: Could building LuaMetaTeX with the `-fPIC` flag for the Lua > library have negative consequences? Is there a better way to be able to > call external C functions from ConTeXt? > > Thi

[NTG-context] Re: Interline spacing in tabulate paragraphs

2024-09-15 Thread Florent Michel
Thank you Wofgang for the clarification and information! (And indeed using 4ex makes more sense than my 2em! I must be too used to systems which don't define ex...) Best regards, Florent Le dim. 15 sept. 2024 à 18:14, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> a écrit :

[NTG-context] Re: Interline spacing in tabulate paragraphs

2024-09-15 Thread Florent Michel
Hello, It's probably not the best solution, but it seems to work on my side if I replace `big` by `2em`; see code below. ``` \startdocument \setupinterlinespace[2em] \input dijkstra \starttabulate[|k0r|k0xp|][EQ={---}] \NC Word \EQ definition; \NC\AR \NC Important word \EQ \input dijkstra \NC

[NTG-context] Calling C code from ConTeXt LMTX

2024-09-14 Thread Florent Michel
Hello, TL;DR: Could building LuaMetaTeX with the `-fPIC` flag for the Lua library have negative consequences? Is there a better way to be able to call external C functions from ConTeXt? I am working on a small project where it would be convenient to call functions written in C (possibly pre-compi

[NTG-context] Re: Breakable tcolorbox in ConTeXt

2024-08-11 Thread Florent Michel
Thank you very much Hans for your clear and detailed reply! I can confirm that this resolves my issue - and I really like the flexibility that this syntax provides! Best regards, Florent Le dim. 11 août 2024 à 12:18, Hans Hagen via ntg-context a écrit : > On 8/11/2024 11:24 AM, Florent Mic

[NTG-context] Breakable tcolorbox in ConTeXt

2024-08-11 Thread Florent Michel
Hi, I am trying to reproduce the behaviour of the tcolorbox LaTeX package, more specifically breakable boxes (as illustrated here: https://tex.stackexchange.com/a/676607/123770). It works nicely out of the box (pun intended) using `\definetextbackground` and drawing the frame with MetaPost, using