[NTG-context] simpleslides module for LMTX
Hi y’all, I took over maintenance for the simpleslides module and fixed most problems with LMTX. You can download it here: https://codeberg.org/fiee/context-simpleslides/archive/v2022.07.13.zip I’ll also publish it on modules.contextgarden.net and CTAN ASAP. BTW I left Github for political reasons, you can also find my other ConTeXt stuff at https://codeberg.org/fiee/ 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] MP scratch counter
On 7/13/2022 10:58 PM, Henning Hraban Ramm via ntg-context wrote: Am 13.07.22 um 22:33 schrieb Hans Hagen via ntg-context: in mlib-int.lmt change this: registerdirect("PageNumber", function() return getcount("userpageno") end) (beware it's there twice - i'll fix that) btw, normally you would use RealPageNumber for such a counter Thank you, I just replaced all occurrences of PageNumber with RealPageNumber, and it works. This seems to have changed within the last few years, though. Not really ... what did change was the gleu between tex - lua - mp (way more efficient and direct) and 'pageno' is some old plain thing, we have userpageno ... so user interface wise it's all the same (maybe some more actuall). What did change was the adapation to even /odd pages for which one had to do some swapping in the mp code and which is now more automatic 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] MP scratch counter
Am 13.07.22 um 22:33 schrieb Hans Hagen via ntg-context: in mlib-int.lmt change this: registerdirect("PageNumber", function() return getcount("userpageno") end) (beware it's there twice - i'll fix that) btw, normally you would use RealPageNumber for such a counter Thank you, I just replaced all occurrences of PageNumber with RealPageNumber, and it works. This seems to have changed within the last few years, though. 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] MP scratch counter
On 7/13/2022 8:14 PM, Henning Hraban Ramm via ntg-context wrote: Hi y’all, this is a scratch counter from the simpleslides module. It doesn’t work any more (always shows max-1), and I guess it used to. What’s wrong? Hraban """ \startuseMPgraphic{MP:ornament} StartPage ; save a,b ; numeric a,b ; a = 7mm ; b = PaperWidth/2 - NOfPages * 2.5pt ; save p,q; path p,q ; p =((0,5mm) -- (1mm,11mm)) shifted (b,0) ; q =((-8mm,5mm) -- (0,11mm) ) shifted (b,0) ; pickup pencircle scaled 3pt ; for i := NOfPages-1 downto 1: draw (if i mod 5 = 0 : q else : p fi) shifted (i*5pt, 0pt) withcolor if i < PageNumber : red else : black fi ; endfor ; StopPage ; \stopuseMPgraphic \defineoverlay[background:ornament][\useMPgraphic{MP:ornament}] \setupbackgrounds[page][background={background:ornament}] \setupbodyfont[ss,18pt] \starttext \dorecurse{10}{ \strut\par \page } \stoptext in mlib-int.lmt change this: registerdirect("PageNumber", function() return getcount("userpageno")end) (beware it's there twice - i'll fix that) btw, normally you would use RealPageNumber for such a counter 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] MP scratch counter
Hi y’all, this is a scratch counter from the simpleslides module. It doesn’t work any more (always shows max-1), and I guess it used to. What’s wrong? Hraban """ \startuseMPgraphic{MP:ornament} StartPage ; save a,b ; numeric a,b ; a = 7mm ; b = PaperWidth/2 - NOfPages * 2.5pt ; save p,q; path p,q ; p =((0,5mm)-- (1mm,11mm)) shifted (b,0) ; q =((-8mm,5mm) -- (0,11mm) ) shifted (b,0) ; pickup pencircle scaled 3pt ; for i := NOfPages-1 downto 1: draw (if i mod 5 = 0 : q else : p fi) shifted (i*5pt, 0pt) withcolor if i < PageNumber : red else : black fi ; endfor ; StopPage ; \stopuseMPgraphic \defineoverlay[background:ornament][\useMPgraphic{MP:ornament}] \setupbackgrounds[page][background={background:ornament}] \setupbodyfont[ss,18pt] \starttext \dorecurse{10}{ \strut\par \page } \stoptext """ ___ 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 math additional requirement for font definitions
Dear list, I've come across that the new math (which by the way looks really nice) requires some additional properties to be set in the font definition. If I take the example file provided by Mikael and add the following lines \usetypescriptfile[alegreya] \setupbodyfont[alegreya,11pt] It fails with the following error message: "tex error on line 16 in file /Users/aleks/Desktop/Test Context/someformulas.tex: Math error: parameter 'limitbelowbgap' with id 36 in style 0 is not set" Libertinus works fine by adding the following two lines \usetypescriptfile[libertinus] \setupbodyfont[libertinus,11pt] Could someone enlighten me? The font definition file is attached. BR, Alex type-imp-alegreya.mkiv Description: Binary data ___ 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] Bug in placeformula
Hi Mikael, Thank you for your reply. For the time being I am not in a hurry to solve the issue with placeformula (when the numbers are on the right, there is no problem…). Best regards: Otared > On 12 Jul 2022, at 23:08, Mikael Sundqvist via ntg-context > wrote: > […] > > Thanks for reporting! We must have missed this one while testing. It > should be fixed. > > If you for the moment can live without splitting, then this seems to > give you the formula number where expected: > > \placeformula > \startformula[location=left,split=no,numberlocation=overlay] > a^2 + b^2 = c^2. > \stopformula > > (or put the keys in \setupformula) > > I hope it helps. > > /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] regular online meet-up
Reminder: It’s today! See you! Am 11.07.22 um 21:55 schrieb Henning Hraban Ramm via ntg-context: You’re invited to join this Wednesday, July 13th, 15:00 CEST (UTC+2) at https://lecture.senfcall.de/hen-rbr-rku-oke ConTeXt users of all levels are welcome! Hans will probably give a Q session again – please announce subjects you’d like to discuss ASAP, so that he can prepare. (I guess we’ll get to see some more math magic...) (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, 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 ___