Re: [NTG-context] Setting up zint on a mac with macOS Montery Version 12.3.1
Hi Keith, > On 10 Apr 2022, at 14:49, Keith McKay via ntg-context > wrote: > > Hi All > > I have been struggling today trying to setup and use the Barcode module zint > in ConTeXt and failed. I have followed the instructions on the wiki ( > https://wiki.contextgarden.net/Barcodes ) but with some changes as follows. > Which maybe why I failed. > > 1) I downloaded Zint using Homebrew since I'm using macOS, and installed it > according to the instructions. > > > 2) Since I'm using LMTX I looked for the file libzint.dylib and found it in > /opt/homebrew/Cellar/zint/2.10.0/lib . This is different from the path given > on the wiki. The directory contained three files, two of which were aliases, > libzint.2.10.dylib and libzint.dylib, and an exe file libzint.2.10.0.0.dylib You have Hombrew installed in a non-standard location. Mine is in /usr/local/Cellar with the executables linked into /usr/local/bin. But, assuming other Homebrew commands work when run from Terminal then you might still be okay. > 3) I created the path $TEXROOT/tex/texmf-osx-64/bin/lib/luametatex/zint and > copied libzint.2.10.0.0.dylib into but replaced dylib with 'so' as suggested > on the wiki instructions. So I basically added lib/luametatex/zint to > texmf-osx-64/bin . "Yes" to creating the path but "no" to copying. Create a symbolic link instead. So, in Terminal: $ cd $TEXROOT/tex/texmf-osx-64/bin/lib/luametatex/zint # In my case I used the following: $ ln -s /usr/local/Cellar/zint/2.10.0/lib/libzint.dylib libzint.so # For you with Homebrew in a different location, try: $ ln -s /opt/homebrew/Cellar/zint/2.10.0/lib/libzint.dylib libzint.so Then steps 4 and 5 as below. I ran the MWE below: the ISBN worked, the ISBNX didn't, the QR code did. This is on Monterey. > 4) I ran mtxrun --generate to update the database. > > 5) I ran the MWE below but no barcode appeared. The console output shows: > > > modules > using user prefixed file 'libs-imp-zint' > modules > 'zint' is loaded > > however further down the output it gives: > > > optional> unable to locate library 'libzint' > > I have tried renaming libzint2.10.0.0.so to libzint.so, but still no barcode. > Is their something I am missing? Tips or hints appreciated. > Best Wishes > Keith McKay > > %% MWE > \usemodule[zint] > \starttext > \barcode[alternative=isbn,text=9783865419026,width=4cm] > \barcode[alternative=isbnx, text=9783865419026, width=4cm] > \barcode[alternative=qrcode, text={https://wiki.contextgarden.net}, width=3cm] > \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 / 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] Setting up zint on a mac with macOS Montery Version 12.3.1
On my macOS High Sierra your MWE works fine. Although I remember that I didn't use Homebrew, but had to build zint manually. >From log: optional > using library '/Users/monty/context/tex/texmf-osx-64/bin/lib/luametatex/zint/libzint.so' Here it is enough that libzint.so be a link: libzint.so -> /usr/local/lib/libzint.2.10.0.0.dylib Delete the texmf-cache and run ./mtxrun --generate again, once you've made this link (or copied libzint.2.10.0.0.dylib to $TEXROOT/tex/texmf-osx-64/bin/lib/luametatex /zint/libzint.so) [image: image.png] Greetings, L. Montgomery PD.- Does zint-qt work well? El dom, 10 abr 2022 a las 8:49, Keith McKay via ntg-context (< ntg-context@ntg.nl>) escribió: > Hi All > > I have been struggling today trying to setup and use the Barcode module > zint in ConTeXt and failed. I have followed the instructions on the wiki ( > https://wiki.contextgarden.net/Barcodes ) but with some changes as > follows. Which maybe why I failed. > > 1) I downloaded Zint using Homebrew since I'm using macOS, and installed > it according to the instructions. > > 2) Since I'm using LMTX I looked for the file libzint.dylib and found it > in /opt/homebrew/Cellar/zint/2.10.0/lib . This is different from the path > given on the wiki. The directory contained three files, two of which were > aliases, libzint.2.10.dylib and libzint.dylib, and an exe file > libzint.2.10.0.0.dylib > > 3) I created the path $TEXROOT/tex/texmf-osx-64/bin/lib/luametatex/zint > and copied libzint.2.10.0.0.dylib into but replaced dylib with 'so' as > suggested on the wiki instructions. So I basically added > lib/luametatex/zint to texmf-osx-64/bin . > > 4) I ran mtxrun --generate to update the database. > > 5) I ran the MWE below but no barcode appeared. The console output shows: > > *modules > using user prefixed file 'libs-imp-zint'* > > *modules > 'zint' is loaded* > > however further down the output it gives: > > *optional > unable to locate library 'libzint'* > > I have tried renaming libzint2.10.0.0.so to libzint.so, but still no > barcode. Is their something I am missing? Tips or hints appreciated. > > Best Wishes > > Keith McKay > > %% MWE > > \usemodule[zint] > > \starttext > > \barcode[alternative=isbn,text=9783865419026,width=4cm] > > \barcode[alternative=isbnx, text=9783865419026, width=4cm] > > \barcode[alternative=qrcode, text={https://wiki.contextgarden.net}, > 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 / > 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 > > ___ > ___ 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 ___
[NTG-context] Setting up zint on a mac with macOS Montery Version 12.3.1
Hi All I have been struggling today trying to setup and use the Barcode module zint in ConTeXt and failed. I have followed the instructions on the wiki ( https://wiki.contextgarden.net/Barcodes ) but with some changes as follows. Which maybe why I failed. 1) I downloaded Zint using Homebrew since I'm using macOS, and installed it according to the instructions. 2) Since I'm using LMTX I looked for the file libzint.dylib and found it in /opt/homebrew/Cellar/zint/2.10.0/lib . This is different from the path given on the wiki. The directory contained three files, two of which were aliases, libzint.2.10.dylib and libzint.dylib, and an exe file libzint.2.10.0.0.dylib 3) I created the path $TEXROOT/tex/texmf-osx-64/bin/lib/luametatex/zint and copied libzint.2.10.0.0.dylib into but replaced dylib with 'so' as suggested on the wiki instructions. So I basically added lib/luametatex/zint to texmf-osx-64/bin . 4) I ran mtxrun --generate to update the database. 5) I ran the MWE below but no barcode appeared. The console output shows: /modules > using user prefixed file 'libs-imp-zint'/ // /modules > 'zint' is loaded/ however further down the output it gives: /optional > unable to locate library 'libzint'/ // I have tried renaming libzint2.10.0.0.so to libzint.so, but still no barcode. Is their something I am missing? Tips or hints appreciated. Best Wishes Keith McKay %% MWE \usemodule[zint] \starttext \barcode[alternative=isbn,text=9783865419026,width=4cm] \barcode[alternative=isbnx, text=9783865419026, width=4cm] \barcode[alternative=qrcode, text={https://wiki.contextgarden.net}, 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 / 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] TeXworks on Linux
Hi Willi! Le 9/04/2022 à 21:52, Willi Egger via ntg-context a écrit : Good evening! Currently I am trying to test different editors on a Linux-box. — Tonight I installed TeXworks. Now I wanted to change the editor to use ConTeXt LMTX. I added in the tab “typesetting" the path to the executables in the TeX tree. Then I added funder editing the processing tools following the Wiki as a programme mtxrun and as parameters —script context $fullname. After restarting the application I get the error: “unknown script ‘mtx-base.lua' or ‘mtx-mtx-base.lua’” My question is, is there a user out there who knows how to fix this? Kind regards Willi I have an old computer under Linux 18.04 In TeXworks/Edit/Preferences/Typesetting I have an entry for ConTeXt lmtx: path: /usr/bin /usr/local/sbin /usr/local/bin /usr/sbin /sbin /bin /usr/games /home/alain/context-lmtx/bin /home/alain/context-lmtx/tex/texmf-linux/bin /usr/local/texlive/2020/bin/i386-linux Most of the path is automatically created when installing TeXworks. You should perhaps take care that the paths for context-lmtx is "before the one for texlive, if you have it. Now for the definition for the program: name: Context (which will appear in the drop-down menu program: context parameters: --synctex (which is not fonctionnal) $fullname That'all! I hope it will help. Alain ___ 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 ___