[NTG-context] Keeping Ctx versions (was: Re: spacing)
Hello Henning, I go similar way as Alan does - I'm updating ConTeXt (usually) once a week while keeping backups of the previous versions. My experience is that cca once a year I'm forced to get back to a previous Ctx copy as something stops working (IIRC, there some issues with switching to Lua 5.2 and now to Lua 5.3, an issue with Lua sorting alg which probably added a sortaity check at a point, a TickZ issue - all has been passed successfully over time (.dll rebuild with upper Lua releases, my fault in sorting alg, ...)), but some time later I "boarded" back to the "train-of-ConTeXt-beta-releases". I'm working on Windows (W7 and WX) - so for the case you were interested, I'm attaching some batches to save & update ConTeXt beta (call ReNew.bat from your Ctx installation direcory (d:\Ctx-Beta in my case); and also you need to have 7z installed which is used to zip the latest ConTeXt installation before update; .ba_ to be renamed to .bat). Best regards, Lukas On Fri, 09 Nov 2018 16:23:55 +0100, Alan Braslau wrote: On Fri, 9 Nov 2018 15:05:59 +0100 Tomas Hala wrote: I solve the same problem for ages... I decided for fixed time points If it may be useful: I keep a very short-term backup so that when things "break" or change, I can easily backtrack to a working copy. I update using the following shell script: #!/bin/sh CONTEXTHOME=${HOME}/context if [ ! -d ${CONTEXTHOME}/beta ] ; then mkdir -p ${CONTEXTHOME}/beta fi if [ ! -d ${CONTEXTHOME}/previous ] ; then mkdir -p ${CONTEXTHOME}/previous fi cd ${CONTEXTHOME}/beta echo "*** move current to previous ***" rsync -av --delete --progress . ../previous echo "*** update beta ***" rsync -ptv --progress rsync://contextgarden.net/minimals/setup/first-setup.sh . 2>&1 | tee first-setup.log ./first-setup.sh --modules=all --fonts=all --engine=luatex 2>&1 | tee -a first-setup.log This will not help against any undetected changes that may go unnoticed for a while between different projects, but does protect me against immediate "bugs". Hans has suggested keeping a ConTeXt standalone copy in each separate project file, as it is small enough that such duplication does not take up too much space. (As we strip-down the distribution and as storage space becomes bigger and bigger, this should not be a problem.) The advantage of having a copy associated with a project is that one can come back, years later even, and produce *exactly* the same output. Alan -- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r. o. | mailto:pon...@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn Bezová 1658 147 14 Praha 4 Mob.: +420 702 033 396<> ___ 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] Problem installing a new font
On 11/11/2018 6:43 PM, Willi Egger wrote: I think, that for a type 1 font you will need to setup a set of typescripts, because you need to tell also the encoding to be used. A source of such typescripts can be looked up in the MKII environment. just use the name of the afm file (and make sure that there is a pfb file too) ... context maps these fonts onto unicode (so no 256 char limit either) 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 / 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] Problem installing a new font
I think, that for a type 1 font you will need to setup a set of typescripts, because you need to tell also the encoding to be used. A source of such typescripts can be looked up in the MKII environment. Willi > On 11 Nov 2018, at 15:28, Procházka Lukáš Ing. wrote: > > Hello, > > -- all attachments packed into one .zip -- > > probably one of the basic questions and skills in ConTeXt, but the first case > for me: how to install a (downloaded third-party) font into ConTeXt: > > I downloaded font source files from > https://www.ctan.org/tex-archive/fonts/aurical/ and I unpacked the .zip > content, so I have now (see FileList.txt for full info): > > > d:\Lukas\ConTeXt\Fonts\Aurical\fonts\afm > d:\Lukas\ConTeXt\Fonts\Aurical\fonts\FileList.txt > d:\Lukas\ConTeXt\Fonts\Aurical\fonts\map > d:\Lukas\ConTeXt\Fonts\Aurical\fonts\tfm > d:\Lukas\ConTeXt\Fonts\Aurical\fonts\type1 > d:\Lukas\ConTeXt\Fonts\Aurical\fonts\afm\public > d:\Lukas\ConTeXt\Fonts\Aurical\fonts\afm\public\aurical > d:\Lukas\ConTeXt\Fonts\Aurical\fonts\afm\public\aurical\AmiciLogo.afm > d:\Lukas\ConTeXt\Fonts\Aurical\fonts\afm\public\aurical\AmiciLogoBold.afm > d:\Lukas\ConTeXt\Fonts\Aurical\fonts\afm\public\aurical\AmiciLogoBoldRslant.afm > ... > d:\Lukas\ConTeXt\Fonts\Aurical\fonts\type1\public\aurical\LukasSvatbaSlant.pfb > > > Trying to install the font the easiest way, I also copied files into my > ConTeXt dir, so I have also (see FileList2.txt): > > > d:\Ctx-Beta\tex\texmf\fonts\afm\public\aurical\AmiciLogo.afm > d:\Ctx-Beta\tex\texmf\fonts\afm\public\aurical\AmiciLogoBold.afm > d:\Ctx-Beta\tex\texmf\fonts\afm\public\aurical\AmiciLogoBoldRslant.afm > d:\Ctx-Beta\tex\texmf\fonts\afm\public\aurical\AmiciLogoBoldSlant.afm > ... > d:\Ctx-Beta\tex\texmf\fonts\type1\public\aurical\AmiciLogo.pfb > d:\Ctx-Beta\tex\texmf\fonts\type1\public\aurical\AmiciLogoBold.pfb > d:\Ctx-Beta\tex\texmf\fonts\type1\public\aurical\AmiciLogoBoldRslant.pfb > d:\Ctx-Beta\tex\texmf\fonts\type1\public\aurical\AmiciLogoBoldSlant.pfb > ... > > > I tried to follow instructions in 'mfonts.pdf' mentioned at > https://wiki.contextgarden.net/Fonts, but early I failed with (unknown) > "texfont" command cited here frequently. > > I also experimented somehow with "mtxrun --make --generate" and "mtxrun > script --font --reload --force" and with a simple show-font file which starts > with: > > > \definefont[FONT][AmiciLogo.afm] > ... > > > but the result is not written by AmiciLogo font. > > So - how to make ConTeXt aware of a third-party font and how to use the font > in the document? > > Best regards, > > Lukas > > > -- > Ing. Lukáš Procházka | mailto:l...@pontex.cz > Pontex s. r. o. | mailto:pon...@pontex.cz | http://www.pontex.cz | > IDDS:nrpt3sn > Bezová 1658 > 147 14 Praha 4 > > Mob.: +420 702 033 396 > > ___ > 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] Problem installing a new font
Hello, -- all attachments packed into one .zip -- probably one of the basic questions and skills in ConTeXt, but the first case for me: how to install a (downloaded third-party) font into ConTeXt: I downloaded font source files from https://www.ctan.org/tex-archive/fonts/aurical/ and I unpacked the .zip content, so I have now (see FileList.txt for full info): d:\Lukas\ConTeXt\Fonts\Aurical\fonts\afm d:\Lukas\ConTeXt\Fonts\Aurical\fonts\FileList.txt d:\Lukas\ConTeXt\Fonts\Aurical\fonts\map d:\Lukas\ConTeXt\Fonts\Aurical\fonts\tfm d:\Lukas\ConTeXt\Fonts\Aurical\fonts\type1 d:\Lukas\ConTeXt\Fonts\Aurical\fonts\afm\public d:\Lukas\ConTeXt\Fonts\Aurical\fonts\afm\public\aurical d:\Lukas\ConTeXt\Fonts\Aurical\fonts\afm\public\aurical\AmiciLogo.afm d:\Lukas\ConTeXt\Fonts\Aurical\fonts\afm\public\aurical\AmiciLogoBold.afm d:\Lukas\ConTeXt\Fonts\Aurical\fonts\afm\public\aurical\AmiciLogoBoldRslant.afm ... d:\Lukas\ConTeXt\Fonts\Aurical\fonts\type1\public\aurical\LukasSvatbaSlant.pfb Trying to install the font the easiest way, I also copied files into my ConTeXt dir, so I have also (see FileList2.txt): d:\Ctx-Beta\tex\texmf\fonts\afm\public\aurical\AmiciLogo.afm d:\Ctx-Beta\tex\texmf\fonts\afm\public\aurical\AmiciLogoBold.afm d:\Ctx-Beta\tex\texmf\fonts\afm\public\aurical\AmiciLogoBoldRslant.afm d:\Ctx-Beta\tex\texmf\fonts\afm\public\aurical\AmiciLogoBoldSlant.afm ... d:\Ctx-Beta\tex\texmf\fonts\type1\public\aurical\AmiciLogo.pfb d:\Ctx-Beta\tex\texmf\fonts\type1\public\aurical\AmiciLogoBold.pfb d:\Ctx-Beta\tex\texmf\fonts\type1\public\aurical\AmiciLogoBoldRslant.pfb d:\Ctx-Beta\tex\texmf\fonts\type1\public\aurical\AmiciLogoBoldSlant.pfb ... I tried to follow instructions in 'mfonts.pdf' mentioned at https://wiki.contextgarden.net/Fonts, but early I failed with (unknown) "texfont" command cited here frequently. I also experimented somehow with "mtxrun --make --generate" and "mtxrun script --font --reload --force" and with a simple show-font file which starts with: \definefont[FONT][AmiciLogo.afm] ... but the result is not written by AmiciLogo font. So - how to make ConTeXt aware of a third-party font and how to use the font in the document? Best regards, Lukas -- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r. o. | mailto:pon...@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn Bezová 1658 147 14 Praha 4 Mob.: +420 702 033 396 ___ 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] Table, xtable and lua
Fabrice Couvreur schrieb am 11.11.18 um 10:50: Hi Wolfgang and Henri, Thank you so much. What is the document that allows me to find more information about context and lua ? 1. The ConTeXt Lua manual (cld-mkiv.pdf) which comes with the installation (also available on Hans website: http://www.pragma-ade.com/show-man-33.htm) 2. The Lua manual which explains how you can write loops (https://www.lua.org/docs.html) Wolfgang ___ 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] Table, xtable and lua
Hi Wolfgang and Henri, Thank you so much. What is the document that allows me to find more information about context and lua ? Fabrice Le dim. 11 nov. 2018 à 09:57, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> a écrit : > > > Henri Menke schrieb am 11.11.18 um 01:25: > > > > On 11/11/18 12:33 PM, Fabrice Couvreur wrote: > >> Hi, > >> I can not complete the first line of the table with the letters of the > >> alphabet. > >> Thank you. > >> Fabrice > >> > >> \starttext > >> \startlinecorrection[blank] > >> \startmidaligned > >> \startluacode > >> context.startxtable({"align=middle, width=1.25cm"}) > >> context.startxrow() > >> context.startxcell({"width=0.5cm"}) context("") context.stopxcell() > >> letter = {'A','B','C','D','E','F','G','H','I','J'} > >> for letter = 1,10 do > >> context.startxcell() context(print(letter)) > context.stopxcell() > >> end > > letters = {'A','B','C','D','E','F','G','H','I','J'} > > for _,letter in ipairs(letters) do > > context.startxcell() context(letter) context.stopxcell() > > end > > A few more alternatives (take a look at the number converter): > > \setupbodyfont[dejavu] > > \starttext > > \startluacode > > local letters = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J" } > > for _, letter in ipairs(letters) do > context(letter) > end > > context.par() > > for _, letter in next, letters do > context(letter) > end > > context.par() > > for i=1,10 do > context(letters[i]) > end > > context.par() > > for i=1,10 do > context(converters.convert("A",i)) > end > > context.par() > > for i=1,10 do > context(converters.convert("A",i,"ru")) > end > > \stopluacode > > \stoptext > > Wolfgang > > > ___ > 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 ___
Re: [NTG-context] Table, xtable and lua
Henri Menke schrieb am 11.11.18 um 01:25: On 11/11/18 12:33 PM, Fabrice Couvreur wrote: Hi, I can not complete the first line of the table with the letters of the alphabet. Thank you. Fabrice \starttext \startlinecorrection[blank] \startmidaligned \startluacode context.startxtable({"align=middle, width=1.25cm"}) context.startxrow() context.startxcell({"width=0.5cm"}) context("") context.stopxcell() letter = {'A','B','C','D','E','F','G','H','I','J'} for letter = 1,10 do context.startxcell() context(print(letter)) context.stopxcell() end letters = {'A','B','C','D','E','F','G','H','I','J'} for _,letter in ipairs(letters) do context.startxcell() context(letter) context.stopxcell() end A few more alternatives (take a look at the number converter): \setupbodyfont[dejavu] \starttext \startluacode local letters = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J" } for _, letter in ipairs(letters) do context(letter) end context.par() for _, letter in next, letters do context(letter) end context.par() for i=1,10 do context(letters[i]) end context.par() for i=1,10 do context(converters.convert("A",i)) end context.par() for i=1,10 do context(converters.convert("A",i,"ru")) end \stopluacode \stoptext Wolfgang ___ 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 ___