Re: [NTG-context] tikz error upgrading to texlive version (artix)

2023-04-02 Thread Xavier B. via ntg-context
Max, when I use context minimals, I get:

modules > 'pgfrcs' is not found
modules > 'pgfmat' is not found
modules > 'tikz' is loaded
open source > level 3, order 4, name 
'/home/xan/bin/context-minimal/tex/texmf-context/tex/context/modules/mkxl/m-tikz.mkxl'
runtime error : input file 'pgfutil-common.tex' is not found, quitting
mtx-context | fatal error: return code: 1
make: *** [Makefile:10: ng-exercicis.conTeXt.pdf] Error 1
[xan@coronari apunts-espa]$


but when I run texlive, no errors shown:

$ pacman -Qs texlive
local/texlive-bin 2023.66539-1
TeX Live binaries
local/texlive-core 2023.66587-1 (texlive-most)
TeX Live core distribution
local/texlive-pictures 2023.66549-1 (texlive-most)
TeX Live - Packages for drawings graphics
local/texlive-science 2023.66461-1 (texlive-most)
TeX Live - Typesetting for mathematics, natural and computer sciences


Any hints?
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] tikz error upgrading to texlive version (artix)

2023-03-31 Thread Xavier B. via ntg-context

> > I reported that tikz is not working a few months ago, but after a few back 
> > and forth with Hans, could not get it to work. At that time, it appeared 
> > that I was the only have having issues, so I thought that I was making a 
> > mistake in how I was installing the package.
> > 
> > I have reverted to using mkiv for my course notes, because I heavily use 
> > pgfplots and that is not working in LMTX. (I was also using some nice new 
> > features of metafun, and have had to resort to compiling them externally 
> > using LMTX via the filter module and compiling the main doc with MkIV).
> afaik tikz should work ok, so can you make a test file?
> 
> Hans


Perhaps this is a good test. It's a complete example:

\setupcolors[state=start]
\definecolor[darkgreen][g=.5]
\usemodule[tikz] 

\starttext

\starttikzpicture[  scale=3,line cap=round
axes/.style=, 
important line/.style={very thick},
information text/.style={rounded 
corners,fill=red!10,inner sep=1ex} ]

\draw[help lines,step=0.5cm] (-1.4,-1.4) grid (1.4,1.4);
\draw (0,0) circle (1cm);   
\draw[->] (-1.5,0) -- (1.5,0) node[right] {$x$} coordinate(x 
axis);
\draw[->] (0,-1.5) -- (0,1.5) node[above] {$y$} coordinate(y 
axis);
\foreach \x/\xtext in {-1, -.5/-\frac{1}{2}, 1} 
   
\draw[xshift=\x cm] (0pt,1pt) -- (0pt,-1pt) 
   
node[below,fill=white] {$\xtext$};
\foreach \y/\ytext in {-1, -.5/-\frac{1}{2}, .5/\frac{1}{2}, 1}
\draw[yshift=\y cm] (1pt,0pt) -- (-1pt,0pt)
node[left,fill=white] {$\ytext$};
\filldraw[fill=green!20,draw=green!50!black] (0,0) -- (3mm,0pt) 
arc(0:30:3mm);
\draw (15:2mm) node[green!50!black] {$\alpha$};
\draw[important line,red]
(30:1cm) -- node[left=1pt,fill=white] {$\sin \alpha$} (30:1cm 
|- x axis);
\draw[important line,blue]
(30:1cm |- x axis) -- node[below=2pt,fill=white] {$\cos 
\alpha$} (0,0);
\draw[important line,orange!80!black] (1,0) -- 
node[right=1pt,fill=white] {
$\displaystyle \tan \alpha \black =
\frac{{\red \sin \alpha}}{\blue \cos \alpha}$}
(intersection of 0,0--30:1cm and 1,0--1,1) coordinate (t);
\draw (0,0) -- (t);
\draw[xshift=1.85cm]
node[right,text width=6cm,information text]
{
The {\darkgreen angle $\alpha$} is $30^\circ$ in the
example ($\pi/6$ in radians). The {\red sine of
$\alpha$}, which is the height of the red line, is
\startformula
{\red \sin \alpha} = 1/2.
\stopformula
By the Theorem of Pythagoras ...
};
\stoptikzpicture

\stoptext


Taking from tikz manual [https://wiki.contextgarden.net/TikZ]

Xavier

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] tikz error upgrading to texlive version (artix)

2023-03-30 Thread Xavier B. via ntg-context
Thanks, Max, for finding the problem. It is related to two more bugs:
https://github.com/pgf-tikz/pgf/issues/990
and 
https://github.com/pgf-tikz/pgf/issues/958

Perhaps Hans or other people could help tikz staff to do the pending and 
definitive solution.
It's annoying to have to put workarrounds in production documents.

There is just a glad mkiv user ;-)

Thanks another way,
Xavier

On Thu, 30 Mar 2023 14:57:06 -0600
Max Chernoff  ha escrit:

> Hi Xavier,
> > During the texlive package, I get this error:
> 
> > I simply run context to this file:
> > 
> > \usemodule[tikz]
> > 
> > \starttext
> > {\bf a} \tikz (0,0) -- (1,0);
> > \stoptext
> 
> > So, the problem is not the package or the distro, it's something more
> > basic which causes the error.
> 
> Someone else reported this issue to the TikZ GitHub:
> 
>https://github.com/pgf-tikz/pgf/issues/1248
>
> so it's definitely not just you. There's also a suggested (temporary)
> solution there. For a more permanent solution, someone will need to patch
> the m-tikz.mkXX files distributed with ConTeXt.
> 
> -- Max
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] tikz error upgrading to texlive version (artix)

2023-03-30 Thread Xavier B. via ntg-context
If I run the minimal context distro 
[https://wiki.contextgarden.net/Installation], I get this:

$ context a.tex 

resolvers   | formats | executing runner 'run luametatex format': 
/home/xan/bin/context-minimal/tex/texmf-linux-64/bin/luametatex 
--jobname="./a.tex" 
--fmt=/home/xan/bin/context-minimal/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt
 
--lua=/home/xan/bin/context-minimal/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui
  --c:currentrun=1 --c:fulljobname="./a.tex" --c:input="./a.tex" 
--c:kindofrun=1 --c:maxnofruns=9 
--c:texmfbinpath="/home/xan/bin/context-minimal/tex/texmf-linux-64/bin"
job > passes > version mismatch: 1.32 <> 1.33
system  > 
system  > ConTeXt  ver: 2023.03.20 17:07 LMTX  fmt: 2023.3.30  int: 
english/english
system  > 
system  > 'cont-new.mkxl' loaded
open source > level 1, order 1, name 
'/home/xan/bin/context-minimal/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 1, order 1, name 
'/home/xan/bin/context-minimal/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > files > jobname './a', input './a.tex', result './a'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 1, order 2, name './a.tex'
modules > 'tikz' is loaded
open source > level 2, order 3, name 
'/home/xan/bin/context-minimal/tex/texmf-context/tex/context/modules/mkxl/m-tikz.mkxl'
runtime error : input file 'pgfutil-common.tex' is not found, quitting
mtx-context | fatal error: return code: 1


So, the problem is not the package or the distro, it's something more basic 
which causes the error.


Thanks in advance,

On Thu, 30 Mar 2023 20:52:51 +0200
"Xavier B."  ha escrit:

> Hi,
> 
> I use artix linux (a fork of arch with systemd alternative init systems).
> During the texlive package, I get this error:
> 
> return {
>  
> ["filename"]="/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepoints.code.tex",
>  ["lastcontext"]="\n \n \\inaccessible \n \n 
> \"\n\\pgfmath@catcodes ->\\catcode `\\==12 \\catcode `\\,=12 \\catcode 
> `\\|=12 \\catcode `\\&=12 \\let \"\n  
>  \\pgfmath@char@quote \n\\pgfmathparse 
> ->\\begingroup \\pgfmath@catcodes \n   
> \\pgfmath@quickparsefalse \\ifpgfmathfloat \\let \\pgfmath@parse@next 
> =\\pgfmathfloatparsenumber \\else \\let \\pgfmath@parse@next =\\pgfmathparse@ 
> \\fi \\pgfmath@parse@next \n \\pgfmathparse \n   
> {1cm}\\ifpgfmathmathunitsdeclared \\pgf@x \\pgfmathresult mu\\relax \\else 
> \\pgf@x \\pgfmathresult pt\\relax \\fi \n\\pgfmath@next #1#2->#2\n   
> \n...\nl.926 \\pgfsetxvec{\\pgfpoint{1cm}{0cm}}\n 
> ",
>  ["lastluaerror"]="?",
>  ["lasttexerror"]="! Missing control sequence inserted",
>  ["linenumber"]=926,
>  ["offset"]=10,
> }
> 
> I simply run context to this file:
> 
> \usemodule[tikz]
> 
> \starttext
> {\bf a} \tikz (0,0) -- (1,0);
> \stoptext
> 
> My version of context is:
> 
> [xan@coronari ~]$ context --version
> mtx-context | ConTeXt Process Management 1.04
> mtx-context |
> mtx-context | main context file: 
> /usr/share/texmf-dist/tex/context/base/mkiv/context.mkiv
> mtx-context | current version: 2023.03.10 12:15
> mtx-context | main context file: 
> /usr/share/texmf-dist/tex/context/base/mkxl/context.mkxl
> mtx-context | current version: 2023.03.10 12:15
> 
> My packages are:
> 
> $ pacman -Qs texlive
> local/texlive-bibtexextra 2023.66579-1 (texlive-most)
> TeX Live - Additional BibTeX styles and bibliography databases
> local/texlive-bin 2023.66539-1
> TeX Live binaries
> local/texlive-core 2023.66587-1 (texlive-most)
> TeX Live core distribution
> local/texlive-pictures 2023.66549-1 (texlive-most)
> TeX Live - Packages for drawings graphics
> local/texlive-publishers 2023.66550-1 (texlive-most)
> TeX Live - LaTeX classes and packages for specific publishers
> local/texlive-science 2023.66461-1 (texlive-most)
> TeX Live - Typesetting for mathematics, natural and computer sciences
> 
> 
> 
> I also posted the message in Artix mailing list 
> [https://lists.artixlinux.org/archives/artix-general/2023-March/000977.html]
> 
> 
> Thanks in advance,
> Xavier
> 
> PS: In arch there are many AUR packages for installing minimal latest 
> version: 
> 
> https://aur.archlinux.org/packages/context-minimals-git
> https://aur.archlinux.org/packages/context
> https://aur.archlinux.org/packages/context-modules
> 
> Which one do you recomend to?
___
If your question is of interest to others as well, please add an 

[NTG-context] tikz error upgrading to texlive version (artix)

2023-03-30 Thread Xavier B. via ntg-context
Hi,

I use artix linux (a fork of arch with systemd alternative init systems).
During the texlive package, I get this error:

return {
 
["filename"]="/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepoints.code.tex",
 ["lastcontext"]="\n \n \\inaccessible \n \n 
\"\n\\pgfmath@catcodes ->\\catcode `\\==12 \\catcode `\\,=12 \\catcode `\\|=12 
\\catcode `\\&=12 \\let \"\n
   \\pgfmath@char@quote \n\\pgfmathparse ->\\begingroup 
\\pgfmath@catcodes \n   
\\pgfmath@quickparsefalse \\ifpgfmathfloat \\let \\pgfmath@parse@next 
=\\pgfmathfloatparsenumber \\else \\let \\pgfmath@parse@next =\\pgfmathparse@ 
\\fi \\pgfmath@parse@next \n \\pgfmathparse \n   
{1cm}\\ifpgfmathmathunitsdeclared \\pgf@x \\pgfmathresult mu\\relax \\else 
\\pgf@x \\pgfmathresult pt\\relax \\fi \n\\pgfmath@next #1#2->#2\n   
\n...\nl.926 \\pgfsetxvec{\\pgfpoint{1cm}{0cm}}\n   
  ",
 ["lastluaerror"]="?",
 ["lasttexerror"]="! Missing control sequence inserted",
 ["linenumber"]=926,
 ["offset"]=10,
}

I simply run context to this file:

\usemodule[tikz]

\starttext
{\bf a} \tikz (0,0) -- (1,0);
\stoptext

My version of context is:

[xan@coronari ~]$ context --version
mtx-context | ConTeXt Process Management 1.04
mtx-context |
mtx-context | main context file: 
/usr/share/texmf-dist/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2023.03.10 12:15
mtx-context | main context file: 
/usr/share/texmf-dist/tex/context/base/mkxl/context.mkxl
mtx-context | current version: 2023.03.10 12:15

My packages are:

$ pacman -Qs texlive
local/texlive-bibtexextra 2023.66579-1 (texlive-most)
TeX Live - Additional BibTeX styles and bibliography databases
local/texlive-bin 2023.66539-1
TeX Live binaries
local/texlive-core 2023.66587-1 (texlive-most)
TeX Live core distribution
local/texlive-pictures 2023.66549-1 (texlive-most)
TeX Live - Packages for drawings graphics
local/texlive-publishers 2023.66550-1 (texlive-most)
TeX Live - LaTeX classes and packages for specific publishers
local/texlive-science 2023.66461-1 (texlive-most)
TeX Live - Typesetting for mathematics, natural and computer sciences



I also posted the message in Artix mailing list 
[https://lists.artixlinux.org/archives/artix-general/2023-March/000977.html]


Thanks in advance,
Xavier

PS: In arch there are many AUR packages for installing minimal latest version: 

https://aur.archlinux.org/packages/context-minimals-git
https://aur.archlinux.org/packages/context
https://aur.archlinux.org/packages/context-modules

Which one do you recomend to?
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Problems with itemize with several columns

2022-02-25 Thread Xavier B. via ntg-context
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

2022-02-25 Thread Xavier B. via ntg-context
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

2022-02-24 Thread Xavier B. via ntg-context
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?
___
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

2022-02-23 Thread Xavier B. via ntg-context
On Wed, 23 Feb 2022 17:52:08 +
Bruce Horrocks  ha escrit:

> 
> 
> > On 23 Feb 2022, at 11:28, Xavier B. via ntg-context  
> > wrote:
> > 
> > In my previous post 
> > [https://mailman.ntg.nl/pipermail/ntg-context/2022/105138.html], I don't 
> > know the reason, but the attached code des not display very well in mailing 
> > list. I put it here:
> > 
> > \defineenumeration
> >  [exercici]
> >  [alternative=serried, before={\blank[medium]\testpage[1]}, 
> > text={Exercici}, stopper={.\space}, width=fit, headstyle=\ss, 
> > distance=0.25em, width=fit, headcolor=exercici_color, title=yes, 
> > titlestyle=\ss, titledistance=0em, left={\bgroup\bf}, right={\egroup}, 
> > after={\blank[big]}, prefix=yes, prefixsegments=section, way=section]
> [snip]
> 
> Removing "alternative=serried" gives a more grid like layout and (possibly 
> coincidentally) the problem of the 'c' and 'h' labels being orphaned at the 
> bottom of the page goes away.
> 
> However the Exercici 1.3 heading is now too close to the end of the previous 
> set. Perhaps changing your "before=" setting might improve things.
> 
> This is on version 2022.01.10 08:36
> —
> Bruce Horrocks
> Hampshire, UK
> 

Thanks, Bruce, but removing alternative=serried is not an option.

I don't understand that 'e' fits the space and 'c' doesn't.

@Luis: joinedup does not produce changes

In conclusion, I have the same problem ;-)
___
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

2022-02-23 Thread Xavier B. via ntg-context
In my previous post 
[https://mailman.ntg.nl/pipermail/ntg-context/2022/105138.html], I don't know 
the reason, but the attached code des not display very well in mailing list. I 
put it here:

\defineenumeration
  [exercici]
  [alternative=serried, before={\blank[medium]\testpage[1]}, text={Exercici}, 
stopper={.\space}, width=fit, headstyle=\ss, distance=0.25em, width=fit, 
headcolor=exercici_color, title=yes, titlestyle=\ss, titledistance=0em, 
left={\bgroup\bf}, right={\egroup}, after={\blank[big]}, prefix=yes, 
prefixsegments=section, way=section]

\starttext

\section{Operacions amb fraccions}

\subject{Preguntes}

\startexercici[exercici:operacions-amb-fraccions-1]{suma i resta} Opereu:
\startitemize[a, columns, three]
\item \startformula \frac{2}{7} + \frac{6}{7} - \frac{1}{7} \stopformula
\item \startformula \frac{5}{8} + \frac{9}{8} \stopformula
\item \startformula \frac{1}{4} + 5 - \frac{1}{4} \stopformula
\item \startformula \frac{3}{5} - \frac{2}{5} + \frac{11}{5} \stopformula
\item \startformula \frac{2}{3} + \frac{1}{4} \stopformula
\item \startformula 5 + \frac{4}{5} \stopformula
\item \startformula \frac{2}{3} + \frac{5}{8} - \frac{1}{9} \stopformula
\item \startformula 10 - \frac{1}{6} + \frac{6}{8} \stopformula
\item \startformula \frac{3}{10} + \frac{7}{12} \stopformula
\stopitemize
\stopexercici

\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
\item \startformula \frac{1}{3} \cdot \frac{3}{4} \div \frac{1}{5} \stopformula
%\column
\item \startformula 5 \div \frac{7}{10} \cdot 7 \div \frac{2}{5} \stopformula
\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

\startexercici[exercici:operacions-amb-fraccions-3]{operacions combinades}
\startitemize[a, columns, three]
\item \startformula \frac{3}{4} + \frac{2}{5} \cdot \frac{1}{2} \stopformula
\item \startformula \frac{2}{5} \div \frac{3}{5} - \frac{1}{4} \stopformula
\item \startformula \left( 2 + \frac{3}{5} \right) \div \frac{4}{3} \stopformula
\item \startformula \frac{2}{3} - \frac{5}{6}\cdot 8 \stopformula
\item \startformula 4 + \frac{3}{5} - \left(2 - \frac{1}{2}\right) \stopformula
\item \startformula 4 \cdot \left(\frac{5}{6} - \frac{1}{4} + 
\frac{4}{9}\right) \stopformula
\item \startformula \frac{5}{6} - \left(\frac{1}{5} + \frac{1}{3}\right) 
\stopformula
\item \startformula \frac{5}{6} \div \left( \frac{2}{5} - \frac{1}{10}\right) 
\stopformula
\item \startformula 4 \cdot \frac{2}{3} \cdot \left(\frac{2}{4} \div 
\frac{8}{10}\right) \stopformula
\item \startformula \frac{3}{4} + \frac{1}{2} \cdot \frac{4}{10} \stopformula
\item \startformula \frac{10}{12} - \left(\frac{1}{10} + \frac{3}{8}\right) 
\stopformula
\item \startformula \left(\frac{1}{2} + 2\right) \cdot \left(2 - 
\frac{1}{4}\right) \stopformula
\item \startformula \left(\frac{3}{4} + \frac{1}{4}\right) \div 
\left(\frac{5}{6} - \frac{1}{3}\right) \stopformula
\item \startformula 5 + 10 - \frac{1}{10} + 25 \stopformula
\item \startformula \frac{1}{3} + \frac{1}{2} - \frac{2}{5} \stopformula
\item \startformula \left(\frac{1}{2} + \frac{2}{10}\right) \cdot \frac{2}{6} 
\stopformula
\item \startformula 5 + \frac{1}{3} \cdot \frac{5}{3} \stopformula
\item \startformula \left( 5 + \frac{1}{3} \right) \cdot \frac{5}{3} 
\stopformula
\stopitemize
\stopexercici

\stoptext


I re-attach the resulting pdf

Thanks,



On Wed, 23 Feb 2022 09:59:58 +0100
"Xavier B."  ha escrit:

> Hi,
> 
> I try to solve this, but I could not. Can you please help me.
> I make a math problem sheet. In "Exercici 1.2", I put a itemize with three 
> columns, but the 'c' exercise jumps to second column. I want that a, b, c 
> remains in the first column, d, e, f in the second and g, h, i in the third.
> 
> I tried \column command but it's worse.
> 
> I attached the source and generated pdf.
> 
> My version of context is:
>  context --version
> mtx-context | ConTeXt Process Management 1.04
> mtx-context |
> mtx-context | main context file: 
> /usr/share/texmf-dist/tex/context/base/mkiv/context.mkiv
> mtx-context | current version: 2021.03.05 19:11
> mtx-context | main context file: 
> /usr/share/texmf-dist/tex/context/base/mkxl/context.mkxl
> mtx-context | current version: 2021.03.05 19:11
> 
> 
> Thanks in advance,
> 
> Xavier
> 
> PS: Please CCme
> 


a.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 

[NTG-context] Problems with itemize with several columns

2022-02-23 Thread Xavier B. via ntg-context
Hi,

I try to solve this, but I could not. Can you please help me.
I make a math problem sheet. In "Exercici 1.2", I put a itemize with three 
columns, but the 'c' exercise jumps to second column. I want that a, b, c 
remains in the first column, d, e, f in the second and g, h, i in the third.

I tried \column command but it's worse.

I attached the source and generated pdf.

My version of context is:
 context --version
mtx-context | ConTeXt Process Management 1.04
mtx-context |
mtx-context | main context file: 
/usr/share/texmf-dist/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2021.03.05 19:11
mtx-context | main context file: 
/usr/share/texmf-dist/tex/context/base/mkxl/context.mkxl
mtx-context | current version: 2021.03.05 19:11


Thanks in advance,

Xavier

PS: Please CCme



a.context
Description: Binary data


a.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
___