[NTG-context] Re: increase vertical between underbrace and equation
Thank you, Wolfgang! On Mon, Dec 18, 2023 at 3:13 PM Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Aditya Mahajan schrieb am 18.12.2023 um 21:55: > > On Mon, 18 Dec 2023, Aditya Mahajan wrote: > > > >> On Mon, 18 Dec 2023, Dean Hung wrote: > >> > >>> The documentation on underbrace (and overbrace, underbracket, etc...) > in > >>> the ContextGarden wiki seems to be very limited, and I was not able to > find > >>> any user-supplied arguments for increasing this vertical distance. > >>> > >>> There are various solutions available for LaTex, and they require > external > >>> packages (e.g., BigStrut, vphantom) that redefine the strut height. > >>> > >>> I hope I'm missing something simple... Any help would be greatly > >>> appreciated! > >> Hey, this is context. We don't need any packages for simple stuff: > >> > >> \startformula > >> \underbrace[mindepth=1cm]{x+y+z}_{\mathrm{my text here}} > >> \stopformula > > Actually, realized that you want more distance in the other direction. > One option is to use \vrule. > > > > \underbrace{x+y+z}_{\vrule width 0pt height 1cm\relax\mathrm{my text > here}} > > > > You probably also want \text{...} instead of \mathrm{...}. > > \underbrace{x+y+z}_{\unframed[toffset=1cm]{my text here}} > > Wolfgang > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: increase vertical between underbrace and equation
Hi Aditya, Many thanks for the help! It works great! On Mon, Dec 18, 2023 at 2:41 PM Aditya Mahajan wrote: > On Mon, 18 Dec 2023, Dean Hung wrote: > > > Hi ConText friends, > > > > I am trying to increase the vertical distance between the underbrace and > > the part of the equation above the underbrace. > > > > \startformula > > \underbrace{x+y+z}_{\blank[1cm]\mathrm{my text here}} > > \stopformula > > > > I've tried using \blank and \vspace, but to no avail. For example: > > > > \underbrace{x+y+z}_{\blank[1cm]\mathrm{my text here}} > > ...does not work. > > > > The documentation on underbrace (and overbrace, underbracket, etc...) in > > the ContextGarden wiki seems to be very limited, and I was not able to > find > > any user-supplied arguments for increasing this vertical distance. > > > > There are various solutions available for LaTex, and they require > external > > packages (e.g., BigStrut, vphantom) that redefine the strut height. > > > > I hope I'm missing something simple... Any help would be greatly > > appreciated! > > Hey, this is context. We don't need any packages for simple stuff: > > \startformula > \underbrace[mindepth=1cm]{x+y+z}_{\mathrm{my text here}} > \stopformula > > > Aditya > > > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: increase vertical between underbrace and equation
Aditya Mahajan schrieb am 18.12.2023 um 21:55: On Mon, 18 Dec 2023, Aditya Mahajan wrote: On Mon, 18 Dec 2023, Dean Hung wrote: The documentation on underbrace (and overbrace, underbracket, etc...) in the ContextGarden wiki seems to be very limited, and I was not able to find any user-supplied arguments for increasing this vertical distance. There are various solutions available for LaTex, and they require external packages (e.g., BigStrut, vphantom) that redefine the strut height. I hope I'm missing something simple... Any help would be greatly appreciated! Hey, this is context. We don't need any packages for simple stuff: \startformula \underbrace[mindepth=1cm]{x+y+z}_{\mathrm{my text here}} \stopformula Actually, realized that you want more distance in the other direction. One option is to use \vrule. \underbrace{x+y+z}_{\vrule width 0pt height 1cm\relax\mathrm{my text here}} You probably also want \text{...} instead of \mathrm{...}. \underbrace{x+y+z}_{\unframed[toffset=1cm]{my text here}} Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: QR Code
On Mon Dec 18, 2023 at 9:35 PM CET, Pablo Rodriguez via ntg-context wrote: > On 12/18/23 20:34, Henning Hraban Ramm wrote: > > [...] > > Are you using MkIV (LuaTeX) or LMTX (LuaMetaTeX)? > > Many thanks for your reply, Hraban. > > I understood my issue with your reply (I known, your answer is intended > to Uschi). > > It is also in the sent file: > > Creator: >LuaMetaTeX 2.10.11 20230908 + ConTeXt LMTX 2023.09.26 18:19 > PDF Producer: >LuaMetaTeX-2.10.11 > > > I guess a missing EPS means you load the MkIV version of the module, > > probably because "m-zint". > > > > I can’t help with Windows; since Hans developed it on Windows, it should > > work (but don’t ask me how). > > I will try to explain what I understand from this (intended for Uschi). > > Given that there are two modules (m-zint and zint), there are two options: > > 1. Either you use the LMTX module (\usemodule[zint]) and you need the > Zint library (as explained in > https://wiki.contextgarden.net/Barcodes#Zint_module). > > 2. Or you use the MkIV module (\usemodule[m-zint]) and you need the Zint > binary installed and CMD should be able to invoke it (already knowing > its past). > > You may have the Zint binary installed, ConTeXt may be generating the > required EPS files, but either Inkscape is not installed (or its path is > unknown to the system), or ConTeXt cannot simply find where the > converted PDF versions of the zint images are. > > If I have the following source in testing-barcodes.tex: > > \usemodule[m-zint] > \starttext > \startTEXpage[offset=1dk] > \barcode[alternative=isbnx, text=9783865419026, width=4cm] > \stopTEXpage > \stoptext > > ConTeXt compiles it generating to extra files (when compared to the pure > zint module for LMTX only): > > zint-isbnx-fe90eda0e93cf020312eps > m_k_i_v_zint-isbnx-fe90eda0e93cf020312_eps_c60ccda70ef.pdf > > (Removed some characters in strings so file names fit in a single line.) > > The first file is generated by the Zint binary itself. The second one is > the automatic conversion (through Inkscape) that ConTeXt needs to embed > EPS (and SVG) files in the final PDF document. > > If m_k_i_v_zint-*.pdf files are missing, the problem might be that > Inkscape isn’t installed (or its path is unknown to the system). > > If also zint-*.eps files are missing, you should find where Zint is > generating them. I will just add to the excellent answers above, that I very much recommend LMTX and the LMTX way of using the zint _library_. I published compiled versions of zint and couple of other libraries to the optional libraries repository: https://github.com/contextgarden/luametatex-optional-libraries https://github.com/contextgarden/luametatex-optional-libraries/releases/tag/v20230902 I tested the steps on the wiki and libzint.dll works without problems: i.e. install ConTeXt, create a few folders, move the dll and mtxrun --generate. My goto document for testing zint, that went without problems (even the hexagons!): \starttext \usemodule[zint] \barcode[alternative=isbnx, text=9783865419026, width=4cm] \barcode[alternative=qrcode, text={https://wiki.contextgarden.net}, width=3cm] \barcode[alternative=maxicode, text={test}, width=3cm] \stoptext Michal PS: Coincidentally zint 2.13 has been released just today. Usually every new zint release requires an update on the ConTeXt side, but older releases still work well with ConTeXt (e.g. currently ConTeXt supports 2.10, 2.11 and 2.12). The version linked above works. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: increase vertical between underbrace and equation
On Mon, 18 Dec 2023, Aditya Mahajan wrote: > On Mon, 18 Dec 2023, Dean Hung wrote: > > > The documentation on underbrace (and overbrace, underbracket, etc...) in > > the ContextGarden wiki seems to be very limited, and I was not able to find > > any user-supplied arguments for increasing this vertical distance. > > > > There are various solutions available for LaTex, and they require external > > packages (e.g., BigStrut, vphantom) that redefine the strut height. > > > > I hope I'm missing something simple... Any help would be greatly > > appreciated! > > Hey, this is context. We don't need any packages for simple stuff: > > \startformula > \underbrace[mindepth=1cm]{x+y+z}_{\mathrm{my text here}} > \stopformula Actually, realized that you want more distance in the other direction. One option is to use \vrule. \underbrace{x+y+z}_{\vrule width 0pt height 1cm\relax\mathrm{my text here}} You probably also want \text{...} instead of \mathrm{...}. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: increase vertical between underbrace and equation
On Mon, 18 Dec 2023, Dean Hung wrote: > Hi ConText friends, > > I am trying to increase the vertical distance between the underbrace and > the part of the equation above the underbrace. > > \startformula > \underbrace{x+y+z}_{\blank[1cm]\mathrm{my text here}} > \stopformula > > I've tried using \blank and \vspace, but to no avail. For example: > > \underbrace{x+y+z}_{\blank[1cm]\mathrm{my text here}} > ...does not work. > > The documentation on underbrace (and overbrace, underbracket, etc...) in > the ContextGarden wiki seems to be very limited, and I was not able to find > any user-supplied arguments for increasing this vertical distance. > > There are various solutions available for LaTex, and they require external > packages (e.g., BigStrut, vphantom) that redefine the strut height. > > I hope I'm missing something simple... Any help would be greatly > appreciated! Hey, this is context. We don't need any packages for simple stuff: \startformula \underbrace[mindepth=1cm]{x+y+z}_{\mathrm{my text here}} \stopformula Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: QR Code
On 12/18/23 20:34, Henning Hraban Ramm wrote: > [...] > Are you using MkIV (LuaTeX) or LMTX (LuaMetaTeX)? Many thanks for your reply, Hraban. I understood my issue with your reply (I known, your answer is intended to Uschi). It is also in the sent file: Creator: LuaMetaTeX 2.10.11 20230908 + ConTeXt LMTX 2023.09.26 18:19 PDF Producer: LuaMetaTeX-2.10.11 > I guess a missing EPS means you load the MkIV version of the module, > probably because "m-zint". > > I can’t help with Windows; since Hans developed it on Windows, it should > work (but don’t ask me how). I will try to explain what I understand from this (intended for Uschi). Given that there are two modules (m-zint and zint), there are two options: 1. Either you use the LMTX module (\usemodule[zint]) and you need the Zint library (as explained in https://wiki.contextgarden.net/Barcodes#Zint_module). 2. Or you use the MkIV module (\usemodule[m-zint]) and you need the Zint binary installed and CMD should be able to invoke it (already knowing its past). You may have the Zint binary installed, ConTeXt may be generating the required EPS files, but either Inkscape is not installed (or its path is unknown to the system), or ConTeXt cannot simply find where the converted PDF versions of the zint images are. If I have the following source in testing-barcodes.tex: \usemodule[m-zint] \starttext \startTEXpage[offset=1dk] \barcode[alternative=isbnx, text=9783865419026, width=4cm] \stopTEXpage \stoptext ConTeXt compiles it generating to extra files (when compared to the pure zint module for LMTX only): zint-isbnx-fe90eda0e93cf020312eps m_k_i_v_zint-isbnx-fe90eda0e93cf020312_eps_c60ccda70ef.pdf (Removed some characters in strings so file names fit in a single line.) The first file is generated by the Zint binary itself. The second one is the automatic conversion (through Inkscape) that ConTeXt needs to embed EPS (and SVG) files in the final PDF document. If m_k_i_v_zint-*.pdf files are missing, the problem might be that Inkscape isn’t installed (or its path is unknown to the system). If also zint-*.eps files are missing, you should find where Zint is generating them. Just in case it might help, Pablo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: QR Code
Am 18.12.23 um 17:05 schrieb Ursula Hermann: Dear List After compiling \usemodule[m-zint] \starttext \barcode[alternative=isbnx, text=9783865419026, width=4cm] \blank[big] \barcode[alternative=qrcode, text={wie weet waar willem wever woont}, width=3cm] \stoptext I got , what you see in the pdf. Are you using MkIV (LuaTeX) or LMTX (LuaMetaTeX)? What’s your ConTeXt version, and how did you install it? (TeX live, Linux distribution, LMTX distribution?) I guess a missing EPS means you load the MkIV version of the module, probably because "m-zint". Is there an error message with \loadmodule[zint]? I can’t help with Windows; since Hans developed it on Windows, it should work (but don’t ask me how). Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: QR Code
On 12/18/23 17:05, Ursula Hermann wrote: > […] > I got what you see in the pdf. Hi Uschi, I‘m on Linux64 using LuaMetaTEx. Contrary to the explanation from https://wiki.contextgarden.net/Barcodes#Zint_module, I need the zint package installed on Fedora. I have safely removed the whole contents of tex/texmf-linux64/bin/lib/luametatex/lib/zint (actually, I removed tex/texmf-linux64/bin/lib). But if Zint is not installed on my system, I get a compilation error, not a simply not found error. My error message reads: sh: line 1: zint: command not found zint --barcode=isbnx --output= […] At least on Linux64, it seems that barcode generation with Zint requires its binary. For Windows, your ConTeXt distribution might be missing the library (as described in the wiki link provided). Just in case it might help, Pablo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] increase vertical between underbrace and equation
Hi ConText friends, I am trying to increase the vertical distance between the underbrace and the part of the equation above the underbrace. \startformula \underbrace{x+y+z}_{\blank[1cm]\mathrm{my text here}} \stopformula I've tried using \blank and \vspace, but to no avail. For example: \underbrace{x+y+z}_{\blank[1cm]\mathrm{my text here}} ...does not work. The documentation on underbrace (and overbrace, underbracket, etc...) in the ContextGarden wiki seems to be very limited, and I was not able to find any user-supplied arguments for increasing this vertical distance. There are various solutions available for LaTex, and they require external packages (e.g., BigStrut, vphantom) that redefine the strut height. I hope I'm missing something simple... Any help would be greatly appreciated! DY Hung ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Seeking advice for module that draws globes
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 "t-luageo.mpxl" breaks the module. I think the line \startMPdefinitions loadmodule "luageo" ; \stopMPdefinitions finds “mp-luageo” but not “t-luageo”. Changing the line to "loadmodule “t-luageo” does not work either. so how about mp-t-luageo and you can add the example to the end of the module Done. On Dec 18, 2023, at 3:08 AM, Hans Hagen via ntg-context wrote: Also, we do have a strange artifact, at least when I run this code. There is a line running across Brazil: i'm not sure where that comes from (you can try &&&) I will use &&& in my upcoming module, t-discoworld. (Drawn with eofill, for maximum grooviness.) Is there a place I can read about disconnected paths, , and &&&? These are totally unfamiliar to me. at some point in the luametafun manual and they are probabaly mentioned in some docs that describe development it's anyway something introduced last year, so kind of new 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: QR Code
On 18/12/2023 17:05, Ursula Hermann wrote: After compiling \usemodule[m-zint] \starttext \barcode[alternative=isbnx, text=9783865419026, width=4cm] \blank[big] \barcode[alternative=qrcode, text={wie weet waar willem wever woont}, width=3cm] \stoptext I got , what you see in the pdf. context 43.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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Seeking advice for module that draws globes
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 "t-luageo.mpxl" breaks the module. I think the line \startMPdefinitions loadmodule "luageo" ; \stopMPdefinitions finds “mp-luageo” but not “t-luageo”. Changing the line to "loadmodule “t-luageo” does not work either. > and you can add the example to the end of the module Done. > On Dec 18, 2023, at 3:08 AM, Hans Hagen via ntg-context > wrote: > >> Also, we do have a strange artifact, at least when I run this code. There is >> a line running across Brazil: >> > i'm not sure where that comes from (you can try &&&) I will use &&& in my upcoming module, t-discoworld. (Drawn with eofill, for maximum grooviness.) Is there a place I can read about disconnected paths, , and &&&? These are totally unfamiliar to me. Gavin___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: QR Code
Dear List After compiling \usemodule[m-zint] \starttext \barcode[alternative=isbnx, text=9783865419026, width=4cm] \blank[big] \barcode[alternative=qrcode, text={wie weet waar willem wever woont}, width=3cm] \stoptext I got , what you see in the pdf. Many Thanks Uschi -Ursprüngliche Nachricht- Von: vm via ntg-context Gesendet: Montag, 18. Dezember 2023 16:15 An: ntg-context@ntg.nl Cc: vm Betreff: [NTG-context] Re: QR Code On 18/12/2023 15:13, Ursula Hermann wrote: >> Dear List >> >> I was interested how it works. >> >> So I started this example. >> >> \starttext >> >> \usemodule[m-zint] >> >> \barcode[alternative=isbnx, text=9783865419026, width=4cm] >> >> \barcode[alternative=qrcode, text={https://wiki.contextgarden.net}, >> width=3cm] >> >> \stoptext >> >> Is that the right way? > just \usemodule[zint] For what it is worth, the [zint] variant does not work on my linux platform, the [m-zint] does work correctly. \usemodule[m-zint] \starttext \barcode[alternative=isbnx, text=9783865419026, width=4cm] \blank[big] \barcode[alternative=qrcode, text={wie weet waar willem wever woont}, width=3cm] \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___ Barcode.pdf Description: Barcode.pdf ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: QR Code
On 18/12/2023 15:13, Ursula Hermann wrote: Dear List I was interested how it works. So I started this example. \starttext \usemodule[m-zint] \barcode[alternative=isbnx, text=9783865419026, width=4cm] \barcode[alternative=qrcode, text={https://wiki.contextgarden.net}, width=3cm] \stoptext Is that the right way? just \usemodule[zint] For what it is worth, the [zint] variant does not work on my linux platform, the [m-zint] does work correctly. \usemodule[m-zint] \starttext \barcode[alternative=isbnx, text=9783865419026, width=4cm] \blank[big] \barcode[alternative=qrcode, text={wie weet waar willem wever woont}, width=3cm] \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: usage of conversion in \date
On Wed, Nov 29 2023, Peter Münster wrote: > According to https://wiki.contextgarden.net/Command/date: > "The name suffixes indicate number conversions. Any conversion, either > built-in or defined by \defineconversion, can be used there." > > But it does not seem to work... Hi, Should I add this to the bug-tracker? If yes, where please? It seems, that tracker.luatex.org is no more used. TIA, -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: QR Code
Dear Henning, I have downloaded Zint in Windows. Yes, I saw it, but I'm not sure where to write this file. I have WinEdt 11. Many thanks Uschi -Ursprüngliche Nachricht- Von: Henning Hraban Ramm Gesendet: Montag, 18. Dezember 2023 13:26 An: ntg-context@ntg.nl Betreff: [NTG-context] Re: QR Code Am 18.12.23 um 13:00 schrieb Ursula Hermann: > Dear List > > I was interested how it works. > > So I started this example. > > \starttext > > \usemodule[m-zint] > > \barcode[alternative=isbnx, text=9783865419026, width=4cm] > > \barcode[alternative=qrcode, text={https://wiki.contextgarden.net}, > width=3cm] > > \stoptext > > Is that the right way? just \usemodule[zint] This works for me: \barcode[alternative=isbn, text=9783865419026, width=5cm] \barcode[alternative=qr code, text={https://wiki.contextgarden.net}, width=2.5cm] (Not sure how tolerant the codes are.) But you must install the zint libraries, as outlined in https://wiki.contextgarden.net/Barcodes I guess you saw this, since you quote the wiki examples. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: QR Code
Dear Hraban, Many Thanks for your mail. I am sorry for asking: Where should I write this path. After the download in Windows? Uschi -Ursprüngliche Nachricht- Von: Henning Hraban Ramm Gesendet: Montag, 18. Dezember 2023 13:26 An: ntg-context@ntg.nl Betreff: [NTG-context] Re: QR Code Am 18.12.23 um 13:00 schrieb Ursula Hermann: > Dear List > > I was interested how it works. > > So I started this example. > > \starttext > > \usemodule[m-zint] > > \barcode[alternative=isbnx, text=9783865419026, width=4cm] > > \barcode[alternative=qrcode, text={https://wiki.contextgarden.net}, > width=3cm] > > \stoptext > > Is that the right way? just \usemodule[zint] This works for me: \barcode[alternative=isbn, text=9783865419026, width=5cm] \barcode[alternative=qr code, text={https://wiki.contextgarden.net}, width=2.5cm] (Not sure how tolerant the codes are.) But you must install the zint libraries, as outlined in https://wiki.contextgarden.net/Barcodes I guess you saw this, since you quote the wiki examples. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: QR Code
Am 18.12.23 um 13:00 schrieb Ursula Hermann: Dear List I was interested how it works. So I started this example. \starttext \usemodule[m-zint] \barcode[alternative=isbnx, text=9783865419026, width=4cm] \barcode[alternative=qrcode, text={https://wiki.contextgarden.net}, width=3cm] \stoptext Is that the right way? just \usemodule[zint] This works for me: \barcode[alternative=isbn, text=9783865419026, width=5cm] \barcode[alternative=qr code, text={https://wiki.contextgarden.net}, width=2.5cm] (Not sure how tolerant the codes are.) But you must install the zint libraries, as outlined in https://wiki.contextgarden.net/Barcodes I guess you saw this, since you quote the wiki examples. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] QR Code
Dear List I was interested how it works. So I started this example. \starttext \usemodule[m-zint] \barcode[alternative=isbnx, text=9783865419026, width=4cm] \barcode[alternative=qrcode, text={https://wiki.contextgarden.net}, width=3cm] \stoptext Is that the right way? Many thanks Uschi Barcode.pdf Description: Barcode.pdf ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Seeking advice for module that draws globes
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 calculates paths. These paths are passed to MetaFun, which draws the globe. 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) and you can add the example to the end of the module \continueifinputfile{t-luageo.mkxl} \starttext exaple code \stoptext and then process the module to get the example 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Seeking advice for module that draws globes
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 "" allow a disconnected path? I haven’t seen "" or a disconnected path before. Also, we do have a strange artifact, at least when I run this code. There is a line running across Brazil: I only got the line for (23,0), not for other latitude and longitude. I’m not sure what caused that. The code for cutting and mending paths that cross the horizon is tricky. I’m not sure how it will interact with "" and “cycle" connecting everything. i'm not sure where that comes from (you can try &&&) 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Problem with the paragraph
Dear Bruce, Thank you for your Mail It works perfect. Thank you . Uschi Hermann -Ursprüngliche Nachricht- Von: Bruce Horrocks Gesendet: Freitag, 15. Dezember 2023 14:00 An: ntg-context mailing list Betreff: [NTG-context] Re: Problem with the paragraph > On 14 Dec 2023, at 09:44, Ursula Hermann wrote: > > If I change the name of the textbackground with my example, I sent yesterday, > there is no color in the paragraph. > Try the following version of your example which incoporates Hraban's and Wolfgang's suggestions. Also take care over changing style so use \bold{this is bold} or {\bf this is bold} but not \bf{this is bold}. \definepapersize[MyBook][width=19cm,height=24cm] \setuppapersize[MyBook][MyBook] % Prints on paper the size of MyBook %\setuppapersize[MyBook][A4] %Would print MyBook-size pages on A4 paper \setupbodyfont[Times New Roman, 12.2pt] \definemargindata [MyInMargin][inright] \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm] \defineenumeration [theorem] [ text=Theorem, title=yes, width=fit, distance=0.2em, alternative=serried, ] \definetextbackground[GrayBackground][ location=paragraph, background=color, backgroundcolor=lightgray, leftoffset=.5\bodyfontsize, rightoffset=.5\bodyfontsize, topoffset=.5\bodyfontsize, bottomoffset=.5\bodyfontsize, frame=off,] \margintext{\blackrule[color=black, height=0.10ex, width=1cm]\\} \blackrule[color=black, height=0.10ex, width=13.50cm] \starttext \margintext {1.1.1} {\bf Beispiel 3.2.17 (Vertauschung von All- und Existenzquantor).} \par Sei M die Menge aller Männer und F die Menge aller Frauen. Die Aussage h(m, f) sei ”m ist verliebt in f“. Unter diesen Voraussetzungen machen Sie sich die Bedeutung der beiden Aussagen klar. \par \startitemize[n] \item \m{\forall m ∈ M : ∃f ∈ F : h(m, f)} \item ∃f ∈ F : ∀m ∈ M : h(m, f). \stopitemize % I changed the above to use \startitemize but have a look at \placeformula as well \startGrayBackground Mitunter ist es aus der Formulierung nur schwer zu erkennen, dass ein \m{∃\forall} oder ein \m{\forall\m∃} versteckt ist. Dann ist es besonders wichtig, die Formulierung sehr lange zu prüfen und eventuell auch formalisiert noch einmal aufzuschreiben.” \blank Der Wert von \m{y = f(x)} ist unabhängig von der Wahl\par von \m{x\doubleprime} ist gleichbedeutend mit \m{∃y : ∀x : f(x) = y} \par (Beutelspacher [10, S.54]). \stopGrayBackground \stoptext — 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: error with definestartstop and startmode
On Sun, 17 Dec 2023, Wolfgang Schuster wrote: > Peter Münster schrieb am 17.12.2023 um 10:09: > > On Sat, Dec 16 2023, Hans Hagen via ntg-context wrote: > > > >> \usemodule[abbreviations-logos] > >> \defineblock [H] [before=\startcolor[blue],after=\stopcolor] > >> \keepblocks[H] > > Thanks for this solution. > > > > Is there also something for inline-mode? Example: > > > > test \beginH TEST\endH test > > You can create different versions of your environment and let context choose > one whether the mode is enabled or disabled. > > %\enablemode[H] > > \startmode [H] > \definestartstop [H] [color=blue] > \stopmode > > \startnotmode [H] > \define\startH{\ignoreupto\stopH} > \stopnotmode > > \starttext > > xxx \startH yyy \stopH zzz > > \stoptext I do something similar: \definebuffer[H] \startmode[H] \definestartstop[H][color=blue] \stopmode Aditya___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Cron /var/www/aanhet.net/context/bin/cron/context-mirror
rsync: [Receiver] failed to connect to rsync.pragma-ade.nl (213.125.29.165): No route to host (113) rsync error: error in socket IO (code 10) at clientserver.c(139) [Receiver=3.2.7] ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___