Re: [NTG-context] Problems with itemize with several columns
It seems that putting \column before itemize of 'c', forces 'c' together with this content. Repeating this step produces what I want: \startexercici[exercici:operacions-amb-fraccions-2]{multiplicació i divisió} Opereu: \startitemize[a, columns, three] \item \startformula 3 \cdot \frac{5}{3} \stopformula \item \startformula \frac{3}{4} \cdot \frac{2}{5} \stopformula \column \item \startformula \frac{1}{3} \cdot \frac{3}{4} \div \frac{1}{5} \stopformula \item \startformula 5 \div \frac{7}{10} \cdot 7 \div \frac{2}{5} \stopformula \column \item \startformula \frac{1}{2} \cdot \frac{1}{2} \stopformula \item \startformula \frac{3}{2} \div \frac{2}{3} \div \frac{5}{4} \stopformula \column \item \startformula \frac{2}{3} \colon \frac{2}{5} \stopformula \item \startformula \frac{3}{4} \colon \frac{1}{2} \cdot 6 \stopformula \item \startformula \frac{2}{3} \colon \frac{3}{4} \cdot \frac{1}{2} \stopformula \stopitemize \stopexercici @fv leung said I have to replace frac for dfrac, but it mess up the following content in my book. Thanks all, On Thu, 24 Feb 2022 23:04:43 + Bruce Horrocks ha escrit: > > > > On 24 Feb 2022, at 22:10, Xavier B. via ntg-context > > wrote: > > > > Even if I change > > \startexercici[exercici:operacions-amb-fraccions-2]{multiplicació i > > divisió} Opereu: > > \startitemize[a, columns, three] > > > > > > for > > > > \startexercici[exercici:operacions-amb-fraccions-2]{multiplicació i > > divisió} Opereu: > > \startitemize[a, columns] > > > > > > the 'c' jumps. > > > > Isn't ConTeXt capable of handle that? > > Please see the attached PDF. > > The green line shows how much space is needed to fully print item (b). Item > (c) will need the same amount of space, shown by the red line. However, this > would take you into the footer area (shown by the blue arrows), so item (c) > is split: the item label fits into the space at the bottom of the column and > so is printed there; the fraction doesn't fit and so is moved to the next > column. > > The solution to your problem would be some way of forcing the item body to > stay with the label. I don't know what that command is - hopefully someone > here does know. > > — > Bruce Horrocks > Hampshire, UK ___ 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] Problems with itemize with several columns
Thanks, Bruce, for clarifying this. But can we put 'c' character in the second column. So 'c' and its math content were together. The annoying thing is that the letter is in one column and its content in another. Thanks, On Thu, 24 Feb 2022 23:04:43 + Bruce Horrocks ha escrit: > > > > On 24 Feb 2022, at 22:10, Xavier B. via ntg-context > > wrote: > > > > Even if I change > > \startexercici[exercici:operacions-amb-fraccions-2]{multiplicació i > > divisió} Opereu: > > \startitemize[a, columns, three] > > > > > > for > > > > \startexercici[exercici:operacions-amb-fraccions-2]{multiplicació i > > divisió} Opereu: > > \startitemize[a, columns] > > > > > > the 'c' jumps. > > > > Isn't ConTeXt capable of handle that? > > Please see the attached PDF. > > The green line shows how much space is needed to fully print item (b). Item > (c) will need the same amount of space, shown by the red line. However, this > would take you into the footer area (shown by the blue arrows), so item (c) > is split: the item label fits into the space at the bottom of the column and > so is printed there; the fraction doesn't fit and so is moved to the next > column. > > The solution to your problem would be some way of forcing the item body to > stay with the label. I don't know what that command is - hopefully someone > here does know. > > — > Bruce Horrocks > Hampshire, UK ___ 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] Problems with itemize with several columns
> On 24 Feb 2022, at 22:10, Xavier B. via ntg-context > wrote: > > Even if I change > \startexercici[exercici:operacions-amb-fraccions-2]{multiplicació i divisió} > Opereu: > \startitemize[a, columns, three] > > > for > > \startexercici[exercici:operacions-amb-fraccions-2]{multiplicació i divisió} > Opereu: > \startitemize[a, columns] > > > the 'c' jumps. > > Isn't ConTeXt capable of handle that? Please see the attached PDF which is your sample with the command \showmakeup[vbox] added after \starttext The green line shows how much space is needed to fully print item (b). Item (c) will need the same amount of space, shown by the red line. However, this would take you into the footer area (shown by the blue arrows), so item (c) is split: the item label fits into the space at the bottom of the column and so is printed there; the fraction doesn't fit and so is moved to the next column. We can confirm this theory by setting the footer to nothing with the command \setuplayout[footer=0mm] and then the columns are as you wish. However that only works for this example and the situation would inevitably arise again. The solution to your problem would be some way of forcing the item body to stay with the label. I don't know what that command is - hopefully someone here can tell us. — Bruce Horrocks Hampshire, UK columns annotated.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 ___