Re: [NTG-context] Delivering the value of a variable in MetaFun to ConTeXt
Dear Aditya and Hans, Thank you for your suggestion. I add > \startMPcalculation > > \stopMPcalculation and it works. \setupinteraction[state=start] \usemodule[animation] \starttext %\startanimation[menu=yes] %{ \startMPcalculation path p; \stopMPcalculation \dorecurse{\udCount} {\useMPgraphic{foldUD}{num=\recurselevel}} {\useMPgraphic{dotLines}{num=\recurselevel}} %} %\stopanimation \stoptext However, it draws all the figures under the \startanimation case. There may be something I missed or there is something uncertain between \dorecurse and \startanimation. Thank you. Best regards, Dalyoung___ 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] simplifying repeated macro calls in metafun
Dear Aditya, > A while back, I wrote some code to easily generate metapost animations. > > https://adityam.github.io/context-blog/post/metapost-animation/ > > I haven't used it much because I am mostly on linux, and its is a PITA to get > an older version of Adobe Reader to work under wine. I have visited this site before, and I have used it for a few time in similar cases. Thank you for a very nice code. Best regards, Dalyoung ___ 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] Proper ligatures in Malayalam
On Thu, 24 Jun 2021 12:06:17 +0200 Hans Hagen wrote: Hi, Thanks for looking into this. I can wait, thanks, ajith > On 6/24/2021 10:25 AM, Ajith R wrote: > > Hi, > > > > I tried to make a document in Malayalam, an Indian language. > > However, the ligatures don't form as expected. > > > > A minimal example is > > > > \mainlanguage[ml] > > \definefontfamily [malayalam] [ss] [Rachana] > > [features=malayalam-one] \definefontfeature[default] > > [mode=node,kern=yes, liga=yes,tlig=yes, ccmp=yes,language=dflt, > > protrusion=quality, expansion=quality] \setupbodyfont [malayalam] > > \starttext അദ്ധ്യായം > > \stoptext > > > > What setting am I missing? > > > > The expected form is show in libre office with the same text and > > font, attached as an image > > > > > > The sequence of Malayalam characters used is > > > > U+0D05 U+0D26 U+0D4D U+0D27 U+0D4DU+0D2F U+0D3E U+0D2F U+0D02 > > > > Thanks, > > ajith > > > > NB: This is my second attempt to send this email. Excuse me if this > > results in duplication. > I'm consulting the indian script expert that parcipates in the code > on this so ... patience is needed, > > 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] paragraph standing out of the normal layout comsuming the margin
Dear all, the mwe shows my try to define a paragraph that stand out like this: On right pages xxx xxx xx xx xxx xxx On left pages xxx xxx xx xx xxx xxx My try with setups does not work. The textcolor is restored but not the layout. Can I reset to the standard layout with an \after command? Any hints? juh \setuplayout [ cutspace=12em, leftmargin=2em, width=middle, backspace=8em, rightmargin=24em ] \startsetups[paragraph:hinweis] \setuplayout [ cutspace=2em, leftmargin=24em, backspace=8em, rightmargin=2em ] \stopsetups \defineparagraph[hinweis] [paragraph] [] \setupparagraph[hinweis] [color=red,setups=paragraph:hinweis] \showframe \starttext \input knuth \startparagraph[hinweis] \input lorem \stopparagraph \input knuth \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] Proper ligatures in Malayalam
Hi Pablo On Thu, 24 Jun 2021 16:17:53 +0200 Pablo Rodriguez wrote: > On 6/24/21 10:25 AM, Ajith R wrote: > > Hi, > > > > I tried to make a document in Malayalam, an Indian language. > > However, the ligatures don't form as expected. [..] > > What setting am I missing? > > Hi Ajith, > > I don’t have any idea about Malayalam (or any other Indic language [I > can deal with Latin and Greek scripts only, I’m afraid]), but this > seems to work fine. > > \mainlanguage[ml] > \definefontfamily [malayalam] [rm] [RIT Rachana] > [features=malayalam-two] > \setupbodyfont [malayalam] > \starttext > \tf അദ്ധ്യായം\\ > \em അദ്ധ്യായം\\ > \bf അദ്ധ്യായം\\ > \em അദ്ധ്യായം > \stoptext > > Fonts are RIT Rachana from http://www.rachana.org.in/. > > The relevant feature here malayalam-two. I used serif (or rm), since > the font looked to me more serif than sans-serif (Latin glyphs are > clearly from a serif font). > > > The expected form is show in libre office with the same text and > > font, attached as an image > > I would say that with malayalam-two ligatures are the same ones as in > LibreOffice. > > Just in case it might 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 > ___ ___ 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] Align in setup header/footer
Am 25.06.21 um 12:36 schrieb denis.ma...@unibe.ch: but you'll perhaps have to put the stuff inside a hbox first \definehbox[pagenumber][12.5mm] \setupfootertexts [] [{\getmarking[chapter]}\hboxpagenumber{\hfill\pagenumber}] [\hboxpagenumber{\pagenumber\hfill}{\getmarking[part]}][] Thanks a lot. \hfill works but I'll keep the hbox in mind. juh ___ 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] injectors not working in LMTX?
On 6/24/2021 6:44 PM, Rik Kabel wrote: In March, Pablo wrote: the following sample (from https://pragma-ade.com/general/manuals/workflows-mkiv.pdf#search=resort) doesn’t get right output with LMTX (current latest from 2021.03.25 14:04): \showinjector \setinjector[register][3][\column] \setinjector[list][2][{\blank[3*big]}] \starttext \placelist[section][criterium=text] \blank[3*big] \placeregister[index][criterium=text] \page \startsection[title=Alpha] first \index{first} \startsection[title=Beta] second \index{second} \startsection[title=Gamma] third \index{third} \startsection[title=Delta] fourth \index{fourth} \stoptext MkIV compiles this source fine, so I think this might be a bug. Many thanks for your help, Pablo In trying to tune a toc, I discovered that this is still an issue. fixed in next upload - 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] Align in setup header/footer
Hi Denis, Am 25.06.21 um 09:50 schrieb denis.ma...@unibe.ch: Or, for more complex footers/headers you can use: \setupfootertexts [left on odd page] % out [right on odd page] % in [right on even page] % in [left on even page] % out In fact it is something like this \setupfootertexts [margin] [] [\pagenumber] [\pagenumber] [] I want to align the number inside of this area to the right or the left respectively. I only found setuplayouttext to style the area, except that there is no key "align". juh ___ 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] paragraph standing out of the normal layout comsuming the margin
Jan U. Hasecke schrieb am 25.06.2021 um 13:19: Dear all, the mwe shows my try to define a paragraph that stand out like this: On right pages xxx xxx xx xx xxx xxx On left pages xxx xxx xx xx xxx xxx My try with setups does not work. The textcolor is restored but not the layout. Can I reset to the standard layout with an \after command? You can't change to a different layout in the middle of a page. What you're looking for is the narrower environment where you can change the margins in the left and right side. \startsetups [userdata:shiftblock] \signalrightpage \doifelserightpage { \startnarrower[2*left,-2*right] \getuserdata \stopnarrower } { \startnarrower[-2*left,2*right] \getuserdata \stopnarrower } \stopsetups \defineuserdataalternative [shiftblock] [renderingsetup=userdata:shiftblock] \defineuserdata [shiftblock] [before=\blank, after=\blank, alternative=shiftblock] \setuppagenumbering [alternative=doublesided] \starttext \startbuffer \dorecurse{2}{\input knuth\par} \startuserdata[shiftblock] \input ward \stopuserdata \dorecurse{2}{\input zapf\par} \stopbuffer \dorecurse{10}{\getbuffer} \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 ___
Re: [NTG-context] Align in setup header/footer
denis.ma...@unibe.ch schrieb am 25.06.2021 um 12:36: but you'll perhaps have to put the stuff inside a hbox first \definehbox[pagenumber][12.5mm] \setupfootertexts [] [{\getmarking[chapter]}\hboxpagenumber{\hfill\pagenumber}] [\hboxpagenumber{\pagenumber\hfill}{\getmarking[part]}][] \setuppagenumbering [alternative=doublesided] \setupfootertexts [margin] [\leftaligned {A}] [\rightaligned{B}] [\leftaligned {C}] [\rightaligned{D}] \setuplayout [backspace=4cm, width=12cm] \showframe \starttext \dorecurse{4}{\dontleavehmode\page} \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] Align in setup header/footer
Dear all, while finetuning a layout I would like to change the align in setupfootertext to right align or outer align as it is a doublesided layout. The default is afaics to align to the middle of the two pages. I would like to change this but there is no align key in setupfooter. TIA juh ___ 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] Align in setup header/footer
but you'll perhaps have to put the stuff inside a hbox first \definehbox[pagenumber][12.5mm] \setupfootertexts [] [{\getmarking[chapter]}\hboxpagenumber{\hfill\pagenumber}] [\hboxpagenumber{\pagenumber\hfill}{\getmarking[part]}][] > -Ursprüngliche Nachricht- > Von: Maier, Denis Christian (UB) > Gesendet: Freitag, 25. Juni 2021 12:31 > An: ntg-context@ntg.nl > Betreff: AW: [NTG-context] Align in setup header/footer > > You can use \hfill > > > -Ursprüngliche Nachricht- > > Von: ntg-context Im Auftrag von Jan U. > > Hasecke > > Gesendet: Freitag, 25. Juni 2021 12:23 > > An: ntg-context@ntg.nl > > Betreff: Re: [NTG-context] Align in setup header/footer > > > > > > Hi Denis, > > > > Am 25.06.21 um 09:50 schrieb denis.ma...@unibe.ch: > > > Or, for more complex footers/headers you can use: > > > \setupfootertexts > > > [left on odd page] % out > > > [right on odd page] % in > > > [right on even page] % in > > > [left on even page] % out > > > > In fact it is something like this > > > > \setupfootertexts > >[margin] > >[] > >[\pagenumber] > >[\pagenumber] > >[] > > > > I want to align the number inside of this area to the right or the > > left respectively. > > > > I only found setuplayouttext to style the area, except that there is > > no key "align". > > > > juh > > > > > ___ > > 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] Align in setup header/footer
You can use \hfill > -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von Jan U. Hasecke > Gesendet: Freitag, 25. Juni 2021 12:23 > An: ntg-context@ntg.nl > Betreff: Re: [NTG-context] Align in setup header/footer > > > Hi Denis, > > Am 25.06.21 um 09:50 schrieb denis.ma...@unibe.ch: > > Or, for more complex footers/headers you can use: > > \setupfootertexts > > [left on odd page] % out > > [right on odd page] % in > > [right on even page] % in > > [left on even page] % out > > In fact it is something like this > > \setupfootertexts >[margin] >[] >[\pagenumber] >[\pagenumber] >[] > > I want to align the number inside of this area to the right or the left > respectively. > > I only found setuplayouttext to style the area, except that there is no key > "align". > > juh > > ___ > 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] First line of larger font paragraph on grid
Hi, I have some text in a larger font where the first line should be on the grid. Therefore, I've tried to adapt the solution from the wiki: https://wiki.contextgarden.net/Grid_typesetting#Placing_titles_on_the_grid The interesting thing is that the section command indeed places the first line on the grid, but using \framed directly does not give the desired results. I must be missing something obvious. Does anyone know a solution ? Thanks for your help, Denis === \setuplayout[grid=yes] \showgrid \definefont [BigFont] [Bold at 20pt] [24pt] \unprotect \unexpanded\def\section_command#1#2{% \framed [ width=\textwidth, frame=off, rulethickness=0pt, offset=0pt, loffset=-0pt, before=, location=top, align=flushleft,]{#2}% } \setuphead [section] [ style={\BigFont}, after=, before={\blank[1*line]}, command=\section_command, ] \protect \defineframed[myframed][ width=\textwidth, frame=off, rulethickness=0pt, offset=0pt, loffset=-0pt, before=, location=top, align=flushleft,]] \starttext \blank[force,3*line,depth] \begingroup \BigFont \myframed{Lorem ipsum dolor sit amet consectetur adipisicing elit Lorem ipsum dolor sit amet consectetur adipisicing elit} \endgroup asdfasdf \page \blank[force,3*line,depth] \startsection [title=Lorem ipsum dolor sit amet consectetur adipisicing elit Lorem ipsum dolor sit amet consectetur adipisicing elit] asdf \stopsection \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] Align in setup header/footer
Addendum: I've probably got confused which parts of the footer are filled with the different arguments, but anyway... You get the idea. > -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von > denis.ma...@unibe.ch > Gesendet: Freitag, 25. Juni 2021 09:50 > An: ntg-context@ntg.nl > Betreff: Re: [NTG-context] Align in setup header/footer > > Hi, > > what do you have in the footer? > > Page numers? > Then you can just use: > \setuppagenumbering > [alternative=doublesided, > location={footer,right}] > > Or, for more complex footers/headers you can use: > \setupfootertexts > [left on odd page] % out > [right on odd page] % in > [right on even page] % in > [left on even page] % out > > https://wiki.contextgarden.net/Command/setupheadertexts > > I'm not sure I was understanding your question. Is this what you want? > > Denis > > > > -Ursprüngliche Nachricht- > > Von: ntg-context Im Auftrag von Jan U. > > Hasecke > > Gesendet: Freitag, 25. Juni 2021 09:25 > > An: mailing list for ConTeXt users > > Betreff: [NTG-context] Align in setup header/footer > > > > > > Dear all, > > > > while finetuning a layout I would like to change the align in > > setupfootertext to right align or outer align as it is a doublesided layout. > > > > The default is afaics to align to the middle of the two pages. > > > > I would like to change this but there is no align key in setupfooter. > > > > TIA > > juh > > > > > ___ > > 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 ___
Re: [NTG-context] textbackground not working
On 6/25/2021 8:33 AM, Christoph Reller wrote: Hi, Consider the MWE: \definetextbackground[background][ background=color, backgroundcolor=gray] \starttext \starttextbackground[background] Test \stoptextbackground \stoptext In the latest version 2021-06-24 of ConTeXt LMTX, the textbackground is not working. Could this be a bug or am I doing something wrong? Cheers, Christoph fixed in next upload (note: tex->mp parameters are redone, more in a pull than push fashion) - 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] Align in setup header/footer
Hi, what do you have in the footer? Page numers? Then you can just use: \setuppagenumbering [alternative=doublesided, location={footer,right}] Or, for more complex footers/headers you can use: \setupfootertexts [left on odd page] % out [right on odd page] % in [right on even page] % in [left on even page] % out https://wiki.contextgarden.net/Command/setupheadertexts I'm not sure I was understanding your question. Is this what you want? Denis > -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von Jan U. Hasecke > Gesendet: Freitag, 25. Juni 2021 09:25 > An: mailing list for ConTeXt users > Betreff: [NTG-context] Align in setup header/footer > > > Dear all, > > while finetuning a layout I would like to change the align in setupfootertext > to > right align or outer align as it is a doublesided layout. > > The default is afaics to align to the middle of the two pages. > > I would like to change this but there is no align key in setupfooter. > > TIA > juh > > ___ > 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 ___