startitemize bad with columns
Hi, With this minimal example: \starttext \startitemize[a,columns,four] \item $5^3$ \item $\left(\frac{2}{3}\right)^4$ \item $254^0$ \column \item $\left(\frac{-8}{12}\right)^3$ \item $\left(-3\right)^5$ \item $\left(-50\right)^5$ \column \item $\left(-10\right)^7$ \item $0,2^3$ \item $\left(-0,22\right)^4$ \column \item $\left(\frac{3}{2}\right)^4$ \item $22^1$ \item $22^0$ \stopitemize \stoptext I get "mis-ordered" columns What can I do? Thanks, Xan.
On 9/19/2013 3:19 PM, Xan wrote:
Hi,
With this minimal example:
\starttext \startitemize[a,columns,four] \item $5^3$ \item $\left(\frac{2}{3}\right)^4$ \item $254^0$ \column \item $\left(\frac{-8}{12}\right)^3$ \item $\left(-3\right)^5$ \item $\left(-50\right)^5$ \column \item $\left(-10\right)^7$ \item $0,2^3$ \item $\left(-0,22\right)^4$ \column \item $\left(\frac{3}{2}\right)^4$ \item $22^1$ \item $22^0$ \stopitemize \stoptext
I get "mis-ordered" columns
What can I do?
download the beta that i just uploaded (i merged some experimental code in mixed columns) i also added a math snapper ... because that's what one should actually do when not in grid mode \starttext \startbuffer \startitemize[a,columns,four][grid=] \startitem 1: \snappedmath { 5^3 } \stopitem \startitem 2: \snappedmath { \frac{2}{3}^4 } \stopitem \startitem 3: \snappedmath { 254^0 } \stopitem %\column \startitem 4: \snappedmath { \frac{-8}{12}^3} \stopitem \startitem 5: \snappedmath { -3^5 } \stopitem \startitem 6: \snappedmath { -50^5 } \stopitem %\column \startitem 7: \snappedmath { -10^7 } \stopitem \startitem 8: \snappedmath { 0,2^3 } \stopitem \startitem 9: \snappedmath { -0,22^4 } \stopitem %\column \startitem 10: \snappedmath { \frac{3}{2}^4 } \stopitem \startitem 11: \snappedmath { 22^1 } \stopitem \startitem 12: \snappedmath { 22^0 } \stopitem \stopitemize \stopbuffer \input ward \getbuffer \let\snappedmath\ruledmbox \input ward \getbuffer \input ward \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
I will do, but \startitem.... \stopitem? Is it new? Should I do this way, not only \item and just works?
Xan
On Thu, 19 Sep 2013 17:21:07 +0200
Hans Hagen
On 9/19/2013 3:19 PM, Xan wrote:
Hi,
With this minimal example:
\starttext \startitemize[a,columns,four] \item $5^3$ \item $\left(\frac{2}{3}\right)^4$ \item $254^0$ \column \item $\left(\frac{-8}{12}\right)^3$ \item $\left(-3\right)^5$ \item $\left(-50\right)^5$ \column \item $\left(-10\right)^7$ \item $0,2^3$ \item $\left(-0,22\right)^4$ \column \item $\left(\frac{3}{2}\right)^4$ \item $22^1$ \item $22^0$ \stopitemize \stoptext
I get "mis-ordered" columns
What can I do?
download the beta that i just uploaded (i merged some experimental code in mixed columns)
i also added a math snapper ... because that's what one should actually do when not in grid mode
\starttext
\startbuffer \startitemize[a,columns,four][grid=] \startitem 1: \snappedmath { 5^3 } \stopitem \startitem 2: \snappedmath { \frac{2}{3}^4 } \stopitem \startitem 3: \snappedmath { 254^0 } \stopitem %\column \startitem 4: \snappedmath { \frac{-8}{12}^3} \stopitem \startitem 5: \snappedmath { -3^5 } \stopitem \startitem 6: \snappedmath { -50^5 } \stopitem %\column \startitem 7: \snappedmath { -10^7 } \stopitem \startitem 8: \snappedmath { 0,2^3 } \stopitem \startitem 9: \snappedmath { -0,22^4 } \stopitem %\column \startitem 10: \snappedmath { \frac{3}{2}^4 } \stopitem \startitem 11: \snappedmath { 22^1 } \stopitem \startitem 12: \snappedmath { 22^0 } \stopitem \stopitemize \stopbuffer
\input ward \getbuffer
\let\snappedmath\ruledmbox
\input ward \getbuffer \input ward
\stoptext
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 9/19/2013 9:49 PM, Xan wrote:
I will do, but \startitem.... \stopitem? Is it new? Should I do this way, not only \item and just works?
bnoth are ok but I tend to use \startitem .. \stopitem ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
I receive the following error:
system > lua > dumping '/usr/local/bin/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otf/lmsans10-regular.tma' into '/usr/local/bin/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otf/lmsans10-regular.tmc' stripped
fonts > otf loading > preprocessing and caching time 0.286, packtime 0.063
! LuaTeX error .../context/tex/texmf-context/tex/context/base/page-mix.lua:138: attempt to call global 'getnext' (a nil value)
stack traceback:
.../context/tex/texmf-context/tex/context/base/page-mix.lua:138: in function 'discardtopglue'
.../context/tex/texmf-context/tex/context/base/page-mix.lua:318: in function 'gotonext'
.../context/tex/texmf-context/tex/context/base/page-mix.lua:502: in function 'process_penalty'
.../context/tex/texmf-context/tex/context/base/page-mix.lua:586: in function 'setsplit'
.../context/tex/texmf-context/tex/context/base/page-mix.lua:701: in function 'setsplit'
.../context/tex/texmf-context/tex/context/base/page-mix.lua:833: in function 'mixsetsplit'
[string "\directlua "]:1: in main chunk.
system > tex > error on line 35 in file /home/xan/SYNC/cepasud-raw-mercurial/classe/ESPA3/planificació/Tema1/99-seleccio.tex: LuaTeX error ...
25 \item $\left(-3\right)^5$
26 \item $\left(-50\right)^5$
27 \column
28 \item $\left(-10\right)^7$
29 \item $0,2^3$
30 \item $\left(-0,22\right)^4$
31 \column
32 \item $\left(\frac{3}{2}\right)^4$
33 \item $22^1$
34 \item $22^0$
35 >> \stopitemize
36
37
38 \stopexercici
39
40 \startexercici Es poden descomposar els següents nombres en forma potencial? En cas afirmatiu, trobeu les seves descomposicions en forma de potència:
41 \startitemize[a,columns,three,packed]
42 \item 64
43 \item 16
44 \column
45 \item 81
\ctxcommand #1^^@-\directlua {commands.#1}
\page_mix_routine_construct ...\else false\fi , }}
\deadcycles \zerocount
\12>>1 #1#2o-\page_mix_routine_construct \v!no
\ifcase \ctxcommand {mixstate...
\syst_helpers_loop_yes ...helpers_recurse_content
\endofloop
<to be read again>
{
<inserted text>
2
...
l.35 \stopitemize
? x
in my file:
...
\startitemize[a,columns,four]
\item $5^3$
\item $\left(\frac{2}{3}\right)^4$
\item $254^0$
\column
\item $\left(\frac{-8}{12}\right)^3$
\item $\left(-3\right)^5$
\item $\left(-50\right)^5$
\column
\item $\left(-10\right)^7$
\item $0,2^3$
\item $\left(-0,22\right)^4$
\column
\item $\left(\frac{3}{2}\right)^4$
\item $22^1$
\item $22^0$
\stopitemize
...
What happens there?
Xan.
On Thu, 19 Sep 2013 23:46:00 +0200
Hans Hagen
On 9/19/2013 9:49 PM, Xan wrote:
I will do, but \startitem.... \stopitem? Is it new? Should I do this way, not only \item and just works?
bnoth are ok but I tend to use \startitem .. \stopitem
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
By the other hand, the same with \startformula \stopformula makes that the number of itemize is in one column and the formula in te other column.
How can I force that number of itemize and the formula will be in the same column:
Simplifiqueu (potser sigui conveninent factoritzar el nombres més grans):
\startitemize[a,columns]
\item \startformula 5^{-3} \colon 5^4 \stopformula
\item \startformula (2^{3})^{-2} \cdot 2^{-3} \stopformula
\item \startformula \frac{(-4)^2 \cdot 2^3}{2^{-2}} \stopformula
\item \startformula \left(\frac{5}{2}\right)^{-3} \cdot \left(\frac{2}{5}\right)^4 \stopformula
\item \startformula (-2)^{(-3)} \colon \left(\frac{1}{2}\right)^3 \stopformula
\item \startformula \left(\frac{5^{-3}}{2^{-3}}\right)^2 \stopformula
\item \startformula \left(\frac{1}{2}\right)^{-2} \stopformula
\item \startformula \frac{\frac{2}{5} \cdot \left(\frac{2}{5}\right)^{-2}}{\left(\frac{2}{5}\right)^2} \stopformula
\item \startformula \frac{4^2 \cdot 2^3 \colon 2^{(-1)}}{2^{(-3)} \cdot 8} \stopformula
\item \startformula \frac{2^3 \cdot (-2^4)^2}{2^{-5}} \cdot (-2)^3 \stopformula
\item \startformula \frac{(-2)^3 \cdot (-2)^{(-4)}}{2^5} \stopformula
\item \startformula \left(\left(\frac{1}{-16}\right)^{-2} \colon \left(\frac{-2}{16}\right)^3\right)^{-3} \stopformula
\stopitemize
Thanks,
On Thu, 19 Sep 2013 17:21:07 +0200
Hans Hagen
On 9/19/2013 3:19 PM, Xan wrote:
Hi,
With this minimal example:
\starttext \startitemize[a,columns,four] \item $5^3$ \item $\left(\frac{2}{3}\right)^4$ \item $254^0$ \column \item $\left(\frac{-8}{12}\right)^3$ \item $\left(-3\right)^5$ \item $\left(-50\right)^5$ \column \item $\left(-10\right)^7$ \item $0,2^3$ \item $\left(-0,22\right)^4$ \column \item $\left(\frac{3}{2}\right)^4$ \item $22^1$ \item $22^0$ \stopitemize \stoptext
I get "mis-ordered" columns
What can I do?
download the beta that i just uploaded (i merged some experimental code in mixed columns)
i also added a math snapper ... because that's what one should actually do when not in grid mode
\starttext
\startbuffer \startitemize[a,columns,four][grid=] \startitem 1: \snappedmath { 5^3 } \stopitem \startitem 2: \snappedmath { \frac{2}{3}^4 } \stopitem \startitem 3: \snappedmath { 254^0 } \stopitem %\column \startitem 4: \snappedmath { \frac{-8}{12}^3} \stopitem \startitem 5: \snappedmath { -3^5 } \stopitem \startitem 6: \snappedmath { -50^5 } \stopitem %\column \startitem 7: \snappedmath { -10^7 } \stopitem \startitem 8: \snappedmath { 0,2^3 } \stopitem \startitem 9: \snappedmath { -0,22^4 } \stopitem %\column \startitem 10: \snappedmath { \frac{3}{2}^4 } \stopitem \startitem 11: \snappedmath { 22^1 } \stopitem \startitem 12: \snappedmath { 22^0 } \stopitem \stopitemize \stopbuffer
\input ward \getbuffer
\let\snappedmath\ruledmbox
\input ward \getbuffer \input ward
\stoptext
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 9/21/2013 1:14 PM, Xan wrote:
By the other hand, the same with \startformula \stopformula makes that the number of itemize is in one column and the formula in te other column.
How can I force that number of itemize and the formula will be in the same column:
Simplifiqueu (potser sigui conveninent factoritzar el nombres més grans): \startitemize[a,columns] \item \startformula 5^{-3} \colon 5^4 \stopformula \item \startformula (2^{3})^{-2} \cdot 2^{-3} \stopformula \item \startformula \frac{(-4)^2 \cdot 2^3}{2^{-2}} \stopformula \item \startformula \left(\frac{5}{2}\right)^{-3} \cdot \left(\frac{2}{5}\right)^4 \stopformula \item \startformula (-2)^{(-3)} \colon \left(\frac{1}{2}\right)^3 \stopformula \item \startformula \left(\frac{5^{-3}}{2^{-3}}\right)^2 \stopformula \item \startformula \left(\frac{1}{2}\right)^{-2} \stopformula \item \startformula \frac{\frac{2}{5} \cdot \left(\frac{2}{5}\right)^{-2}}{\left(\frac{2}{5}\right)^2} \stopformula \item \startformula \frac{4^2 \cdot 2^3 \colon 2^{(-1)}}{2^{(-3)} \cdot 8} \stopformula \item \startformula \frac{2^3 \cdot (-2^4)^2}{2^{-5}} \cdot (-2)^3 \stopformula \item \startformula \frac{(-2)^3 \cdot (-2)^{(-4)}}{2^5} \stopformula \item \startformula \left(\left(\frac{1}{-16}\right)^{-2} \colon \left(\frac{-2}{16}\right)^3\right)^{-3} \stopformula \stopitemize
\startformula goes into displaymode so is used in cases like \startmixedcolumns[balance=yes] \placeformula\startformula 5^{-3} \colon 5^4 \stopformula \placeformula\startformula (2^{3})^{-2} \cdot 2^{-3} \stopformula \placeformula\startformula \frac{(-4)^2 \cdot 2^3}{2^{-2}} \stopformula \placeformula\startformula \left(\frac{5}{2}\right)^{-3} \cdot \left(\frac{2}{5}\right)^4 \stopformula \placeformula\startformula (-2)^{(-3)} \colon \left(\frac{1}{2}\right)^3 \stopformula \placeformula\startformula \left(\frac{5^{-3}}{2^{-3}}\right)^2 \stopformula \placeformula\startformula \left(\frac{1}{2}\right)^{-2} \stopformula \placeformula\startformula \frac{\frac{2}{5} \cdot \left(\frac{2}{5}\right)^{-2}}{\left(\frac{2}{5}\right)^2} \stopformula \placeformula\startformula \frac{4^2 \cdot 2^3 \colon 2^{(-1)}}{2^{(-3)} \cdot 8} \stopformula \placeformula\startformula \frac{2^3 \cdot (-2^4)^2}{2^{-5}} \cdot (-2)^3 \stopformula \placeformula\startformula \frac{(-2)^3 \cdot (-2)^{(-4)}}{2^5} \stopformula \placeformula\startformula \left(\left(\frac{1}{-16}\right)^{-2} \colon \left(\frac{-2}{16}\right)^3\right)^{-3} \stopformula \stopmixedcolumns you can try \snappedmath {\displaystyle ...} instead ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
\startformula goes into displaymode so is used in cases like
\startmixedcolumns[balance=yes] \placeformula\startformula 5^{-3} \colon 5^4 \stopformula \placeformula\startformula (2^{3})^{-2} \cdot 2^{-3} \stopformula \placeformula\startformula \frac{(-4)^2 \cdot 2^3}{2^{-2}} \stopformula \placeformula\startformula \left(\frac{5}{2}\right)^{-3} \cdot \left(\frac{2}{5}\right)^4 \stopformula \placeformula\startformula (-2)^{(-3)} \colon \left(\frac{1}{2}\right)^3 \stopformula \placeformula\startformula \left(\frac{5^{-3}}{2^{-3}}\right)^2 \stopformula \placeformula\startformula \left(\frac{1}{2}\right)^{-2} \stopformula \placeformula\startformula \frac{\frac{2}{5} \cdot \left(\frac{2}{5}\right)^{-2}}{\left(\frac{2}{5}\right)^2} \stopformula \placeformula\startformula \frac{4^2 \cdot 2^3 \colon 2^{(-1)}}{2^{(-3)} \cdot 8} \stopformula \placeformula\startformula \frac{2^3 \cdot (-2^4)^2}{2^{-5}} \cdot (-2)^3 \stopformula \placeformula\startformula \frac{(-2)^3 \cdot (-2)^{(-4)}}{2^5} \stopformula \placeformula\startformula \left(\left(\frac{1}{-16}\right)^{-2} \colon \left(\frac{-2}{16}\right)^3\right)^{-3} \stopformula \stopmixedcolumns
you can try
But where is my itemize?
\snappedmath {\displaystyle ...}
instead
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Xan