* itemize columns transposed @ 2016-09-17 6:14 Mikael P. Sundqvist 2016-09-17 11:51 ` Wolfgang Schuster 0 siblings, 1 reply; 13+ messages in thread From: Mikael P. Sundqvist @ 2016-09-17 6:14 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1: Type: text/plain, Size: 1077 bytes --] Hi! I wonder if it is possible to automatically have the itemize in columns and have the order changed (in effect, the whole itemization should be transposed) so that one gets a b c d e f instead of a c e b d f With automatically, I mean that one could use some keyword instead of adding a \stopitemize\startitemize[continued] in the middle (found here: http://wiki.contextgarden.net/Enumerations#Multicolumn) See the example below, resulting pdf is attached. /Mikael \starttext \startitemize[a,columns,three,intro][stopper=,right=)] \item $\int_0^2 1+2x\,dx$ \item $\int_0^{\ln 2} e^s\,ds$ \item $\int_0^{\ln 2} e^{2s}\,ds$ \item $\int_0^{\pi} \sin t\,dt$ \item $\int_0^{2\pi}\sin t\,dt$ \item $\int_0^1\frac{1}{1+x^2}\,dx$ \stopitemize \input tufte \startitemize[a,columns,three,intro][stopper=,right=)] \item $\int_0^2 1+2x\,dx$ \item $\int_0^{\ln 2} e^s\,ds$ \item $\int_0^{\ln 2} e^{2s}\,ds$ \stopitemize \startitemize[continue] \item $\int_0^{\pi} \sin t\,dt$ \item $\int_0^{2\pi}\sin t\,dt$ \item $\int_0^1\frac{1}{1+x^2}\,dx$ \stopitemize \stoptext [-- Attachment #2: ctx-listexample13.pdf --] [-- Type: application/pdf, Size: 16593 bytes --] [-- Attachment #3: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: itemize columns transposed 2016-09-17 6:14 itemize columns transposed Mikael P. Sundqvist @ 2016-09-17 11:51 ` Wolfgang Schuster 2016-09-17 12:12 ` Mikael P. Sundqvist 0 siblings, 1 reply; 13+ messages in thread From: Wolfgang Schuster @ 2016-09-17 11:51 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 886 bytes --] > Mikael P. Sundqvist <mailto:mickep@gmail.com> > 17. September 2016 um 08:14 > Hi! > > I wonder if it is possible to automatically have the itemize in > columns and have the order changed (in effect, the whole itemization > should be transposed) so that one gets > > a b c > d e f > > instead of > > a c e > b d f > > With automatically, I mean that one could use some keyword instead of > adding a > \stopitemize\startitemize[continued] in the middle (found here: > http://wiki.contextgarden.net/Enumerations#Multicolumn) \starttext \startitemize[a,horizontal,three] \startitem $\int_0^2 1+2x\,dx$ \stopitem \startitem $\int_0^{\ln 2} e^s\,ds$ \stopitem \startitem $\int_0^{\ln 2} e^{2s}\,ds$ \stopitem \startitem $\int_0^{\pi} \sin t\,dt$ \stopitem \startitem $\int_0^{2\pi}\sin t\,dt$ \stopitem \startitem $\int_0^1\frac{1}{1+x^2}\,dx$ \stopitem \stopitemize \stoptext Wolfgang [-- Attachment #1.2: Type: text/html, Size: 2061 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: itemize columns transposed 2016-09-17 11:51 ` Wolfgang Schuster @ 2016-09-17 12:12 ` Mikael P. Sundqvist 2016-09-17 14:48 ` Mikael P. Sundqvist 0 siblings, 1 reply; 13+ messages in thread From: Mikael P. Sundqvist @ 2016-09-17 12:12 UTC (permalink / raw) To: mailing list for ConTeXt users On Sat, Sep 17, 2016 at 1:51 PM, Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote: > Mikael P. Sundqvist > 17. September 2016 um 08:14 > Hi! > > I wonder if it is possible to automatically have the itemize in > columns and have the order changed (in effect, the whole itemization > should be transposed) so that one gets > > a b c > d e f > > instead of > > a c e > b d f > > With automatically, I mean that one could use some keyword instead of adding > a > \stopitemize\startitemize[continued] in the middle (found here: > http://wiki.contextgarden.net/Enumerations#Multicolumn) > > \starttext > > \startitemize[a,horizontal,three] > \startitem $\int_0^2 1+2x\,dx$ \stopitem > \startitem $\int_0^{\ln 2} e^s\,ds$ \stopitem > \startitem $\int_0^{\ln 2} e^{2s}\,ds$ \stopitem > \startitem $\int_0^{\pi} \sin t\,dt$ \stopitem > \startitem $\int_0^{2\pi}\sin t\,dt$ \stopitem > \startitem $\int_0^1\frac{1}{1+x^2}\,dx$ \stopitem > \stopitemize > > \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://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___________________________________________________________________________________ Thank you very much! I updated the wiki entry (http://wiki.contextgarden.net/Enumerations#Multicolumn), I hope it is appropriate. /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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: itemize columns transposed 2016-09-17 12:12 ` Mikael P. Sundqvist @ 2016-09-17 14:48 ` Mikael P. Sundqvist 2016-09-17 21:07 ` Aditya Mahajan 0 siblings, 1 reply; 13+ messages in thread From: Mikael P. Sundqvist @ 2016-09-17 14:48 UTC (permalink / raw) To: mailing list for ConTeXt users On Sat, Sep 17, 2016 at 2:12 PM, Mikael P. Sundqvist <mickep@gmail.com> wrote: > On Sat, Sep 17, 2016 at 1:51 PM, Wolfgang Schuster > <schuster.wolfgang@gmail.com> wrote: >> Mikael P. Sundqvist >> 17. September 2016 um 08:14 >> Hi! >> >> I wonder if it is possible to automatically have the itemize in >> columns and have the order changed (in effect, the whole itemization >> should be transposed) so that one gets >> >> a b c >> d e f >> >> instead of >> >> a c e >> b d f >> >> With automatically, I mean that one could use some keyword instead of adding >> a >> \stopitemize\startitemize[continued] in the middle (found here: >> http://wiki.contextgarden.net/Enumerations#Multicolumn) >> >> \starttext >> >> \startitemize[a,horizontal,three] >> \startitem $\int_0^2 1+2x\,dx$ \stopitem >> \startitem $\int_0^{\ln 2} e^s\,ds$ \stopitem >> \startitem $\int_0^{\ln 2} e^{2s}\,ds$ \stopitem >> \startitem $\int_0^{\pi} \sin t\,dt$ \stopitem >> \startitem $\int_0^{2\pi}\sin t\,dt$ \stopitem >> \startitem $\int_0^1\frac{1}{1+x^2}\,dx$ \stopitem >> \stopitemize >> >> \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://tex.aanhet.net >> archive : http://foundry.supelec.fr/projects/contextrev/ >> wiki : http://contextgarden.net >> ___________________________________________________________________________________ > > Thank you very much! > > I updated the wiki entry > (http://wiki.contextgarden.net/Enumerations#Multicolumn), I hope it is > appropriate. > > /Mikael Out of curiosity: Is there a reason why the above does not work using \item, like \startitemize[a,horizontal,three] \item $\int_0^2 1+2x\,dx$ \item $\int_0^{\ln 2} e^s\,ds$ \item $\int_0^{\ln 2} e^{2s}\,ds$ \item $\int_0^{\pi} \sin t\,dt$ \item $\int_0^{2\pi}\sin t\,dt$ \item $\int_0^1\frac{1}{1+x^2}\,dx$ \stopitemize but only with \startitem ... \stopitem? It is not that I have anything against using the \start...\stop... mechanism, but just curiosity. /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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: itemize columns transposed 2016-09-17 14:48 ` Mikael P. Sundqvist @ 2016-09-17 21:07 ` Aditya Mahajan 2016-09-18 6:27 ` Mikael P. Sundqvist 0 siblings, 1 reply; 13+ messages in thread From: Aditya Mahajan @ 2016-09-17 21:07 UTC (permalink / raw) To: mailing list for ConTeXt users On Sat, 17 Sep 2016, Mikael P. Sundqvist wrote: > > Is there a reason why the above does not work using \item, like > > \startitemize[a,horizontal,three] > \item $\int_0^2 1+2x\,dx$ > \item $\int_0^{\ln 2} e^s\,ds$ > \item $\int_0^{\ln 2} e^{2s}\,ds$ > \item $\int_0^{\pi} \sin t\,dt$ > \item $\int_0^{2\pi}\sin t\,dt$ > \item $\int_0^1\frac{1}{1+x^2}\,dx$ > \stopitemize > > but only with \startitem ... \stopitem? It is not that I have anything > against using the \start...\stop... mechanism, but just curiosity. I haven't looked at the code, but most likely reason is that it uses a two pass mechanism. It is easier to grab the content of a \start-stop pair rather than a command that could be terminated by either an \item or a \stopitem At least, that is the reason why random option only works with \startitem .. \stopitem 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: itemize columns transposed 2016-09-17 21:07 ` Aditya Mahajan @ 2016-09-18 6:27 ` Mikael P. Sundqvist 2016-09-22 6:44 ` Mikael P. Sundqvist 0 siblings, 1 reply; 13+ messages in thread From: Mikael P. Sundqvist @ 2016-09-18 6:27 UTC (permalink / raw) To: mailing list for ConTeXt users On Sat, Sep 17, 2016 at 11:07 PM, Aditya Mahajan <adityam@umich.edu> wrote: > On Sat, 17 Sep 2016, Mikael P. Sundqvist wrote: >> >> >> Is there a reason why the above does not work using \item, like >> >> \startitemize[a,horizontal,three] >> \item $\int_0^2 1+2x\,dx$ >> \item $\int_0^{\ln 2} e^s\,ds$ >> \item $\int_0^{\ln 2} e^{2s}\,ds$ >> \item $\int_0^{\pi} \sin t\,dt$ >> \item $\int_0^{2\pi}\sin t\,dt$ >> \item $\int_0^1\frac{1}{1+x^2}\,dx$ >> \stopitemize >> >> but only with \startitem ... \stopitem? It is not that I have anything >> against using the \start...\stop... mechanism, but just curiosity. > > > I haven't looked at the code, but most likely reason is that it uses a two > pass mechanism. It is easier to grab the content of a \start-stop pair > rather than a command that could be terminated by either an \item or a > \stopitem > > At least, that is the reason why random option only works with \startitem .. > \stopitem > > 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://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___________________________________________________________________________________ Thanks Aditya, I'll accept that there is a reason. Another related thing (sorry if I make this thread a bit difficult to read): Does the horizontal keyword force the list to be packed (and joinedup)? I tried to add unpacked, but with no luck \starttext Some text before. \startitemize[a,horizontal,three,unpacked] \startitem $\int_0^2 1+2x\,dx$ \stopitem \startitem $\int_0^{\ln 2} e^s\,ds$ \stopitem \startitem $\int_0^{\ln 2} e^{2s}\,ds$ \stopitem \startitem $\int_0^{\pi} \sin t\,dt$ \stopitem \startitem $\int_0^{2\pi}\sin t\,dt$ \stopitem \startitem $\int_0^1\frac{1}{1+x^2}\,dx$ \stopitem \stopitemize some text after. \stoptext I also tried to add some space before/after, like \starttext Some text before. \startitemize[a,horizontal,three][before={\blank[big]},after={\blank[big]}] \startitem $\int_0^2 1+2x\,dx$ \stopitem \startitem $\int_0^{\ln 2} e^s\,ds$ \stopitem \startitem $\int_0^{\ln 2} e^{2s}\,ds$ \stopitem \startitem $\int_0^{\pi} \sin t\,dt$ \stopitem \startitem $\int_0^{2\pi}\sin t\,dt$ \stopitem \startitem $\int_0^1\frac{1}{1+x^2}\,dx$ \stopitem \stopitemize some text after. \stoptext /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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: itemize columns transposed 2016-09-18 6:27 ` Mikael P. Sundqvist @ 2016-09-22 6:44 ` Mikael P. Sundqvist 2016-10-02 18:08 ` Mikael P. Sundqvist 0 siblings, 1 reply; 13+ messages in thread From: Mikael P. Sundqvist @ 2016-09-22 6:44 UTC (permalink / raw) To: mailing list for ConTeXt users On Sun, Sep 18, 2016 at 8:27 AM, Mikael P. Sundqvist <mickep@gmail.com> wrote: > On Sat, Sep 17, 2016 at 11:07 PM, Aditya Mahajan <adityam@umich.edu> wrote: >> On Sat, 17 Sep 2016, Mikael P. Sundqvist wrote: >>> >>> >>> Is there a reason why the above does not work using \item, like >>> >>> \startitemize[a,horizontal,three] >>> \item $\int_0^2 1+2x\,dx$ >>> \item $\int_0^{\ln 2} e^s\,ds$ >>> \item $\int_0^{\ln 2} e^{2s}\,ds$ >>> \item $\int_0^{\pi} \sin t\,dt$ >>> \item $\int_0^{2\pi}\sin t\,dt$ >>> \item $\int_0^1\frac{1}{1+x^2}\,dx$ >>> \stopitemize >>> >>> but only with \startitem ... \stopitem? It is not that I have anything >>> against using the \start...\stop... mechanism, but just curiosity. >> >> >> I haven't looked at the code, but most likely reason is that it uses a two >> pass mechanism. It is easier to grab the content of a \start-stop pair >> rather than a command that could be terminated by either an \item or a >> \stopitem >> >> At least, that is the reason why random option only works with \startitem .. >> \stopitem >> >> 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://tex.aanhet.net >> archive : http://foundry.supelec.fr/projects/contextrev/ >> wiki : http://contextgarden.net >> ___________________________________________________________________________________ > > Thanks Aditya, I'll accept that there is a reason. > > Another related thing (sorry if I make this thread a bit difficult to read): > > Does the horizontal keyword force the list to be packed (and > joinedup)? I tried to add unpacked, but with no luck > > \starttext > Some text before. > \startitemize[a,horizontal,three,unpacked] > \startitem $\int_0^2 1+2x\,dx$ \stopitem > \startitem $\int_0^{\ln 2} e^s\,ds$ \stopitem > \startitem $\int_0^{\ln 2} e^{2s}\,ds$ \stopitem > \startitem $\int_0^{\pi} \sin t\,dt$ \stopitem > \startitem $\int_0^{2\pi}\sin t\,dt$ \stopitem > \startitem $\int_0^1\frac{1}{1+x^2}\,dx$ \stopitem > \stopitemize > some text after. > \stoptext > > I also tried to add some space before/after, like > > \starttext > Some text before. > \startitemize[a,horizontal,three][before={\blank[big]},after={\blank[big]}] > \startitem $\int_0^2 1+2x\,dx$ \stopitem > \startitem $\int_0^{\ln 2} e^s\,ds$ \stopitem > \startitem $\int_0^{\ln 2} e^{2s}\,ds$ \stopitem > \startitem $\int_0^{\pi} \sin t\,dt$ \stopitem > \startitem $\int_0^{2\pi}\sin t\,dt$ \stopitem > \startitem $\int_0^1\frac{1}{1+x^2}\,dx$ \stopitem > \stopitemize > some text after. > \stoptext > > /Mikael Dear list, a shameless bump. (Or should I interpret the silence as it is currently not possible to change space before/after/between when one uses horizontal key?) Best regards, 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: itemize columns transposed 2016-09-22 6:44 ` Mikael P. Sundqvist @ 2016-10-02 18:08 ` Mikael P. Sundqvist 2016-10-10 8:24 ` Hans Hagen 0 siblings, 1 reply; 13+ messages in thread From: Mikael P. Sundqvist @ 2016-10-02 18:08 UTC (permalink / raw) To: mailing list for ConTeXt users On Thu, Sep 22, 2016 at 8:44 AM, Mikael P. Sundqvist <mickep@gmail.com> wrote: > On Sun, Sep 18, 2016 at 8:27 AM, Mikael P. Sundqvist <mickep@gmail.com> wrote: >> On Sat, Sep 17, 2016 at 11:07 PM, Aditya Mahajan <adityam@umich.edu> wrote: >>> On Sat, 17 Sep 2016, Mikael P. Sundqvist wrote: >>>> >>>> >>>> Is there a reason why the above does not work using \item, like >>>> >>>> \startitemize[a,horizontal,three] >>>> \item $\int_0^2 1+2x\,dx$ >>>> \item $\int_0^{\ln 2} e^s\,ds$ >>>> \item $\int_0^{\ln 2} e^{2s}\,ds$ >>>> \item $\int_0^{\pi} \sin t\,dt$ >>>> \item $\int_0^{2\pi}\sin t\,dt$ >>>> \item $\int_0^1\frac{1}{1+x^2}\,dx$ >>>> \stopitemize >>>> >>>> but only with \startitem ... \stopitem? It is not that I have anything >>>> against using the \start...\stop... mechanism, but just curiosity. >>> >>> >>> I haven't looked at the code, but most likely reason is that it uses a two >>> pass mechanism. It is easier to grab the content of a \start-stop pair >>> rather than a command that could be terminated by either an \item or a >>> \stopitem >>> >>> At least, that is the reason why random option only works with \startitem .. >>> \stopitem >>> >>> 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://tex.aanhet.net >>> archive : http://foundry.supelec.fr/projects/contextrev/ >>> wiki : http://contextgarden.net >>> ___________________________________________________________________________________ >> >> Thanks Aditya, I'll accept that there is a reason. >> >> Another related thing (sorry if I make this thread a bit difficult to read): >> >> Does the horizontal keyword force the list to be packed (and >> joinedup)? I tried to add unpacked, but with no luck >> >> \starttext >> Some text before. >> \startitemize[a,horizontal,three,unpacked] >> \startitem $\int_0^2 1+2x\,dx$ \stopitem >> \startitem $\int_0^{\ln 2} e^s\,ds$ \stopitem >> \startitem $\int_0^{\ln 2} e^{2s}\,ds$ \stopitem >> \startitem $\int_0^{\pi} \sin t\,dt$ \stopitem >> \startitem $\int_0^{2\pi}\sin t\,dt$ \stopitem >> \startitem $\int_0^1\frac{1}{1+x^2}\,dx$ \stopitem >> \stopitemize >> some text after. >> \stoptext >> >> I also tried to add some space before/after, like >> >> \starttext >> Some text before. >> \startitemize[a,horizontal,three][before={\blank[big]},after={\blank[big]}] >> \startitem $\int_0^2 1+2x\,dx$ \stopitem >> \startitem $\int_0^{\ln 2} e^s\,ds$ \stopitem >> \startitem $\int_0^{\ln 2} e^{2s}\,ds$ \stopitem >> \startitem $\int_0^{\pi} \sin t\,dt$ \stopitem >> \startitem $\int_0^{2\pi}\sin t\,dt$ \stopitem >> \startitem $\int_0^1\frac{1}{1+x^2}\,dx$ \stopitem >> \stopitemize >> some text after. >> \stoptext >> >> /Mikael > > Dear list, > > a shameless bump. > > (Or should I interpret the silence as it is currently not possible to > change space before/after/between when one uses horizontal key?) > > Best regards, Mikael Nobody? Hans, could you confirm that it is not possible to use before/after/inbetween together with the horizontal key? If so, consider it being a feature request (I of course have no idea if it is possible or not...) :) I'm running closer to the dead line of this document, so I might end up using another approach this time... /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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: itemize columns transposed 2016-10-02 18:08 ` Mikael P. Sundqvist @ 2016-10-10 8:24 ` Hans Hagen 2016-10-10 8:28 ` Hans Hagen 0 siblings, 1 reply; 13+ messages in thread From: Hans Hagen @ 2016-10-10 8:24 UTC (permalink / raw) To: mailing list for ConTeXt users, Wolfgang Schuster On 10/2/2016 8:08 PM, Mikael P. Sundqvist wrote: > \starttext >>> Some text before. >>> \startitemize[a,horizontal,three][before={\blank[big]},after={\blank[big]}] >>> \startitem $\int_0^2 1+2x\,dx$ \stopitem >>> \startitem $\int_0^{\ln 2} e^s\,ds$ \stopitem >>> \startitem $\int_0^{\ln 2} e^{2s}\,ds$ \stopitem >>> \startitem $\int_0^{\pi} \sin t\,dt$ \stopitem >>> \startitem $\int_0^{2\pi}\sin t\,dt$ \stopitem >>> \startitem $\int_0^1\frac{1}{1+x^2}\,dx$ \stopitem >>> \stopitemize >>> some text after. >>> \stoptext Something like this ... (unless WS sees a flaw): \unprotect \def\v!notpacked {notpacked} \def\v!notjoinedup{notjoinedup} \setvalue{\??itemgroupkeyword\v!notpacked}% {\setfalse\c_strc_itemgroups_pack} \setvalue{\??itemgroupkeyword\v!notjoinedup}% {\setfalse\c_strc_itemgroups_joined} \unexpanded\def\stopcollectitems {\ifconditional\c_strc_itemgroups_collecting \c_strc_itemgroups_collected_done \zerocount \c_strc_itemgroups_collected_current\zerocount \ifnum\c_strc_itemgroups_collected_stored>\zerocount \ifconditional\c_strc_itemgroups_horizontal \strc_itemgroups_before_command \setfalse\c_strc_itemgroups_first \strc_itemgroups_collected_flush %\strc_itemgroups_after_command % triggered elsewhere \else \strc_itemgroups_collected_flush \fi \fi \fi} \protect \starttext bla bla \startitemize[a,horizontal,three,notjoinedup] \startitem $\int_0^2 1+2x\,dx$ \stopitem \startitem $\int_0^{\ln 2} e^s\,ds$ \stopitem \startitem $\int_0^{\ln 2} e^{2s}\,ds$ \stopitem \startitem $\int_0^{\pi} \sin t\,dt$ \stopitem \startitem $\int_0^{2\pi}\sin t\,dt$ \stopitem \startitem $\int_0^1\frac{1}{1+x^2}\,dx$ \stopitem \stopitemize bla bla \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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: itemize columns transposed 2016-10-10 8:24 ` Hans Hagen @ 2016-10-10 8:28 ` Hans Hagen 2016-10-11 9:21 ` Mikael P. Sundqvist 0 siblings, 1 reply; 13+ messages in thread From: Hans Hagen @ 2016-10-10 8:28 UTC (permalink / raw) To: mailing list for ConTeXt users, Wolfgang Schuster On 10/10/2016 10:24 AM, Hans Hagen wrote: > \setvalue{\??itemgroupkeyword\v!notpacked}% we already have unpacked ----------------------------------------------------------------- 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: itemize columns transposed 2016-10-10 8:28 ` Hans Hagen @ 2016-10-11 9:21 ` Mikael P. Sundqvist 2016-10-11 9:37 ` Wolfgang Schuster 0 siblings, 1 reply; 13+ messages in thread From: Mikael P. Sundqvist @ 2016-10-11 9:21 UTC (permalink / raw) To: mailing list for ConTeXt users On Mon, Oct 10, 2016 at 10:28 AM, Hans Hagen <pragma@wxs.nl> wrote: > On 10/10/2016 10:24 AM, Hans Hagen wrote: > >> \setvalue{\??itemgroupkeyword\v!notpacked}% > > > we already have unpacked > > > ----------------------------------------------------------------- > 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://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___________________________________________________________________________________ Thank you, the notjoinedup works well, but I cannot see any difference using any of the keys unpacked or notpacked. Is there any chance to have the before, after and inbetween keys to set the space manually? /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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: itemize columns transposed 2016-10-11 9:21 ` Mikael P. Sundqvist @ 2016-10-11 9:37 ` Wolfgang Schuster 2016-10-11 10:35 ` Mikael P. Sundqvist 0 siblings, 1 reply; 13+ messages in thread From: Wolfgang Schuster @ 2016-10-11 9:37 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 1201 bytes --] > Mikael P. Sundqvist <mailto:mickep@gmail.com> > 11. Oktober 2016 um 11:21 > > Thank you, the notjoinedup works well, but I cannot see any difference > using any of the keys unpacked or notpacked. > > Is there any chance to have the before, after and inbetween keys to > set the space manually? The before should be usable when you add the "notjoinedup" but inbetween will never be supported for horizontal items because all entries are in a single paragraph. To increase the distance between the lines you can change the interlinespace, e.g. \starttext \startitemize[a,horizontal][inner={\setupinterlinespace[line=6ex]}] \startitem First \stopitem \startitem Second \stopitem \startitem Third \stopitem \startitem Fourth \stopitem \stopitemize \stoptext or add a invisible symbol with increased height/depth at the begin of each item, e.g. \define\HorizontalItem {\phantombox[height=\strutht,depth=\dimexpr\strutdp+\lineheight\relax]} \starttext \startitemize[a,horizontal][command=\HorizontalItem] \startitem First \stopitem \startitem Second \stopitem \startitem Third \stopitem \startitem Fourth \stopitem \stopitemize \stoptext Wolfgang [-- Attachment #1.2: Type: text/html, Size: 2363 bytes --] [-- Attachment #2: Type: text/plain, Size: 489 bytes --] ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: itemize columns transposed 2016-10-11 9:37 ` Wolfgang Schuster @ 2016-10-11 10:35 ` Mikael P. Sundqvist 0 siblings, 0 replies; 13+ messages in thread From: Mikael P. Sundqvist @ 2016-10-11 10:35 UTC (permalink / raw) To: mailing list for ConTeXt users On Tue, Oct 11, 2016 at 11:37 AM, Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote: > Mikael P. Sundqvist > 11. Oktober 2016 um 11:21 > > Thank you, the notjoinedup works well, but I cannot see any difference > using any of the keys unpacked or notpacked. > > Is there any chance to have the before, after and inbetween keys to > set the space manually? > > The before should be usable when you add the "notjoinedup" but inbetween > will never be supported > for horizontal items because all entries are in a single paragraph. > > > To increase the distance between the lines you can change the > interlinespace, e.g. > > \starttext > > \startitemize[a,horizontal][inner={\setupinterlinespace[line=6ex]}] > \startitem First \stopitem > \startitem Second \stopitem > \startitem Third \stopitem > \startitem Fourth \stopitem > \stopitemize > > \stoptext > > > or add a invisible symbol with increased height/depth at the begin of each > item, e.g. > > \define\HorizontalItem > {\phantombox[height=\strutht,depth=\dimexpr\strutdp+\lineheight\relax]} > > \starttext > > \startitemize[a,horizontal][command=\HorizontalItem] > \startitem First \stopitem > \startitem Second \stopitem > \startitem Third \stopitem > \startitem Fourth \stopitem > \stopitemize > > \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 : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___________________________________________________________________________________ Many thanks Wolfgang! Now I know that the inbetween will never work, but that is not a problem, since your inner= solution worked very well in my document! The setup I ended up using (and that seems to work all over the ~160 pages document) is \defineitemgroup[abc] \setupitemgroup[abc][each][a,horizontal,three,intro,notjoinedup][ stopper=, right=), margin=, before={\blank[medium,samepage]}, inner={\setupinterlinespace[line=3.5ex]}, ] Best regards, 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2016-10-11 10:35 UTC | newest] Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2016-09-17 6:14 itemize columns transposed Mikael P. Sundqvist 2016-09-17 11:51 ` Wolfgang Schuster 2016-09-17 12:12 ` Mikael P. Sundqvist 2016-09-17 14:48 ` Mikael P. Sundqvist 2016-09-17 21:07 ` Aditya Mahajan 2016-09-18 6:27 ` Mikael P. Sundqvist 2016-09-22 6:44 ` Mikael P. Sundqvist 2016-10-02 18:08 ` Mikael P. Sundqvist 2016-10-10 8:24 ` Hans Hagen 2016-10-10 8:28 ` Hans Hagen 2016-10-11 9:21 ` Mikael P. Sundqvist 2016-10-11 9:37 ` Wolfgang Schuster 2016-10-11 10:35 ` Mikael P. Sundqvist
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).