Re: [NTG-context] Changed behavior from \convertnumber{arabicdecimals}{..} as a textcommand for note
Dear Hans, Thank you for your reply. Here is the missing MWE. (I will also try to attach it.) % mwe % document is an English translation of Arabic text; all annotations are in English. % % concerning footnotes to Arabic text: % numbers in body should use Mashriki numbers (e.g. ٠١٢٣٤٥٦٧٨٩), and appear between parenthesis % numbers in footer should use Arabic numbers (e.g. 0123456789), and without parenthesis % % MWE uses dejavu for English and Amiri for and Arabic. Amiri is availble at https://www.amirifont.org/ \mainlanguage[en-gb] \setupdirections[bidi=global,method=one] \starttypescriptcollection [amiri] \starttypescript [serif] [amiri] \definefontsynonym [Serif] [file:Amiri-Regular.ttf] [features=arabic] \stoptypescript \starttypescript [amiri] \definetypeface [amiri] [rm] [serif] [amiri] [default] [fallbacks=latin-fallback] \stoptypescript \stoptypescriptcollection \define\setarabic{ \setupalign[r2l] \righttoleft \switchtobodyfont[amiri] } \define\setlatin{ \setupalign[l2r] \lefttoright \switchtobodyfont[dejavu] } \setupnotes[footnote][] \setupnotes[arfootnote][] \definenote[arfootnote][footnote] \setupnotation [arfootnote] [before=\setlatin, alternative=text, ] \setupnote [arfootnote] [headstyle={\switchtobodyfont[amiri]}, textcommand=\footnotenotenumbercommand, alternative=text, ] \protected\def\footnotenotenumbercommand#1{{\high{({\convertnumber{arabicdecimals}{#1}})}}} % unexpected results % \protected\def\footnotenotenumbercommand#1{{\high{({\convertnumber{abjadnumerals}{#1}})}}} % \protected\def\footnotenotenumbercommand#1{{\high{({\convertnumber{default}{#1}})}}} % % `\detokenize' variations, for comparison... % % \protected\def\footnotenotenumbercommand#1{{\high{(\detokenize{\convertnumber{arabicdecimals}{#1}})}}} % \protected\def\footnotenotenumbercommand#1{{\high{(\detokenize{\convertnumber{abjadnumerals}{#1}})}}} % \protected\def\footnotenotenumbercommand#1{{\high{(\detokenize{\convertnumber{default}{#1}})}}} \setupbodyfont[dejavu,11pt] \starttext \setarabic مرحبًا\arfootnote{Annotation text.} % expected footnote `(١)`, got `1arabic` مرحبًا\arfootnote{Annotation text.} % expected footnote `(٢)`, got `2arabic` \stoptext %%% end of mwe Thanks, Musa ___ 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] no paragraph footnotes when located in text
Dear list, using current latest (2022.01.15 17:32), I still experience an already reported issue (https://mailman.ntg.nl/pipermail/ntg-context/2022/104770.html): \setuppapersize[A6] \showframe\showgrid %~ \setupnote[footnote][paragraph=yes] \setupnote[footnote][location=text, paragraph=yes] \setupnotation[footnote][alternative=serried, width=broad] \starttext \startlinenumbering[step=3] \dorecurse{25} {a\footnote{b} } \stoplinenumbering \placenotes[footnote] \stoptext I don’t get paragraph notes with "location=text". Could anyone confirm the issue or tell me what I’m missing? Many thanks for your help, Pablo ___ 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] (again) diferent prefixsegments for different references
Dear list, I asked this some time ago (https://mailman.ntg.nl/pipermail/ntg-context/2021/102394.html). Using the following sample: \starttext \definereferenceformat[itsc][in] \setupreferencestructureprefix[itsc][default] [prefixsegments=section] \chapter{Chapter} \section[b]{Section} \itsc[b] and \in[b] \stoptext Is there a way that the prefixsegments for \itsc is only section, without modifying it for \in? Many thanks for your help, Pablo ___ 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] Defining new float types fails in LMTX
On Fri, 10 Dec 2021 18:22:46 +0100 Marco Patzer via ntg-context wrote: > On Fri, 10 Dec 2021 17:01:26 +0100 > Hans Hagen wrote: > > > no example code > > The MWE was included in the OP on 2021-10-30. But here it is again: Still an issue with 2022.01.15 17:29. Marco ___ 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] SimpleSlides and Visual counters
Hi Thomas, Thanks for your attention. Indeed I could have asked you, but since Aditya answered my previous message I continued asking him… Anyway, you are correct: replacing PageNumber with RealPageNumber everywhere, the visual counter is shown correctly… For the sake of the mail archives, in case someone else encounters the issue, I add the example below. Many thanks for help ! Best regards: Otared % begin interactive-visual-counter.tex %% to use with the simpleslides module \setupinteraction[state=start] \usemodule[simpleslides] [style=swoosh] \startuseMPgraphic{simpleslides:MP:counter} save b, s, t, p, circcenter, theta, pic ; path p[] ; pair t[] ; pair s[] ; pair circcenter ; circcenter = urcorner Page shifted (-1cm,-1cm) ; % the counter is shown in the upper right corner % circcenter = lrcorner Page shifted (-1cm,1cm) ; % the counter is shown in the lower right corner pair zt, zr, zb, zl ; picture pic ; b = 1.5cm ; if RealPageNumber > 1 : % the page after which the visual counter is shown theta = (RealPageNumber - 1)/(NOfPages - 1) ; p[4] = fullcircle scaled b rotated 90 ; p[4] := p[4] shifted circcenter ; fill p[4] withcolor \MPcolor{simpleslides:altcontrastcolor} ; t[0] = center p[4] ; t[1] = point 1 along p[4] ; t[2] = point -theta along p[4] ; t[3] = point -theta/2 along p[4] ; p[5] = t[0] -- t[1] .. t[3] .. t[2] -- cycle ; fill p[5] withcolor \MPcolor{simpleslides:contrastcolor} ; for i = 1 upto NOfPages : s[i] = point i/(NOfPages -1) along p[4] ; pickup pencircle scaled 1pt ; draw s[i] -- t[0] withcolor \MPcolor{simpleslides:backgroundcolor} ; endfor ; zt = t[0] shifted (0, b * 0.2) ; zr = t[0] shifted (b * 0.2, 0) ; zb = t[0] shifted (0, -b * 0.2) ; zl = t[0] shifted (-b * 0.2, 0) ; p[3] = zt .. zr .. zb .. zl .. cycle ; fill p[3] withcolor \MPcolor{simpleslides:contrastcolor} ; draw p[3] withcolor \MPcolor{simpleslides:backgroundcolor} ; label(textext("\start\switchtobodyfont[10pt]% \setupinteraction[color=simpleslides:backgroundcolor,style=normal]% \startcolor[simpleslides:backgroundcolor] \goto{\pagenumber}[PreviousJump] \stopcolor\stop"),center p[3]) ; fi ; \stopuseMPgraphic \starttext \setupTitle [title={Somewhere university}, author={Someone Else}, date={Somewhere, Someday 2021}] \placeTitle \page \SlideTitle{Knuth} \input knuth.tex \SlideTitle{Ward} \input ward.tex \SlideTitle{Lorem} \input lorem.tex \SlideTitle{Thuan} \input thuan.tex \stoptext % end interactive-visual-counter.tex > On 16 Jan 2022, at 16:14, Thomas A. Schmitz via ntg-context > wrote: > > > On 16.01.22 15:56, Otared Kavian via ntg-context wrote: >> Hi Aditya, >> Some time ago I reported an issue with LMTX regarding your visual counter >> (at least the version used in the simpleslides module). >> Now I think I have found where the issue comes from: it is due to the fact >> that somehow the conditional >> if PageNumber > 2 : >> >> [some code] >> fi ; > > Hi Otared, > > I'm not Aditya, but I've encountered the same problem within simpleslides. > Can you replace PageNumber with RealPageNumber and see whether this solves > your problem? > > Best > > Thomas > ___ > 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] SimpleSlides and Visual counters
On 16.01.22 15:56, Otared Kavian via ntg-context wrote: Hi Aditya, Some time ago I reported an issue with LMTX regarding your visual counter (at least the version used in the simpleslides module). Now I think I have found where the issue comes from: it is due to the fact that somehow the conditional if PageNumber > 2 : [some code] fi ; Hi Otared, I'm not Aditya, but I've encountered the same problem within simpleslides. Can you replace PageNumber with RealPageNumber and see whether this solves your problem? Best Thomas ___ 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] SimpleSlides and Visual counters
Hi Aditya, Some time ago I reported an issue with LMTX regarding your visual counter (at least the version used in the simpleslides module). Now I think I have found where the issue comes from: it is due to the fact that somehow the conditional if PageNumber > 2 : [some code] fi ; is not treated correctly, and if one removes the conditional while keeping only [some code] above, then the visual counter is shown correctly. I am sending you the TeX file where you can see that if lines 17 and 46 are uncommented then the visual counter does not show up. Thanks for your help: Otared K. bug-visual-counter.tex Description: Binary data bug-visual-counter.pdf Description: Adobe PDF document > On 16 Nov 2021, at 23:11, Otared Kavian wrote: > > Hi Aditya, > > Thank you for your attention and your kind reply. > > I am sending a setup file with an example of presentation, which shows the > issue with LMTX while with mkiv the result is fine. > Actually as you can see in the setup file, I have slightly modified the > visula counter in order for it to be interactive (clicking in the center of > the visula counter gives a jump to the previous location…). > > Best regards: Otared > > > > >> On 16 Nov 2021, at 18:34, Aditya Mahajan via ntg-context >> wrote: >> >> On Mon, 15 Nov 2021, Otared Kavian via ntg-context wrote: >> >> Hi Otared, >> >>> It seems that the visual counter in SimpleSlides module (the version I >>> have from ConTeXt Garden is from 2014) does not work fine with the latest >>> LMTX. >>> Is the issue is known ? If so, is there a new version of SimpleSlides in >>> which the issue has been fixed ? >> >> I haven't looked at simpleslides in over a decade! The module did use some >> low-level macros, which are unlikely to work with LMTX without change. >> >> It could also be a bug with visualcounter module. I haven't tested in with >> LMTX (I still use MkIV for most of my presentations). If you can post a >> minimal example, I could take a look. >> >> Thanks, >> Aditya >> >> ___ >> 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] \installpagearrangement doublesided stickers
Greetings everyone. Well, it's not exactly about double-sided stickers but sort of. Imagine printing a double-sided sheet and using a so-called plastifying device to make tokens. I began with the File Card and Labels examples from the wiki, then tried to change the \installpagearrangement example from the 'imposition' wiki page. My question is: how to position everything in the middle of the sheet, so that double-siding actually works? As is, it's all in the top left corner. Changing the location argument for "location=middle" in \setuplayout doesn't work here. What should it be? By the way, I'm not sure about the 3rd, 4th and 6th arguments in the dosetuparrangement command. Thanks a lot! Here it is: \installpagearrangement 2*5*double*2*5 {\dosetuparrangement{5}{2}{10}{3}{6}% X,Y,Total,hcutmarks,vcutmarks \pusharrangedpageTWOFIVEDOUBLESIDED\poparrangedpagesAB\relax} \def\pusharrangedpageTWOFIVEDOUBLESIDED#1% {\advancearrangedpageN \reportarrangedpage\arrangedpageN \ifcase\arrangedpageN \or \handlearrangedpageXandY{#1}000\arrangedpageA % 1 rot,hskip,vskip \or \handlearrangedpageXandY{#1}010\arrangedpageB % 2 \or \handlearrangedpageXandY{#1}010\arrangedpageA % 3 \or \handlearrangedpageXandY{#1}000\arrangedpageB % 4 \or \handlearrangedpageXandY{#1}001\arrangedpageA % 5 \or \handlearrangedpageXandY{#1}011\arrangedpageB % 6 \or \handlearrangedpageXandY{#1}011\arrangedpageA % 7 \or \handlearrangedpageXandY{#1}001\arrangedpageB % 8 \or \handlearrangedpageXandY{#1}002\arrangedpageA % 9 \or \handlearrangedpageXandY{#1}012\arrangedpageB % 10 \or \handlearrangedpageXandY{#1}012\arrangedpageA % ... \or \handlearrangedpageXandY{#1}002\arrangedpageB % \or \handlearrangedpageXandY{#1}003\arrangedpageA % \or \handlearrangedpageXandY{#1}013\arrangedpageB % \or \handlearrangedpageXandY{#1}013\arrangedpageA % \or \handlearrangedpageXandY{#1}003\arrangedpageB % \or \handlearrangedpageXandY{#1}004\arrangedpageA % \or \handlearrangedpageXandY{#1}014\arrangedpageB % \or \handlearrangedpageXandY{#1}014\arrangedpageA % \or \handlearrangedpageXandY{#1}004\arrangedpageB % \poparrangedpages \fi} \definepapersize[Etiquette][width=80.0mm,height=50.0mm] \setuppapersize [Etiquette][A4] \setuparranging [2*5*double*2*5] %\setuplayout [margin=0pt, width=fit] \setuplayout[ %location=middle,%nx=2,ny=5, %location=middle, location=left, marking=on, margin=0mm, topspace=0mm, backspace=0mm, width=fit, %header=0mm, %footer=0mm, %align=middle, ] \showframe %\setuppagenumbering[state=stop] \setuppagenumbering[alternative=doublesided] \starttext \dorecurse{20}{\vbox to \textheight{\vfill\midaligned{\tfd ABC}\vfill}\page} \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 ___