Re: [NTG-context] Strange vertical result with itemize in columns
Dear Mikael, I have had the similar experience. Hans suggested another command “\NI” and “\itemtag” for this case. Please check the following mail and wiki. https://mailman.ntg.nl/pipermail/ntg-context/2017/089872.html <https://mailman.ntg.nl/pipermail/ntg-context/2017/089872.html> http://wiki.contextgarden.net/Tabulate <http://wiki.contextgarden.net/Tabulate> Best regards, Dalyoung > 2018. 9. 3. 오후 9:38, ntg-context-requ...@ntg.nl 작성: > > Hi, > > the following example generates (with latest standalone) the attached > result. As you can see, the final item is not correctly aligned vertically. > Am I doing something wrong, or is it a bug? > > /Mikael > > PS Yes, I use \displaystyle in the real example, but the same error exist > with this simpler example. > > \starttext > \startTEXpage[offset=2bp] > \startitemize[n] > \startitem > Let $f(x)=\sin x$ and $g(x)=x$. Discuss the limits > \startitemize[a,columns,three][left=,right={)},stopper=] > \startitem $\lim_{x\to 0}\frac{f(x)}{g(x)}$,\stopitem > \startitem $\lim_{x\to+\infty}\frac{f(x)}{g(x)}$,\stopitem > \startitem $\lim_{x\to 0}f(x)$.\stopitem > \stopitemize > \stopitem > \stopitemize > \stopTEXpage > \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 ___
[NTG-context] Strange vertical result with itemize in columns
Hi, the following example generates (with latest standalone) the attached result. As you can see, the final item is not correctly aligned vertically. Am I doing something wrong, or is it a bug? /Mikael PS Yes, I use \displaystyle in the real example, but the same error exist with this simpler example. \starttext \startTEXpage[offset=2bp] \startitemize[n] \startitem Let $f(x)=\sin x$ and $g(x)=x$. Discuss the limits \startitemize[a,columns,three][left=,right={)},stopper=] \startitem $\lim_{x\to 0}\frac{f(x)}{g(x)}$,\stopitem \startitem $\lim_{x\to+\infty}\frac{f(x)}{g(x)}$,\stopitem \startitem $\lim_{x\to 0}f(x)$.\stopitem \stopitemize \stopitem \stopitemize \stopTEXpage \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] closesymbol on same line as displayed formula
Dear Aditya, Thank you for the reply. >> \startproof >> \startitemize[n] >> \item first line. >> \item second line > > Add: \placeclosesymbol here > >> \stopitemize >> \stopproof >> >> \stoptext > It works in many cases that item content ends with words. But it is not working if the item contents end with \stopformula. If I put \placeclosesymbol before \stopformula, then it is shown just after the last word. Anyway, it works in most cases. Thank you again. Best regards, Dalyoung % \defineenumeration[proof][text=Proof.] \setupenumeration[proof] [number=no, closesymbol=\mathematics{\square}, closecommand=\ifmmode\eqno\else\wordright\fi] \starttext \startproof This is a simple proof. \startformula 1+1=2. \stopformula \placeclosesymbol \stopproof \startproof This is another simple proof that ends with a formula \startformula 1+1=2. \placeclosesymbol \stopformula \stopproof \startproof \startitemize[n] \item first line. \item Here is an example. \startformula \cosh x + \sinh x = e^x,~~\cosh x - \sinh x = e^{-x} \stopformula The next formula is following: \startformula\startalign \NC\sinh (x + y) \NC= \frac{e^{x+y} - e^{-(x+y)}}{2} \NR \NC \NC = \frac{e^x e^y - e^{-x}e^{-y}}{2} \NR%$ \NC \NC = \frac{(\cosh x + \sinh x)(\cosh y + \sinh y) - (\cosh x - \sinh x)(\cosh y - \sinh y)}{2} \NR \NC \NC = \sinh x \cosh y + \cosh x \sinh y \NR \stopalign \stopformula \placeclosesymbol \stopitemize \stopproof \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] closesymbol on same line as displayed formula
On Mon, 27 Aug 2018, Jeong Dal wrote: Hi, The same thing happens after the itemization as in the following MWE. \defineenumeration[proof][text=Proof.] \setupenumeration[proof] [number=no, closesymbol=\mathematics{\square}, closecommand=\ifmmode\eqno\else\wordright\fi] \starttext \startproof This is a simple proof. \stopproof \startproof This is another simple proof that ends with a formula \startformula 1+1=2. \stopformula \stopproof \startproof \startitemize[n] \item first line. \item second line Add: \placeclosesymbol here \stopitemize \stopproof \stoptext For display equations, there is not easy solution. (What should happen if there is an equation number; what should happen if the display equation overflows hsize, etc.). The latex package `ntheorem` implements a two pass solution (measures where the equation number box gets placed, and then add the close symbol below it). I am not sure how easy it is to implement such an approach in ConTeXt. 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 ___
Re: [NTG-context] closesymbol on same line as displayed formula
Hi, I am sorry to bring up old topic “Re: closesymbol on same line as displayed formula” again. (ntg-context Digest, Vol 153, Issue 40) Is there any progress after that? It seems to me that there is no more discussions about it. The same thing happens after the itemization as in the following MWE. Thank you for reading. Best regards, Dalyoung \defineenumeration[proof][text=Proof.] \setupenumeration[proof] [number=no, closesymbol=\mathematics{\square}, closecommand=\ifmmode\eqno\else\wordright\fi] \starttext \startproof This is a simple proof. \stopproof \startproof This is another simple proof that ends with a formula \startformula 1+1=2. \stopformula \stopproof \startproof \startitemize[n] \item first line. \item second line \stopitemize \stopproof \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] Some questions about an extreme table
The normal alignment of figures is with the bottom of the figure on the baseline. You can control the vertical alignment with a few box commands but what you should use depends on the context, in tables I would use 2 while in running text 3 can be better. Which alignment you’re using is your choice. \useMPlibrary[dum] \defineexternalfigure[dummy][width=4cm,height=3cm] \setuplayout[grid=yes] \showgrid \starttext Default: \externalfigure[dummy] %1: \bottomrightbox{\externalfigure[dummy]}\quad 1: \aligned[bottom,right]{\externalfigure[dummy]}\quad 2: \tbox{\externalfigure[dummy]}\quad 3: \bbox{\externalfigure[dummy]} \stoptext Wolfgang Fabrice Couvreur schrieb am 26.08.18 um 10:50: Hi Wolfgang, Thank you but is not it better that the top of the figure is on the baseline of the label ? Fabrice @Mikael I meant : is the macro robust ? Le dim. 26 août 2018 à 09:58, Wolfgang Schuster <mailto:wolfgang.schuster.li...@gmail.com>> a écrit : Number them by hand (or replace the descriptions I used with enumerations). The alignment of the graphics can be improved with the \tbox command, which raises the argument by the height of a strut. \useMPlibrary[dum] \switchtobodyfont[pagella,12pt] \setuplayout [topspace=10mm, header=10mm, footer=10mm, height=middle, backspace=20mm, width=middle] \definedescription [Item] [width=1.5em, distance=none] \starttext \startxtable[bodyfont=10pt] \startxrow \startxcell[width=2cm] Expression\\\m{B'(x)} \stopxcell \startxcell \startItem{a.}\m{B'(x)=-x²+24x-117}\stopItem \stopxcell \startxcell \startItem{b.}\m{B'(x)=-3x²+48x-117}\stopItem \stopxcell \startxcell \startItem{c.}\m{B'(x)=-3x²+48x-317}\stopItem \stopxcell \stopxrow \startxrow \startxcell Tableau de \\ signes de \\ \m{B'(x)} \stopxcell \startxcell \startItem{d.}\tbox{\externalfigure[dummy]}\stopItem \stopxcell \startxcell \startItem{e.}\tbox{\externalfigure[dummy]}\stopItem \stopxcell \startxcell \startItem{f.}\tbox{\externalfigure[dummy]}\stopItem \stopxcell \stopxrow \startxrow \startxcell Tableau de\\variations\\de \m{B} \stopxcell \startxcell \startItem{g.}\tbox{\externalfigure[dummy]}\stopItem \stopxcell \startxcell \startItem{h.}\tbox{\externalfigure[dummy]}\stopItem \stopxcell \startxcell \startItem{i.}\tbox{\externalfigure[dummy]}\stopItem \stopxcell \stopxrow \stopxtable \stoptext Wolfgang Fabrice Couvreur schrieb am 26.08.18 um 01:49: Hello, In the table, how to have a. b. c. in each line instead of a. a. a ? Is the macro to place the figures on the baseline of the labels to be improved ? Thanks. Fabrice \useMPlibrary[dum] \switchtobodyfont[pagella,12pt] \unexpanded\def\Item#1{\framed[frame=off,location=hanging]{#1}} \setuplayout [topspace=10mm, header=10mm, footer=10mm, height=middle, backspace=20mm, width=middle] \starttext \startxtable[frame=on,bodyfont=10pt] \startxrow \startxcell[width=2cm] Expression \\ \m{B'(x)} \stopxcell \startxcell \startitemize[packed,a] \startitem \m{B'(x)=-x²+24x-117} \stopitem \stopitemize \stopxcell \startxcell \startitemize[packed,a] \startitem \m{B'(x)=-3x²+48x-117} \stopitem \stopitemize \stopxcell \startxcell \startitemize[packed,a] \startitem \m{B'(x)=-3x²+48x-317} \stopitem \stopitemize \stopxcell \stopxrow \startxrow \startxcell Tableau de \\ signes de \\ \m{B'(x)} \stopxcell \startxcell \startitemize[packed,a] \startitem \Item{{\externalfigure[dummy]}} \stopitem \stopitemize \stopxcell \startxcell \startitemize[packed,a] \startitem \Item{\externalfigure[dummy]} \stopitem \stopitemize \stopxcell \startxcell \startitemize[packed,a] \startitem \Item{\externalfigure[dummy]} \stopitem \stopitemize \stopxcell \stopxrow \startxrow \s
Re: [NTG-context] Some questions about an extreme table
Number them by hand (or replace the descriptions I used with enumerations). The alignment of the graphics can be improved with the \tbox command, which raises the argument by the height of a strut. \useMPlibrary[dum] \switchtobodyfont[pagella,12pt] \setuplayout [topspace=10mm, header=10mm, footer=10mm, height=middle, backspace=20mm, width=middle] \definedescription [Item] [width=1.5em, distance=none] \starttext \startxtable[bodyfont=10pt] \startxrow \startxcell[width=2cm] Expression\\\m{B'(x)} \stopxcell \startxcell \startItem{a.}\m{B'(x)=-x²+24x-117}\stopItem \stopxcell \startxcell \startItem{b.}\m{B'(x)=-3x²+48x-117}\stopItem \stopxcell \startxcell \startItem{c.}\m{B'(x)=-3x²+48x-317}\stopItem \stopxcell \stopxrow \startxrow \startxcell Tableau de \\ signes de \\ \m{B'(x)} \stopxcell \startxcell \startItem{d.}\tbox{\externalfigure[dummy]}\stopItem \stopxcell \startxcell \startItem{e.}\tbox{\externalfigure[dummy]}\stopItem \stopxcell \startxcell \startItem{f.}\tbox{\externalfigure[dummy]}\stopItem \stopxcell \stopxrow \startxrow \startxcell Tableau de\\variations\\de \m{B} \stopxcell \startxcell \startItem{g.}\tbox{\externalfigure[dummy]}\stopItem \stopxcell \startxcell \startItem{h.}\tbox{\externalfigure[dummy]}\stopItem \stopxcell \startxcell \startItem{i.}\tbox{\externalfigure[dummy]}\stopItem \stopxcell \stopxrow \stopxtable \stoptext Wolfgang Fabrice Couvreur schrieb am 26.08.18 um 01:49: Hello, In the table, how to have a. b. c. in each line instead of a. a. a ? Is the macro to place the figures on the baseline of the labels to be improved ? Thanks. Fabrice \useMPlibrary[dum] \switchtobodyfont[pagella,12pt] \unexpanded\def\Item#1{\framed[frame=off,location=hanging]{#1}} \setuplayout [topspace=10mm, header=10mm, footer=10mm, height=middle, backspace=20mm, width=middle] \starttext \startxtable[frame=on,bodyfont=10pt] \startxrow \startxcell[width=2cm] Expression \\ \m{B'(x)} \stopxcell \startxcell \startitemize[packed,a] \startitem \m{B'(x)=-x²+24x-117} \stopitem \stopitemize \stopxcell \startxcell \startitemize[packed,a] \startitem \m{B'(x)=-3x²+48x-117} \stopitem \stopitemize \stopxcell \startxcell \startitemize[packed,a] \startitem \m{B'(x)=-3x²+48x-317} \stopitem \stopitemize \stopxcell \stopxrow \startxrow \startxcell Tableau de \\ signes de \\ \m{B'(x)} \stopxcell \startxcell \startitemize[packed,a] \startitem \Item{{\externalfigure[dummy]}} \stopitem \stopitemize \stopxcell \startxcell \startitemize[packed,a] \startitem \Item{\externalfigure[dummy]} \stopitem \stopitemize \stopxcell \startxcell \startitemize[packed,a] \startitem \Item{\externalfigure[dummy]} \stopitem \stopitemize \stopxcell \stopxrow \startxrow \startxcell Tableau de \\ variations\\de \m{B} \stopxcell \startxcell \startitemize[packed,a] \startitem \Item{\externalfigure[dummy]} \stopitem \stopitemize \stopxcell \startxcell \startitemize[packed,a] \startitem \Item{\externalfigure[dummy]} \stopitem \stopitemize \stopxcell \startxcell \startitemize[packed,a] \startitem \Item{\externalfigure[dummy]} \stopitem \stopitemize \stopxcell \stopxrow \stopxtable \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] Some questions about an extreme table
On Sun, Aug 26, 2018 at 1:49 AM Fabrice Couvreur < fabrice1.couvr...@gmail.com> wrote: > Hello, > In the table, how to have a. b. c. in each line instead of a. a. a ? > Is the macro to place the figures on the baseline of the labels to be > improved ? > Thanks. > Fabrice > > \useMPlibrary[dum] > > \switchtobodyfont[pagella,12pt] > > \unexpanded\def\Item#1{\framed[frame=off,location=hanging]{#1}} > > \setuplayout >[topspace=10mm, > header=10mm, > footer=10mm, > height=middle, > backspace=20mm, > width=middle] > > \starttext > \startxtable[frame=on,bodyfont=10pt] > \startxrow > \startxcell[width=2cm] > Expression \\ \m{B'(x)} > \stopxcell > \startxcell > \startitemize[packed,a] > \startitem > \m{B'(x)=-x²+24x-117} > \stopitem > \stopitemize > \stopxcell > \startxcell > \startitemize[packed,a] > \startitem > \m{B'(x)=-3x²+48x-117} > \stopitem > \stopitemize > \stopxcell > \startxcell > \startitemize[packed,a] > \startitem > \m{B'(x)=-3x²+48x-317} > \stopitem > \stopitemize > \stopxcell > \stopxrow > \startxrow > \startxcell > Tableau de \\ signes de \\ \m{B'(x)} > \stopxcell > \startxcell > \startitemize[packed,a] > \startitem > \Item{{\externalfigure[dummy]}} > \stopitem > \stopitemize > \stopxcell > \startxcell > \startitemize[packed,a] > \startitem > \Item{\externalfigure[dummy]} > \stopitem > \stopitemize > \stopxcell > \startxcell > \startitemize[packed,a] > \startitem > \Item{\externalfigure[dummy]} > \stopitem > \stopitemize > \stopxcell > \stopxrow > \startxrow > \startxcell > Tableau de \\ variations\\de \m{B} > \stopxcell > \startxcell > \startitemize[packed,a] > \startitem > \Item{\externalfigure[dummy]} > \stopitem > \stopitemize > \stopxcell > \startxcell > \startitemize[packed,a] > \startitem > \Item{\externalfigure[dummy]} > \stopitem > \stopitemize > \stopxcell > \startxcell > \startitemize[packed,a] > \startitem > \Item{\externalfigure[dummy]} > \stopitem > \stopitemize > \stopxcell > \stopxrow > \stopxtable > > \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 > > ___ For the first one, I think you look for \startitemize[packed,a,continue]. For the second question, I don't understand if the output now looks as you want it or not? /Mikael ___ 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] Some questions about an extreme table
Hello, In the table, how to have a. b. c. in each line instead of a. a. a ? Is the macro to place the figures on the baseline of the labels to be improved ? Thanks. Fabrice \useMPlibrary[dum] \switchtobodyfont[pagella,12pt] \unexpanded\def\Item#1{\framed[frame=off,location=hanging]{#1}} \setuplayout [topspace=10mm, header=10mm, footer=10mm, height=middle, backspace=20mm, width=middle] \starttext \startxtable[frame=on,bodyfont=10pt] \startxrow \startxcell[width=2cm] Expression \\ \m{B'(x)} \stopxcell \startxcell \startitemize[packed,a] \startitem \m{B'(x)=-x²+24x-117} \stopitem \stopitemize \stopxcell \startxcell \startitemize[packed,a] \startitem \m{B'(x)=-3x²+48x-117} \stopitem \stopitemize \stopxcell \startxcell \startitemize[packed,a] \startitem \m{B'(x)=-3x²+48x-317} \stopitem \stopitemize \stopxcell \stopxrow \startxrow \startxcell Tableau de \\ signes de \\ \m{B'(x)} \stopxcell \startxcell \startitemize[packed,a] \startitem \Item{{\externalfigure[dummy]}} \stopitem \stopitemize \stopxcell \startxcell \startitemize[packed,a] \startitem \Item{\externalfigure[dummy]} \stopitem \stopitemize \stopxcell \startxcell \startitemize[packed,a] \startitem \Item{\externalfigure[dummy]} \stopitem \stopitemize \stopxcell \stopxrow \startxrow \startxcell Tableau de \\ variations\\de \m{B} \stopxcell \startxcell \startitemize[packed,a] \startitem \Item{\externalfigure[dummy]} \stopitem \stopitemize \stopxcell \startxcell \startitemize[packed,a] \startitem \Item{\externalfigure[dummy]} \stopitem \stopitemize \stopxcell \startxcell \startitemize[packed,a] \startitem \Item{\externalfigure[dummy]} \stopitem \stopitemize \stopxcell \stopxrow \stopxtable \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] \definetextbackground does not fill tables within
Floating objects (\placetable, \placefigure, ... and footnotes, etc.) do not inherit the text background, for indeed, imagine that it floats to another location. Here, you use location=force, so one might expect it to use the text background... In fact, side floats, location=left and location=right, do get the text background color, so there is a *kludge* possible there: \startplacetable [location=right] ... \stopplacetable \flushsidefloats ... (incomplete example) Alan P.S. Hans: maybe location=force ought to work similarly with respect to text backgrounds as location=left or location=right. On Mon, 13 Aug 2018 21:37:45 + dxpubl...@posteo.net wrote: > Hi, > > I have simple document which I define my \definetextbackground: > \startteoria and \stopteoria (see below). When I use it and put table > within, the table does not get filled with color. Any solution? > > Thanks in advance, > Xavier > > \definecolor[teoriacolor][lightgray] > > \definetextbackground[bteoria][ > frame=off, > location=paragraph, > background=color, > backgroundcolor=teoriacolor, % fins aquí provat: > http://www.mail-archive.com/ntg-context%40ntg.nl/msg78014.html > %width=broad, > %corner=round, > %radius=5ex, > leftoffset=10pt,rightoffset=10pt, > topoffset=10pt,bottomoffset=10pt > %offset=-5pt > ] > > \definestartstop[teoria][before={\begingroup\blank[big]\testpage[2]\starttextbackground[bteoria]},after={\stoptextbackground\blank[big]\endgroup}] > > > \starttext > > \startteoria > \input tufte > > \placetable[force,none][taula:teoria:1]{Recopilació de dades. Conceptes > fonamentals}{ > \starttable[|l|p(.6\textwidth)|] > \NC Població: \NC Són {\em tots} els elements que són objecte d'estudi > \NC \FR > \HL > \NC Mostra: \NC La {\em part} de la població de la qual recopilem les > dades i estudiam. > > Poques vegades coincideix amb la població. Una bona mostra necessita ser > suficientment heterogènia per a poder representar la població. > > Es pot determinar el tamany mínim necessari per a què una mostra tengui > la representativitat necessària amb un marge d'error. \NC \MR > \HL > \NC Grandària: \NC {\em Nombre} d'elements de la població o de la > mostra. \NC \MR > \HL > \NC Variable estadística: \NC Cadascuna de les {\em propietats} o > característiques que volem estudiar d'un conjunt de dades. \NC \LR > \stoptable} > > Existeixen dues branques de l'estadística: > > \startitemize > \item L'{\em estadística descriptiva}, que simplement descriu i > interpreta les característiques del grup d'estudi, tal com és. Fa un > {\em retrat} de la població. > \item L'{\em estadística inferencial} que intenta fer prediccions i > justificar que la mostra s'adeqüa a la població, de manera que les > característiques de la mostra siguin les mateixes que les > característiques de la població. > \stopitemize > > > \stopteoria > > \stoptext > > > > > Result (see pdf file) ___ 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] \definetextbackground does not fill tables within
Hi, I have simple document which I define my \definetextbackground: \startteoria and \stopteoria (see below). When I use it and put table within, the table does not get filled with color. Any solution? Thanks in advance, Xavier \definecolor[teoriacolor][lightgray] \definetextbackground[bteoria][ frame=off, location=paragraph, background=color, backgroundcolor=teoriacolor, % fins aquí provat: http://www.mail-archive.com/ntg-context%40ntg.nl/msg78014.html %width=broad, %corner=round, %radius=5ex, leftoffset=10pt,rightoffset=10pt, topoffset=10pt,bottomoffset=10pt %offset=-5pt ] \definestartstop[teoria][before={\begingroup\blank[big]\testpage[2]\starttextbackground[bteoria]},after={\stoptextbackground\blank[big]\endgroup}] \starttext \startteoria \input tufte \placetable[force,none][taula:teoria:1]{Recopilació de dades. Conceptes fonamentals}{ \starttable[|l|p(.6\textwidth)|] \NC Població: \NC Són {\em tots} els elements que són objecte d'estudi \NC \FR \HL \NC Mostra: \NC La {\em part} de la població de la qual recopilem les dades i estudiam. Poques vegades coincideix amb la població. Una bona mostra necessita ser suficientment heterogènia per a poder representar la població. Es pot determinar el tamany mínim necessari per a què una mostra tengui la representativitat necessària amb un marge d'error. \NC \MR \HL \NC Grandària: \NC {\em Nombre} d'elements de la població o de la mostra. \NC \MR \HL \NC Variable estadística: \NC Cadascuna de les {\em propietats} o característiques que volem estudiar d'un conjunt de dades. \NC \LR \stoptable} Existeixen dues branques de l'estadística: \startitemize \item L'{\em estadística descriptiva}, que simplement descriu i interpreta les característiques del grup d'estudi, tal com és. Fa un {\em retrat} de la població. \item L'{\em estadística inferencial} que intenta fer prediccions i justificar que la mostra s'adeqüa a la població, de manera que les característiques de la mostra siguin les mateixes que les característiques de la població. \stopitemize \stopteoria \stoptext Result (see pdf file) prova.pdf Description: Adobe PDF 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] Enumerations in an environment
Fabrice Couvreur schrieb am 13.08.18 um 12:35: Hello, How to have : Démonstration --- 1.one 2.two 3.three Thanks Fabrice \defineenumeration [proof] [text=Démonstration, alternative=serried, number=no, headcommand=\groupedcommand{}{~---~}, headstyle=bolditalic, %headcommand=\groupedcommand{}{:\,}, width=broad, closesymbol={\symbol[square]}] \starttext \startproof \startitemize[n] \item one \item two \item three \stopitemize \stopproof \startproof \startitemize[n,text][lefttext=,righttext=] \item one\par \item two\par \item three \stopitemize \stopproof 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] Enumerations in an environment
Hello, How to have : Démonstration --- 1.one 2.two 3.three Thanks Fabrice \defineenumeration [proof] [text=Démonstration, alternative=serried, number=no, headcommand=\groupedcommand{}{~---~}, headstyle=bolditalic, %headcommand=\groupedcommand{}{:\,}, width=broad, closesymbol={\symbol[square]}] \starttext \startproof \startitemize[n] \item one \item two \item three \stopitemize \stopproof \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] How to do an inline itemization?
Dear Wolfgang, > > \starttext > \startitemize[n,packed][stopper=)]% [stopper=,right=)] > \item This is a test for the referencing the formula like\par > \item This is a test for the referencing the formula like\par > \item This is a test for the referencing the formula like. > \stopitemize > \stoptext > It is good in general case. Sometimes I need to have an output as following: Solution 1) This is the solution of the first question. 2) This is the solution of the second question. 3) … It is done by \startitemize[n, text][stopper=,lefttext=] which works well in my text. However, in the following example, there is no difference at all. strange! %%% \defineenumeration[Solution] [text={\ss\bf Solution}, number=no, after=\blank] \starttext \startSolution \startitemize[n,packed][stopper=)] \item This is a test for the referencing the formula like \item This is a test for the referencing the formula like \item This is a test for the referencing the formula like. \stopitemize \stopSolution \startSolution \startitemize[n, text][stopper=, lefttext=] \item This is a test for the referencing the formula like\par \item This is a test for the referencing the formula like\par \item This is a test for the referencing the formula like. \stopitemize \stopSolution \stoptext %%% Thank you for your concern. 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] How to do an inline itemization?
\starttext \startitemize[n,packed][stopper=)]% [stopper=,right=)] \item This is a test for the referencing the formula like\par \item This is a test for the referencing the formula like\par \item This is a test for the referencing the formula like. \stopitemize \stoptext Wolfgang Jeong Dal schrieb am 10.08.18 um 10:53: Dear Hans, Thank you for the solution. It works perfectly. Have a nice weekend. Best regards, Dalyoung % \setupinteraction[state=start] \starttext \startitemize[n,text][stopper=,lefttext=,] \item This is a test for the referencing the formula like\par \item This is a test for the referencing the formula like\par \item This is a test for the referencing the formula like. \stopitemize \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 ___
Re: [NTG-context] How to do an inline itemization?
Dear Hans, Thank you for the solution. It works perfectly. Have a nice weekend. Best regards, Dalyoung % \setupinteraction[state=start] \starttext \startitemize[n,text][stopper=,lefttext=,] \item This is a test for the referencing the formula like\par \item This is a test for the referencing the formula like\par \item This is a test for the referencing the formula like. \stopitemize \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] How to do an inline itemization?
On 8/10/2018 8:09 AM, Jeong Dal wrote: Dear Thomas, Using your example, \starttext \startitemize[n,text] \startitem One \stopitem \startitem Two \stopitem \stopitemize \stoptext I tested the following example and it is working well. % \starttext \startitemize[n,text] \item This is the first sentence. \par \item This is the second sentence. \par \item This is the third sentence. \par \stopitemize \stoptext % The numbers are always in the () by default like (1) (2)… I’d like to ask one thing more. Is it possible to make the output 1), 2), 3)? \startitemize[n,text][stopper=,left=,right=)] just add one more ) like (1)),… lefttext= - 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] How to do an inline itemization?
Dear Thomas, Using your example, > \starttext > > \startitemize[n,text] > \startitem > One > \stopitem > \startitem > Two > \stopitem > \stopitemize > > \stoptext > I tested the following example and it is working well. % \starttext \startitemize[n,text] \item This is the first sentence. \par \item This is the second sentence. \par \item This is the third sentence. \par \stopitemize \stoptext % The numbers are always in the () by default like (1) (2)… I’d like to ask one thing more. Is it possible to make the output 1), 2), 3)? \startitemize[n,text][stopper=,left=,right=)] just add one more ) like (1)),… Thank you for reading. 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] columns unexpected (odd) results
On 8/1/2018 12:37 PM, Pablo Rodriguez wrote: On 08/01/2018 11:48 AM, Henri Menke wrote: Cannot reproduce with TL2018 or latest beta. Hi Henri, I’m afraid that Floris is right. With latest beta and a simple improvement to your file, I get wrong output: \starttext \startlines Testing 1971-04-26 \startcolumns[n=3] \dorecurse{200}{+ 17271 \rightarrow\ 2018-08-08 } \stopcolumns \stoplines \stoptext If the closing parenthesis is on the same line, the plus sign is misplaced in the last item. With the previous sample, the second page gets a wrong interline space (between the third and the fourth item from the first column). quick hack: \unprotect \unexpanded\def\page_otr_synchronize_page_indeed {\ifx\currentoutputroutine\s!multicolumn\else\clf_synchronizepage\fi \glet\page_otr_synchronize_page\page_otr_synchronize_page_yes} \protect Actually I don't see it here because i have \definemixedcolumns [\v!columns] [\c!balance=\v!yes, \c!blank={\v!line,\v!fixed}] \unexpanded\def\setupcolumns {\setupmixedcolumns[\v!columns]} in a local test file (already for years so maybe it's time time to make that default) (btw, pagecolumns are an other alternative) 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 with an enumeration
Hi Wolfgang, Thank you very much ! Fabrice 2018-08-01 21:21 GMT+02:00 Wolfgang Schuster < wolfgang.schuster.li...@gmail.com>: > Hi Fabrice, > > I found the following example in my mail archive. > > %% > \define\ItemCommand > {\hskip\zeropoint\relax\autoinsertnextspace} > > \setupitemgroup > [itemize] > [color=darkred, >distance=0pt] > > \setupitemgroup > [itemize:1] > [option={n,packed,fit,intext}, >command=\ItemCommand] > > \setupitemgroup > [itemize:2] > [lefttext=, >righttext=, >option={a,text}] > > \starttext > > \startitemize > > \item We thrive in \unknown > > \item \startitemize > \item \input tufte\par > \item \input tufte > \stopitemize > > \stopitemize > > \stoptext > %% > > PS. If you want an answer from me you should add me to cc because I have > problems getting mails from the list. > > Wolfgang > > > Fabrice Couvreur schrieb am 31.07.18 um 23:58: > > Hi Pablo, > That's not what I'm looking for but rather this: > > *1.a.* blablablabla > blablablabla > *b.* blablablabla > blablablabla > *c.* blablablabla > blablablabla > > Which explains the use of the key intext > Fabrice > > 2018-07-31 13:31 GMT+02:00 Pablo Rodriguez : > >> On 07/31/2018 12:18 PM, Fabrice Couvreur wrote: >> > Hello, >> > Wolfgang helped me to get this: >> > >> > 1.a. >> > b. >> > c. >> > 2.a >> > b. >> > c. >> > >> > I have unfortunately lost the code he had proposed to me. I get this: >> > >> > 1.a. >> > 1b >> > 1 C >> > 2.a >> > 2.b >> > 2.c >> >> Hi Fabrice, >> >> I don’t get your output. I had to remove the "intext" option and I guess >> I got what you intend: >> >> \setupitemgroup >>[itemize][1] >>[color=darkred, >> distance=\spaceamount, >> option={packed,fit,n}] >> >> \setupitemgroup >>[itemize][2] >>[color=darkred, >> distance=\spaceamount, >> option={packed,fit,a}] >> >> \starttext >> \startitemize >> \item \startitemize >> \item \input zapf >> >> \item \input knuth >> >> \item \input montgomery >> \stopitemize >> \item \startitemize >> \item \input zapf >> >> \item \input knuth >> >> \item \input montgomery >> \stopitemize >> \stopitemize >> \stoptext >> >> I hope it helps, >> >> 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/list >> info/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] columns unexpected (odd) results
Not sure as how to tell why it is misusing the line environment. But the suggested \par solution does not work. .F > On 1 Aug 2018, at 21:28, Wolfgang Schuster > wrote: > > Ending each line in a proper (e.g. by adding \par to finish the paragraph) > without the misuse the lines environment fixes the problem as well. > > \starttext > > Testing 1971-04-26 > > \startcolumns[n=3] > \dorecurse{200}{+ 17271 \rightarrow\ 2018-08-08\par} > \stopcolumns > > \stoptext > > Wolfgang > > > Taco Hoekwater schrieb am 01.08.18 um 13:04: >> Hi, >> >> Same problem I had. >> >> As a workaround, >> >> \setuplayout[grid=yes] >> >> helps. >> >>> On 1 Aug 2018, at 12:37, Pablo Rodriguez wrote: >>> >>> On 08/01/2018 11:48 AM, Henri Menke wrote: >>>> Cannot reproduce with TL2018 or latest beta. >>> Hi Henri, >>> >>> I’m afraid that Floris is right. With latest beta and a simple >>> improvement to your file, I get wrong output: >>> >>>\starttext >>>\startlines >>> Testing 1971-04-26 >>> \startcolumns[n=3] >>> \dorecurse{200}{+ 17271 \rightarrow\ 2018-08-08 >>> } >>> \stopcolumns >>>\stoplines >>>\stoptext >>> >>> If the closing parenthesis is on the same line, the plus sign is >>> misplaced in the last item. >>> >>> With the previous sample, the second page gets a wrong interline space >>> (between the third and the fourth item from the first column). >>> >>> 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 >>> ___ >> Taco Hoekwater >> Elvenkind BV >> >> >> >> >> ___ >> 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 > ___ signature.asc Description: Message signed with OpenPGP using GPGMail ___ 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] columns unexpected (odd) results
Ending each line in a proper (e.g. by adding \par to finish the paragraph) without the misuse the lines environment fixes the problem as well. \starttext Testing 1971-04-26 \startcolumns[n=3] \dorecurse{200}{+ 17271 \rightarrow\ 2018-08-08\par} \stopcolumns \stoptext Wolfgang Taco Hoekwater schrieb am 01.08.18 um 13:04: Hi, Same problem I had. As a workaround, \setuplayout[grid=yes] helps. On 1 Aug 2018, at 12:37, Pablo Rodriguez wrote: On 08/01/2018 11:48 AM, Henri Menke wrote: Cannot reproduce with TL2018 or latest beta. Hi Henri, I’m afraid that Floris is right. With latest beta and a simple improvement to your file, I get wrong output: \starttext \startlines Testing 1971-04-26 \startcolumns[n=3] \dorecurse{200}{+ 17271 \rightarrow\ 2018-08-08 } \stopcolumns \stoplines \stoptext If the closing parenthesis is on the same line, the plus sign is misplaced in the last item. With the previous sample, the second page gets a wrong interline space (between the third and the fourth item from the first column). 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 ___ Taco Hoekwater Elvenkind BV ___ 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] Problem with an enumeration
Hi Fabrice, I found the following example in my mail archive. %% \define\ItemCommand {\hskip\zeropoint\relax\autoinsertnextspace} \setupitemgroup [itemize] [color=darkred, distance=0pt] \setupitemgroup [itemize:1] [option={n,packed,fit,intext}, command=\ItemCommand] \setupitemgroup [itemize:2] [lefttext=, righttext=, option={a,text}] \starttext \startitemize \item We thrive in \unknown \item \startitemize \item \input tufte\par \item \input tufte \stopitemize \stopitemize \stoptext %% PS. If you want an answer from me you should add me to cc because I have problems getting mails from the list. Wolfgang Fabrice Couvreur schrieb am 31.07.18 um 23:58: Hi Pablo, That's not what I'm looking for but rather this: *1.a.* blablablabla blablablabla *b.* blablablabla blablablabla *c.* blablablabla blablablabla Which explains the use of the key intext Fabrice 2018-07-31 13:31 GMT+02:00 Pablo Rodriguez <mailto:oi...@gmx.es>>: On 07/31/2018 12:18 PM, Fabrice Couvreur wrote: > Hello, > Wolfgang helped me to get this: > > 1.a. > b. > c. > 2.a > b. > c. > > I have unfortunately lost the code he had proposed to me. I get this: > > 1.a. > 1b > 1 C > 2.a > 2.b > 2.c Hi Fabrice, I don’t get your output. I had to remove the "intext" option and I guess I got what you intend: \setupitemgroup [itemize][1] [color=darkred, distance=\spaceamount, option={packed,fit,n}] \setupitemgroup [itemize][2] [color=darkred, distance=\spaceamount, option={packed,fit,a}] \starttext \startitemize \item \startitemize \item \input zapf \item \input knuth \item \input montgomery \stopitemize \item \startitemize \item \input zapf \item \input knuth \item \input montgomery \stopitemize \stopitemize \stoptext I hope it helps, 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 <mailto:ntg-context@ntg.nl> / http://www.ntg.nl/mailman/listinfo/ntg-context <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/ <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] columns unexpected (odd) results
that works indeed. thank you .F > On 1 Aug 2018, at 13:04, Taco Hoekwater wrote: > > Hi, > > Same problem I had. > > As a workaround, > > \setuplayout[grid=yes] > > helps. > >> On 1 Aug 2018, at 12:37, Pablo Rodriguez wrote: >> >> On 08/01/2018 11:48 AM, Henri Menke wrote: >>> Cannot reproduce with TL2018 or latest beta. >> >> Hi Henri, >> >> I’m afraid that Floris is right. With latest beta and a simple >> improvement to your file, I get wrong output: >> >> \starttext >> \startlines >> Testing 1971-04-26 >> \startcolumns[n=3] >>\dorecurse{200}{+ 17271 \rightarrow\ 2018-08-08 >>} >> \stopcolumns >> \stoplines >> \stoptext >> >> If the closing parenthesis is on the same line, the plus sign is >> misplaced in the last item. >> >> With the previous sample, the second page gets a wrong interline space >> (between the third and the fourth item from the first column). >> >> 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 >> ___ > > Taco Hoekwater > Elvenkind BV > > > > > ___ > 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 > ___ signature.asc Description: Message signed with OpenPGP using GPGMail ___ 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] columns unexpected (odd) results
Hi, Same problem I had. As a workaround, \setuplayout[grid=yes] helps. > On 1 Aug 2018, at 12:37, Pablo Rodriguez wrote: > > On 08/01/2018 11:48 AM, Henri Menke wrote: >> Cannot reproduce with TL2018 or latest beta. > > Hi Henri, > > I’m afraid that Floris is right. With latest beta and a simple > improvement to your file, I get wrong output: > >\starttext >\startlines > Testing 1971-04-26 > \startcolumns[n=3] > \dorecurse{200}{+ 17271 \rightarrow\ 2018-08-08 > } > \stopcolumns >\stoplines >\stoptext > > If the closing parenthesis is on the same line, the plus sign is > misplaced in the last item. > > With the previous sample, the second page gets a wrong interline space > (between the third and the fourth item from the first column). > > 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 > ___ Taco Hoekwater Elvenkind BV ___ 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] columns unexpected (odd) results
On 08/01/2018 11:48 AM, Henri Menke wrote: > Cannot reproduce with TL2018 or latest beta. Hi Henri, I’m afraid that Floris is right. With latest beta and a simple improvement to your file, I get wrong output: \starttext \startlines Testing 1971-04-26 \startcolumns[n=3] \dorecurse{200}{+ 17271 \rightarrow\ 2018-08-08 } \stopcolumns \stoplines \stoptext If the closing parenthesis is on the same line, the plus sign is misplaced in the last item. With the previous sample, the second page gets a wrong interline space (between the third and the fourth item from the first column). 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] Problem with an enumeration
Hi Pablo, That's not what I'm looking for but rather this: *1.a.* blablablabla blablablabla *b.* blablablabla blablablabla *c.* blablablabla blablablabla Which explains the use of the key intext Fabrice 2018-07-31 13:31 GMT+02:00 Pablo Rodriguez : > On 07/31/2018 12:18 PM, Fabrice Couvreur wrote: > > Hello, > > Wolfgang helped me to get this: > > > > 1.a. > > b. > > c. > > 2.a > > b. > > c. > > > > I have unfortunately lost the code he had proposed to me. I get this: > > > > 1.a. > > 1b > > 1 C > > 2.a > > 2.b > > 2.c > > Hi Fabrice, > > I don’t get your output. I had to remove the "intext" option and I guess > I got what you intend: > > \setupitemgroup >[itemize][1] >[color=darkred, > distance=\spaceamount, > option={packed,fit,n}] > > \setupitemgroup >[itemize][2] >[color=darkred, > distance=\spaceamount, > option={packed,fit,a}] > > \starttext > \startitemize > \item \startitemize > \item \input zapf > > \item \input knuth > > \item \input montgomery > \stopitemize > \item \startitemize > \item \input zapf > > \item \input knuth > > \item \input montgomery > \stopitemize > \stopitemize > \stoptext > > I hope it helps, > > 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] Problem with an enumeration
On 07/31/2018 12:18 PM, Fabrice Couvreur wrote: > Hello, > Wolfgang helped me to get this: > > 1.a. > b. > c. > 2.a > b. > c. > > I have unfortunately lost the code he had proposed to me. I get this: > > 1.a. > 1b > 1 C > 2.a > 2.b > 2.c Hi Fabrice, I don’t get your output. I had to remove the "intext" option and I guess I got what you intend: \setupitemgroup [itemize][1] [color=darkred, distance=\spaceamount, option={packed,fit,n}] \setupitemgroup [itemize][2] [color=darkred, distance=\spaceamount, option={packed,fit,a}] \starttext \startitemize \item \startitemize \item \input zapf \item \input knuth \item \input montgomery \stopitemize \item \startitemize \item \input zapf \item \input knuth \item \input montgomery \stopitemize \stopitemize \stoptext I hope it helps, 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] xtables setup
Am 2018-07-29 um 13:19 schrieb Hans Hagen : > On 7/29/2018 11:28 AM, Henning Hraban Ramm wrote: >> Hello again, >> I’m trying xtables for the first time. >> Is it possible to setup defined rows/columns like with natural tables, e.g. >> for a header, like in my example? >> The commented lines below are wrong. Is there another way? > Did you read the manual? Yes, but I found only how to format each item (cell, row, column, group) within the table, not in advance, except as styles. But I don’t want to format e.g. each header cell of each table with a style if all tables should look the same. Looks like I’ll better stick to natural tables. Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD ___ 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] Limit text width in items
On 7/26/2018 3:43 PM, Henning Hraban Ramm wrote: Am 2018-07-23 um 13:33 schrieb Henning Hraban Ramm : Hello again, in the MWE below I’d like to limit the run width of the item text so that the (page) number is standing out, e.g. • This is a long and winding text that leads to a number .. 99 The text can become one or several lines long. I tried to put the text in boxes, e.g. \simplealignedbox{}{}{\vbox{...}} but I got only ugly spacing. Also, the last line of the text continues in that leaders and number. --- \def\leaderfill{\leaders\hbox to 1em{\hss. \hss}\hfill} \starttext \startitemize[packed,joinedup] \startitem \input tufte \leaderfill 33 \stopitem \startitem \input knuth \leaderfill 99 \stopitem \stopitemize \stoptext No idea? Anyone? Would it work to force an overfull hbox somehow in every last line? \def\MyFill#1% {\leaders\hbox to 1em{\hss.\hss}\hfill \rlap{\hbox to \rightskip{\hss#1}}} \showframe \starttext \startnarrower[2*right] \startitemize[packed,joinedup] \startitem \input tufte \MyFill{33} \stopitem \startitem \input knuth \MyFill{99} \stopitem \stopitemize \stopnarrower \stoptext - 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] Limit text width in items
Am 2018-07-23 um 13:33 schrieb Henning Hraban Ramm : > Hello again, > > in the MWE below I’d like to limit the run width of the item text so that the > (page) number is standing out, e.g. > > • This is a long and winding text > that leads to a number .. 99 > > The text can become one or several lines long. > > I tried to put the text in boxes, e.g. \simplealignedbox{}{}{\vbox{...}} but > I got only ugly spacing. > Also, the last line of the text continues in that leaders and number. > > --- > > \def\leaderfill{\leaders\hbox to 1em{\hss. \hss}\hfill} > > \starttext > > \startitemize[packed,joinedup] > \startitem > \input tufte > \leaderfill 33 > \stopitem > \startitem > \input knuth > \leaderfill 99 > \stopitem > \stopitemize > > \stoptext No idea? Anyone? Would it work to force an overfull hbox somehow in every last line? Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD ___ 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] Limit text width in items
Hello again, in the MWE below I’d like to limit the run width of the item text so that the (page) number is standing out, e.g. • This is a long and winding text that leads to a number .. 99 The text can become one or several lines long. I tried to put the text in boxes, e.g. \simplealignedbox{}{}{\vbox{...}} but I got only ugly spacing. Also, the last line of the text continues in that leaders and number. --- \def\leaderfill{\leaders\hbox to 1em{\hss. \hss}\hfill} \starttext \startitemize[packed,joinedup] \startitem \input tufte \leaderfill 33 \stopitem \startitem \input knuth \leaderfill 99 \stopitem \stopitemize \stoptext --- Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD ___ 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] More spurious problems in exports
On 7/18/2018 10:56, Hans Hagen wrote: On 7/18/2018 4:59 AM, Rik Kabel wrote: List, Another oddity with elements in XML / xhtml / html export: With a defined highlight, a break is inserted if the highlight is the first item in an environment. If it is not the first item in the environment, no break is inserted. Most of the other odd breaks can be dealt with in css. These are more difficult to tame -- for example, in the startlines environment in the example below, there is not enough information preserved to know if the tagged item is supposed to be a single line or not. (Tests using 2018-07-17 beta on Win64.) You get this, with the numbers representing the paragraph number: \starttext % foo \startparagraph \emIt{x 1} a 1 \stopparagraph \startparagraph {\emIt x 2} a unset \stopparagraph \stoptext of this: \starttext foo 1 \startparagraph \emIt{x 2} a 2 \stopparagraph \startparagraph {\emIt x 3} a 1 \stopparagraph \stoptext so, when the par number is effectively set inside a group you end up with bad tags which will force that break because it's a different paragraph .. no way to intercept or chaneg that The best I can do is issue a warning like export > fuzzy paragraph: a (U+00061) [space] - (U+0002D) 2 (U+00032) 1 (U+00031) 4 (U+00034) 7 (U+00037) 4 (U+00034) 8 (U+00038) 3 (U+00033) 6 (U+00036) 4 (U+00034) 7 (U+00037) backend > x so that one can fix the source. Changing from a font switch – {\emIt text} – to a command – \emit{text} – resolves the issue for these cases. I will add a note to the wiki that, when changing from font switches to highlighting, one should change the syntax. -- Rik ___ 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] More spurious problems in exports
On 7/18/2018 4:59 AM, Rik Kabel wrote: List, Another oddity with elements in XML / xhtml / html export: With a defined highlight, a break is inserted if the highlight is the first item in an environment. If it is not the first item in the environment, no break is inserted. Most of the other odd breaks can be dealt with in css. These are more difficult to tame -- for example, in the startlines environment in the example below, there is not enough information preserved to know if the tagged item is supposed to be a single line or not. (Tests using 2018-07-17 beta on Win64.) You get this, with the numbers representing the paragraph number: \starttext % foo \startparagraph \emIt{x 1} a 1 \stopparagraph \startparagraph {\emIt x 2} a unset \stopparagraph \stoptext of this: \starttext foo 1 \startparagraph \emIt{x 2} a 2 \stopparagraph \startparagraph {\emIt x 3} a 1 \stopparagraph \stoptext so, when the par number is effectively set inside a group you end up with bad tags which will force that break because it's a different paragraph .. no way to intercept or chaneg that The best I can do is issue a warning like export > fuzzy paragraph: a (U+00061) [space] - (U+0002D) 2 (U+00032) 1 (U+00031) 4 (U+00034) 7 (U+00037) 4 (U+00034) 8 (U+00038) 3 (U+00033) 6 (U+00036) 4 (U+00034) 7 (U+00037) backend > x so that one can fix the source. Has anyone dealt with this before? Is there a way to control the insertion of the breaks? MWE: \setupbackend [export=yes] \definehighlight [emIt] [style=italic] \starttext \startparagraph {\emIt Taa} aaa aa a aa aaa aa aa aa. Taa a, a aa a a. \stopparagraph \startparagraph Taa {\emIt aaa} aa a aa aaa aa aa aa. Taa a, a aa a a. \stopparagraph \startlines {\emIt Xyz} abcdefg Xyz {\emIt abcdefg} \stoplines \stoptext XML output snip: http://www.w3.org/1998/Math/MathML;> Taa aaa aa a aa aaa aa aa aa. Taa a, a aa a a. Taa aaa aa a aa aaa aa aa aa. Taa a, a aa a a. Xyz abcdefg Xyz abcdefg Rendered in Firefox: -- Rik ___ 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 ___ -- - 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] More spurious problems in exports
On 7/18/2018 4:59 AM, Rik Kabel wrote: List, Another oddity with elements in XML / xhtml / html export: With a defined highlight, a break is inserted if the highlight is the first item in an environment. If it is not the first item in the environment, no break is inserted. Most of the other odd breaks can be dealt with in css. These are more difficult to tame -- for example, in the startlines environment in the example below, there is not enough information preserved to know if the tagged item is supposed to be a single line or not. (Tests using 2018-07-17 beta on Win64.) Has anyone dealt with this before? Is there a way to control the insertion of the breaks? MWE: \setupbackend [export=yes] \definehighlight [emIt] [style=italic] \starttext \startparagraph {\emIt Taa} aaa aa a aa aaa aa aa aa. Taa a, a aa a a. \emIt{Taa} \stopparagraph \startparagraph Taa {\emIt aaa} aa a aa aaa aa aa aa. Taa a, a aa a a. \stopparagraph \startlines {\emIt Xyz} abcdefg Xyz {\emIt abcdefg} \stoplines \stoptext XML output snip: http://www.w3.org/1998/Math/MathML;> Taa aaa aa a aa aaa aa aa aa. Taa a, a aa a a. Taa aaa aa a aa aaa aa aa aa. Taa a, a aa a a. Xyz abcdefg Xyz abcdefg Rendered in Firefox: -- Rik ___ 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 ___ -- - 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] More spurious problems in exports
List, Another oddity with elements in XML / xhtml / html export: With a defined highlight, a break is inserted if the highlight is the first item in an environment. If it is not the first item in the environment, no break is inserted. Most of the other odd breaks can be dealt with in css. These are more difficult to tame -- for example, in the startlines environment in the example below, there is not enough information preserved to know if the tagged item is supposed to be a single line or not. (Tests using 2018-07-17 beta on Win64.) Has anyone dealt with this before? Is there a way to control the insertion of the breaks? MWE: \setupbackend [export=yes] \definehighlight [emIt] [style=italic] \starttext \startparagraph {\emIt Taa} aaa aa a aa aaa aa aa aa. Taa a, a aa a a. \stopparagraph \startparagraph Taa {\emIt aaa} aa a aa aaa aa aa aa. Taa a, a aa a a. \stopparagraph \startlines {\emIt Xyz} abcdefg Xyz {\emIt abcdefg} \stoplines \stoptext XML output snip: http://www.w3.org/1998/Math/MathML;> Taa aaa aa a aa aaa aa aa aa. Taa a, a aa a a. Taa aaa aa a aa aaa aa aa aa. Taa a, a aa a a. Xyz abcdefg Xyz abcdefg Rendered in Firefox: -- Rik ___ 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] Parallel output of source data
Hello Wolfgang, On Tue, 03 Jul 2018 09:07:23 +0200, Wolfgang Schuster wrote: Hi Lukas, when you create the buffer with the grabbufferdata-command you already set the delimiter for the environment with the third argument, in the example below this is the \stopcontentexport command. To have different start/stop-commands for your environment means you have to change all names in the implementation of the contentxport-environment. %% \unexpanded\def\bH{} \def\dobH[#1]% {... \grabbufferdata[...][bH][eH]} \def\eH {} %% thank you for the explanation! - Much clearer for me how buffers work! Best regards, Lukas Wolfgang Procházka Lukáš Ing. <mailto:l...@pontex.cz> 3. Juli 2018 um 08:52 Hello, I tried to \let shortcuts for \startcontentexport and \stopcontentexport, but Ctx run fails. I guess this is a basic misunderstanding, but - why? \unexpanded\def\startcontentexport{\dosingleempty\dostartcontentexport} \def\dostartcontentexport[#1]% {\iffirstargument \edef\contentexportfile{#1}% \else \let\contentexportfile\empty \fi \grabbufferdata[contentexport][startcontentexport][stopcontentexport] } \def\stopcontentexport{% \doifsomething{\contentexportfile}{\savebuffer[list=contentexport,prefix=no,file=\contentexportfile]}% \getbufferdata[contentexport] } \let\bX=\startcontentexport % < Use of these two "shortcuts" is not possible, \let\eX=\stopcontentexport % < I'm getting : ! TeX capacity exceeded, sorry [input stack size=1] \starttext A \startcontentexport[t~.out.mkiv] Hello! \startitemize \item Item \stopitemize \stopcontentexport B \bX[t2~.out.mkiv] Ahoj \eX \stoptext HSo how to define "shortcuts" properly? 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] Parallel output of source data
On 7/3/2018 8:52 AM, Procházka Lukáš Ing. wrote: Hello, I tried to \let shortcuts for \startcontentexport and \stopcontentexport, but Ctx run fails. I guess this is a basic misunderstanding, but - why? \unexpanded\def\startcontentexport{\dosingleempty\dostartcontentexport} \def\dostartcontentexport[#1]% {\iffirstargument \edef\contentexportfile{#1}% \else \let\contentexportfile\empty \fi \grabbufferdata[contentexport][startcontentexport][stopcontentexport] } \def\stopcontentexport{% \doifsomething{\contentexportfile}{\savebuffer[list=contentexport,prefix=no,file=\contentexportfile]}% \getbufferdata[contentexport] } \let\bX=\startcontentexport % < Use of these two "shortcuts" is not possible, \let\eX=\stopcontentexport % < I'm getting : ! TeX capacity exceeded, sorry [input stack size=1] \starttext A \startcontentexport[t~.out.mkiv] Hello! \startitemize \item Item \stopitemize \stopcontentexport B \bX[t2~.out.mkiv] Ahoj \eX \stoptext HSo how to define "shortcuts" properly? impossible ... just define an extra grabbuffer what has this to do with parallel texts 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] Parallel output of source data
Hi Lukas, when you create the buffer with the grabbufferdata-command you already set the delimiter for the environment with the third argument, in the example below this is the \stopcontentexport command. To have different start/stop-commands for your environment means you have to change all names in the implementation of the contentxport-environment. %% \unexpanded\def\bH{} \def\dobH[#1]% {... \grabbufferdata[...][bH][eH]} \def\eH {} %% Wolfgang Procházka Lukáš Ing. <mailto:l...@pontex.cz> 3. Juli 2018 um 08:52 Hello, I tried to \let shortcuts for \startcontentexport and \stopcontentexport, but Ctx run fails. I guess this is a basic misunderstanding, but - why? \unexpanded\def\startcontentexport{\dosingleempty\dostartcontentexport} \def\dostartcontentexport[#1]% {\iffirstargument \edef\contentexportfile{#1}% \else \let\contentexportfile\empty \fi \grabbufferdata[contentexport][startcontentexport][stopcontentexport] } \def\stopcontentexport{% \doifsomething{\contentexportfile}{\savebuffer[list=contentexport,prefix=no,file=\contentexportfile]}% \getbufferdata[contentexport] } \let\bX=\startcontentexport % < Use of these two "shortcuts" is not possible, \let\eX=\stopcontentexport % < I'm getting : ! TeX capacity exceeded, sorry [input stack size=1] \starttext A \startcontentexport[t~.out.mkiv] Hello! \startitemize \item Item \stopitemize \stopcontentexport B \bX[t2~.out.mkiv] Ahoj \eX \stoptext HSo how to define "shortcuts" properly? Best regards, Lukas ___ 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] Parallel output of source data
Hello, I tried to \let shortcuts for \startcontentexport and \stopcontentexport, but Ctx run fails. I guess this is a basic misunderstanding, but - why? \unexpanded\def\startcontentexport{\dosingleempty\dostartcontentexport} \def\dostartcontentexport[#1]% {\iffirstargument \edef\contentexportfile{#1}% \else \let\contentexportfile\empty \fi \grabbufferdata[contentexport][startcontentexport][stopcontentexport] } \def\stopcontentexport{% \doifsomething{\contentexportfile}{\savebuffer[list=contentexport,prefix=no,file=\contentexportfile]}% \getbufferdata[contentexport] } \let\bX=\startcontentexport % < Use of these two "shortcuts" is not possible, \let\eX=\stopcontentexport % < I'm getting : ! TeX capacity exceeded, sorry [input stack size=1] \starttext A \startcontentexport[t~.out.mkiv] Hello! \startitemize \item Item \stopitemize \stopcontentexport B \bX[t2~.out.mkiv] Ahoj \eX \stoptext HSo how to define "shortcuts" properly? 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 t.mkiv Description: Binary data ___ 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] Graphics gets extra indent if hanging in list
Hi! Please look at the example below. I wish the red rectangle to be located as the green one aligned with text to the right, but it gets pushed a bit (the space to the left in the list?). Am I doing things wrongly? Is it possible to fix easily? /Mikael \setuppapersize[A6] \starttext \starthanging[location=right]{\blackrule[color=darkgreen,width=1in,height=0.5in]} \input ward \stophanging \startitemize[n] \item \starthanging[location=right]{\blackrule[color=darkred,width=1in,height=0.5in]} \input ward \stophanging \stopitemize \stoptext hang.pdf Description: Adobe PDF 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] ToC as itemize
Am 2018-06-10 um 13:35 schrieb Hans Hagen : > On 6/10/2018 11:55 AM, Henning Hraban Ramm wrote: >> Might there be a solution to this problem? >> I.e. how to insert ToC entries in an itemize? > > Well, don't expect a solution without a MWE ... anyway The MWE was in my first mail (May 3rd). Thank you anyway! > > \starttext > > \define[3]\ChapterTocEntry{% > \startitem > \structurelistuservariable{author}: #1/#2/#3 > \stopitem > } > > \definelist[chapter][% > alternative=command, > interaction=all, > criterium=all, > before=, > after=, > command=\ChapterTocEntry] So I was missing alternative=command. If you consider my attached MWE one problem remains: The usual space between items is missing between the last manual item and the ToC list: ... \startitem Test entry \stopitem %\blank[1em] \placelist[chapter] ... I can fix it with the blank, but I’d like to understand. Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD toctest.tex Description: Binary data ___ 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] First example in xml-mkiv.pdf
Aah yes, how silly of me to forget to add \starttext... \stoptext! Thanks for your help. Best Wishes Keith On 06/06/2018 14:32, Hans Hagen wrote: On 6/5/2018 10:03 PM, Keith McKay wrote: Dear List, In my continuing effort to improve my ConTeXt skills I thought I would have a look at XML and ConTeXt. Note: I have no XML skills but, "in for a penny, in for a pound", as they say over here. I started by looking at the very first example on page 5 of "Dealing with XML in ConTeXt mkiv" and straight away hit a problem. There is a typo in the first line of the XML file which I corrected: should be However when I ran the file using the tex file it only produced a 3 page pdf with a contents page and 2 title pages and no other text. Here is the XML file which is the similar to the one on page 5 but with two sections rather than one: Some title a paragraph of text another paragraph of text Another title a paragraph of text another paragraph of text The TeX file is cut and pasted from pages 5 and 6 of xml-mkiv.pdf: \startxmlsetups xml:demo:base \xmlsetsetup{#1}{document|section|p|itemize|item}{xml:demo:*} \stopxmlsetups \xmlregisterdocumentsetup{demo}{xml:demo:base} \startxmlsetups xml:demo:document \starttitle[title={Contents}] \placelist[chapter] \stoptitle \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:demo:section \startchapter[title=\xmlfirst{#1}{/title}] \xmlfirst{#1}{/content} \stopchapter \stopxmlsetups \startxmlsetups xml:demo:p \xmlflush{#1}\endgraf \stopxmlsetups \xmlprocessfile{demo}{demo.xml}{} This seemed such a simple example and I'm a bit perplexed as to why it did not work. Can somebody explain why no paragraphs are showing up? I'm using: ConTeXt ver: 2018.04.04 00:51 MKIV beta fmt: 2018.6.2 int: english/english LuaTeX, Version 1.07.0 (TeX Live 2018) Thanks and Best Wishes you need to add \starttext ... \stoptext \startbuffer[demo] Some title a paragraph of text another paragraph of text Another title a paragraph of text another paragraph of text \stopbuffer \startxmlsetups xml:demo:base \xmlsetsetup{#1}{document|section|p|itemize|item}{xml:demo:*} \stopxmlsetups \xmlregisterdocumentsetup{demo}{xml:demo:base} \startxmlsetups xml:demo:document \starttitle[title={Contents}] \placelist[chapter] \stoptitle \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:demo:section \startchapter[title=\xmlfirst{#1}{/title}] \xmlfirst{#1}{/content} \stopchapter \stopxmlsetups \startxmlsetups xml:demo:p \xmlflush{#1}\endgraf \stopxmlsetups \starttext \xmlprocessbuffer{demo}{demo}{} \stoptext - 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] First example in xml-mkiv.pdf
On 6/5/2018 10:03 PM, Keith McKay wrote: Dear List, In my continuing effort to improve my ConTeXt skills I thought I would have a look at XML and ConTeXt. Note: I have no XML skills but, "in for a penny, in for a pound", as they say over here. I started by looking at the very first example on page 5 of "Dealing with XML in ConTeXt mkiv" and straight away hit a problem. There is a typo in the first line of the XML file which I corrected: should be However when I ran the file using the tex file it only produced a 3 page pdf with a contents page and 2 title pages and no other text. Here is the XML file which is the similar to the one on page 5 but with two sections rather than one: Some title a paragraph of text another paragraph of text Another title a paragraph of text another paragraph of text The TeX file is cut and pasted from pages 5 and 6 of xml-mkiv.pdf: \startxmlsetups xml:demo:base \xmlsetsetup{#1}{document|section|p|itemize|item}{xml:demo:*} \stopxmlsetups \xmlregisterdocumentsetup{demo}{xml:demo:base} \startxmlsetups xml:demo:document \starttitle[title={Contents}] \placelist[chapter] \stoptitle \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:demo:section \startchapter[title=\xmlfirst{#1}{/title}] \xmlfirst{#1}{/content} \stopchapter \stopxmlsetups \startxmlsetups xml:demo:p \xmlflush{#1}\endgraf \stopxmlsetups \xmlprocessfile{demo}{demo.xml}{} This seemed such a simple example and I'm a bit perplexed as to why it did not work. Can somebody explain why no paragraphs are showing up? I'm using: ConTeXt ver: 2018.04.04 00:51 MKIV beta fmt: 2018.6.2 int: english/english LuaTeX, Version 1.07.0 (TeX Live 2018) Thanks and Best Wishes you need to add \starttext ... \stoptext \startbuffer[demo] Some title a paragraph of text another paragraph of text Another title a paragraph of text another paragraph of text \stopbuffer \startxmlsetups xml:demo:base \xmlsetsetup{#1}{document|section|p|itemize|item}{xml:demo:*} \stopxmlsetups \xmlregisterdocumentsetup{demo}{xml:demo:base} \startxmlsetups xml:demo:document \starttitle[title={Contents}] \placelist[chapter] \stoptitle \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:demo:section \startchapter[title=\xmlfirst{#1}{/title}] \xmlfirst{#1}{/content} \stopchapter \stopxmlsetups \startxmlsetups xml:demo:p \xmlflush{#1}\endgraf \stopxmlsetups \starttext \xmlprocessbuffer{demo}{demo}{} \stoptext - 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] First example in xml-mkiv.pdf
Dear List, In my continuing effort to improve my ConTeXt skills I thought I would have a look at XML and ConTeXt. Note: I have no XML skills but, "in for a penny, in for a pound", as they say over here. I started by looking at the very first example on page 5 of "Dealing with XML in ConTeXt mkiv" and straight away hit a problem. There is a typo in the first line of the XML file which I corrected: should be However when I ran the file using the tex file it only produced a 3 page pdf with a contents page and 2 title pages and no other text. Here is the XML file which is the similar to the one on page 5 but with two sections rather than one: Some title a paragraph of text another paragraph of text Another title a paragraph of text another paragraph of text The TeX file is cut and pasted from pages 5 and 6 of xml-mkiv.pdf: \startxmlsetups xml:demo:base \xmlsetsetup{#1}{document|section|p|itemize|item}{xml:demo:*} \stopxmlsetups \xmlregisterdocumentsetup{demo}{xml:demo:base} \startxmlsetups xml:demo:document \starttitle[title={Contents}] \placelist[chapter] \stoptitle \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:demo:section \startchapter[title=\xmlfirst{#1}{/title}] \xmlfirst{#1}{/content} \stopchapter \stopxmlsetups \startxmlsetups xml:demo:p \xmlflush{#1}\endgraf \stopxmlsetups \xmlprocessfile{demo}{demo.xml}{} This seemed such a simple example and I'm a bit perplexed as to why it did not work. Can somebody explain why no paragraphs are showing up? I'm using: ConTeXt ver: 2018.04.04 00:51 MKIV beta fmt: 2018.6.2 int: english/english LuaTeX, Version 1.07.0 (TeX Live 2018) Thanks and Best Wishes Keith McKay ___ 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] Referring to \head
Hello, deducing: \starttext \startitemize[i][stopper=),headstyle=bold] \starthead[h]{Head} Some text. \stophead \item[i] Item. \stopitemize See \in[h] and \in[i]. \stoptext Thank you. Lukas On Wed, 23 May 2018 13:18:27 +0200, Wolfgang Schuster <schuster.wolfg...@gmail.com> wrote: \starthead takes takes the title as argument, i.e. \starthead {…} … \stophead Wolfgang Procházka Lukáš Ing. <mailto:l...@pontex.cz> 23. Mai 2018 um 11:11 Hello, referring to \head doesn't work in the ME bellow: \starttext \startitemize[n][] \item[a] A \head[b] B bbb \item See \in[a] and \in[b]. \stopitemize \startitemize[n][] \item See \in[a] and \in[b]. \stopitemize \stoptext \head doesn't recongize its reference name (ignores [] after it), although it should not: http://wiki.contextgarden.net/Command/head What am I doing wrong? - How to refer to a \head? (Referring to \item works well.) TIA. Best regards, Lukas ___ 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 ___ Wolfgang Schuster <mailto:schuster.wolfg...@gmail.com> 23. Mai 2018 um 11:44 Use \starthead. Wolfgang Procházka Lukáš Ing. <mailto:l...@pontex.cz> 23. Mai 2018 um 12:53 Hello Wolfgang, thank you for the answer, wikified: http://wiki.contextgarden.net/Command/head Best regards, Lukas On Wed, 23 May 2018 11:44:17 +0200, Wolfgang Schuster <schuster.wolfg...@gmail.com> wrote: -- 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] Referring to \head
\starthead takes takes the title as argument, i.e. \starthead {…} … \stophead Wolfgang Procházka Lukáš Ing. <mailto:l...@pontex.cz> 23. Mai 2018 um 11:11 Hello, referring to \head doesn't work in the ME bellow: \starttext \startitemize[n][] \item[a] A \head[b] B bbb \item See \in[a] and \in[b]. \stopitemize \startitemize[n][] \item See \in[a] and \in[b]. \stopitemize \stoptext \head doesn't recongize its reference name (ignores [] after it), although it should not: http://wiki.contextgarden.net/Command/head What am I doing wrong? - How to refer to a \head? (Referring to \item works well.) TIA. Best regards, Lukas ___ 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 ___ Wolfgang Schuster <mailto:schuster.wolfg...@gmail.com> 23. Mai 2018 um 11:44 Use \starthead. Wolfgang Procházka Lukáš Ing. <mailto:l...@pontex.cz> 23. Mai 2018 um 12:53 Hello Wolfgang, thank you for the answer, wikified: http://wiki.contextgarden.net/Command/head Best regards, Lukas On Wed, 23 May 2018 11:44:17 +0200, Wolfgang Schuster <schuster.wolfg...@gmail.com> wrote: ___ 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] Referring to \head
Hello, the "headstyle" option in \startitemize affect undesirably all text following \head in the itemize scope: \starttext \startitemize[i][stopper=),headstyle=bold] \starthead[h] Head \stophead Some text. \item[i] Item. \stopitemize See \in[h] and \in[i]. \stoptext - All text between \starthead and \stopitemize gets bold. Is it a bug or am I still missing something? Lukas On Wed, 23 May 2018 11:44:17 +0200, Wolfgang Schuster <schuster.wolfg...@gmail.com> wrote: Use \starthead. Wolfgang -- 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 t3.mkiv Description: Binary data t3.pdf Description: Adobe PDF 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] Referring to \head
Hello Wolfgang, thank you for the answer, wikified: http://wiki.contextgarden.net/Command/head Best regards, Lukas On Wed, 23 May 2018 11:44:17 +0200, Wolfgang Schuster <schuster.wolfg...@gmail.com> wrote: Use \starthead. Wolfgang Procházka Lukáš Ing. <mailto:l...@pontex.cz> 23. Mai 2018 um 11:11 Hello, referring to \head doesn't work in the ME bellow: \starttext \startitemize[n][] \item[a] A \head[b] B bbb \item See \in[a] and \in[b]. \stopitemize \startitemize[n][] \item See \in[a] and \in[b]. \stopitemize \stoptext \head doesn't recongize its reference name (ignores [] after it), although it should not: http://wiki.contextgarden.net/Command/head What am I doing wrong? - How to refer to a \head? (Referring to \item works well.) TIA. Best regards, Lukas ___ 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 ___ -- 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] Referring to \head
Use \starthead. Wolfgang Procházka Lukáš Ing. <mailto:l...@pontex.cz> 23. Mai 2018 um 11:11 Hello, referring to \head doesn't work in the ME bellow: \starttext \startitemize[n][] \item[a] A \head[b] B bbb \item See \in[a] and \in[b]. \stopitemize \startitemize[n][] \item See \in[a] and \in[b]. \stopitemize \stoptext \head doesn't recongize its reference name (ignores [] after it), although it should not: http://wiki.contextgarden.net/Command/head What am I doing wrong? - How to refer to a \head? (Referring to \item works well.) TIA. Best regards, Lukas ___ 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] Referring to \head
Hello, referring to \head doesn't work in the ME bellow: \starttext \startitemize[n][] \item[a] A \head[b] B bbb \item See \in[a] and \in[b]. \stopitemize \startitemize[n][] \item See \in[a] and \in[b]. \stopitemize \stoptext \head doesn't recongize its reference name (ignores [] after it), although it should not: http://wiki.contextgarden.net/Command/head What am I doing wrong? - How to refer to a \head? (Referring to \item works well.) TIA. 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 t3.mkiv Description: Binary data t3.pdf Description: Adobe PDF 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] Second level itemization and continue
At 2018-04-27T02:16:12+05:30, N. Raghavendra wrote: > Is it possible to use the continue option for second level itemizations? > I am unable to make it work. I thought http://wiki.contextgarden.net/Command/head#Example looked like a solution, but it too doesn't work. \starttext \startitemize[packed][headstyle=bold] \head Birds What is water? This is a difficult question to answer, because water is impossible to define. One could ask the same question about birds. What {\em are} birds? We just don't know. \startitemize[a] \item Toucan \item Quetzal \item Cassowary \stopitemize \head Mammals \par \startitemize[continue] \item Anteater \item Sloth \item Capybara \stopitemize \stopitemize \stoptext produces • Birds What is water? This is a difficult question to answer, because water is impossible to define. One could ask the same question about birds. What are birds? We just don’t know. a. Toucan b. Quetzal c. Cassowary • Mammals a. Anteater b. Sloth c. Capybara which is not the output shown in that Wiki page. Raghu. -- N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/ Harish-Chandra Research Institute, http://www.hri.res.in/ ___ 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] Horizontal line after text in an environment
Hi Hans, Thank you it works perfectly. I know this command but I never know when to use it. Fabrice 2018-04-25 21:22 GMT+02:00 Hans Hagen <j.ha...@xs4all.nl>: > On 4/25/2018 4:59 PM, Fabrice Couvreur wrote: > >> Hello, >> In this environment, when the text has sufficient height, the horizontal >> line is well below the figure. However when the height of text is not >> sufficient, the position of the line is not correct and I would like it >> also below the figure. >> > > \flushsidefloats > >> Thanks >> Fabrice >> >> >> \setuptolerance[stretch,verytolerant] >> \useMPlibrary[dum] >> >> >> \define[1]\ProprieteHeadcommand >>{\textrule[top]{#1}} >> >> \defineenumeration >>[propriete] >>[text=Propriété, >> title=yes, >> headstyle={bold}, >> style=italic, >> headcommand=\ProprieteHeadcommand, >> numbercommand=\groupedcommand{}{\nbsp}, >> after=\textrule] >> >> \starttext >> >> \startpropriete >> \placefigure[right,none]{}{\externalfigure[dummy]} >> \startitemize >> \item \input ward >> >> \item \input ward >> \stopitemize >> \stoppropriete >> \startpropriete >> \placefigure[right,none]{}{\externalfigure[dummy]} >> \startitemize >> \item First item >> >> \item Second item >> \stopitemize >> \stoppropriete >> >> \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/list >> info/ntg-context >> webpage : http://www.pragma-ade.nl / http://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> wiki : http://contextgarden.net >> >> ___ >> >> > > -- > > - > 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/list > info/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] Horizontal line after text in an environment
On 4/25/2018 4:59 PM, Fabrice Couvreur wrote: Hello, In this environment, when the text has sufficient height, the horizontal line is well below the figure. However when the height of text is not sufficient, the position of the line is not correct and I would like it also below the figure. \flushsidefloats Thanks Fabrice \setuptolerance[stretch,verytolerant] \useMPlibrary[dum] \define[1]\ProprieteHeadcommand {\textrule[top]{#1}} \defineenumeration [propriete] [text=Propriété, title=yes, headstyle={bold}, style=italic, headcommand=\ProprieteHeadcommand, numbercommand=\groupedcommand{}{\nbsp}, after=\textrule] \starttext \startpropriete \placefigure[right,none]{}{\externalfigure[dummy]} \startitemize \item \input ward \item \input ward \stopitemize \stoppropriete \startpropriete \placefigure[right,none]{}{\externalfigure[dummy]} \startitemize \item First item \item Second item \stopitemize \stoppropriete \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 ___ -- - 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] Horizontal line after text in an environment
Hello, In this environment, when the text has sufficient height, the horizontal line is well below the figure. However when the height of text is not sufficient, the position of the line is not correct and I would like it also below the figure. Thanks Fabrice \setuptolerance[stretch,verytolerant] \useMPlibrary[dum] \define[1]\ProprieteHeadcommand {\textrule[top]{#1}} \defineenumeration [propriete] [text=Propriété, title=yes, headstyle={bold}, style=italic, headcommand=\ProprieteHeadcommand, numbercommand=\groupedcommand{}{\nbsp}, after=\textrule] \starttext \startpropriete \placefigure[right,none]{}{\externalfigure[dummy]} \startitemize \item \input ward \item \input ward \stopitemize \stoppropriete \startpropriete \placefigure[right,none]{}{\externalfigure[dummy]} \startitemize \item First item \item Second item \stopitemize \stoppropriete \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 ___
[NTG-context] \startplacetable in \startcolumnset
Hi, I used the following exam format well which was set by the help of Wolfgang long time ago. Recently I got a strange output when I used \startplacetable or \placetable in the \startcolumnset … \stopcolumnset. There is a strange number first and table in the next column. The output is OK if I comment out either \startcolumnset or \placetable. Is “\definecolumnset, \startcolumnset” still a good command? I couldn’t find it in the list of commands. Thank you for reading. Best regards, Dalyoung % \startuseMPgraphic{verticalrule} if CurrentColumn < NOfColumns : draw leftboundary OverlayBox;% shifted (-1mm,0); draw rightboundary OverlayBox shifted (4mm,0); draw rightboundary OverlayBox shifted (TextWidth+6mm,0); draw bottomboundary OverlayBox shifted (1mm,0); draw bottomboundary OverlayBox shifted (TextWidth+6mm,0); setbounds currentpicture to OverlayBox enlarged 2.5mm; fi \stopuseMPgraphic \defineoverlay [verticalrule] [\useMPgraphic{verticalrule}] \definecolumnset [exam] [n=2, background=verticalrule] \starttext \startcolumnset[exam] \startcolumns[n=2, rule=on] \startitemize[n] \item Question 1. Good \vfill \column \item Question 2 % \startplacetable[location=] {\starttabulate[|c|c|c|] \NC A \NC B \NC C \NC\NR \NC A \NC B \NC C \NC\NR \NC A \NC B \NC C \NC\NR \stoptabulate} % \stopplacetable \vfill \stopitemize \stopcolumns \stopcolumnset \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] Build for Alpine Linux
For those interested in reproducing the issues experienced on Alpine, I've published an image that you should be able to start with: $ docker run -ti brianmhunt/context-alpine:demo (You can see the Dockerfile etc here: https://hub.docker.com/r/brianmhunt/context-alpine/) That image applies the TODO/workarounds previously posted (sometimes inelegantly) and brings it to the point where I got stuck, namely luatools and context erroring with "unknown script base.lua" and "unknown script context.lua", respectively. On Wed, 11 Apr 2018 at 19:14 Henri Menke <henrime...@gmail.com> wrote: > On Wed, 2018-04-11 at 20:08 +, Brian Hunt wrote: > > So here's what I've got for a TODO so far to get ConTeXt working on > Alpine > > Linux with musl (subject to item #6, mtx-context.lua not being found): > > > > 1. Add the musl test to first-setup.sh > > 2. Add the same musl test to tex/setuptex > > 3. Add texlua (and texluac?) to > > a. the setup rsync bin/ directories > > b. the tex/texmf-linuxmusl(|-ppc|-64) > > 4. Update mtxrun > > > > Here's code that ought to work for detecting musl in mtxrun. Around > line 3721 > > of the mtxrun add: > > > > if find(architecture,"x86_64",1,true) then > > platform="linux-64" > > elseif find(architecture,"ppc",1,true) then > > platform="linux-ppc" > > else > > platform="linux" > > end > > + if resultof("ldd --version 2>&1"):find("musl") ~= nil then > > + platform = platform:gsub("linux", "linuxmusl") > > + end > > > > 5. Note that in tex/setuptex, there's evidently no way to get the current > > script so one has to explicitly provide the TeX directory (appears to be > a > > BusyBox bug). > > Standard POSIX sh has no way to reliably detect sourced invocation of a > script. > BusyBox uses POSIX sh underneath and thus suffers from the same > limitation. See > StackOverflow for detail: > https://stackoverflow.com/questions/29832037 > > > 6. `context` is unable to locate `mtx-context.lua`. Some tracker output > sheds > > some light: > > i. context --trackers=resolvers.expansions is identical > > ii. context --trackers=resolvers.details,resolvers.details differs, > with the > > output attached. Note that to keep the comparison short I removed lines > that > > differed only because `linux` had been changed to `linuxmusl`. > > > > Will keep plugging away to see if I can determine why `mtx-context.lua` > cannot > > be found on Alpine Linux. > > > > Thanks for reading. > > > > Brian > > > > -- > > from the personal account of: > > Brian M Hunt <brianmh...@gmail.com> > > Direct: +1-289-684-4677 <(289)%20684-4677> > > LinkedIn: https://linkedin.com/in/brianmhunt > > This e-mail may contain information that is private, privileged, > confidential > > and/or exempt from disclosure. Except as per this notice no waiver of > any kind > > is intended by sending this e-mail, and this email is intended only for > the > > named recipient(s) or the subscribers of a forwarding service the email > is > > sent directly to and to which service you are an authorized recipient. > Use, > > dissemination or copying without authorization is prohibited. Please > notify > > the sender and destroy all copies of this e-mail if you have received > this > > email in error. > > > __ > > _ > > 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 > > ___ -- *from th
Re: [NTG-context] Build for Alpine Linux
On Wed, 2018-04-11 at 20:08 +, Brian Hunt wrote: > So here's what I've got for a TODO so far to get ConTeXt working on Alpine > Linux with musl (subject to item #6, mtx-context.lua not being found): > > 1. Add the musl test to first-setup.sh > 2. Add the same musl test to tex/setuptex > 3. Add texlua (and texluac?) to > a. the setup rsync bin/ directories > b. the tex/texmf-linuxmusl(|-ppc|-64) > 4. Update mtxrun > > Here's code that ought to work for detecting musl in mtxrun. Around line 3721 > of the mtxrun add: > > if find(architecture,"x86_64",1,true) then > platform="linux-64" > elseif find(architecture,"ppc",1,true) then > platform="linux-ppc" > else > platform="linux" > end > + if resultof("ldd --version 2>&1"):find("musl") ~= nil then > + platform = platform:gsub("linux", "linuxmusl") > + end > > 5. Note that in tex/setuptex, there's evidently no way to get the current > script so one has to explicitly provide the TeX directory (appears to be a > BusyBox bug). Standard POSIX sh has no way to reliably detect sourced invocation of a script. BusyBox uses POSIX sh underneath and thus suffers from the same limitation. See StackOverflow for detail: https://stackoverflow.com/questions/29832037 > 6. `context` is unable to locate `mtx-context.lua`. Some tracker output sheds > some light: > i. context --trackers=resolvers.expansions is identical > ii. context --trackers=resolvers.details,resolvers.details differs, with the > output attached. Note that to keep the comparison short I removed lines that > differed only because `linux` had been changed to `linuxmusl`. > > Will keep plugging away to see if I can determine why `mtx-context.lua` cannot > be found on Alpine Linux. > > Thanks for reading. > > Brian > > -- > from the personal account of: > Brian M Hunt <brianmh...@gmail.com> > Direct: +1-289-684-4677 > LinkedIn: https://linkedin.com/in/brianmhunt > This e-mail may contain information that is private, privileged, confidential > and/or exempt from disclosure. Except as per this notice no waiver of any kind > is intended by sending this e-mail, and this email is intended only for the > named recipient(s) or the subscribers of a forwarding service the email is > sent directly to and to which service you are an authorized recipient. Use, > dissemination or copying without authorization is prohibited. Please notify > the sender and destroy all copies of this e-mail if you have received this > email in error. > __ > _ > 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] Build for Alpine Linux
Aditya: I did indeed; it fails with `mtxrun | unknown script 'base.lua' or 'mtx-base.lua'` (sorry I didn't report this). Hans: > if musl needs different bin then there should be a different initial > download i think because basically we're now talking of: windows, osx, > linux, linuxmusl (a different species) This appears to be the case currently, as first-setup.sh calls rsync to copy files from: http://standalone.contextgarden.net/setup/linuxmusl-64/bin/ for linux (musl) http://standalone.contextgarden.net/setup/linux-64/bin/ for linux (glibc) texlua just seems to be missing from the linuxmusl-64 path; it's in the linux-64 path. I suspect it's a build issue. > isn't there some magic env var that tels if musl is used? do programs > and scripts really have to jumpo through such loops It seems there is no better way to do detection. This post seems to summarize what I'd read elsewhere: https://unix.stackexchange.com/questions/120380 Could one symlink `texmf-linux-64` to point to `texmf-linuxmusl-64` via first-setup.sh? Then mtxrun wouldn't have to do any detection. > hm, so musl is far from a drop=in for glib or do i get it wrong There certainly do seem to be a lot of hoops. That said, notwithstanding the weird path issues, of the six TODO items I mentioned, 1 & 2, and 4 require musl detection, 3 is related to the rsync setup, 5 is a shell problem (not musl per-se). I've no idea what's going on with the paths / problem 6 though. It could be musl/luatex or maybe Alpine. My most recent insight was that the `instance.files` are essentially empty with Alpine/musl (and so is the cache), so they're not being read for some reason. I've not yet isolated where that reading happens. Brian On Wed, 11 Apr 2018 at 16:37 Hans Hagen <j.ha...@xs4all.nl> wrote: > On 4/11/2018 10:08 PM, Brian Hunt wrote: > > So here's what I've got for a TODO so far to get ConTeXt working on > > Alpine Linux with musl (subject to item #6, mtx-context.lua not being > > found): > > > > 1. Add the musl test to first-setup.sh > > 2. Add the same musl test to tex/setuptex > > no problem adding a robust test there > > > 3. Add texlua (and texluac?) to > >a. the setup rsync bin/ directories > >b. the tex/texmf-linuxmusl(|-ppc|-64) > > we don't use texluac, don't need texlua on windows and on linux texlua > is just a symlink > > if musl needs different bin then there should be a different initial > download i think because basically we're now talking of: windows, osx, > linux, linuxmusl (a different species) > > > 4. Update mtxrun > > > > Here's code that ought to work for detecting musl in mtxrun. Around > > line 3721 of the mtxrun add: > > > > if find(architecture,"x86_64",1,true) then > >platform="linux-64" > > elseif find(architecture,"ppc",1,true) then > >platform="linux-ppc" > > else > >platform="linux" > > end > > + if resultof("ldd --version 2>&1"):find("musl") ~= nil then > > + platform = platform:gsub("linux", "linuxmusl") > > + end > > that's not going to happen, some system call 9each run) in order to > determine what linux species we run ... (there are a few calls but these > are never used becasue we use HOSTTYPE (if needed we can set one > ourselves on these platforms) > > isn't there some magic env var that tels if musl is used? do programs > and scripts really have to jumpo through such loops > > > 5. Note that in tex/setuptex, there's evidently no way to get the > > current script so one has to explicitly provide the TeX directory > > (appears to be a BusyBox bug). > > 6. `context` is unable to locate `mtx-context.lua`. Some tracker output > > sheds some light: > >i. context --trackers=resolvers.expansions is identical > >ii. context --trackers=resolvers.details,resolvers.details differs, > > with the output attached. Note that to keep the comparison short I > > removed lines that differed only because `linux` had been changed to > > `linuxmusl`. > > > > Will keep plugging away to see if I can determine why `mtx-context.lua` > > cannot be found on Alpine Linux. > hm, so musl is far from a drop=in for glib or do i get it wrong > > 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 > - > -- *from the personal acco
Re: [NTG-context] Build for Alpine Linux
On 4/11/2018 10:08 PM, Brian Hunt wrote: So here's what I've got for a TODO so far to get ConTeXt working on Alpine Linux with musl (subject to item #6, mtx-context.lua not being found): 1. Add the musl test to first-setup.sh 2. Add the same musl test to tex/setuptex no problem adding a robust test there 3. Add texlua (and texluac?) to a. the setup rsync bin/ directories b. the tex/texmf-linuxmusl(|-ppc|-64) we don't use texluac, don't need texlua on windows and on linux texlua is just a symlink if musl needs different bin then there should be a different initial download i think because basically we're now talking of: windows, osx, linux, linuxmusl (a different species) 4. Update mtxrun Here's code that ought to work for detecting musl in mtxrun. Around line 3721 of the mtxrun add: if find(architecture,"x86_64",1,true) then platform="linux-64" elseif find(architecture,"ppc",1,true) then platform="linux-ppc" else platform="linux" end + if resultof("ldd --version 2>&1"):find("musl") ~= nil then + platform = platform:gsub("linux", "linuxmusl") + end that's not going to happen, some system call 9each run) in order to determine what linux species we run ... (there are a few calls but these are never used becasue we use HOSTTYPE (if needed we can set one ourselves on these platforms) isn't there some magic env var that tels if musl is used? do programs and scripts really have to jumpo through such loops 5. Note that in tex/setuptex, there's evidently no way to get the current script so one has to explicitly provide the TeX directory (appears to be a BusyBox bug). 6. `context` is unable to locate `mtx-context.lua`. Some tracker output sheds some light: i. context --trackers=resolvers.expansions is identical ii. context --trackers=resolvers.details,resolvers.details differs, with the output attached. Note that to keep the comparison short I removed lines that differed only because `linux` had been changed to `linuxmusl`. Will keep plugging away to see if I can determine why `mtx-context.lua` cannot be found on Alpine Linux. hm, so musl is far from a drop=in for glib or do i get it wrong 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] Build for Alpine Linux
So here's what I've got for a TODO so far to get ConTeXt working on Alpine Linux with musl (subject to item #6, mtx-context.lua not being found): 1. Add the musl test to first-setup.sh 2. Add the same musl test to tex/setuptex 3. Add texlua (and texluac?) to a. the setup rsync bin/ directories b. the tex/texmf-linuxmusl(|-ppc|-64) 4. Update mtxrun Here's code that ought to work for detecting musl in mtxrun. Around line 3721 of the mtxrun add: if find(architecture,"x86_64",1,true) then platform="linux-64" elseif find(architecture,"ppc",1,true) then platform="linux-ppc" else platform="linux" end + if resultof("ldd --version 2>&1"):find("musl") ~= nil then + platform = platform:gsub("linux", "linuxmusl") + end 5. Note that in tex/setuptex, there's evidently no way to get the current script so one has to explicitly provide the TeX directory (appears to be a BusyBox bug). 6. `context` is unable to locate `mtx-context.lua`. Some tracker output sheds some light: i. context --trackers=resolvers.expansions is identical ii. context --trackers=resolvers.details,resolvers.details differs, with the output attached. Note that to keep the comparison short I removed lines that differed only because `linux` had been changed to `linuxmusl`. Will keep plugging away to see if I can determine why `mtx-context.lua` cannot be found on Alpine Linux. Thanks for reading. Brian -- *from the personal account of:* *Brian M Hunt *<brianmh...@gmail.com> Direct: +1-289-684-4677 LinkedIn: https://linkedin.com/in/brianmhunt *This e-mail may contain information that is private, privileged, confidential and/or exempt from disclosure. Except as per this notice no waiver of any kind is intended by sending this e-mail, and this email is intended only for the named recipient(s) or the subscribers of a forwarding service the email is sent directly to and to which service you are an authorized recipient. Use, dissemination or copying without authorization is prohibited. Please notify the sender and destroy all copies of this e-mail if you have received this email in error.* WORKING (Debian 8) # context --trackers=resolvers.details resolvers | resolving | file 'mtx-context.lua' is not readable resolvers | resolving | checking name 'mtx-context.lua' resolvers | resolving | deep checking 'selfautoparent:texmf-project', base 'mtx-context.lua', pattern 'false' resolvers | resolving | deep checking 'selfautoparent:texmf-fonts', base 'mtx-context.lua', pattern 'false' resolvers | resolving | deep checking 'selfautoparent:texmf-local', base 'mtx-context.lua', pattern 'false' resolvers | resolving | deep checking 'selfautoparent:texmf-modules', base 'mtx-context.lua', pattern 'false' resolvers | resolving | deep checking 'selfautoparent:texmf-context', base 'mtx-context.lua', pattern 'false' resolvers | methods | resolving, method 'concatinators', how 'tag', tag 'file' resolvers | resolving | match: variant 'file', search 'selfautoparent:texmf-context/scripts/context/lua/mtx-context.lua', result 'selfautoparent:texmf-context/scripts/context/lua/mtx-context.lua' resolvers | resolving | deep checking 'selfautoparent:texmf-linux-64', base 'mtx-context.lua', pattern 'false' resolvers | resolving | deep checking 'selfautoparent:texmf', base 'mtx-context.lua', pattern 'false' resolvers | resolving | checking filename 'mtx-context.lua' in tree resolvers | resolving | using pattern '^%./$' for path '.' resolvers | resolving | no match to '^%./$' in hash for file 'selfautoparent:texmf-context/scripts/context/lua/mtx-context.lua' and path 'selfautoparent:texmf-context/scripts/context/lua/' resolvers | resolving | quick root scan for '.' resolvers | resolving | file './mtx-context.lua' is not readable resolvers | resolving | using pattern '^home:texmf/tex/context/.*$' for path 'home:texmf/tex/context//' … NON-WORKING (Alpine 3.7) # context --trackers=resolvers.details resolvers | resolving | file 'mtx-context.lua' is not readable resolvers | resolving | checking name 'mtx-context.lua' resolvers | resolving | deep checking 'selfautoparent:texmf-project', base 'mtx-context.lua', pattern 'false' resolvers | resolving | deep checking 'selfautoparent:texmf-fonts', base 'mtx-context.lua', pattern 'false' resolvers | resolving | deep checking 'selfautoparent:texmf-local', base 'mtx-context.lua', pattern 'false' resolvers | resolving | deep checking 'selfautoparent:texmf-modules', base 'mtx-context.lua', pattern 'false' resolvers | resolving | deep checking 'selfautoparent:texmf-context', base 'mtx-context.lua', pattern 'false' resolvers | resolving | deep checking 'selfautoparent:texmf-linuxmusl-64', base 'mtx-context.lua', pattern 'fals
Re: [NTG-context] Reference links with focus=standard option
On 04/11/2018 04:35 PM, Lawrence Bell wrote: > Hi mailing list, > > I'm having some trouble with (interactive) references. I had a quick > search of the mailing list and couldn't find any talk about this kind of > issue, so I'm asking now. Hoping you could help me out. > > All is well with the default setting for focus. I don't like that with > most (?) PDF viewers the default setting changes the zoom level, so I > usually turn on \setupinteraction[focus=standard] instead. But this > seems to break (some of) the interactive links. The links to the the > chapter and item still work, but the links to the formula are broken. Hi Lawrence, it seems that something is broken when ConTeXt generates the destinations for these links. > As an experiment, I just tried this with a couple different viewers > (Firefox, Evince, Okular, Xpdf, Qpdfview) and (putting > \setupinteraction[focus=standard] back in) the link is indeed broken on > all of them, /except/ for Qpdfview which still seems to understand it. qpdfview complains after having clicking the link: "Error: failed to look up (eq:ref)" "Error: failed to look up (eq:ref)" > What's going on here? I generated an uncompressed PDF document from your source: http://pdf.ousia.tk/focus-standard.pdf. The issue seems to be in the name tree node dictionary: 35 0 obj << /Limits [ (#1) (pt:ref) ] /Names [ (#1) 15 0 R (#2) 19 0 R (#3) 20 0 R (it:ref) 20 0 R (pt:ref) 15 0 R ] >> endobj (eq:ref) seems to be missing there. But I have to investigate the issue further to get a more accurate report. I hope it helps, 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 ___
[NTG-context] Reference links with focus=standard option
Hi mailing list, I'm having some trouble with (interactive) references. I had a quick search of the mailing list and couldn't find any talk about this kind of issue, so I'm asking now. Hoping you could help me out. Consider the following example document. \setupinteraction [ state=start, % focus=standard, ] \starttext \startchapter[title=Some Title, reference=pt:ref] Lorem ipsum dolor sit amet, \periods \startplaceformula[reference=eq:ref] \startformula c^2 = a^2 + b^2. \stopformula \stopplaceformula Lorem ipsum dolor sit amet, \periods \startitemize[r] \startitem[it:ref] Lorem ipsum dolor sit amet, \periods \stopitem \stopitemize And now we can refer to formula~\in[eq:ref], chapter~\in[pt:ref], and item~\in[it:ref]. \page And now we can refer to formula~\in[eq:ref], chapter~\in[pt:ref], and item~\in[it:ref]. \stopchapter \stoptext All is well with the default setting for focus. I don't like that with most (?) PDF viewers the default setting changes the zoom level, so I usually turn on \setupinteraction[focus=standard] instead. But this seems to break (some of) the interactive links. The links to the the chapter and item still work, but the links to the formula are broken. As an experiment, I just tried this with a couple different viewers (Firefox, Evince, Okular, Xpdf, Qpdfview) and (putting \setupinteraction[focus=standard] back in) the link is indeed broken on all of them, /except/ for Qpdfview which still seems to understand it. What's going on here? Thanks in advance, Lawrence ___ 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] Text overflowing on a figure included in a float
Hi Hans, The solution you propose fixes the problem with the attached file, thanks. However, the problem is not solved if I use the class you created for the document fonts-mkiv. Fabrice 2018-04-08 11:54 GMT+02:00 Hans Hagen <j.ha...@xs4all.nl>: > On 4/8/2018 11:08 AM, Fabrice Couvreur wrote: > >> Hello, >> Sorry if the example is not minimal but otherwise it would be difficult >> to explain the problem. The text overflows on the figure and I do not know >> how to correct this. >> > > By choosing the right language: > > \mainlanguage[fr] > > or increasing the tolerance: > > % \setuptolerance[stretch,verytolerant] > > > Thank you >> Fabrice >> >> >> \usemodule[pgfplots] >> >> \pgfplotsset{compat=newest} >> >> \starttext >> \placefigure[right,none]{}{ >> \hbox{\framed{\switchtobodyfont[8pt] >> \starttikzpicture[/pgf/declare function={g(\x)=3*\x +7;},/pgf/declare >> function={f(\x)=-4*\x +1;},/pgf/declare function={h(\x)=2*\x -5;}] >> \startaxis[ >> restrict x to domain=-20:20, xmax=20, xmin=-20, >> restrict y to domain=-25:30, ymax=30, ymin=-25, >> x=0.1cm, >> y=0.1cm, >> axis x line = middle, >> axis y line = middle, >> axis line style = thick, >> major grid style=gray, >> minor grid style=gray, >> tickwidth=0.1cm, >> xtick align=outside, >> ytick align=outside, >> grid=both, >> xtick={-15,-10,...,15}, >> ytick={-20,-15,...,25}, >> xticklabels={\empty,\empty,\empty,\empty,5,\empty,\empty,\empty}, >> yticklabels={\empty,\empty,\empty,\empty,\empty,5,\empty,\ >> empty,\empty,\empty,\empty,\empty}, >> extra x ticks={-20,20}, >> extra x tick label={\null}, >> extra y ticks={-25,30}, >> extra y tick label={\null}, >> extra tick style={tick style={draw=none}}, >> every tick/.style={ >> black, >> thick, >>}, >> y tick label style={ >> /pgf/number format/1000 sep={} >> }, >> xlabel=$x$,ylabel=$y$, >> every axis x label/.style={ >> at={(ticklabel* cs:1.01)}, >> anchor=west, >> }, >> every axis y label/.style={ >> at={(ticklabel* cs:1.01)}, >> anchor=south, >> }, >> samples=2000, >> >=stealth, >> ] >> >> \addplot [smooth,domain=-20:20,thick,darkblue] {f(x)} ; >> \addplot [smooth,domain=-20:20,thick,darkred] {g(x)} ; >> \addplot [smooth,domain=-20:20,thick,yellow] {h(x)} ; >> >> \draw[thick,darkgreen](5,-25)--(5,30) ; >> >> \node[below left=2pt] at (-0.1,-0.1,0) {\math{0}} ; >> >> \stopaxis >> \stoptikzpicture}}} >>\startitemize[n] >>\item On considère les droites \math{{\cal D}\,\colon x=5} et >> \math{{\cal D'}\,\colon y=3x+7}. >> >> \startitemize[a] >> \item Que vaut l'abscisse du point d'intersection de \math{{\cal D}} >> et \math{{\cal D'}} ? >> \item Calculer alors son ordonnée. >> \item Interpréter graphiquement le résultat sur le graphique. >> \stopitemize >>\item On considère les droites \math{\Delta \,\colon y=-4x+1} et >> \math{\Delta '\,\colon y=2x-5}. >> >> \startitemize[a] >> \item Résoudre l'équation \math{-4x+1=2x-5}. >> \item Donner une interprétation graphique de la solution obtenue. >> \item Donner les coordonnées du point d'intersection de >> \math{\Delta} et \math{\Delta '}. >> \item Interpréter graphiquement le résultat sur le graphique. >> \stopitemize >>\stopitemize >> \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/list >> info/ntg-context >> webpage : http://www.pragma-ade.nl / http://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> wiki : http://contextgarden.net >> >> ___ >> >> > > -- > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > - >
Re: [NTG-context] Text overflowing on a figure included in a float
On 4/8/2018 11:08 AM, Fabrice Couvreur wrote: Hello, Sorry if the example is not minimal but otherwise it would be difficult to explain the problem. The text overflows on the figure and I do not know how to correct this. By choosing the right language: \mainlanguage[fr] or increasing the tolerance: % \setuptolerance[stretch,verytolerant] Thank you Fabrice \usemodule[pgfplots] \pgfplotsset{compat=newest} \starttext \placefigure[right,none]{}{ \hbox{\framed{\switchtobodyfont[8pt] \starttikzpicture[/pgf/declare function={g(\x)=3*\x +7;},/pgf/declare function={f(\x)=-4*\x +1;},/pgf/declare function={h(\x)=2*\x -5;}] \startaxis[ restrict x to domain=-20:20, xmax=20, xmin=-20, restrict y to domain=-25:30, ymax=30, ymin=-25, x=0.1cm, y=0.1cm, axis x line = middle, axis y line = middle, axis line style = thick, major grid style=gray, minor grid style=gray, tickwidth=0.1cm, xtick align=outside, ytick align=outside, grid=both, xtick={-15,-10,...,15}, ytick={-20,-15,...,25}, xticklabels={\empty,\empty,\empty,\empty,5,\empty,\empty,\empty}, yticklabels={\empty,\empty,\empty,\empty,\empty,5,\empty,\empty,\empty,\empty,\empty,\empty}, extra x ticks={-20,20}, extra x tick label={\null}, extra y ticks={-25,30}, extra y tick label={\null}, extra tick style={tick style={draw=none}}, every tick/.style={ black, thick, }, y tick label style={ /pgf/number format/1000 sep={} }, xlabel=$x$,ylabel=$y$, every axis x label/.style={ at={(ticklabel* cs:1.01)}, anchor=west, }, every axis y label/.style={ at={(ticklabel* cs:1.01)}, anchor=south, }, samples=2000, >=stealth, ] \addplot [smooth,domain=-20:20,thick,darkblue] {f(x)} ; \addplot [smooth,domain=-20:20,thick,darkred] {g(x)} ; \addplot [smooth,domain=-20:20,thick,yellow] {h(x)} ; \draw[thick,darkgreen](5,-25)--(5,30) ; \node[below left=2pt] at (-0.1,-0.1,0) {\math{0}} ; \stopaxis \stoptikzpicture}}} \startitemize[n] \item On considère les droites \math{{\cal D}\,\colon x=5} et \math{{\cal D'}\,\colon y=3x+7}. \startitemize[a] \item Que vaut l'abscisse du point d'intersection de \math{{\cal D}} et \math{{\cal D'}} ? \item Calculer alors son ordonnée. \item Interpréter graphiquement le résultat sur le graphique. \stopitemize \item On considère les droites \math{\Delta \,\colon y=-4x+1} et \math{\Delta '\,\colon y=2x-5}. \startitemize[a] \item Résoudre l'équation \math{-4x+1=2x-5}. \item Donner une interprétation graphique de la solution obtenue. \item Donner les coordonnées du point d'intersection de \math{\Delta} et \math{\Delta '}. \item Interpréter graphiquement le résultat sur le graphique. \stopitemize \stopitemize \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 ___ -- - 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] Text overflowing on a figure included in a float
Hello, Sorry if the example is not minimal but otherwise it would be difficult to explain the problem. The text overflows on the figure and I do not know how to correct this. Thank you Fabrice \usemodule[pgfplots] \pgfplotsset{compat=newest} \starttext \placefigure[right,none]{}{ \hbox{\framed{\switchtobodyfont[8pt] \starttikzpicture[/pgf/declare function={g(\x)=3*\x +7;},/pgf/declare function={f(\x)=-4*\x +1;},/pgf/declare function={h(\x)=2*\x -5;}] \startaxis[ restrict x to domain=-20:20, xmax=20, xmin=-20, restrict y to domain=-25:30, ymax=30, ymin=-25, x=0.1cm, y=0.1cm, axis x line = middle, axis y line = middle, axis line style = thick, major grid style=gray, minor grid style=gray, tickwidth=0.1cm, xtick align=outside, ytick align=outside, grid=both, xtick={-15,-10,...,15}, ytick={-20,-15,...,25}, xticklabels={\empty,\empty,\empty,\empty,5,\empty,\empty,\empty}, yticklabels={\empty,\empty,\empty,\empty,\empty,5,\empty,\empty,\empty,\empty,\empty,\empty}, extra x ticks={-20,20}, extra x tick label={\null}, extra y ticks={-25,30}, extra y tick label={\null}, extra tick style={tick style={draw=none}}, every tick/.style={ black, thick, }, y tick label style={ /pgf/number format/1000 sep={} }, xlabel=$x$,ylabel=$y$, every axis x label/.style={ at={(ticklabel* cs:1.01)}, anchor=west, }, every axis y label/.style={ at={(ticklabel* cs:1.01)}, anchor=south, }, samples=2000, >=stealth, ] \addplot [smooth,domain=-20:20,thick,darkblue] {f(x)} ; \addplot [smooth,domain=-20:20,thick,darkred] {g(x)} ; \addplot [smooth,domain=-20:20,thick,yellow] {h(x)} ; \draw[thick,darkgreen](5,-25)--(5,30) ; \node[below left=2pt] at (-0.1,-0.1,0) {\math{0}} ; \stopaxis \stoptikzpicture}}} \startitemize[n] \item On considère les droites \math{{\cal D}\,\colon x=5} et \math{{\cal D'}\,\colon y=3x+7}. \startitemize[a] \item Que vaut l'abscisse du point d'intersection de \math{{\cal D}} et \math{{\cal D'}} ? \item Calculer alors son ordonnée. \item Interpréter graphiquement le résultat sur le graphique. \stopitemize \item On considère les droites \math{\Delta \,\colon y=-4x+1} et \math{\Delta '\,\colon y=2x-5}. \startitemize[a] \item Résoudre l'équation \math{-4x+1=2x-5}. \item Donner une interprétation graphique de la solution obtenue. \item Donner les coordonnées du point d'intersection de \math{\Delta} et \math{\Delta '}. \item Interpréter graphiquement le résultat sur le graphique. \stopitemize \stopitemize \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 ___
[NTG-context] Space between lines with mathematical writings
Hello, When I write text with mathematics, I find that the space between two lines is not enough because the formulas overflow one over the other. How to correct this ? Thank you Fabrice \switchtobodyfont[asana,12pt] \definemixedcolumns [Mycolumns] [ n=2, separator=rule, rulecolor=, balance=, grid=strut, ] \setupalign[verytolerant,stretch,hanging] \starttext \startMycolumns \startitemize[n] \item Le taux d'évolution du prix du menu entre l'été 2012 et l'été 2015 est égal à \math{t_g=\frac{13,80-9,80}{9,80}\approx 0,4082}. On a alors \math{(1+t_m)^3=(1+t_g)}, soit \math{(1+t_m)^3 \approx 1,4082}. On en déduit que \math{1+t_m \approx 1,4082^{\frac{1}{3}}}. Finalement, \math{t_m\approx 1,4082^{\frac{1}{3}}-1\approx 0,1209}. Le taux d'évolution annuel moyen, arrondi à 0,01\,\%, du prix du menu entre l'été 2012 et l'été 2015 est 12,09\,\%. \item \math{13,80 \times 1,1209^2\approx 17,34}. Le prix en 2017 sera approximativement de 17,34 euros. \stopitemize \column \input knuth \stopMycolumns \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] Latest beta: reference to items broken in mkiv
Hi all, I kindly ask for your attention for this problem again. I would like subitems to appear differently in the reference than they are in the listing: 1. item 1 a. subitem a, reference a b. item b c. Item c, reference c 2. Item 2, reference 2 See Item b, 2, 1 above. See Item b, 2, 1 above. -- Desired result: See item 1b., 2 1 above. This is possible in mkii, but not in mkiv it seems. Does anyone know how to achieve this? Robert A minimal example to play with: %\setupitemgroup[itemize][1][n,repeat][width=1em] %\setupitemgroup[itemize][2][a,repeat][width=2em] %\setupitemgroup[itemize][3][r][width=3em] \starttext \startitemize[n] \item [ref:1] item 1 \startitemize[a] \startitem[ref:a] subitem a, reference a \stopitem \item [ref:b] item b \startitem[ref:c] Item c, reference c \stopitem \stopitemize \item[ref:2] Item 2, reference 2 \stopitem \stopitemize See \in{Item}[ref:b], \in[ref:2], \in[ref:1] above. > Op 7 feb. 2018, om 14:53 heeft Otared Kavian <ota...@gmail.com > <mailto:ota...@gmail.com>> het volgende geschreven: > > Hi Robert, > > Again I answered too quickly… excuse-me! > If you want to have the subitems appear without the prefix, but references to > them contain the number of the item where they appear, I don’t know how to do > it. > My previous message addresses only the separators between the numbers of the > items and subitems. > Sorry… but my belief is that in ConTeXt everything is possible, even if I > don’t know how to do it :-) > > Best regards: OK > >> On 7 Feb 2018, at 12:56, r.erm...@hccnet.nl <mailto:r.erm...@hccnet.nl> >> wrote: >> >> Hi Otared, >> >> Thanks, the solution works to some extend. It yields the following output. >> >> 1. item 1 >> >> 1.a. subitem a, reference a >> >> 1.b. item b >> >> 1.b.i. A sub-sub item >> >> 1.b.ii. Another sub-sub item, B 1.c. Item c, reference c >> >> 2. Item 2, reference 2 >> >> See Item 1.b, see also items 2 and 1 above, as well as the sub-sub item >> 1.b.ii. >> >> >> Yet the output I am looking for, and which I had in mkii, is: >> 1. item 1 >> >> a. subitem a, reference a >> >> b. item b >> >> i. A sub-sub item >> >> ii. Another sub-sub item, B 1.c. Item c, reference c >> >> 2. Item 2, reference 2 >> >> >> See Item 1.b / 1b, see also items 2 and 1 above, as well as the sub-sub item >> 1.b.ii / 1bii. >> >> >> Is this possible? >> >> Regards, >> >> Robert >> >> >> >> >>> Op 7 feb. 2018, om 12:37 heeft Otared Kavian <ota...@gmail.com >>> <mailto:ota...@gmail.com>> het volgende geschreven: >>> >>> Hi Robert, >>> >>> I think the issue does not come from the version of Context you are using >>> but rather from a lack of formatting your itemgroups with the keyword « >>> repeat ». >>> >>> I guess what you want to obtain can be achieved with the following example >>> below. At least here with either versions of Context I have the output is >>> as expected. >>> >>> Best regards: OK >>> >>> %% begin repeat-subitem.tex >>> \setupitemgroup[itemize][1][n,repeat][width=1em] >>> \setupitemgroup[itemize][2][a,repeat][width=2em] >>> \setupitemgroup[itemize][3][r][width=3em] >>> >>> \starttext >>> >>> \startitemize[n] >>> \item[ref:1] item 1 >>> \startitemize >>> \startitem[ref:a] >>> subitem a, reference a >>> \stopitem >>> \item [ref:b] item b >>> \startitemize >>> \item A sub-sub item >>> \item[ref:subsub-B] Another sub-sub item, B >>> \stopitemize >>> \startitem[ref:c] >>> Item c, reference c >>> \stopitem >>> \stopitemize >>> \startitem[ref:2] >>> Item 2, reference 2 >>> \stopitem >>> >>> \stopitemize >>> \blank[big] >>> >>> See \in{Item}[ref:b], see also items \in[ref:2] and \in[ref:1] above, as >>> well as the \in{sub-sub item}[ref:subsub-B]. >>> >>> \stoptext >>> %% end repeat-subitem.tex >>> >>> >>> >>>> On 7 Feb 2018, at
Re: [NTG-context] Latest beta: reference to items broken in mkiv
Hi Otared, Thanks for your time and trouble!. I had found \defineseparatorset[none][][] with the same result: it oppresses the dots. Yes, I want subitems to appear differently in the reference than they are in the listing: 1. item 1 a subitem b subitem 2. item 2 a subitem b subitem Desired result: See item 1b and 2a. Does anyone else know how to achieve this? Robert > Op 7 feb. 2018, om 14:53 heeft Otared Kavian <ota...@gmail.com> het volgende > geschreven: > > Hi Robert, > > Again I answered too quickly… excuse-me! > If you want to have the subitems appear without the prefix, but references to > them contain the number of the item where they appear, I don’t know how to do > it. > My previous message addresses only the separators between the numbers of the > items and subitems. > Sorry… but my belief is that in ConTeXt everything is possible, even if I > don’t know how to do it :-) > > Best regards: OK > >> On 7 Feb 2018, at 12:56, r.erm...@hccnet.nl <mailto:r.erm...@hccnet.nl> >> wrote: >> >> Hi Otared, >> >> Thanks, the solution works to some extend. It yields the following output. >> >> 1. item 1 >> >> 1.a. subitem a, reference a >> >> 1.b. item b >> >> 1.b.i. A sub-sub item >> >> 1.b.ii. Another sub-sub item, B 1.c. Item c, reference c >> >> 2. Item 2, reference 2 >> >> See Item 1.b, see also items 2 and 1 above, as well as the sub-sub item >> 1.b.ii. >> >> >> Yet the output I am looking for, and which I had in mkii, is: >> 1. item 1 >> >> a. subitem a, reference a >> >> b. item b >> >> i. A sub-sub item >> >> ii. Another sub-sub item, B 1.c. Item c, reference c >> >> 2. Item 2, reference 2 >> >> >> See Item 1.b / 1b, see also items 2 and 1 above, as well as the sub-sub item >> 1.b.ii / 1bii. >> >> >> Is this possible? >> >> Regards, >> >> Robert >> >> >> >> >>> Op 7 feb. 2018, om 12:37 heeft Otared Kavian <ota...@gmail.com >>> <mailto:ota...@gmail.com>> het volgende geschreven: >>> >>> Hi Robert, >>> >>> I think the issue does not come from the version of Context you are using >>> but rather from a lack of formatting your itemgroups with the keyword « >>> repeat ». >>> >>> I guess what you want to obtain can be achieved with the following example >>> below. At least here with either versions of Context I have the output is >>> as expected. >>> >>> Best regards: OK >>> >>> %% begin repeat-subitem.tex >>> \setupitemgroup[itemize][1][n,repeat][width=1em] >>> \setupitemgroup[itemize][2][a,repeat][width=2em] >>> \setupitemgroup[itemize][3][r][width=3em] >>> >>> \starttext >>> >>> \startitemize[n] >>> \item[ref:1] item 1 >>> \startitemize >>> \startitem[ref:a] >>> subitem a, reference a >>> \stopitem >>> \item [ref:b] item b >>> \startitemize >>> \item A sub-sub item >>> \item[ref:subsub-B] Another sub-sub item, B >>> \stopitemize >>> \startitem[ref:c] >>> Item c, reference c >>> \stopitem >>> \stopitemize >>> \startitem[ref:2] >>> Item 2, reference 2 >>> \stopitem >>> >>> \stopitemize >>> \blank[big] >>> >>> See \in{Item}[ref:b], see also items \in[ref:2] and \in[ref:1] above, as >>> well as the \in{sub-sub item}[ref:subsub-B]. >>> >>> \stoptext >>> %% end repeat-subitem.tex >>> >>> >>> >>>> On 7 Feb 2018, at 11:46, r.erm...@hccnet.nl <mailto:r.erm...@hccnet.nl> >>>> wrote: >>>> >>>> Hi Wolfgang, Otared and others, >>>> >>>> I installed a new standalone: >>>> >>>> mtx-context | main context file: >>>> /Applications/ContextStandalone/tex/texmf-context/tex/context/base/mkiv/context.mkiv >>>> mtx-context | current version: 2018.02.06 18:11 >>>> >>>> However, I do not manage to get it going. The minimal example u
Re: [NTG-context] Latest beta: reference to items broken in mkiv
Hi Robert, Again I answered too quickly… excuse-me! If you want to have the subitems appear without the prefix, but references to them contain the number of the item where they appear, I don’t know how to do it. My previous message addresses only the separators between the numbers of the items and subitems. Sorry… but my belief is that in ConTeXt everything is possible, even if I don’t know how to do it :-) Best regards: OK > On 7 Feb 2018, at 12:56, r.erm...@hccnet.nl wrote: > > Hi Otared, > > Thanks, the solution works to some extend. It yields the following output. > > 1. item 1 > > 1.a. subitem a, reference a > > 1.b. item b > > 1.b.i. A sub-sub item > > 1.b.ii. Another sub-sub item, B 1.c. Item c, reference c > > 2. Item 2, reference 2 > > See Item 1.b, see also items 2 and 1 above, as well as the sub-sub item > 1.b.ii. > > > Yet the output I am looking for, and which I had in mkii, is: > 1. item 1 > > a. subitem a, reference a > > b. item b > > i. A sub-sub item > > ii. Another sub-sub item, B 1.c. Item c, reference c > > 2. Item 2, reference 2 > > > See Item 1.b / 1b, see also items 2 and 1 above, as well as the sub-sub item > 1.b.ii / 1bii. > > > Is this possible? > > Regards, > > Robert > > > > >> Op 7 feb. 2018, om 12:37 heeft Otared Kavian <ota...@gmail.com >> <mailto:ota...@gmail.com>> het volgende geschreven: >> >> Hi Robert, >> >> I think the issue does not come from the version of Context you are using >> but rather from a lack of formatting your itemgroups with the keyword « >> repeat ». >> >> I guess what you want to obtain can be achieved with the following example >> below. At least here with either versions of Context I have the output is as >> expected. >> >> Best regards: OK >> >> %% begin repeat-subitem.tex >> \setupitemgroup[itemize][1][n,repeat][width=1em] >> \setupitemgroup[itemize][2][a,repeat][width=2em] >> \setupitemgroup[itemize][3][r][width=3em] >> >> \starttext >> >> \startitemize[n] >> \item[ref:1] item 1 >> \startitemize >> \startitem[ref:a] >> subitem a, reference a >> \stopitem >> \item [ref:b] item b >> \startitemize >> \item A sub-sub item >> \item[ref:subsub-B] Another sub-sub item, B >> \stopitemize >> \startitem[ref:c] >> Item c, reference c >> \stopitem >> \stopitemize >> \startitem[ref:2] >> Item 2, reference 2 >> \stopitem >> >> \stopitemize >> \blank[big] >> >> See \in{Item}[ref:b], see also items \in[ref:2] and \in[ref:1] above, as >> well as the \in{sub-sub item}[ref:subsub-B]. >> >> \stoptext >> %% end repeat-subitem.tex >> >> >> >>> On 7 Feb 2018, at 11:46, r.erm...@hccnet.nl <mailto:r.erm...@hccnet.nl> >>> wrote: >>> >>> Hi Wolfgang, Otared and others, >>> >>> I installed a new standalone: >>> >>> mtx-context | main context file: >>> /Applications/ContextStandalone/tex/texmf-context/tex/context/base/mkiv/context.mkiv >>> mtx-context | current version: 2018.02.06 18:11 >>> >>> However, I do not manage to get it going. The minimal example underneath >>> gives the following result: >>> 1. item 1 >>> a. subitem a, reference a >>> >>> b. item b >>> >>> c. Item c, reference c >>> >>> 2. Item 2, reference 2 >>> >>> >>> See Item b, 2, 1 above. >>> >>> This should be: >>> >>> See Item 1b, 2, 1 above. >>> >>> Regards, >>> >>> Robert >>> >>> >>> >>> \starttext >>> >>> \startitemize[n]\starttext >>> >>> \startitemize[n] >>> \item [ref:1] item 1 >>> \startitemize[a] >>> \startitem[ref:a] >>> subitem a, reference a >>> \stopitem >>> \item [ref:b] item b >>> \startitem[ref:c] >>> Item c, reference c >>> \stopitem >>> \stopitemize >>> \startitem[ref:2] >>> Item 2, reference 2 >>> \stopitem >>> \stopitemize >>> >>>
Re: [NTG-context] Latest beta: reference to items broken in mkiv
Hi Robert, Sorry I didn’t pay attention to the way you wanted the formatting of sub-items. If you want to remove the separator between numbers, then you may add the following two line after the setups of your itemgroups: \defineseparatorset[nothing][][] \setupcounter[itemgroup:itemize][numberseparatorset=nothing] This removes all the dots between the item sympbols or numbers. Best regards: OK > On 7 Feb 2018, at 12:56, r.erm...@hccnet.nl wrote: > > Hi Otared, > > Thanks, the solution works to some extend. It yields the following output. > > 1. item 1 > > 1.a. subitem a, reference a > > 1.b. item b > > 1.b.i. A sub-sub item > > 1.b.ii. Another sub-sub item, B 1.c. Item c, reference c > > 2. Item 2, reference 2 > > See Item 1.b, see also items 2 and 1 above, as well as the sub-sub item > 1.b.ii. > > > Yet the output I am looking for, and which I had in mkii, is: > 1. item 1 > > a. subitem a, reference a > > b. item b > > i. A sub-sub item > > ii. Another sub-sub item, B 1.c. Item c, reference c > > 2. Item 2, reference 2 > > > See Item 1.b / 1b, see also items 2 and 1 above, as well as the sub-sub item > 1.b.ii / 1bii. > > > Is this possible? > > Regards, > > Robert > > > > >> Op 7 feb. 2018, om 12:37 heeft Otared Kavian <ota...@gmail.com >> <mailto:ota...@gmail.com>> het volgende geschreven: >> >> Hi Robert, >> >> I think the issue does not come from the version of Context you are using >> but rather from a lack of formatting your itemgroups with the keyword « >> repeat ». >> >> I guess what you want to obtain can be achieved with the following example >> below. At least here with either versions of Context I have the output is as >> expected. >> >> Best regards: OK >> >> %% begin repeat-subitem.tex >> \setupitemgroup[itemize][1][n,repeat][width=1em] >> \setupitemgroup[itemize][2][a,repeat][width=2em] >> \setupitemgroup[itemize][3][r][width=3em] >> >> \starttext >> >> \startitemize[n] >> \item[ref:1] item 1 >> \startitemize >> \startitem[ref:a] >> subitem a, reference a >> \stopitem >> \item [ref:b] item b >> \startitemize >> \item A sub-sub item >> \item[ref:subsub-B] Another sub-sub item, B >> \stopitemize >> \startitem[ref:c] >> Item c, reference c >> \stopitem >> \stopitemize >> \startitem[ref:2] >> Item 2, reference 2 >> \stopitem >> >> \stopitemize >> \blank[big] >> >> See \in{Item}[ref:b], see also items \in[ref:2] and \in[ref:1] above, as >> well as the \in{sub-sub item}[ref:subsub-B]. >> >> \stoptext >> %% end repeat-subitem.tex >> >> >> >>> On 7 Feb 2018, at 11:46, r.erm...@hccnet.nl <mailto:r.erm...@hccnet.nl> >>> wrote: >>> >>> Hi Wolfgang, Otared and others, >>> >>> I installed a new standalone: >>> >>> mtx-context | main context file: >>> /Applications/ContextStandalone/tex/texmf-context/tex/context/base/mkiv/context.mkiv >>> mtx-context | current version: 2018.02.06 18:11 >>> >>> However, I do not manage to get it going. The minimal example underneath >>> gives the following result: >>> 1. item 1 >>> a. subitem a, reference a >>> >>> b. item b >>> >>> c. Item c, reference c >>> >>> 2. Item 2, reference 2 >>> >>> >>> See Item b, 2, 1 above. >>> >>> This should be: >>> >>> See Item 1b, 2, 1 above. >>> >>> Regards, >>> >>> Robert >>> >>> >>> >>> \starttext >>> >>> \startitemize[n]\starttext >>> >>> \startitemize[n] >>> \item [ref:1] item 1 >>> \startitemize[a] >>> \startitem[ref:a] >>> subitem a, reference a >>> \stopitem >>> \item [ref:b] item b >>> \startitem[ref:c] >>> Item c, reference c >>> \stopitem >>> \stopitemize >>> \startitem[ref:2] >>> Item 2, reference 2 >>> \stopitem >>> \stopitemize >>> >>> See \in{Item}[ref:b], \in[ref:2], \
Re: [NTG-context] Latest beta: reference to items broken in mkiv
Hi Otared, Thanks, the solution works to some extend. It yields the following output. 1. item 1 1.a. subitem a, reference a 1.b. item b 1.b.i. A sub-sub item 1.b.ii. Another sub-sub item, B 1.c. Item c, reference c 2. Item 2, reference 2 See Item 1.b, see also items 2 and 1 above, as well as the sub-sub item 1.b.ii. Yet the output I am looking for, and which I had in mkii, is: 1. item 1 a. subitem a, reference a b. item b i. A sub-sub item ii. Another sub-sub item, B 1.c. Item c, reference c 2. Item 2, reference 2 See Item 1.b / 1b, see also items 2 and 1 above, as well as the sub-sub item 1.b.ii / 1bii. Is this possible? Regards, Robert > Op 7 feb. 2018, om 12:37 heeft Otared Kavian <ota...@gmail.com> het volgende > geschreven: > > Hi Robert, > > I think the issue does not come from the version of Context you are using but > rather from a lack of formatting your itemgroups with the keyword « repeat ». > > I guess what you want to obtain can be achieved with the following example > below. At least here with either versions of Context I have the output is as > expected. > > Best regards: OK > > %% begin repeat-subitem.tex > \setupitemgroup[itemize][1][n,repeat][width=1em] > \setupitemgroup[itemize][2][a,repeat][width=2em] > \setupitemgroup[itemize][3][r][width=3em] > > \starttext > > \startitemize[n] > \item[ref:1] item 1 > \startitemize > \startitem[ref:a] > subitem a, reference a > \stopitem > \item [ref:b] item b > \startitemize > \item A sub-sub item > \item[ref:subsub-B] Another sub-sub item, B > \stopitemize > \startitem[ref:c] > Item c, reference c > \stopitem > \stopitemize > \startitem[ref:2] > Item 2, reference 2 > \stopitem > > \stopitemize > \blank[big] > > See \in{Item}[ref:b], see also items \in[ref:2] and \in[ref:1] above, as well > as the \in{sub-sub item}[ref:subsub-B]. > > \stoptext > %% end repeat-subitem.tex > > > >> On 7 Feb 2018, at 11:46, r.erm...@hccnet.nl <mailto:r.erm...@hccnet.nl> >> wrote: >> >> Hi Wolfgang, Otared and others, >> >> I installed a new standalone: >> >> mtx-context | main context file: >> /Applications/ContextStandalone/tex/texmf-context/tex/context/base/mkiv/context.mkiv >> mtx-context | current version: 2018.02.06 18:11 >> >> However, I do not manage to get it going. The minimal example underneath >> gives the following result: >> 1. item 1 >> a. subitem a, reference a >> >> b. item b >> >> c. Item c, reference c >> >> 2. Item 2, reference 2 >> >> >> See Item b, 2, 1 above. >> >> This should be: >> >> See Item 1b, 2, 1 above. >> >> Regards, >> >> Robert >> >> >> >> \starttext >> >> \startitemize[n]\starttext >> >> \startitemize[n] >> \item [ref:1] item 1 >> \startitemize[a] >> \startitem[ref:a] >> subitem a, reference a >> \stopitem >> \item [ref:b] item b >> \startitem[ref:c] >> Item c, reference c >> \stopitem >> \stopitemize >> \startitem[ref:2] >> Item 2, reference 2 >> \stopitem >> \stopitemize >> >> See \in{Item}[ref:b], \in[ref:2], \in[ref:1] above. >> >> >> \stoptext >> >> >>> Op 7 feb. 2018, om 11:03 heeft Wolfgang Schuster >>> <schuster.wolfg...@gmail.com <mailto:schuster.wolfg...@gmail.com>> het >>> volgende geschreven: >>> >>> >>> >>>> r.erm...@hccnet.nl <mailto:r.erm...@hccnet.nl> 7. Februar 2018 um 10:58 >>>> Hi Otared, >>>> >>>> Thanks for your response. In mkii this worked flawlessly. >>>> >>>> I tried it in mkiv Texlive too (2017.05.15 21:48), but it does not work. >>>> Could this be because I have item [it:ref] rather than \startitem[it:ref] >>>> … \stopitem? >>> >>> It works for me with \item[] and \startitem[]. >>> >>> >>> $ context --version >>> >>> mtx-context | current version: 2018.02.06 18:11 >>> >>> >>> Wolfgang >>> ___ >>> If your question
Re: [NTG-context] Latest beta: reference to items broken in mkiv
Hi Robert, I think the issue does not come from the version of Context you are using but rather from a lack of formatting your itemgroups with the keyword « repeat ». I guess what you want to obtain can be achieved with the following example below. At least here with either versions of Context I have the output is as expected. Best regards: OK %% begin repeat-subitem.tex \setupitemgroup[itemize][1][n,repeat][width=1em] \setupitemgroup[itemize][2][a,repeat][width=2em] \setupitemgroup[itemize][3][r][width=3em] \starttext \startitemize[n] \item[ref:1] item 1 \startitemize \startitem[ref:a] subitem a, reference a \stopitem \item [ref:b] item b \startitemize \item A sub-sub item \item[ref:subsub-B] Another sub-sub item, B \stopitemize \startitem[ref:c] Item c, reference c \stopitem \stopitemize \startitem[ref:2] Item 2, reference 2 \stopitem \stopitemize \blank[big] See \in{Item}[ref:b], see also items \in[ref:2] and \in[ref:1] above, as well as the \in{sub-sub item}[ref:subsub-B]. \stoptext %% end repeat-subitem.tex > On 7 Feb 2018, at 11:46, r.erm...@hccnet.nl wrote: > > Hi Wolfgang, Otared and others, > > I installed a new standalone: > > mtx-context | main context file: > /Applications/ContextStandalone/tex/texmf-context/tex/context/base/mkiv/context.mkiv > mtx-context | current version: 2018.02.06 18:11 > > However, I do not manage to get it going. The minimal example underneath > gives the following result: > 1. item 1 > a. subitem a, reference a > > b. item b > > c. Item c, reference c > > 2. Item 2, reference 2 > > > See Item b, 2, 1 above. > > This should be: > > See Item 1b, 2, 1 above. > > Regards, > > Robert > > > > \starttext > > \startitemize[n]\starttext > > \startitemize[n] > \item [ref:1] item 1 > \startitemize[a] > \startitem[ref:a] > subitem a, reference a > \stopitem > \item [ref:b] item b > \startitem[ref:c] > Item c, reference c > \stopitem > \stopitemize > \startitem[ref:2] > Item 2, reference 2 > \stopitem > \stopitemize > > See \in{Item}[ref:b], \in[ref:2], \in[ref:1] above. > > > \stoptext > > >> Op 7 feb. 2018, om 11:03 heeft Wolfgang Schuster >> <schuster.wolfg...@gmail.com <mailto:schuster.wolfg...@gmail.com>> het >> volgende geschreven: >> >> >> >>> r.erm...@hccnet.nl <mailto:r.erm...@hccnet.nl> 7. Februar 2018 um 10:58 >>> Hi Otared, >>> >>> Thanks for your response. In mkii this worked flawlessly. >>> >>> I tried it in mkiv Texlive too (2017.05.15 21:48), but it does not work. >>> Could this be because I have item [it:ref] rather than \startitem[it:ref] … >>> \stopitem? >> >> It works for me with \item[] and \startitem[]. >> >> >> $ context --version >> >> mtx-context | current version: 2018.02.06 18:11 >> >> >> Wolfgang >> ___ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / >> http://www.ntg.nl/mailman/listinfo/ntg-context >> <http://www.ntg.nl/mailman/listinfo/ntg-context> >> webpage : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / >> http://context.aanhet.net <http://context.aanhet.net/> >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> <https://bitbucket.org/phg/context-mirror/commits/> >> wiki : http://contextgarden.net <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] Latest beta: reference to items broken in mkiv
Hi Wolfgang, Otared and others, I installed a new standalone: mtx-context | main context file: /Applications/ContextStandalone/tex/texmf-context/tex/context/base/mkiv/context.mkiv mtx-context | current version: 2018.02.06 18:11 However, I do not manage to get it going. The minimal example underneath gives the following result: 1. item 1 a. subitem a, reference a b. item b c. Item c, reference c 2. Item 2, reference 2 See Item b, 2, 1 above. This should be: See Item 1b, 2, 1 above. Regards, Robert \starttext \startitemize[n]\starttext \startitemize[n] \item [ref:1] item 1 \startitemize[a] \startitem[ref:a] subitem a, reference a \stopitem \item [ref:b] item b \startitem[ref:c] Item c, reference c \stopitem \stopitemize \startitem[ref:2] Item 2, reference 2 \stopitem \stopitemize See \in{Item}[ref:b], \in[ref:2], \in[ref:1] above. \stoptext > Op 7 feb. 2018, om 11:03 heeft Wolfgang Schuster > <schuster.wolfg...@gmail.com> het volgende geschreven: > > > >> r.erm...@hccnet.nl <mailto:r.erm...@hccnet.nl> 7. Februar 2018 um 10:58 >> Hi Otared, >> >> Thanks for your response. In mkii this worked flawlessly. >> >> I tried it in mkiv Texlive too (2017.05.15 21:48), but it does not work. >> Could this be because I have item [it:ref] rather than \startitem[it:ref] … >> \stopitem? > > It works for me with \item[] and \startitem[]. > > > $ context --version > > mtx-context | current version: 2018.02.06 18:11 > > > 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] Latest beta: reference to items broken in mkiv
r.erm...@hccnet.nl <mailto:r.erm...@hccnet.nl> 7. Februar 2018 um 10:58 Hi Otared, Thanks for your response. In mkii this worked flawlessly. I tried it in mkiv Texlive too (2017.05.15 21:48), but it does not work. Could this be because I have item [it:ref] rather than \startitem[it:ref] … \stopitem? It works for me with \item[] and \startitem[]. $ context --version mtx-context | current version: 2018.02.06 18:11 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] Latest beta: reference to items broken in mkiv
Hi Otared, Thanks for your response. In mkii this worked flawlessly. I tried it in mkiv Texlive too (2017.05.15 21:48), but it does not work. Could this be because I have item [it:ref] rather than \startitem[it:ref] … \stopitem? Anyway, I will install a new standalone - on my Mac (no TeXShop). Robert > Op 7 feb. 2018, om 10:47 heeft Otared Kavian <ota...@gmail.com> het volgende > geschreven: > > Hi Robert, > > Indeed the bug has been fixed: the reference to items works fine in all > recent Context betas, and also with the version from TeXLive 2017 (version > 2017.05.15 21:48). > > I don’t have the current version 2017.07.17 00:20 in order to test the > example your are mentionning, but if your current version of Context comes > from TeXLive, maybe you can update it. Otherwise, the installation of a > standalone version is not that complicated and it is really worth it. > If you are using MacOS X and TeXShop, in case you would need help to install > a standalone version do not hesitate to ask me. > > Best regards: Otared K. > >> On 7 Feb 2018, at 09:38, r.erm...@hccnet.nl wrote: >> >> Hi Otared, >> >> I wonder if the problem with the referencing to items you signalled has been >> solved in a later version (see text below). I am running into the same >> issue. My context version: current version: 2017.07.17 00:20. >> >> If it is not, I will do with a makeshift solution for now; if the problem >> has been handled, I consider installing a new standalone. (Installing a >> standalone is usally a bit of a fuzz.) >> >> Thanks in advance for your reply, >> >> Best wishes, >> >> Robert >> >> Otared Kavian Wed, 01 Apr 2015 01:23:29 -0700 >> >> Hi Hans, >> >> It seems that referencing to items is broken in the latest beta mkiv: for >> example in the example below the command >>\in{Item}[ref:2] >> does not show item number 2. >> However it works fine in mkii and previous releases. >> Best regards: OK >> PS: a minimal example follows >> %%% begin ref-item-broken.tex >> \starttext >> >> \startitemize[n] >> >> \startitem[ref:1] >> Item 1, reference 1 >> \stopitem >> >> \startitem[ref:2] >> Item 2, reference 2 >> \stopitem >> >> \startitem[ref:3] >> Item 3, reference 3 >> \stopitem >> >> \stopitemize >> >> See \in{Item}[ref:2] above. >> >> \stoptext >> %%% end ref-item-broken.tex >> >> > ___ 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] Question about an environment
Hello Wolfgang, Thanks. Fabrice 2018-02-03 14:29 GMT+01:00 Wolfgang Schuster <schuster.wolfg...@gmail.com>: > > Fabrice Couvreur <fabrice1.couvr...@gmail.com> > 3. Februar 2018 um 11:20 > Hi Wolfgang, > Thank you, we get almost what I want. > With your suggestion, we have this : > > 1. First > Second > Third > > Is it possible to have this : > > 1. First > Second > Third > > > Use inline items and add \par (or a empty line) after each line. > > \defineenumeration > [ex] > [alternative=serried, >width=2em, >distance=0pt, >text=] > > \starttext > > \startex > \startitemize[text] > \item First \par > \item Second \par > \item Third \par > \stopitemize > \stopex > > \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] Question about an environment
Fabrice Couvreur <mailto:fabrice1.couvr...@gmail.com> 3. Februar 2018 um 11:20 Hi Wolfgang, Thank you, we get almost what I want. With your suggestion, we have this : 1. First Second Third Is it possible to have this : 1. First Second Third Use inline items and add \par (or a empty line) after each line. \defineenumeration [ex] [alternative=serried, width=2em, distance=0pt, text=] \starttext \startex \startitemize[text] \item First \par \item Second \par \item Third \par \stopitemize \stopex \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] Question about an environment
Hi Wolfgang, Thank you, we get almost what I want. With your suggestion, we have this : 1. First Second Third Is it possible to have this : 1. First Second Third Thank you. Fabrice 2018-02-02 18:17 GMT+01:00 Wolfgang Schuster <schuster.wolfg...@gmail.com>: > > > Fabrice Couvreur <fabrice1.couvr...@gmail.com> > 28. Januar 2018 um 22:54 > Hello, > How to make the first item on the baseline of the numbering as in the > first exercise ? > > > You have put the item environment in a box. > > \defineenumeration > [ex] > [alternative=serried, >width=2em, >distance=0pt, >text=] > > \starttext > > \startex > \dontleavehmode\beginvtop > % to remove the overfull \hbox message reduce \hsize with > % the width and distance values of the enumeration > % \hsize\dimexpr\textwidth-2em\relax > \startitemize[joinedup] > \startitem First \stopitem > \startitem Second \stopitem > \startitem Third \stopitem > \stopitemize > \endvtop > \stopex > > \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] Question about an environment
Fabrice Couvreur <mailto:fabrice1.couvr...@gmail.com> 28. Januar 2018 um 22:54 Hello, How to make the first item on the baseline of the numbering as in the first exercise ? You have put the item environment in a box. \defineenumeration [ex] [alternative=serried, width=2em, distance=0pt, text=] \starttext \startex \dontleavehmode\beginvtop % to remove the overfull \hbox message reduce \hsize with % the width and distance values of the enumeration % \hsize\dimexpr\textwidth-2em\relax \startitemize[joinedup] \startitem First \stopitem \startitem Second \stopitem \startitem Third \stopitem \stopitemize \endvtop \stopex \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] Question about an environment
Hello, Maybe I have not been clear enough about what I would like to do ? In the first exercise, I get this: *Ex1* BlablaBlablaBlablaBlablaBlablaBlablaBlablaBlabla BlablaBlablaBlablaBlablaBlablaBlablaBlablaBlabla In the second exercise, this: *Ex2* 1. 2. 3. I would like to do this: *Ex2* 1. 2. 3. Thank you. Fabrice 2018-01-28 22:54 GMT+01:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>: > Hello, > How to make the first item on the baseline of the numbering as in the > first exercise ? > Thanks. > Fabrice > > \defineframed > [ACFRAME] > [frame=off, >boffset=0pt, >width=fit, >align=flushleft, >location=low, >background=color, >backgroundcolor=MyColorA] > > \defineframed > [EXFRAME] > [frame=off, >offset=0pt, >location=low, >width=\struttotal, >background=color, >backgroundcolor=black, >foregroundcolor=white, >forgroundstyle=bold] > > \defineprocessor[ACPROCESSOR][command=\EXFRAME] > \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] > > \defineenumeration > [ex] > [text=, >width=fit, >numberconversionset=ACCONVERSION, >alternative=serried, > number=yes] > > \starttext > \startex > \input ward > \stopex > \startex > \startitemize[n] > \item One > \item Two > \item Three > \stopitemize > \stopex > \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 ___
[NTG-context] Question about an environment
Hello, How to make the first item on the baseline of the numbering as in the first exercise ? Thanks. Fabrice \defineframed [ACFRAME] [frame=off, boffset=0pt, width=fit, align=flushleft, location=low, background=color, backgroundcolor=MyColorA] \defineframed [EXFRAME] [frame=off, offset=0pt, location=low, width=\struttotal, background=color, backgroundcolor=black, foregroundcolor=white, forgroundstyle=bold] \defineprocessor[ACPROCESSOR][command=\EXFRAME] \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] \defineenumeration [ex] [text=, width=fit, numberconversionset=ACCONVERSION, alternative=serried, number=yes] \starttext \startex \input ward \stopex \startex \startitemize[n] \item One \item Two \item Three \stopitemize \stopex \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] Multiple columns in an itemization group
Thanks for the help. I appreciate it. kaddour kardio <kaddourkar...@gmail.com> wrote: > You just have to add "three," beside "column" in the options > > On Wednesday, January 24, 2018, jdh <dhen...@gmail.com> wrote: > > #1 Is there any way to instruct ConText, when using "itemize" with > multiple columns to specify the number, X columns. In this case I > want three > > > #2 Is there any way to turn off a bullet character/symbol? > > > Here is a vacabulary list example?: > > > > > \setuppapersize[letter] > \starttext > \startitemize[columns,joinedup,packed] > \item ability > \item absorb > \item accuse > \item act > \item active > \item actual > \item adopt > \item advantage > \stopitemize > \stoptext > > > > > > Regards > > ___ > > 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 > > ___ > > > -- > Dr YAHYAOUI Mohamed Kaddour, cardiologue -- Clinique KARDIA. > > > ___ > 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] Multiple columns in an itemization group
You have plenty of choices: 1- using predefined symbols, numbered 1 to 7 for usual itemation symbols: \startitemize[4, columns, three, joindup, packed] 2- use alphanumeric symbols: A (capitals) a, R (romans), r \startitemize[R, columns, three, joindup, packed] 3 - define your own symbol (like fontawesome symbols for checkbox for example) > >> >> >> \setuppapersize[letter] >> \starttext >> \startitemize[columns,joinedup,packed] >> \item ability >> \item absorb >> \item accuse >> \item act >> \item active >> \item actual >> \item adopt >> \item advantage >> \stopitemize >> \stoptext >> >> >> >> >> >> Regards >> >> ___ >> 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/list >> info/ntg-context >> webpage : http://www.pragma-ade.nl / http://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> wiki : http://contextgarden.net >> >> ___ > > > > -- > Dr YAHYAOUI Mohamed Kaddour, cardiologue -- Clinique KARDIA. > > ___ 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] Multiple columns in an itemization group
You just have to add "three," beside "column" in the options On Wednesday, January 24, 2018, jdh <dhen...@gmail.com> wrote: > > > #1 Is there any way to instruct ConText, when using "itemize" with > multiple columns to specify the number, X columns. In this case I want > three > > > #2 Is there any way to turn off a bullet character/symbol? > > > Here is a vacabulary list example?: > > > > > \setuppapersize[letter] > \starttext > \startitemize[columns,joinedup,packed] > \item ability > \item absorb > \item accuse > \item act > \item active > \item actual > \item adopt > \item advantage > \stopitemize > \stoptext > > > > > > Regards > > ___ > 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 > > ___ -- Dr YAHYAOUI Mohamed Kaddour, cardiologue -- Clinique KARDIA. ___ 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] Multiple columns in an itemization group
#1 Is there any way to instruct ConText, when using "itemize" with multiple columns to specify the number, X columns. In this case I want three #2 Is there any way to turn off a bullet character/symbol? Here is a vacabulary list example?: \setuppapersize[letter] \starttext \startitemize[columns,joinedup,packed] \item ability \item absorb \item accuse \item act \item active \item actual \item adopt \item advantage \stopitemize \stoptext Regards ___ 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] Multicolumn enumeration in a column
Hi Jan Willem, Thank you, it's a good idea ! Fabrice 2018-01-02 18:06 GMT+01:00 Jan Willem Flamma <jwfregis...@icloud.com>: > Fabrice, > > Please have a look at: > https://www.mail-archive.com/ntg-context@ntg.nl/msg86189.html > > Kind regards, > Jan Willem Flamma > > > On 31 Dec 2017, at 11:57, Fabrice Couvreur <fabrice1.couvr...@gmail.com> > wrote: > > Hello, > Thank you for your solution that works on the proposed example, but that > does not work on a more complex example. > Fabrice > > \definemixedcolumns > [Mycolumns] > [ > n=2, > separator=rule, > rulecolor=, > balance=, > grid=strut, > ] > > \setupalign[verytolerant,stretch,hanging] > > \setuppapersize[A4,landscape] > \setupinteractionscreen[option=landscape] > > \starttext > \startMycolumns > \startitemize[n] > \startitem > One > \stopitem > \startitem > \startitemize[a,packed, horizontal, three] > \startitem > \math{Q_1\approx -8} > \stopitem > \startitem > \math{M_e\approx 22} >\stopitem >\startitem > \math{Q_3\approx 40} > \stopitem > \stopitemize > \stopitem > \stopitem > \stopitemize > \stopMycolumns > \stoptext > > 2017-12-30 21:07 GMT+01:00 Lars <axteff...@gmail.com>: > >> I also just saw that columnized itemization doesn't work with "columns" >> key. Use "horizontal" instead: >> >> >> \definemixedcolumns >> [Mycolumns] >> [ >> n=2, >> separator=rule, >> rulecolor=, >> balance=, >> grid=strut, >> ] >> >> \setupalign[verytolerant,stretch,hanging] >> >> \setuppapersize[A4,landscape] >> \setupinteractionscreen[option=landscape] >> >> \starttext >> \startMycolumns >> >> \startitemize[packed, columns, three] >> \startitem >> one >> \stopitem >> \startitem >> two >> \stopitem >> \stopitemize >> \blank[medium] >> \startitemize[packed, horizontal, three] >> \startitem >> three >> \stopitem >> \startitem >> four >> \stopitem >> \stopitemize >> >> \stopMycolumns >> \stoptext >> >> >> Cheers >> >> >> Weitergeleitete Nachricht >> Betreff: Re: [NTG-context] Multicolumn enumeration in a column >> Datum: Sat, 30 Dec 2017 20:49:06 +0100 >> Von: Lars <axteff...@gmail.com> <axteff...@gmail.com> >> An: ntg-context@ntg.nl >> >> >> Hey there, >> >> the code that you're using won't work with \item command. >> Use the \startitem ... \stopitem command pair instead. >> >> Another way to get itemizations in columns is to simply place one >> itemizeation per column: >> >> \starttext >> >> two columns: >> >> \startcolumns[n=2] >> >> \startitemize[packed] >> \startitem >> one >> \stopitem >> \startitem >> two >> \stopitem >> \stopitemize >> >> \column >> >> \startitemize[packed] >> \startitem >> one >> \stopitem >> \startitem >> two >> \stopitem >> \stopitemize >> >> \stopcolumns >> >> \blank[big] >> >> three columns: >> >> \startcolumns[n=3] >> >> \startitemize[packed] >> \startitem >> one >> \stopitem >> \startitem >> two >> \stopitem >> \stopitemize >> >> \column >> >> \startitemize[packed] >> \startitem >> one >> \stopitem >> \startitem >> two >> \stopitem >> \stopitemize >> >> \column >> >> \startitemize[packed] >> \startitem >> one >> \stopitem >> \startitem >> two >> \stopitem >> \stopitemize >> >> \stopcolumns >> >> \stoptext >> >> >> Cheers >> >> >> >> Am 30/12/2017 um 10:18 schrieb Fabrice Couvreur: >>
Re: [NTG-context] Multicolumn enumeration in a column
Fabrice, Please have a look at: https://www.mail-archive.com/ntg-context@ntg.nl/msg86189.html <https://www.mail-archive.com/ntg-context@ntg.nl/msg86189.html> Kind regards, Jan Willem Flamma > On 31 Dec 2017, at 11:57, Fabrice Couvreur <fabrice1.couvr...@gmail.com> > wrote: > > Hello, > Thank you for your solution that works on the proposed example, but that does > not work on a more complex example. > Fabrice > > \definemixedcolumns > [Mycolumns] > [ > n=2, > separator=rule, > rulecolor=, > balance=, > grid=strut, > ] > > \setupalign[verytolerant,stretch,hanging] > > \setuppapersize[A4,landscape] > \setupinteractionscreen[option=landscape] > > \starttext > \startMycolumns > \startitemize[n] > \startitem > One > \stopitem > \startitem > \startitemize[a,packed, horizontal, three] > \startitem > \math{Q_1\approx -8} > \stopitem > \startitem > \math{M_e\approx 22} >\stopitem >\startitem > \math{Q_3\approx 40} > \stopitem > \stopitemize > \stopitem > \stopitem > \stopitemize > \stopMycolumns > \stoptext > > 2017-12-30 21:07 GMT+01:00 Lars <axteff...@gmail.com > <mailto:axteff...@gmail.com>>: > I also just saw that columnized itemization doesn't work with "columns" key. > Use "horizontal" instead: > > > \definemixedcolumns > [Mycolumns] > [ > n=2, > separator=rule, > rulecolor=, > balance=, > grid=strut, > ] > > \setupalign[verytolerant,stretch,hanging] > > \setuppapersize[A4,landscape] > \setupinteractionscreen[option=landscape] > > \starttext > \startMycolumns > > \startitemize[packed, columns, three] > \startitem > one > \stopitem > \startitem > two > \stopitem > \stopitemize > \blank[medium] > \startitemize[packed, horizontal, three] > \startitem > three > \stopitem > \startitem > four > \stopitem > \stopitemize > > \stopMycolumns > \stoptext > > > Cheers > > > Weitergeleitete Nachricht > Betreff: Re: [NTG-context] Multicolumn enumeration in a column > Datum:Sat, 30 Dec 2017 20:49:06 +0100 > Von: Lars <axteff...@gmail.com> <mailto:axteff...@gmail.com> > An: ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> > > > Hey there, > > the code that you're using won't work with \item command. > Use the \startitem ... \stopitem command pair instead. > > Another way to get itemizations in columns is to simply place one > itemizeation per column: > > \starttext > > two columns: > > \startcolumns[n=2] > > \startitemize[packed] > \startitem > one > \stopitem > \startitem > two > \stopitem > \stopitemize > > \column > > \startitemize[packed] > \startitem > one > \stopitem > \startitem > two > \stopitem > \stopitemize > > \stopcolumns > > \blank[big] > > three columns: > > \startcolumns[n=3] > > \startitemize[packed] > \startitem > one > \stopitem > \startitem > two > \stopitem > \stopitemize > > \column > > \startitemize[packed] > \startitem > one > \stopitem > \startitem > two > \stopitem > \stopitemize > > \column > > \startitemize[packed] > \startitem > one > \stopitem > \startitem > two > \stopitem > \stopitemize > > \stopcolumns > > \stoptext > > > Cheers > > > > Am 30/12/2017 um 10:18 schrieb Fabrice Couvreur: >> Hello, >> How to modify the code for an enumeration on three columns in a column ? >> Thank you >> Fabrice >> >> >> \definemixedcolumns >> [Mycolumns] >> [ >> n=2, >> separator=rule, >> rulecolor=, >> balance=, >> grid=strut, >> ] >> >> \setupalign[verytolerant,stretch,hanging] >> >> \setuppapersize[A4,landscape] >> \setupinteractionscreen[option=landscape] >> >> \starttext >> \startMycolumns >> \startitemize[n] >> \item >> \item
Re: [NTG-context] Fwd: Re: Multicolumn enumeration in a column
Hello, Thank you for your solution that works on the proposed example, but that does not work on a more complex example. Fabrice \definemixedcolumns [Mycolumns] [ n=2, separator=rule, rulecolor=, balance=, grid=strut, ] \setupalign[verytolerant,stretch,hanging] \setuppapersize[A4,landscape] \setupinteractionscreen[option=landscape] \starttext \startMycolumns \startitemize[n] \startitem One \stopitem \startitem \startitemize[a,packed, horizontal, three] \startitem \math{Q_1\approx -8} \stopitem \startitem \math{M_e\approx 22} \stopitem \startitem \math{Q_3\approx 40} \stopitem \stopitemize \stopitem \stopitem \stopitemize \stopMycolumns \stoptext 2017-12-30 21:07 GMT+01:00 Lars <axteff...@gmail.com>: > I also just saw that columnized itemization doesn't work with "columns" > key. Use "horizontal" instead: > > > \definemixedcolumns > [Mycolumns] > [ > n=2, > separator=rule, > rulecolor=, > balance=, > grid=strut, > ] > > \setupalign[verytolerant,stretch,hanging] > > \setuppapersize[A4,landscape] > \setupinteractionscreen[option=landscape] > > \starttext > \startMycolumns > > \startitemize[packed, columns, three] > \startitem > one > \stopitem > \startitem > two > \stopitem > \stopitemize > \blank[medium] > \startitemize[packed, horizontal, three] > \startitem > three > \stopitem > \startitem > four > \stopitem > \stopitemize > > \stopMycolumns > \stoptext > > > Cheers > > > Weitergeleitete Nachricht > Betreff: Re: [NTG-context] Multicolumn enumeration in a column > Datum: Sat, 30 Dec 2017 20:49:06 +0100 > Von: Lars <axteff...@gmail.com> <axteff...@gmail.com> > An: ntg-context@ntg.nl > > > Hey there, > > the code that you're using won't work with \item command. > Use the \startitem ... \stopitem command pair instead. > > Another way to get itemizations in columns is to simply place one > itemizeation per column: > > \starttext > > two columns: > > \startcolumns[n=2] > > \startitemize[packed] > \startitem > one > \stopitem > \startitem > two > \stopitem > \stopitemize > > \column > > \startitemize[packed] > \startitem > one > \stopitem > \startitem > two > \stopitem > \stopitemize > > \stopcolumns > > \blank[big] > > three columns: > > \startcolumns[n=3] > > \startitemize[packed] > \startitem > one > \stopitem > \startitem > two > \stopitem > \stopitemize > > \column > > \startitemize[packed] > \startitem > one > \stopitem > \startitem > two > \stopitem > \stopitemize > > \column > > \startitemize[packed] > \startitem > one > \stopitem > \startitem > two > \stopitem > \stopitemize > > \stopcolumns > > \stoptext > > > Cheers > > > > Am 30/12/2017 um 10:18 schrieb Fabrice Couvreur: > > Hello, > How to modify the code for an enumeration on three columns in a column ? > Thank you > Fabrice > > > \definemixedcolumns > [Mycolumns] > [ > n=2, > separator=rule, > rulecolor=, > balance=, > grid=strut, > ] > > \setupalign[verytolerant,stretch,hanging] > > \setuppapersize[A4,landscape] > \setupinteractionscreen[option=landscape] > > \starttext > \startMycolumns > \startitemize[n] > \item > \item > \blank > \startitemize[a,columns,three,joinedup] > \item > \item > \item > \stopitemize > \stopitemize > \stopMycolumns > \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 you
[NTG-context] Fwd: Re: Multicolumn enumeration in a column
I also just saw that columnized itemization doesn't work with "columns" key. Use "horizontal" instead: \definemixedcolumns [Mycolumns] [ n=2, separator=rule, rulecolor=, balance=, grid=strut, ] \setupalign[verytolerant,stretch,hanging] \setuppapersize[A4,landscape] \setupinteractionscreen[option=landscape] \starttext \startMycolumns \startitemize[packed, columns, three] \startitem one \stopitem \startitem two \stopitem \stopitemize \blank[medium] \startitemize[packed, horizontal, three] \startitem three \stopitem \startitem four \stopitem \stopitemize \stopMycolumns \stoptext Cheers Weitergeleitete Nachricht Betreff:Re: [NTG-context] Multicolumn enumeration in a column Datum: Sat, 30 Dec 2017 20:49:06 +0100 Von:Lars <axteff...@gmail.com> An: ntg-context@ntg.nl Hey there, the code that you're using won't work with \item command. Use the \startitem ... \stopitem command pair instead. Another way to get itemizations in columns is to simply place one itemizeation per column: \starttext two columns: \startcolumns[n=2] \startitemize[packed] \startitem one \stopitem \startitem two \stopitem \stopitemize \column \startitemize[packed] \startitem one \stopitem \startitem two \stopitem \stopitemize \stopcolumns \blank[big] three columns: \startcolumns[n=3] \startitemize[packed] \startitem one \stopitem \startitem two \stopitem \stopitemize \column \startitemize[packed] \startitem one \stopitem \startitem two \stopitem \stopitemize \column \startitemize[packed] \startitem one \stopitem \startitem two \stopitem \stopitemize \stopcolumns \stoptext Cheers Am 30/12/2017 um 10:18 schrieb Fabrice Couvreur: Hello, How to modify the code for an enumeration on three columns in a column ? Thank you Fabrice \definemixedcolumns [Mycolumns] [ n=2, separator=rule, rulecolor=, balance=, grid=strut, ] \setupalign[verytolerant,stretch,hanging] \setuppapersize[A4,landscape] \setupinteractionscreen[option=landscape] \starttext \startMycolumns \startitemize[n] \item \item \blank \startitemize[a,columns,three,joinedup] \item \item \item \stopitemize \stopitemize \stopMycolumns \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 ___
Re: [NTG-context] Multicolumn enumeration in a column
Hey there, the code that you're using won't work with \item command. Use the \startitem ... \stopitem command pair instead. Another way to get itemizations in columns is to simply place one itemizeation per column: \starttext two columns: \startcolumns[n=2] \startitemize[packed] \startitem one \stopitem \startitem two \stopitem \stopitemize \column \startitemize[packed] \startitem one \stopitem \startitem two \stopitem \stopitemize \stopcolumns \blank[big] three columns: \startcolumns[n=3] \startitemize[packed] \startitem one \stopitem \startitem two \stopitem \stopitemize \column \startitemize[packed] \startitem one \stopitem \startitem two \stopitem \stopitemize \column \startitemize[packed] \startitem one \stopitem \startitem two \stopitem \stopitemize \stopcolumns \stoptext Cheers Am 30/12/2017 um 10:18 schrieb Fabrice Couvreur: Hello, How to modify the code for an enumeration on three columns in a column ? Thank you Fabrice \definemixedcolumns [Mycolumns] [ n=2, separator=rule, rulecolor=, balance=, grid=strut, ] \setupalign[verytolerant,stretch,hanging] \setuppapersize[A4,landscape] \setupinteractionscreen[option=landscape] \starttext \startMycolumns \startitemize[n] \item \item \blank \startitemize[a,columns,three,joinedup] \item \item \item \stopitemize \stopitemize \stopMycolumns \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] Multicolumn enumeration in a column
Hello, How to modify the code for an enumeration on three columns in a column ? Thank you Fabrice \definemixedcolumns [Mycolumns] [ n=2, separator=rule, rulecolor=, balance=, grid=strut, ] \setupalign[verytolerant,stretch,hanging] \setuppapersize[A4,landscape] \setupinteractionscreen[option=landscape] \starttext \startMycolumns \startitemize[n] \item \item \blank \startitemize[a,columns,three,joinedup] \item \item \item \stopitemize \stopitemize \stopMycolumns \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] Strange behavior with itemize
Hello Hans, It works well with context in Texlive but not with context in Standalone. Thank you. Fabrice 2017-12-17 21:56 GMT+01:00 Hans Hagen <pra...@wxs.nl>: > On 12/16/2017 11:44 PM, Fabrice Couvreur wrote: > >> Hello, >> Why are the second level items not on the same baseline ? >> Thank you. >> Fabrice >> >> >> \starttext >> >> \startitemize[n] >>\item Donner l'ensemble de définition \math{\cal D} de la fonction >> \math{f}. >>\item Comparer, lorsque c'est possible, les images : >> \blank >> \startitemize[a,columns,three,joinedup][grid=line] >> \item \math{f(-0,5)} et \math{f(0,5)} ;\par >> \item \math{f(-1)} et \math{f(2)} ;\par >> \item \math{f(-2)} et \math{f(\sqrt{2})}.\par >> \stopitemize >> >> \stopitemize >> >> \stoptext >> > you can experiment with > > \setupitemgroup > [\c!grid=\v!tolerant:10] % 10 pct tolerance in columns snapping > > \setupmixedcolumns > [\s!itemgroupcolumns] > [\c!grid=\itemgroupparameter\c!grid] > > (put this in cont-new.mkiv after \unprotect) > > > - > 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/list > info/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] Strange behavior with itemize
On 12/16/2017 11:44 PM, Fabrice Couvreur wrote: Hello, Why are the second level items not on the same baseline ? Thank you. Fabrice \starttext \startitemize[n] \item Donner l'ensemble de définition \math{\cal D} de la fonction \math{f}. \item Comparer, lorsque c'est possible, les images : \blank \startitemize[a,columns,three,joinedup][grid=line] \item \math{f(-0,5)} et \math{f(0,5)} ;\par \item \math{f(-1)} et \math{f(2)} ;\par \item \math{f(-2)} et \math{f(\sqrt{2})}.\par \stopitemize \stopitemize \stoptext you can experiment with \setupitemgroup [\c!grid=\v!tolerant:10] % 10 pct tolerance in columns snapping \setupmixedcolumns [\s!itemgroupcolumns] [\c!grid=\itemgroupparameter\c!grid] (put this in cont-new.mkiv after \unprotect) - 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] Strange behavior with itemize
Hello, Why are the second level items not on the same baseline ? Thank you. Fabrice \starttext \startitemize[n] \item Donner l'ensemble de définition \math{\cal D} de la fonction \math{f}. \item Comparer, lorsque c'est possible, les images : \blank \startitemize[a,columns,three,joinedup][grid=line] \item \math{f(-0,5)} et \math{f(0,5)} ;\par \item \math{f(-1)} et \math{f(2)} ;\par \item \math{f(-2)} et \math{f(\sqrt{2})}.\par \stopitemize \stopitemize \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] \startitemize[columns] and footnote
On Fri, 1 Dec 2017 12:49:33 +0100 luigi scarso <luigi.sca...@gmail.com> wrote: > On Fri, Dec 1, 2017 at 10:14 AM, Christoph Reller > <christoph.rel...@gmail.com> wrote: > > \starttext > > Text \footnote{Bla} > > \startitemize[columns] > > \item Item > > \stopitemize > > \stoptext > > > > In the rendered output, the footnote is drawn on top of the item (see > > attached output.png). I am afraid this looks like a bug. Please consider > > fixing this or tell me how to make footnotes render in the footnote area. > > dunno if it's a bug, > but I usually do > > \starttext > Text \footnote{Bla} > \startcolumns > \startitemize > \item \input knuth\relax > \item \input knuth\relax > \stopitemize > \stopcolumns > \stoptext Thank you for your answer Luigi! (And sorry for my slow response - spam filter was doing crazy things.) Your solution indeed makes the footnote appear at the right place. But the layout is not the same as with \startitemize[columns]. Consider: Text \footnote{Bla} \startcolumns \startitemize \dorecurse{8}{\item Item} \stopitemize \stopcolumns This results in 5 "Item"s in the left column and 3 "Item"s in the right column. On the other hand Text \footnote{Bla} \startitemize[columns] \dorecurse{8}{\item Item} \stopitemize results in 4 "Item"s in both columns, which IMHO is more correct. Don't you agree that \startitmize[columns] is buggy with respect to footnotes? Or is the [columns] parameter not supported anymore? Cheers, Christoph ___ 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] \startitemize[columns] and footnote
On Fri, Dec 1, 2017 at 10:14 AM, Christoph Reller <christoph.rel...@gmail.com> wrote: > Hi, > > Consider the following MWE: > > \starttext > Text \footnote{Bla} > \startitemize[columns] > \item Item > \stopitemize > \stoptext > > In the rendered output, the footnote is drawn on top of the item (see > attached output.png). I am afraid this looks like a bug. Please consider > fixing this or tell me how to make footnotes render in the footnote area. > > Regards, > > Christoph dunno if it's a bug, but I usually do \starttext Text \footnote{Bla} \startcolumns \startitemize \item \input knuth\relax \item \input knuth\relax \stopitemize \stopcolumns \stoptext -- luigi ___ 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] \startitemize[columns] and footnote
Hi, Consider the following MWE: \starttext Text \footnote{Bla} \startitemize[columns] \item Item \stopitemize \stoptext In the rendered output, the footnote is drawn on top of the item (see attached output.png). I am afraid this looks like a bug. Please consider fixing this or tell me how to make footnotes render in the footnote area. Regards, Christoph ___ 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 with math alignment
Dear Otared, Thank you for checking my code. > The strange fact is that if one puts > \startitem $\overline{A} = A$ \stopitem > as the first item in your example (instead of the second), then ConTeXt > creates three columns, with the first item the result of the above line, and > then items 2 and 3 in the second column and finally item 4 in the third > column. Despite this the textwidth is divided into four… > I have noticed before what you described. If there are 8 items, the outputs are all different depends on the location of \overline. I couldn’t see any pattern in the output. The only thing I can see is that the command ‘\overline’ makes a blank line, and I just guess that it is related with the column environment. > I hope Hans will see your message and fix the issue. Yes, it is also my hope. And, I believe that he also solve the alignment problem too. 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] Problem with math alignment
Dear Dalyoung, Thank you for having tested my example. Regarding what you are reporting in another thread about the weird behaviour of \overline in columns, I was traveling and could not test your file. Now I tested your example and I get the same result as you with the latest beta 2017.11.08 22:45. The strange fact is that if one puts \startitem $\overline{A} = A$ \stopitem as the first item in your example (instead of the second), then ConTeXt creates three columns, with the first item the result of the above line, and then items 2 and 3 in the second column and finally item 4 in the third column. Despite this the textwidth is divided into four… I hope Hans will see your message and fix the issue. Best regards: OK > On 13 Nov 2017, at 03:12, Jeong Dal <hak...@me.com> wrote: > > Dear Otared, > > I run your code and found that they are not aligned properly as you want. > But I don’t know how to do for the correct alignment. > > Did you see the mail about the \overline problem in column environment which > I listed recently? > It is a different problem from yours, but I’d like to know whether you got > the same output as mine or not. > Would you please check it in your computer? > > 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 > ___ ___ 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 ___