[NTG-context] LMTX install
Someone will quickly clarify what I am doing wrong here. Have used mkiv until now but decided to download and install LMTX in /home/me/bin/context. I then ran export PATH=/home/me/bin/context/tex/texmf-linux-64/bin:$PATH as the install script indicated at the end. When running mk iv, I always first ran a setup line (in my case it was . /home/me/Documents/Freedom/Context/tex/setuptex). Do I need to run a setup also for LMTX installed as above? And what one, because there is no 'setuptex' as far as I can see. If I just run context myfile.tex I get the mtxrun | unknown script 'context.lua' or 'mtx-context.lua' message. Does this mean my 'path' command didn't work (and why not? It should have) or do I still need to run a setup before I try to compile? Julian ___ 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] Special layouts don't recognise placeinitial
My question will be very simple: Is there a trick to make \placeinitial command work within makeup pages? One of my pages inside the /frontmater/ is a quote page within an special layout. Before using LMTX, when I could use the Lettrine module, that quote started with a capital letter. But now that I use \placeinitial, the first letter no longer changes: it remains a simple initial capital letter. On the other hand, when I use \placeinitial for each first paragraph in the chapters of my book, the result is as expected. That is, the command works fine as long as it stays within the general layout. This is the code I'm referring to: \startmakeup[standard][doublesided=yes] \setuplayout[backspace=176pt,width=194pt] \setupinterlinespace[line=22pt] \style[tfa] \startalignment[hanging,flushleft,nothyphenated] \placeinitial Ahora, vosotros que amáis, dejadme que os formule una pregunta: ¿quién sufre más por ello, Arcite o Palamón? ¿El que ve a su dama diariamente, pero está encerrado para siempre, o el que es libre de ir donde le plazca, pero no verá nunca más a su dama? Aquellos de vosotros que podáis, elegid entre las dos situaciones a voluntad; yo, por mi parte, continuaré como he empezado. \stopalignment \startalignment[hanging,flushright,nothyphenated] \blank[0.8cm,force]{\tfa\sc Geofrey Chaucer,\hspace[big]} \blank[0.1cm,force]{\tfa\em The Canterbury Tales \hspace[big]} \stopalignment \stopmakeup Eduardo Bohoyo ___ 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] mathfun
Hi. Is \thewithproperty documented elsewhere? Is this a new primitive? It looks interesting. Jairo El vie, 21 de may. de 2021 a la(s) 08:15, Hans Hagen (j.ha...@xs4all.nl) escribió: > Hi, > > > I uploaded an lmtx update (only m-mathfun added). > > Attached a short description of this (windy stormy friday afternoon) > math experiment. The question is, what similar features using this > trickery come to mind. > > 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 > > ___ > ___ 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] combinations
Hello everybody, this example given by Hans is interesting. I added it to the Wiki to the command \startcombination. Willi > On 14 May 2021, at 11:39, Hans Hagen wrote: > > On 5/14/2021 6:30 AM, Benny Schurig wrote: >> Hi Julian, >> for me first reply ever with a suggestion: >> You have to set a caption >> https://wiki.contextgarden.net/Command/startcombination >> That worked fine for me: >> \startplacefigure[location=here] >> \setupcombination[distance=0mm,after=] >> {\startcombination[2*1] >> {\externalfigure[res1.jpg][width=.4\textwidth]} {pic 1} >> {\externalfigure[res2.jpg][width=.4\textwidth]} {pic 2} >> \stopcombination} >> \stopplacefigure >> Best, Benny >> Am 14.05.21 um 05:27 schrieb jbf: >>> Hi list, >>> >>> The following MWE is giving me two photos under each other, not beside >>> each. What am I doing wrong? >>> >>> Julian >>> >>> >>> \startplacefigure[location=here] >>> \setupcombination[distance=0mm,after=] >>> {\startcombination[2*1] >>> {\externalfigure[res1.jpg][width=.4\textwidth]} >>> {\externalfigure[res2.jpg][width=.4\textwidth]} \stopcombination} >>> \stopplacefigure > You can also do this: > > \startplacefigure[location=here] >\startcombination[distance=2mm,after=,nx=2,ny=1,location=middle] >\startcontent >\externalfigure[mill.png] [width=.4\textwidth] >\stopcontent >\startcaption >pic 1 >\stopcaption >\startcontent >\externalfigure[hacker.jpg][width=.4\textwidth] >\stopcontent >\startcaption >pic 2 >\stopcaption >\stopcombination > \stopplacefigure > > > - > 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 > ___ ___ 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] Trouble constructing a drawer rail with MP
Hello Mikael, thank you very much for the explanation. Indeed I was assuming that giving the starting point of a path followed by a dir would result in a vector starting from that point. — My knowledge about vectors is unfortunately super restricted :-( Thanks Willli > On 21 May 2021, at 21:58, Mikael Sundqvist wrote: > > Hi, > > It was in fact not really "working", but it just happened that it > looked more or less correct in one case, but not in the other. > > For example: The path Pkt[1]--dir(194)*10mm for example is not given > by the two points Pkt[1] and "Pkt[1] shifted 10mm in direction 194 > degrees", but Pkt[1] and the point which is 10mm from the origin, > rotated 194 degrees. > > /Mikael > > On Fri, May 21, 2021 at 9:27 PM Willi Egger wrote: >> >> Hi Jairo! >> >> thank you so much, this is precisely what I need. >> >> Still I am wondering why this is not working starting at the Pkt[2] but >> working when starting from Pkt[1]. >> >> Kind regards >> >> Willi >> >>> On 21 May 2021, at 13:15, Jairo A. del Rio wrote: >>> >>> Hi! >>> >>> Do >>> >>> p[102] := (origin--dir(194)*10mm) shifted Pkt[1]; >>> >>> and >>> >>> p[103] := (origin--dir(166)*10mm) shifted Pkt[2]; >>> >>> do what you need? >>> >>> Jairo >>> >>> El vie, 21 de may. de 2021 a la(s) 05:57, Willi Egger (cont...@boede.nl) >>> escribió: >>> Hello MP Gurus! >>> >>> I wanted to make a technical drawing. However the enclosed mwe does not >>> give me the required results. >>> >>> While the vector from point 1 is directing in the desired direction of 194 >>> degrees, the second vector from point 2 does not as defined point in the >>> direction of 166 degrees. >>> >>> What am I doing wrong here? >>> >>> >>> Thanks for pointing me into the right direction :-) >>> >>> Willi >>> >>> >>> ___ >>> 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 >>> ___ >> >> ___ >> 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 > ___ ___ 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] Expanding a table into the second column
In a document with two columns, is there a method to expand a table partially into the second column in case there are many tablecolumns to show ___ 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] Define new symbol by stitching two symbols together
I would like to define new symbols by stitching together existing glyphs. This is what I have come up so far: \define[1]\Transition{-\!\![#1]\!\!\rightarrow} \starttext \m{L\Transition{A}R} \stoptext This should render as -[ ]->, ideally with no space between the dash or the arrow and the brackets, i.e., -[ should appear like a single glyph; ditto for ]-->. With the definition above, however, the space is variable, and in some circumstances the gliphs overlap. How can I improve the above definition? Nicola ___ 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] t-vim module: no highlighting for custom filetypes
On Sat, 22 May 2021, Hans Hagen wrote: > On 5/21/2021 9:37 PM, Nicola wrote: > > I have only a minor annoyance: I have just noticed that -- is typeset as > > an en-dash in LMTX (but not in MKIV, as documented). Could you look into > > that? > > best is that the module uses: > > \the\everyinitializeverbatim > > because there we disable all kind of non verbatim stuff Thanks. It took a few trial and error that \the\everyinitializeverbatim must come after \usealignparameter. However, using \nohypencollapsing after \usealignparameter means that I cannot get hypenated lines (something which had been requested in the past for t-vim). See the attached file. BTW, shouldn't we have `features=none` in the default mono font setup so that this doesn't happen anyways? Thanks, Aditya test.tex Description: TeX document ___ 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] \switchtobodyfont issue
On 5/22/21 1:10 PM, Wolfgang Schuster wrote: > [...] > You can't use x and a with \switchtobodyfont, only small and big are > possible. > > \starttext > a > \switchtobodyfont[small] > a > \switchtobodyfont[big] > a > \stoptext Many thanks for your fast reply, Wolfgang. This works fine with standard sizes: \starttext a \switchtobodyfont[x] a \stoptext Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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] \switchtobodyfont issue
Pablo Rodriguez schrieb am 22.05.2021 um 12:51: Dear list, I have the following sample: \setupbodyfont[11.25pt] \starttext a \switchtobodyfont[x] a \switchtobodyfont[a] a \stoptext How can I get both \switchtobodyfont working in both appearances? You can't use x and a with \switchtobodyfont, only small and big are possible. \starttext a \switchtobodyfont[small] a \switchtobodyfont[big] a \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 ___
[NTG-context] \switchtobodyfont issue
Dear list, I have the following sample: \setupbodyfont[11.25pt] \starttext a \switchtobodyfont[x] a \switchtobodyfont[a] a \stoptext How can I get both \switchtobodyfont working in both appearances? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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] \setupbackend[space=yes] and hz
On 5/22/21 12:25 PM, Hans Hagen wrote: > On 5/22/2021 11:28 AM, Pablo Rodriguez wrote: >> [...] >> Using SumatraPDF-3.1.2 and current latest (from 2021.05.21 15:07), >> spacing is only right when I disable font expansion. >> >> Would it be possible that spacing be the same with and without font >> expansion? > not sure what you mean but using hz without stretch (and/or tolerance) > makes no sense > >\setupalign > [hz,stretch] % maybe also add tolerant It doesn’t make any difference in the text spacing (searching and copying) in the minimal sample. > also, you should update your sumatra (I have 3.3 and am not going to > waste time on older versions). I wish I could. PDF annotations are a mess in MuPDF (this affects versions from 3.2). PDF annotations in SumatraPDF-3.3 are huge, even preventing the text from being readable. And they are always printed (since all contain "/F 4"), no matter that no appearance dictionary allows to print them. I have already discussed that with people from Artifex, but it seems that they won’t change their mind about this. It would be helpful that PDF annotations in ConTeXt with no associated appearance dictionary could have "/F 0" (so that MuPDF doesn’t print them). Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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] \setupbackend[space=yes] and hz
On 5/22/2021 11:28 AM, Pablo Rodriguez wrote: Hi Hans, I have the following sample: \definefontfeature [default] [default] [expansion=quality] \setupalign [hz] \setuppapersize[A6] \setupbodyfont[pagella] \setupbackend [space=yes] \starttext \input zapf \stoptext Using SumatraPDF-3.1.2 and current latest (from 2021.05.21 15:07), spacing is only right when I disable font expansion. Would it be possible that spacing be the same with and without font expansion? not sure what you mean but using hz without stretch (and/or tolerance) makes no sense \setupalign [hz,stretch] % maybe also add tolerant also, you should update your sumatra (I have 3.3 and am not going to waste time on older versions). 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 ___
[NTG-context] \setupbackend[space=yes] and hz
Hi Hans, I have the following sample: \definefontfeature [default] [default] [expansion=quality] \setupalign [hz] \setuppapersize[A6] \setupbodyfont[pagella] \setupbackend [space=yes] \starttext \input zapf \stoptext Using SumatraPDF-3.1.2 and current latest (from 2021.05.21 15:07), spacing is only right when I disable font expansion. Would it be possible that spacing be the same with and without font expansion? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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 ___