Re: [NTG-context] installer
Am 07.05.2023 um 16:38 schrieb Hans Hagen via ntg-context : > > Hi, > > The mtx-install-tikz is now mtx-install-modules, so > > mtxrun --script install-modules > > will show what to do. By looking at > > mtxrun --script install-modules --list The installer does not work for me. context % mtxrun --script install-modules mtx-install-modules | ConTeXt Module Installer 1.00 context % mtxrun --script install-modules --list mtx-install-modules | loading entries from file '/usr/local/texlive/context/tex/texmf-context/tex/context/modules/third/mtx-install-imp-modules.lua‘ Up to here everything is fine. But when I try to install I get: context % mtxrun --script install-modules --install --all mtx-install-modules | unknown subdirectory 'texmf-context‘ I have to context % cd tex After that the installer works fine. context % mtxrun --script install-modules --install --all mtx-install-modules | loading entries from file '/usr/local/texlive/context/tex/texmf-context/tex/context/modules/third/mtx-install-imp-modules.lua‘ … mtx-install-modules | installed: account algorithmic animation annotation aquamints bibmod-doc bnf chromato cmscbf cmttbf collating crossref cyrillicnumbers degrade enigma fancybreak filter french fullpage gantt gfsdidot gm gnuplot greek grph-downsample gs high inifile karnaugh layout letter letterspace lettrine lua-widow-control mathsets metaducks pocketdiary pret-c.lua rst rsteps simplebib simplefonts simpleslides stormfontsupport sudoku taspresent texshow tikz title transliterator typearea typescripts urwgaramond urwgothic vim visualcounter I’m on macOS 11.7 using zsh, but that shouldn’t matter. Greetings Axel ___ 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] ConTeXt meeting and the annotated cow
Hello, last week I learned something about MetaPost at the context meeting. Thanks Taco! First a little background: I write a lot of documentation and sometimes I need to include a picture with annotations. Until now I used a drawing program to add text and arrows. This has one disadvantage, these annotations are not translated. I have to prepare a set of pictures for every language. Well, that changed last week. Here is my first try (actually the 4th iteration): %%% \setupexternalfigures[location=default] \starttext \startMPinclusions %draft := 0; draft := 1; color mycolor; if draft = 1 : mycolor := red ; else: mycolor := .4white ; fi ; % Draw a grid to count locations def gridscaled = pair ur; ur = urcorner currentpicture; width := xpart ur; height := ypart ur; xstep := ceiling(width / 10); ystep := ceiling(height / 10); if draft = 1: counter := 1; for i = xstep step xstep until width : draw (i, 0 ) -- (i, height); label.rt(counter, (i , 0.5 cm)); counter := counter + 1 ; endfor; counter := 1; for i = ystep step ystep until height : draw (0, i) -- (width, i); label.top(counter, (0.5 cm, i )); counter := counter + 1 ; endfor; fi; enddef; % Bottom: The annotation is at the bottom of the start point def annotb (expr a, b, c, d) (text t) = label.bot (t, (a * xstep, b * ystep)); drawarrow (a * xstep, b * ystep) -- ( c * xstep, d * ystep) withpen pencircle scaled .8mm withcolor white; drawarrow (a * xstep, b * ystep) -- ( c * xstep, d * ystep) withpen pencircle scaled .5mm withcolor mycolor; enddef ; % Top: The annotation is on top of the start point def annott (expr a, b, c, d) (text t) = label.top (t, (a * xstep, b * ystep)); drawarrow (a * xstep, b * ystep) -- ( c * xstep, d * ystep) withpen pencircle scaled .8mm withcolor white; drawarrow (a * xstep, b * ystep) -- ( c * xstep, d * ystep) withpen pencircle scaled .5mm withcolor mycolor; enddef ; % Right: The annotation is on the right of the start point def annotr (expr a, b, c, d) (text t) = label.rt (t, (a * xstep, b * ystep)); drawarrow (a * xstep, b * ystep) -- ( c * xstep, d * ystep) withpen pencircle scaled .8mm withcolor white; drawarrow (a * xstep, b * ystep) -- ( c * xstep, d * ystep) withpen pencircle scaled .5mm withcolor mycolor; enddef ; % Left: The annotation is on the left of the start point def annotl (expr a, b, c, d) (text t) = label.lft (t, (a * xstep, b * ystep)); drawarrow (a * xstep, b * ystep) -- ( c * xstep, d * ystep) withpen pencircle scaled .8mm withcolor white; drawarrow (a * xstep, b * ystep) -- ( c * xstep, d * ystep) withpen pencircle scaled .5mm withcolor mycolor; enddef ; \stopMPinclusions \startMPpage % Picture draw externalfigure "cow.pdf" xsized 16cm; % Grid gridscaled; % Text annotb (1, 5, .8, 7.3, "Maul"); annotb (6, 2, 7, 3.2, "Euter"); annott (9.2, 9.5, 9.6, 3, "Schwanz"); annotb (3, -.5, 3.1, .9, "Huf"); annotb (3, -.5, 3.9, 1.1, ""); \stopMPpage \startMPpage % Picture draw externalfigure "cow.pdf" xsized 10cm; % Grid gridscaled; % Text annotb (1, 5, .8, 7.3, "Maul"); annotb (6, 2, 7, 3.2, "Euter"); annott (9.2, 9.5, 9.6, 3, "Schwanz"); annotb (3, -.5, 3.1, .9, "Huf"); annotb (3, -.5, 3.9, 1.1, ""); \stopMPpage \stoptext %%% There are still some further ideas and a lot to learn for me: - multi line annotations - a transparent white background - a frame around the text - a link to the section where the part is explained - moving to one command with the orientation as an argument Comments and improvements are welcome. Greetings Axel ___ 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] LMTX and modules
Hello, Some years ago I wrote an introduction to ConTeXt in German: https://github.com/AKielhorn/Context-Intro But that was long ago. Today LMTX is state of the art and I tried to build it with a recent LMTX. This lead to problems because LMTX does not include modules. Therefore my question is: Is the a plan to include modules into the regular LMTX installation? If not, is there a way to test for a certain module? \doiffileexists{m-module} \usemodule{module} Greetings Axel ___ 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] Workshop at FrOSCon
> Am 10.07.2022 um 16:56 schrieb Henning Hraban Ramm via ntg-context > : > > Am 10.07.22 um 16:43 schrieb Axel Kielhorn via ntg-context: >>> Thank you – I can’t remember you ever announced that? >> I did in 2018 and in return you send me an early version of your book. > > Ok, it’s been a while. > >>> I quickly looked through it and, of course, found a few things that I >>> didn’t cover yet. > > Looking deeper, I also found a lot of errors. I appreciate your feedback. Please contact me off list. Greetings Axel ___ 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] Workshop at FrOSCon
> Am 10.07.2022 um 10:22 schrieb Henning Hraban Ramm via ntg-context > : > > Am 10.07.22 um 08:36 schrieb Axel Kielhorn via ntg-context: >>> Am 09.07.2022 um 19:27 schrieb Henning Hraban Ramm via ntg-context >>> : >>> >>> Tell them there will be a German book next year (I hope...); I’ll send you >>> a link off-list. >> I’m looking forward to your book. >> In the meantime there is a short guide at: >> https://github.com/AKielhorn/Context-Intro > > Thank you – I can’t remember you ever announced that? I did in 2018 and in return you send me an early version of your book. > I quickly looked through it and, of course, found a few things that I didn’t > cover yet. Most of the things in there I learned on this mailing list. Greetings Axel ___ 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] Workshop at FrOSCon
> Am 09.07.2022 um 19:27 schrieb Henning Hraban Ramm via ntg-context > : > > Tell them there will be a German book next year (I hope...); I’ll send you a > link off-list. I’m looking forward to your book. In the meantime there is a short guide at: https://github.com/AKielhorn/Context-Intro Greetings Axel ___ 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] upload
> Am 18.10.2021 um 23:17 schrieb Hans Hagen via ntg-context > : > > Hi, > > I uploaded a new lmtx. This one is a little experimental because I removed so > redundant / intermediate code still present from teh transition from mkiv to > lmtx (mostly backend related). I might have missed something (not all is in > the test suite) but nothing that can't be fixed easy, most has to do with the > timing of definitions. > > But I assume users save their stable trees anyway … Of course we do, especially after Hraban recommended the 2021-10-10 tree last week. Just one question: LMTX comes with an empty texmf-modules tree. Are we still supposed to copy the context version? There have been updates to letter, filter and some others lately. That means we have to update the context tree as well. Do you plan to include this tree in the future? Greetings Axel PS: I tested one document with the new version without problems. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] zint barcode module on LMTX/MacOS
> Am 07.09.2021 um 21:03 schrieb Henning Hraban Ramm via ntg-context > : > > Since I got zint running (thanks, Hans!), there’s now a wiki page: > > https://wiki.contextgarden.net/Barcodes I followed you instructions and got zint running with MacPorts: Zint version 2.10.0 And it looks like LMTX finds it: system > system > ConTeXt ver: 2021.09.03 18:49 LMTX fmt: 2021.9.3 int: english/english system > system > 'cont-new.mkxl' loaded open source > level 1, order 1, name '/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl' system > beware: some patches loaded from cont-new.mkiv close source> level 1, order 1, name '/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl' system > files > jobname './hw265', input './hw265.tex', result './hw265' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > level 1, order 2, name './hw265.tex' modules > using user prefixed file 'libs-imp-zint' modules > 'zint' is loaded open source > level 2, order 3, name '/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/base/mkxl/libs-imp-zint.mkxl' resolvers > lua > loading file '/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/base/mkxl/libs-imp-zint.lmt' succeeded close source> level 2, order 3, name '/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/base/mkxl/libs-imp-zint.mkxl' fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern-designsize rm 12pt' is loaded optional> using library '/usr/local/texlive/LMTX2021/tex/texmf-osx-64/bin/lib/luametatex/zint/libzint.so‘ ^^^ backend > xmp > using file '/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1, subpage 1 close source> level 1, order 3, name './hw265.tex' system > start used files system > text: hw265 system > stop used files system > start used files system >1: filename=publ-imp-default.lua filetype=lua foundname=/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua fullname=/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua usedmethod=database system >2: filename=cont-new.mkxl filetype=tex foundname=/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl fullname=/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl usedmethod=database system >3: filename=lang-exc.lua filetype=lua foundname=/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua fullname=/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua usedmethod=database system >4: filename=lang-us.lua filetype=lua foundname=/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua fullname=/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua usedmethod=database system >5: filename=/Users/axel/Documents/Text/Dokumente_ConTeXt/Beispiele ConTeXt/hw265.tex format=tex foundname=/Users/axel/Documents/Text/Dokumente_ConTeXt/Beispiele ConTeXt/hw265.tex fullname=/Users/axel/Documents/Text/Dokumente_ConTeXt/Beispiele ConTeXt/hw265.tex usedmethod=direct system >6: filename=libs-imp-zint.mkxl filetype=tex foundname=/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/base/mkxl/libs-imp-zint.mkxl fullname=/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/base/mkxl/libs-imp-zint.mkxl usedmethod=database system >7: filename=libs-imp-zint.lmt filetype=tex foundname=/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/base/mkxl/libs-imp-zint.lmt fullname=/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/base/mkxl/libs-imp-zint.lmt usedmethod=database system >8: filename=lm.lfg filetype=tex foundname=/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/fonts/mkiv/lm.lfg fullname=/usr/local/texlive/LMTX2021/tex/texmf-context/tex/context/fonts/mkiv/lm.lfg usedmethod=database system >9: filename=lmroman12-regular filetype=otf format=otf foundname=/usr/local/texlive/LMTX2021/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf fullname=/usr/local/texlive/LMTX2021/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf usedmethod=database system > 10: filename=latinmodern-math.otf filetype=opentypefonts foundname=/usr/local/texlive/LMTX2021/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf fullname=/usr/local/texlive/LMTX2021/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database system > 11: filename=DejaVuSansMono.ttf