Re: [NTG-context] Refering to parent in XML
> in a setup you can say: \xmlshow{#1} to see what is the (current) node It does not help me. I ask you in other way: if I have this % Presentació: defineix \Presentacio{activitat-id}{presentacio-id} \def\Presentacio#1#2% {\xmlfilter{rebost} {/activitats/activitat[@id=='#1']/presentacio[@tipus=='#2']/command(xml:display)} } % Si la presentació és de tipus tradicional, aleshores és un 'exercici'. Altrament és una activitat. \startxmlsetups xml:display \startitem[\xmlatt{..}{id}] \xmlflushcontext{#1} \stopexercici \stopxmlsetups gives me nothing in the label of startitem: \startitem[] contents \stopexercici when I run \Presentacio{foo}{bar} and it *should* give me \startitem[foo] \xmlflushcontext{#1} \stopexercici It seems like when I descend to activitat/presentacio then I can't go up. ___ 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 ___
[NTG-context] Refering to parent in XML
Hi, I have this environment: \startenvironment processadorxml % Activitat: defineix \Activitat{activitat-id} \def\Activitat#1% {\xmlfilter{rebost} {/activitats/activitat[@id=='#1']/command(xml:list)} } % Simplement llistam totes les presentacions. \startxmlsetups xml:list \startactivitat{\xmlatt{#1}{id}} \startitemize \xmlfilter{#1}{/presentacio/command(xml:itemize)} \stopitemize \stopactivitat \stopxmlsetups \startxmlsetups xml:itemize \startitem[\xmlatt{#1}{tipus}] {\ss [\xmlatt{#1}{tipus}]}\space {\xmlflushcontext{#1}} \stopitem \stopxmlsetups % Presentació: defineix \Presentacio{activitat-id}{presentacio-id} \def\Presentacio#1#2% {\xmlfilter{rebost} {/activitats/activitat[@id=='#1']/presentacio[@tipus=='#2']/command(xml:display)} } % Si la presentació és de tipus tradicional, aleshores és un 'exercici'. Altrament és una activitat. \startxmlsetups xml:display \doifelse{\xmlattribute{#1}{.}{tipus}} {tradicional} {\startexercici{\xmlatt{#1}{id}}\xmlname{#1}\xmlname{/} \xmlflushcontext{#1} \stopexercici} {\startactivitat{\xmlatt{#1}{id}} \xmlflushcontext{#1} \stopactivitat } \stopxmlsetups \stopenvironment and this file: \environment ../plantilles/entorn-simple-estructurals-xml \environment ../plantilles/entorn-simple-estructurals \environment ../plantilles/entorn-simple-visuals \xmlloadonly{rebost}{dades/activitats.xml}{} \starttext Activitat: llista totes les presentacions \Activitat{fitxes} Presentació específica: només en fa una \Presentacio{fitxes}{tradicional} \Presentacio{fitxes}{3-act} \startexercici B \stopexercici \stoptext My XML file is: La fitxa blava i la fitxa vermella es mouen de la manera següent: la blava recorre les caselles d'una en una, mentre que la vermella les recorre de dues en dues però, després de cada moviment, s'espera un torn (figura~\in[]). Quina de les dues fitxes arribarà primer a la meta? Disponible aquí: URL The problem is when I change #1 by '..' in: % Si la presentació és de tipus tradicional, aleshores és un 'exercici'. Altrament és una activitat. \startxmlsetups xml:display \doifelse{\xmlattribute{#1}{.}{tipus}} {tradicional} {\startexercici{\xmlatt{#1}{id}}\xmlname{#1}\xmlname{/} \xmlflushcontext{#1} \stopexercici} {\startactivitat{\xmlatt{#1}{id}} \xmlflushcontext{#1} \stopactivitat } \stopxmlsetups I get empty string. I supposed that \xmlatt{..}{id} gives me the id of the . Any hints? Sorry. I'm just starting experimenting with XML and ConTeXt... ;-) ___ 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 ___
Re: [NTG-context] Split numbers in natural tables
Thanks. On Fri, 21 Aug 2015 16:52:11 +0200 Xan ha escrit: > Hi, > > I have a simple script in mako templates which generate this table: > > > \starttext > \bTABLE[align={lohi,middle}] > > \bTR >\bTD[width=2.8cm, height=2.8cm] 1 \eTD > \eTR > >\bTD[width=2.8cm, height=2.8cm] 2 \eTD > >\bTD[width=2.8cm, height=2.8cm] 4 \eTD > >\bTD[width=2.8cm, height=2.8cm] 8 \eTD > >\bTD[width=2.8cm, height=2.8cm] 16 \eTD > >\bTD[width=2.8cm, height=2.8cm] 32 \eTD > > \bTR >\bTD[width=2.8cm, height=2.8cm] 64 \eTD > \eTR > >\bTD[width=2.8cm, height=2.8cm] 128 \eTD > >\bTD[width=2.8cm, height=2.8cm] 256 \eTD > >\bTD[width=2.8cm, height=2.8cm] 512 \eTD > >\bTD[width=2.8cm, height=2.8cm] 1024 \eTD > >\bTD[width=2.8cm, height=2.8cm] 2048 \eTD > > \bTR >\bTD[width=2.8cm, height=2.8cm] 4096 \eTD > \eTR > >\bTD[width=2.8cm, height=2.8cm] 8192 \eTD > >\bTD[width=2.8cm, height=2.8cm] 16384 \eTD > >\bTD[width=2.8cm, height=2.8cm] 32768 \eTD > >\bTD[width=2.8cm, height=2.8cm] 65536 \eTD > >\bTD[width=2.8cm, height=2.8cm] 131072 \eTD > > \bTR >\bTD[width=2.8cm, height=2.8cm] 262144 \eTD > \eTR > >\bTD[width=2.8cm, height=2.8cm] 524288 \eTD > >\bTD[width=2.8cm, height=2.8cm] 1048576 \eTD > >\bTD[width=2.8cm, height=2.8cm] 2097152 \eTD > >\bTD[width=2.8cm, height=2.8cm] 4194304 \eTD > >\bTD[width=2.8cm, height=2.8cm] 8388608 \eTD > > \bTR >\bTD[width=2.8cm, height=2.8cm] 16777216 \eTD > \eTR > >\bTD[width=2.8cm, height=2.8cm] 33554432 \eTD > >\bTD[width=2.8cm, height=2.8cm] 67108864 \eTD > >\bTD[width=2.8cm, height=2.8cm] 134217728 \eTD > >\bTD[width=2.8cm, height=2.8cm] 268435456 \eTD > >\bTD[width=2.8cm, height=2.8cm] 536870912 \eTD > > \bTR >\bTD[width=2.8cm, height=2.8cm] 1073741824 \eTD > \eTR > >\bTD[width=2.8cm, height=2.8cm] 2147483648 \eTD > >\bTD[width=2.8cm, height=2.8cm] 4294967296 \eTD > >\bTD[width=2.8cm, height=2.8cm] 8589934592 \eTD > >\bTD[width=2.8cm, height=2.8cm] 17179869184 \eTD > >\bTD[width=2.8cm, height=2.8cm] 34359738368 \eTD > > \bTR >\bTD[width=2.8cm, height=2.8cm] 68719476736 \eTD > \eTR > >\bTD[width=2.8cm, height=2.8cm] 137438953472 \eTD > >\bTD[width=2.8cm, height=2.8cm] 274877906944 \eTD > >\bTD[width=2.8cm, height=2.8cm] 549755813888 \eTD > >\bTD[width=2.8cm, height=2.8cm] 1099511627776 \eTD > >\bTD[width=2.8cm, height=2.8cm] 219902322 \eTD > > \bTR >\bTD[width=2.8cm, height=2.8cm] 4398046511104 \eTD > \eTR > >\bTD[width=2.8cm, height=2.8cm] 8796093022208 \eTD > >\bTD[width=2.8cm, height=2.8cm] 17592186044416 \eTD > >\bTD[width=2.8cm, height=2.8cm] 35184372088832 \eTD > >\bTD[width=2.8cm, height=2.8cm] 70368744177664 \eTD > >\bTD[width=2.8cm, height=2.8cm] 140737488355328 \eTD > > \bTR >\bTD[width=2.8cm, height=2.8cm] 281474976710656 \eTD > \eTR > >\bTD[width=2.8cm, height=2.8cm] 562949953421312 \eTD > >\bTD[width=2.8cm, height=2.8cm] 1125899906842624 \eTD > >\bTD[width=2.8cm, height=2.8cm] 2251799813685248 \eTD > >\bTD[width=2.8cm, height=2.8cm] 4503599627370496 \eTD > >\bTD[width=2.8cm, height=2.8cm] 9007199254740992 \eTD > > \bTR >\bTD[width=2.8cm, height=2.8cm] 18014398509481984 \eTD > \eTR > >\bTD[width=2.8cm, height=2.8cm] 36028797018963968 \eTD > >\bTD[width=2.8cm, height=2.8cm] 72057594037927936 \eTD > >\bTD[width=2.8cm, height=2.8cm] 144115188075855872 \eTD > >\bTD[width=2.8cm, height=2.8cm] 288230376151711744 \eTD > >\bTD[width=2.8cm, height=2.8cm] 576460752303423488 \eTD > > \bTR >\bTD[width=2.8cm, height=2.8cm] 1152921504606846976 \eTD > \eTR > >\bTD[width=2.8cm, height=2.8cm] 2305843009213693952 \eTD > >\bTD[width=2.8cm, height=2.8cm] 4611686018427387904 \eTD > > > \eTABLE > \stoptext > > > > How can I do for, automatically, split the number in the cells? That is, I > want the numbers to fit all the cell size, not matter what return carriages > it needs. > > So some thing like \bTD[width=2.8cm, height=2.8cm] 4611686018427387904 \eTD > would be transformed into: > >\bTD[width=2.8cm, height=2.8cm] 4611 > > 686018427 > > 387904 \eTD > > or something similar. > > > Thanks, > Xan ___ 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 ___
[NTG-context] Split numbers in natural tables
Hi, I have a simple script in mako templates which generate this table: \starttext \bTABLE[align={lohi,middle}] \bTR \bTD[width=2.8cm, height=2.8cm] 1 \eTD \eTR \bTD[width=2.8cm, height=2.8cm] 2 \eTD \bTD[width=2.8cm, height=2.8cm] 4 \eTD \bTD[width=2.8cm, height=2.8cm] 8 \eTD \bTD[width=2.8cm, height=2.8cm] 16 \eTD \bTD[width=2.8cm, height=2.8cm] 32 \eTD \bTR \bTD[width=2.8cm, height=2.8cm] 64 \eTD \eTR \bTD[width=2.8cm, height=2.8cm] 128 \eTD \bTD[width=2.8cm, height=2.8cm] 256 \eTD \bTD[width=2.8cm, height=2.8cm] 512 \eTD \bTD[width=2.8cm, height=2.8cm] 1024 \eTD \bTD[width=2.8cm, height=2.8cm] 2048 \eTD \bTR \bTD[width=2.8cm, height=2.8cm] 4096 \eTD \eTR \bTD[width=2.8cm, height=2.8cm] 8192 \eTD \bTD[width=2.8cm, height=2.8cm] 16384 \eTD \bTD[width=2.8cm, height=2.8cm] 32768 \eTD \bTD[width=2.8cm, height=2.8cm] 65536 \eTD \bTD[width=2.8cm, height=2.8cm] 131072 \eTD \bTR \bTD[width=2.8cm, height=2.8cm] 262144 \eTD \eTR \bTD[width=2.8cm, height=2.8cm] 524288 \eTD \bTD[width=2.8cm, height=2.8cm] 1048576 \eTD \bTD[width=2.8cm, height=2.8cm] 2097152 \eTD \bTD[width=2.8cm, height=2.8cm] 4194304 \eTD \bTD[width=2.8cm, height=2.8cm] 8388608 \eTD \bTR \bTD[width=2.8cm, height=2.8cm] 16777216 \eTD \eTR \bTD[width=2.8cm, height=2.8cm] 33554432 \eTD \bTD[width=2.8cm, height=2.8cm] 67108864 \eTD \bTD[width=2.8cm, height=2.8cm] 134217728 \eTD \bTD[width=2.8cm, height=2.8cm] 268435456 \eTD \bTD[width=2.8cm, height=2.8cm] 536870912 \eTD \bTR \bTD[width=2.8cm, height=2.8cm] 1073741824 \eTD \eTR \bTD[width=2.8cm, height=2.8cm] 2147483648 \eTD \bTD[width=2.8cm, height=2.8cm] 4294967296 \eTD \bTD[width=2.8cm, height=2.8cm] 8589934592 \eTD \bTD[width=2.8cm, height=2.8cm] 17179869184 \eTD \bTD[width=2.8cm, height=2.8cm] 34359738368 \eTD \bTR \bTD[width=2.8cm, height=2.8cm] 68719476736 \eTD \eTR \bTD[width=2.8cm, height=2.8cm] 137438953472 \eTD \bTD[width=2.8cm, height=2.8cm] 274877906944 \eTD \bTD[width=2.8cm, height=2.8cm] 549755813888 \eTD \bTD[width=2.8cm, height=2.8cm] 1099511627776 \eTD \bTD[width=2.8cm, height=2.8cm] 219902322 \eTD \bTR \bTD[width=2.8cm, height=2.8cm] 4398046511104 \eTD \eTR \bTD[width=2.8cm, height=2.8cm] 8796093022208 \eTD \bTD[width=2.8cm, height=2.8cm] 17592186044416 \eTD \bTD[width=2.8cm, height=2.8cm] 35184372088832 \eTD \bTD[width=2.8cm, height=2.8cm] 70368744177664 \eTD \bTD[width=2.8cm, height=2.8cm] 140737488355328 \eTD \bTR \bTD[width=2.8cm, height=2.8cm] 281474976710656 \eTD \eTR \bTD[width=2.8cm, height=2.8cm] 562949953421312 \eTD \bTD[width=2.8cm, height=2.8cm] 1125899906842624 \eTD \bTD[width=2.8cm, height=2.8cm] 2251799813685248 \eTD \bTD[width=2.8cm, height=2.8cm] 4503599627370496 \eTD \bTD[width=2.8cm, height=2.8cm] 9007199254740992 \eTD \bTR \bTD[width=2.8cm, height=2.8cm] 18014398509481984 \eTD \eTR \bTD[width=2.8cm, height=2.8cm] 36028797018963968 \eTD \bTD[width=2.8cm, height=2.8cm] 72057594037927936 \eTD \bTD[width=2.8cm, height=2.8cm] 144115188075855872 \eTD \bTD[width=2.8cm, height=2.8cm] 288230376151711744 \eTD \bTD[width=2.8cm, height=2.8cm] 576460752303423488 \eTD \bTR \bTD[width=2.8cm, height=2.8cm] 1152921504606846976 \eTD \eTR \bTD[width=2.8cm, height=2.8cm] 2305843009213693952 \eTD \bTD[width=2.8cm, height=2.8cm] 4611686018427387904 \eTD \eTABLE \stoptext How can I do for, automatically, split the number in the cells? That is, I want the numbers to fit all the cell size, not matter what return carriages it needs. So some thing like \bTD[width=2.8cm, height=2.8cm] 4611686018427387904 \eTD would be transformed into: \bTD[width=2.8cm, height=2.8cm] 4611 686018427 387904 \eTD or something similar. Thanks, Xan ___ 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 ___
Re: [NTG-context] Process contents of xmlflush in context
Thanks, a lot. On Sun, 02 Aug 2015 11:56:31 +0200 Hans Hagen ha escrit: > \xmlflushcontext ___ 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 ___
[NTG-context] Process contents of xmlflush in context
Hi, I use MKIV. I want to follow Schmitz tutorial [http://www.ntg.nl/maps/42/12.pdf]. My problem is that when my xml contents has ConTeXt commands, it are ignored (printing as verbose not interpreted). How can I achieve that: La fitxa blava i la fitxa vermella es mouen de la manera següent: \startitemize \item la blava recorre \stopitemize is interpreted? I want that {\start,\stop}itemize is processed. My setup is: \startenvironment processadorxml \xmlloadonly{rebost}{dades/activitats.xml}{} \def\Activitat#1% {\xmlfilter{rebost} {/activitats/activitat[@id=='#1']/presentacio/command(xml:choose)} } \startxmlsetups xml:choose \startitem {\dontleavehmode{\xmlflush{#1}}} \stopitem \stopxmlsetups \stopenvironment Thanks a lot, Xan PS: Please, CCme. ___ 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 ___
Re: [NTG-context] Equivalent of os.resultof(...) in LaTeX
luatex --shell-escape will work. It works Thanks ___ 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 ___
Re: [NTG-context] Equivalent of os.resultof(...) in LaTeX
> That is not a useful error description ... > > Herbert More clear than this? Neither this: > \directlua{ > require "lualibs-os" > tex.sprint(os.resultof("sha256sum \jobname.tex | cut -c -5")) > } Blank. Nothing displayed. ___ 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 ___
Re: [NTG-context] Equivalent of os.resultof(...) in LaTeX
On Mon, 3 Nov 2014 14:31:17 +0100 Xan ha escrit: > It does not work:> \documentclass{article} > > \begin{document} > > \directlua{ > > local handle = io.popen("sha256sum \jobname.tex | cut -c -5","r") > > if handle then > >local result = handle:read("*all") or "" > >handle:close() > >tex.print(result) > > end > > } > > \end{document} > > Neither this: > > > \directlua{ > > require "lualibs-os" > > tex.sprint(os.resultof("sha256sum \jobname.tex | cut -c -5")) > > } > > > Blank. Nothing displayed. ___ 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 ___
[NTG-context] Equivalent of os.resultof(...) in LaTeX
Hi, Just short question: what's the equivalent in latex of \ctxlua{context(os.resultof("sha256sum \jobname.conTeXt | cut -c -5"))} ? Thanks in advance, Xan ___ 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 ___
Re: [NTG-context] Possibly bug: misalignment with matrix
and \item $\startdet[n=3] \NC yz \NC \frac{1}{x} \NC x \NR \NC zx \NC \frac{1}{y} \NC y \NR \NC xy \NC \frac{1}{z} \NC z \NR \stopdet$ puts x over 1 in the second row ___ 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 ___
Re: [NTG-context] Possibly bug: misalignment with matrix
Another bug. @Hans: At least for user view point it's a bug. @Thangalin: thanks. A bigskip will solve me problems, but thanks. \definemathmatrix[det] [left={\left\lvert\,},right={\,\right\rvert}] \starttext Calculeu els determinants següents: \startitemize[a,columns] \item $\startdet[n=4] \NC 1 \NC 1 \NC 1 \NC 1 \NR \NC 1 \NC 2 \NC 3 \NC 4 \NR \NC 1 \NC 3 \NC 6 \NC 10 \NR \NC 1 \NC 4 \NC 10 \NC 20 \NR \stopdet$ \item $\startdet[n=4] \NC 1 \NC -2 \NC 0 \NC 1 \NR \NC 1 \NC 1 \NC 0 \NC 2 \NR \NC 0 \NC 3 \NC -2 \NC -1 \NR \NC 1 \NC 1 \NC 1 \NC 3 \NR \stopdet$ \item $\startdet[n=5] \NC 1 \NC 2 \NC 3 \NC 4 \NC 5 \NR \NC 2 \NC 3 \NC 4 \NC 5 \NC 1 \NR \NC 3 \NC 4 \NC 5 \NC 1 \NC 2 \NR \NC 4 \NC 5 \NC 1 \NC 2 \NC 3 \NR \NC 5 \NC 1 \NC 2 \NC 3 \NC 4 \NR \stopdet$ \item $\startdet[n=3] \NC 1 \NC 2 \NC 3 \NR \NC 1 \NC 4 \NC 9 \NR \NC 1 \NC 8 \NC 27 \NR \stopdet$ \stopitemize Proveu, sense desenvolupar, que els determinants següents són nuls: \startitemize[a] \item $\startdet[n=3] \NC -\sqrt{3} \NC 3 \NR \NC 5 \NC -\sqrt{3}\cdot 5 \NR \stopdet$ \item $\startdet[n=3] \NC 2 \NC 1 \NC 3 \NR \NC 1 \NC 0 \NC 1 \NR \NC -3 \NC 2 \NC -1 \NR \stopdet$ \stopitemize \stoptext matrix2.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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] multi-line equations with \left( and \right.
Mm... I thought I could use mathalign instead. Thanks, On Tue, 7 Oct 2014 11:23:13 +0200 Wolfgang Schuster ha escrit: > > Am 07.10.2014 um 10:59 schrieb Xan : > > > Hi, > > > > I try to do that > > > > \startformula > > \startalign[left={\left(\,},right={\,\right.}] > > \NC x - 2y + 2z \NC = 1 \NR > > \NC 2 x + y - z \NC = 2 \NR > > \NC 4 x - 3y + 6z \NC = 7 \NR > > \stopalign > > \stopformula > > > > but it does not work. > > Can anyone help me? > > You have to use the \startmatrix environment. > > - http://wiki.contextgarden.net/%5Cstartcases > - http://dl.contextgarden.net/myway/mathalign.pdf > > 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 ___
[NTG-context] Possibly bug: misalignment with matrix
Hi, Minimal example: \definemathmatrix[pmatrix] [left={\left(\,},right={\,\right)}] \starttext Digueu quines de les matrius següents són regulars. Quan ho siguin, trobeu la inversa \startitemize[a,columns,four] \item \startpmatrix[n=2] \NC 2 \NC 3 \NR \NC 6 \NC 7 \NR \stoppmatrix \item \startpmatrix[n=3] \NC 3 \NC 2 \NC 1 \NR \NC 4 \NC 5 \NC 3 \NR \NC 5 \NC 0 \NC -2 \NR \stoppmatrix \item \startpmatrix[n=3] \NC 5 \NC 4 \NC 2 \NR \NC 2 \NC 2 \NC 3 \NR \NC 7 \NC 6 \NC 5 \NR \stoppmatrix \item \startpmatrix[n=4] \NC a \NC 0 \NC 0 \NC 0 \NR \NC 0 \NC b \NC 0 \NC 0 \NR \NC 0 \NC 0 \NC c \NC 0 \NR \NC 0 \NC 0 \NC 0 \NC d \NR \stoppmatrix \stopitemize \stoptext produces misalignment in last item (I attach pdf) Can anyone confirm that? Thanks, Xan matrix.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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] multi-line equations with \left( and \right.
Hi, I try to do that \startformula \startalign[left={\left(\,},right={\,\right.}] \NC x - 2y + 2z \NC = 1 \NR \NC 2 x + y - z \NC = 2 \NR \NC 4 x - 3y + 6z \NC = 7 \NR \stopalign \stopformula but it does not work. Can anyone help me? Thanks, Xan PS: Please CCme ___ 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 ___
[NTG-context] frown in context 2
> On Tue, 29 Oct 2013, Xan wrote: > > > Hi, > > > > I just want to make an arc to a word. I found that > > [http://tex.stackexchange.com/questions/15468/frown-and-mathop-stackrel-overset] > > but it's LaTeX or XeTeX centric. > > > > Is there any equivalent in ConTeXt? > > $\overparent{MMM}$ > > Aditya Can the symbol be more close to the MMM? There is so big space between the content and the frown symbol Thanks, Xan ___ 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 ___
Re: [NTG-context] Prime and overbar
On Wed, 20 Aug 2014 09:38:49 +0200 Xan ha escrit: > Hi, > > $\overbar{OA'} = 3,4$, puts me overbar with two steps: one for $O$ and one > for $A'$. Is there any way for putting overbar just "on top" of the > expression? > > Thanks, > Xan > > PS: Please CCme Yes. x.pdf Description: Adobe PDF document \starttext \overbar{$A'B'$} \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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Prime and overbar
Hi, $\overbar{OA'} = 3,4$, puts me overbar with two steps: one for $O$ and one for $A'$. Is there any way for putting overbar just "on top" of the expression? Thanks, Xan PS: Please CCme ___ 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 ___
[NTG-context] A bug color in tikz
Hi, It's an annoying bug of TikZ with ConTexT: in some circumstances, the content after a tikzpicture is coloured. I refered it [here](http://www.ntg.nl/pipermail/ntg-context/2014/077374.html), and it's also present in the latest version of the minimals. Anyone could check it if he/she finds a bug. Thanks, Xan. ___ 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 ___
Re: [NTG-context] Anyone could help me with this error in filter module?
> Am 28.07.2014 um 16:15 schrieb Xan : > > > Hi, > > > > Any hint on that [https://github.com/adityam/filter/issues/17], please? > > Don’t use \doifmode{…}{…} etc. with buffers or environments which rely on a > buffer because you disable the function to keep end of lines in the input. > > What you have to do in this case is to use the \startmode or \startnotmode > commands. > > Wolfgang Thanks Wolfgang and Aditya. This behaviour of doifmode is not documented in the wiki. Can anyone could add it Xan ___ 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 ___
Re: [NTG-context] Problem with the verbosity of XML
> On 7/28/2014 1:13 PM, Xan wrote: > > This is a minimal and isolate example > > > > You can see that {\bf Hola} is not processed. > > well, because you want to typeset it as is: > > Hola {\bf a} > > why should be treated as tex? > > \startxmlsetups xml:demo:pas > \startitem > \xmlflush{#1} > \stopitem > \stopxmlsetups > > versus: > > \startxmlsetups xml:demo:pas > \startitem > \xmlflushcontext{#1} > \stopitem > \stopxmlsetups Mmm... thanks. Very much Xan ___ 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 ___
Re: [NTG-context] snappedmath is now dropped?
> Thanks, > On 7/28/2014 11:01 AM, Xan wrote: > > Hi, > > > > Are you delete the command \snappedmath? > > > > I get that: > > > > > > ! Undefined control sequence. > > > > system > tex > error on line 834 in file > > /home/xan/SYNC/cepasud-raw/classe/ESPA3/planificació/Tema2-Àlgebra/80-juntat.conTeXt: > > Undefined control sequence ... > > works here command is available in mkiv ... but, when checking I > saw that there is an error: > > line 461 of math-ini.mkiv should be > > \dp\scratchbox\strutdp Is the current version patched? I want to upgrade minimals distro, isn't? Thanks, Xan ___ 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 ___
[NTG-context] Anyone could help me with this error in filter module?
Hi, Any hint on that [https://github.com/adityam/filter/issues/17], please? Thanks, ___ 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 ___
Re: [NTG-context] filter module: before print, it puts new line
On Mon, 28 Jul 2014 13:29:58 +0200 Xan ha escrit: > Hi, > > I run this code: > > \usemodule[filter] > > \defineexternalfilter > [python] > [filtercommand={python \externalfilterinputfile\space > > \externalfilteroutputfile},cache=force] > > > \starttext > > > Resol les equacions següents i comprova'n la solució > \startitemize[a,columns] > \item $3x + 2 = 35$ > \item $11x – 18 = 4$ > \item $56x + 33 = -23$ > \item $5x + 25 = 125$ > \stopitemize > > \starttextrule{Solucions} > > \startitemize[a,text] > \item \startpython > from sympy.solvers import solve > from sympy import Symbol > from sympy import Eq > > x = Symbol('x') > for solucio in solve(Eq(3*x + 2, 35), x): > print(solucio) > > \stoppython > \stopitemize > \stoptextrule > > > \stoptext > > > with the result of new line after "(a)." and "11" (the solution of the > equation). > > I attach the pdf. > > How can avoid this behaviour? > > > Thanks, > Xan > Am 28.07.2014 um 13:29 schrieb Xan : > > > Hi, > > > > I run this code: > > > > \usemodule[filter] > > > > \defineexternalfilter > >[python] > >[filtercommand={python \externalfilterinputfile\space > > > \externalfilteroutputfile},cache=force] > > > > […] > > > > with the result of new line after "(a)." and "11" (the solution of the > > equation). > > > > I attach the pdf. > > > > How can avoid this behavior? > > Adding “location=text” to \defineexternalfilter should help (untested). > > Wolfgang It works (tested! ;) Thanks, ___ 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 ___
[NTG-context] filter module: before print, it puts new line
Hi, I run this code: \usemodule[filter] \defineexternalfilter [python] [filtercommand={python \externalfilterinputfile\space > \externalfilteroutputfile},cache=force] \starttext Resol les equacions següents i comprova'n la solució \startitemize[a,columns] \item $3x + 2 = 35$ \item $11x – 18 = 4$ \item $56x + 33 = -23$ \item $5x + 25 = 125$ \stopitemize \starttextrule{Solucions} \startitemize[a,text] \item \startpython from sympy.solvers import solve from sympy import Symbol from sympy import Eq x = Symbol('x') for solucio in solve(Eq(3*x + 2, 35), x): print(solucio) \stoppython \stopitemize \stoptextrule \stoptext with the result of new line after "(a)." and "11" (the solution of the equation). I attach the pdf. How can avoid this behaviour? Thanks, Xan j.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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] snappedmath is now dropped?
Hi, Are you delete the command \snappedmath? I get that: ! Undefined control sequence. system > tex > error on line 834 in file /home/xan/SYNC/cepasud-raw/classe/ESPA3/planificació/Tema2-Àlgebra/80-juntat.conTeXt: Undefined control sequence ... 824 % TODO: acabar les solucions 825 TODO 826 (Solucions: \startitemize[a,text] \item $x = -1$ \item $x = -1$ \item $x = -2$ \item $x = 3$\stopitemize) 827 \stopmode 828 \stopexercici 829 830 \startexercici Resol: 831 832 \startitemize[a,columns] 833 834 >> \item \snappedmath {\displaystyle 3x- (x-2) = 4x + 1} 835 836 \item \snappedmath {\displaystyle 4\left(x+3\right)-\left(2x-7\right) = 6x + 18} 837 838 \item \snappedmath {\displaystyle 5-(3-x) = 2(x+2) -3} 839 840 \item \snappedmath {\displaystyle 2x-\left(9x+2\right)+4x = 43-x+8-x-13} 841 842 \item \snappedmath {\displaystyle 2(x-2) -(5-x)=3x+2-6(x+2)} 843 844 \item \snappedmath {\displaystyle 2x-\left(x-3\right) -2\left(5-x\right) = 6-x +8x-1} \snappedmath l.834 \item \snappedmath {\displaystyle 3x- (x-2) = 4x + 1} ? Thanks, ___ 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 ___
[NTG-context] Problem with the verbosity of XML
hi, I have this context file: \environment ../../../../plantilles/entorn-simple-estructurals \environment ../../../../plantilles/entorn-simple-visuals \environment entorn-simple-xml ... \xmlprocessfile{demo}{80-activitats.xml}{} this XML file (80-activitats.xml): exercici \startitemize[a,text] \item $x = -1$ \item $x = -1$ \item $x = -2$ \item $x = 3$\stopitemize and this environment: \startxmlsetups xml:demo:base \xmlsetsetup{demo}{*}{-} \xmlsetsetup{demo}{activitats|tipus|activitat|enunciat|solucio}{xml:demo:*} \stopxmlsetups \xmlregisterdocumentsetup{demo}{xml:demo:base} \startxmlsetups xml:demo:activitats \title{Activitats} \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:demo:activitat \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:demo:enunciat \startexercici\xmltext{#1}{/text()}\stopexercici \stopxmlsetups But I get the PDF with the verbose text, not processing (I attach them) What fails? Thanks in advance, Xan 80-seleccio.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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \headstylecolor in \setupcaptions ?
I found myself: headcolor=red On Sat, 12 Jul 2014 18:31:55 +0200 Xan ha escrit: > Hi, > > how to set the color of head in setupcaptions? Something like: > \setupcaptions[headstyle={\ss},headstylecolor=red] > > thanks > Xan > > PS: Please CCme ___ 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 ___
[NTG-context] \headstylecolor in \setupcaptions ?
Hi, how to set the color of head in setupcaptions? Something like: \setupcaptions[headstyle={\ss},headstylecolor=red] thanks Xan PS: Please CCme ___ 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 ___
Re: [NTG-context] dx=1cm with imposition: how to disable "right" most dx?
Oh! thanks. Now I have to try for having the same space on left and on right. Thanks On Sun, 01 Jun 2014 13:16:06 +0200 Hans Hagen ha escrit: > On 6/1/2014 12:00 PM, Xan wrote: > > Hi, > > > > I have this code: > > > > \definepapersize[carnet][width=8.50cm,height=5.40cm] > > > > \setuppapersize [carnet][A4] > > > > \setuppaper [] > > \setuplayout[page] [topspace=0.02cm, backspace=0.02cm, > > header=0.02cm,margin=0.02cm,width=middle,footer=0.02cm,height=fit] > > \setuplayout[page] > > \setuplayout[location=middle,marking=on,nx=2,ny=4,dy=1cm,dx=1cm] > > > > > > When I run context, the "dx" distance is added to the right of the > > "rightest" page of type "carnet". So I have an extra right dx distance that > > it annyoes me becase in double printing pages, the side above and the side > > below don't match. > > > > How can I prevent that? > > \definepageshift[test][horizontal][8mm] > \setuppageshift[test] > > - >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 > - ___ 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 ___
[NTG-context] dx=1cm with imposition: how to disable "right" most dx?
Hi, I have this code: \definepapersize[carnet][width=8.50cm,height=5.40cm] \setuppapersize [carnet][A4] \setuppaper [] \setuplayout[page] [topspace=0.02cm, backspace=0.02cm, header=0.02cm,margin=0.02cm,width=middle,footer=0.02cm,height=fit] \setuplayout[page] \setuplayout[location=middle,marking=on,nx=2,ny=4,dy=1cm,dx=1cm] When I run context, the "dx" distance is added to the right of the "rightest" page of type "carnet". So I have an extra right dx distance that it annyoes me becase in double printing pages, the side above and the side below don't match. How can I prevent that? Thanks in advance, Xan. PS: Please CCme. ___ 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 ___
[NTG-context] Split in specific row in natural tables?
Hi, Is there a possibility of split a natural table in specific row? I want to split in row third or something like that. Thanks, Xan. ___ 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 ___
[NTG-context] startbackground with footnotes cause problems
Hi, I observe that if startbackground stopbackground has footnotes inside, then page breaks are placed before and after footnotes with blank pages... Anyone does know anything about that? Thanks ___ 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 ___
[NTG-context] \starttextbackground and \startbackground equivalent options
Hi folks, Just a question: I have this textbackground environment: \definestartstop [teoria] [ before={\startbackground[background=color, backgroundcolor=mteoria, frame=on, width=broad, after={\bigskip}, before={\blank[big]\testpage[2]}, backgroundcorner=round, backgroundradius=5ex, backgroundoffset=5pt, framecorner=round, radius=5ex, frameoffset=5pt]}, after=\stopbackground ] and I want an equivalent one with starttextbackground. I try this: \definetextbackground[provateoria] [background=color, backgroundcolor=mteoria, location=paragraph, frame=on, width=broad, after={\bigskip}, before={\blank[big]\testpage[2]}, backgroundcorner=round, backgroundradius=5ex, backgroundoffset=5pt, framecorner=round, radius=5ex, frameoffset=5pt ] \definestartstop [teoria] [ before={\starttextbackground[provateoria]}, after=\stoptextbackground ] But I get: * The corners are not rounded * Can I achieve to "unbackground" footnotes inside \startteoria \stopteoria? Thanks in advance, Xan ___ 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 ___
Re: [NTG-context] \startbackground with footnote
Sorry, I mean Wolfgang not 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 ___
Re: [NTG-context] \startbackground with footnote
Thanks Aditya. What's the difference between startbackground and starttextbackground? I can't see the options of textbackground. Thanks, ___ 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 ___
[NTG-context] \startbackground with footnote
Hi, I have a footnote in \startbackground \stopbackground environment and the footnote is not displayed. Can anyone give me any hint? thanks in advance, Xan ___ 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 ___
[NTG-context] \installprettytype gets me undefined control sequence
Hi, With the code in http://wiki.contextgarden.net/Verbatim_with_line_breaks, I get open source > 2 > 3 > /home/xan/NO-SERVIDOR/Serviedre/context3/tasques.context open source > 3 > 4 > /home/xan/NO-SERVIDOR/Serviedre/context3/plantilles/entorn-minimal.tex fonts > typescripts > unknown library 'cmr' fonts > preloading latin modern fonts (third stage) fonts > 'fallback modern-designsize rm 11pt' is loaded colors > 'rgb' color space is supported colors > 'cmyk' color space is supported tex error > error on line 76 in file /home/xan/NO-SERVIDOR/Serviedre/context3/plantilles/entorn-minimal.tex: ! Undefined control sequence l.76 \installprettytype [BREAK][BREAK] 66\divide\BREAKmaxcharcount \wd\scratchbox 67\def\flushrestofverbatimline{\BREAKcharcounter=0 }% 68\BREAKcharcounter=0 } 69 70 \gdef\setupprettyBREAKtype% 71 {\def\prettyidentifier{BREAK}% 72\BREAKsetcounters 73\BREAKsethandlers 74\BREAKsetspecials} 75 76 >> \installprettytype[BREAK][BREAK] 77 78 \setuptyping[location=inmargin,option=color,numbering=line,bodyfont=small,option=BREAK,lines=hyphenated] 79 % lines=hyphenated? 80 81 %\defineframedtext[framedcode][strut=yes,offset=2mm,width=fit,align=right,framecorner=round] 82 %\definetyping[code][numbering=line,bodyfont=small] 83 %before={\startframedcode},after={\stopframedcode}] 84 %\setuptyping[TEX][escape=yes,numbering=line,method=type] 85 86 %= Mòduls ? I have version 2014.05.08 11:18 Thanks in advance, Xan. ___ 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 ___
Re: [NTG-context] Problems with XML and table of contents
Finally, I use xsltproc and xml from scratch for this conversion, because Aditya module seems to does not work with XML. The process is XML, XSLT --> ConTeXT file -> PDF file Just for interest of someone... Xan. ___ 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 ___
Re: [NTG-context] Aditya filter module: ignore ``` in my case
Mmm... identation seems the guilty thing ;-) Decideix is good (without spaces at beginning) Xan. On Mon, 31 Mar 2014 14:17:47 +0200 Xan ha escrit: > Hi, > > I have a problem: why this > > \usemodule[filter] > \defineexternalfilter > [markdown] > [filtercommand={pandoc -f markdown+multiline_tables+table_captions -t > context -o \externalfilteroutputfile\space \externalfilterinputfile}] > > > \starttext > \startmarkdown >Decideix l'esquema de particions que *tendré* > ``` > | Partició | Espai | Muntatge | > | sda1 | | /var/log % | > PROVA > %=Regime > \enableregime[utf] > > %=Choose a language, and associated hyphenation rules. > \mainlanguage[ca] > > %= Colors > \setupcolors[state=start] > \definecolor[headingcolor][c=1,m=0.5431,y=0,k=0.5451] > \definecolor[steelblue][h=4682B4] > \definecolor[griscodi][h=F5F5F5] > ``` > > > \stopmarkdown > \stoptext > > does not process the code block (inside ```)? > > I just wonder why? > > Thanks, > Xan. ___ 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 ___
[NTG-context] Aditya filter module: ignore ``` in my case
Hi, I have a problem: why this \usemodule[filter] \defineexternalfilter [markdown] [filtercommand={pandoc -f markdown+multiline_tables+table_captions -t context -o \externalfilteroutputfile\space \externalfilterinputfile}] \starttext \startmarkdown Decideix l'esquema de particions que *tendré* ``` | Partició | Espai | Muntatge | | sda1 | | /var/log % | PROVA %=Regime \enableregime[utf] %=Choose a language, and associated hyphenation rules. \mainlanguage[ca] %= Colors \setupcolors[state=start] \definecolor[headingcolor][c=1,m=0.5431,y=0,k=0.5451] \definecolor[steelblue][h=4682B4] \definecolor[griscodi][h=F5F5F5] ``` \stopmarkdown \stoptext does not process the code block (inside ```)? I just wonder why? Thanks, Xan. ___ 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 ___
Re: [NTG-context] Defining commands in \start ... \stop
And so? This has not [mathematical] solution ;-) Xan. > The block commands use a buffer to store the content and buffers can’t be > used in commands. > >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 ___
Re: [NTG-context] Defining commands in \start ... \stop
This: \defineblock[question] \defineblock[answer] \defineenumeration[question][text={Question}] \defineenumeration[answer] [text={Answer}] \keepblocks[question] \hideblocks[answer] \def\mynewcommand{\dosingleempty\doMyNewCommand} \def\doMyNewCommand[#1]#2{% \iffirstargument \beginquestion \startquestion #2% \stopquestion \endquestion \beginanswer \startanswer #1% \stopanswer \endanswer \else \beginquestion \startquestion #2% \stopquestion \endquestion \incrementcounter[answer] \fi } \starttext \chapter{Question} \beginquestion \startquestion Question 1. \stopquestion \endquestion \beginanswer \startanswer Answer 1. \stopanswer \endanswer \beginquestion \startquestion Question 2. \stopquestion \endquestion \beginanswer \incrementcounter[answer] \endanswer \beginquestion \startquestion Question 3. \stopquestion \endquestion \beginanswer \startanswer Answer 3. \stopanswer \endanswer \mynewcommand{Question 5} \mynewcommand[Resposta 6]{Question 6} \chapter{Answers} \useblocks[answer] \stoptext does not work ___ 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 ___
[NTG-context] Defining commands in \start ... \stop
Hi, Concerned with the answers to the [that topic](http://www.ntg.nl/pipermail/ntg-context/2014/077099.html), I was thinking if I could define a command "Exercise" with a optional argument (the "Answer"). \defineblock[question] \defineblock[answer] \defineenumeration[question][text={Question}] \defineenumeration[answer] [text={Answer}] \keepblocks[question] \hideblocks[answer] Something like \startexercise My execise ... \stopexercise If no more is provide, at the question does \incrementcounter[answer] If \startexercise{\startsolution The solution is \stopsolution} My exercise \stopexercise then \beginanswer and \startanswer is called. Is it possible? I just want to know if it's better to have \startBla...\stopBla command or \Bla{} command type? In the case of the first, how do you define that? I did not find it here (http://wiki.contextgarden.net/Commands_with_optional_arguments) Thanks, Xan PS: Please CCme ___ 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 ___
Re: [NTG-context] \starttyping while processing XML causing error
On Fri, 28 Mar 2014 09:56:12 +0100 Hans Hagen ha escrit: > On 3/28/2014 9:13 AM, Xan wrote: > >> On 3/27/2014 9:46 AM, Xan wrote: > >>> \starttext > >>> > >>> A > >>> \xmlprocessfile{demo}{./dades.xml}{} > >>> B > >>> \stoptext > >> > >> \startxmlsetups xml:demo:code > >> \blank > >> \start \ttx > >> \xmlverbatim{#1} > >> \stop > >> \blank > >> \stopxmlsetups > > > > First of all, thank you very much, Hans. > > > > But why can't I use > > > > \defineframedtext[framedcode][strut=yes,offset=2mm,width=7cm,align=right] > > > > \definetyping[code][numbering=line,bodyfont=small,before={\startframedcode},after={\stopframedcode}] > > > > \setuplinenumbering[location=intext] > > \setuptyping[option=color] > > > > > > startxmlsetups xml:demo:codi > >\blank > >\startcode\xmlverbatim{#1}\stopcode > >\blank > > \stopxmlsetups > > > > different catcode regimes > > > How can I achieve this results? (numbering line and color basically) > > \startlinenumbering > > etc Many thanks. But \setuplinenumbering[location=intext,prefix=codi] seems to have no effect in \startxmlsetups xml:demo:codi \blank \startlinenumbering\xmlverbatim{#1}\stoplinenumbering \blank \stopxmlsetups the numbers seems that always are inmargin. Thanks, Xan. ___ 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 ___
Re: [NTG-context] \starttyping while processing XML causing error
> > > How can I achieve this results? (numbering line and color basically) > > \startlinenumbering > > etc > How can I disable hyphenize and wrap large lines? Thanks, Xan. ___ 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 ___
Re: [NTG-context] \starttyping while processing XML causing error
I can circumvent it with \defineframedtext[framedcode][strut=yes,width=local,align=flushleft,frame=off] \startxmlsetups xml:demo:codi \blank \startframedcode \startlinenumbering\xmlverbatim{#1}\stoplinenumbering \stopframedcode \blank \stopxmlsetups Xan. ___ 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 ___
Re: [NTG-context] Problems with XML and table of contents
Thanks, many thanks Hans. The key is expansion=yes. Without, "phantom" contents in table of contents. With, all is ok: \definehead [Fitxa] [subsection][ownnumber=yes,expansion=yes] Xan. ___ 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 ___
Re: [NTG-context] \starttyping while processing XML causing error
> On 3/27/2014 9:46 AM, Xan wrote: > > \starttext > > > > A > > \xmlprocessfile{demo}{./dades.xml}{} > > B > > \stoptext > > \startxmlsetups xml:demo:code >\blank >\start \ttx > \xmlverbatim{#1} >\stop >\blank > \stopxmlsetups First of all, thank you very much, Hans. But why can't I use \defineframedtext[framedcode][strut=yes,offset=2mm,width=7cm,align=right] \definetyping[code][numbering=line,bodyfont=small,before={\startframedcode},after={\stopframedcode}] \setuplinenumbering[location=intext] \setuptyping[option=color] startxmlsetups xml:demo:codi \blank \startcode\xmlverbatim{#1}\stopcode \blank \stopxmlsetups How can I achieve this results? (numbering line and color basically) Thanks, Xan ___ 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 ___
[NTG-context] How can I use Aditya filter module within XML?
Hi, Is it possible to use \startmarkdown bla... \stopmarkdown With my code (xmlflush) the start/stopmarkdown is printed without interpretation. Regards, Xan ___ 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 ___
[NTG-context] Problems with XML and table of contents
Hi, I have this: \definehead [Fitxa] [subsubject] \setuphead [Fitxa][textstyle=sca,align=normal,color=headingcolor,before={},ownnumber=yes,incrementnumber=yes,number=no,strut=no] \setuplabeltext [Fitxa=Fitxa] \setuplist[Fitxa] [margin=4em,interaction=text,color=green,textcommand=\WORD] %\setuplist [Fitxa] [width=2em,criterium=all,interaction=all] \newcounter\FitxaNumber \def\fitxa#1% {\doglobal\increment\FitxaNumber \Fitxa{\FitxaNumber}{#1}} \setupcombinedlist[content][list={chapter,section,subsection,Fitxa,tasca},interaction=all,textcolor=black] and \startxmlsetups xml:demo:titol \fitxa{\xmltext{#1}{/}} \stopxmlsetups In the document all is ok, but in the table of contents, I get "phantom" content. Any clue? Thanks in advance, Xan ___ 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 ___
[NTG-context] \starttyping while processing XML causing error
Hi, I have this minimal example: 1) Tasques.context: \environment ./entorn-xml \starttext A \xmlprocessfile{demo}{./dades.xml}{} B \stoptext 2) entorn-xml.tex: \startxmlsetups xml:demo:base \xmlsetsetup{demo}{*}{-} \xmlsetsetup{demo}{things|code|}{xml:demo:*} \stopxmlsetups \xmlregisterdocumentsetup{demo}{xml:demo:base} \startxmlsetups xml:demo:things \xmlflush{#1} \stopxmlsetups %TODO: startcode: http://www.ntg.nl/pipermail/ntg-context/2012/064750.html \startxmlsetups xml:demo:code \bigskip \startlines\xmlflush{#1}\stoplines \stopxmlsetups 3) dades.xml: [root@serviedre ~]# pacman -Syu :: Synchronizing package databases... core 193.0 KiB 50.0K/s 00:04 [##] 100% extra2037.1 KiB 166K/s 00:12 [##] 100% community 2.2 MiB 374K/s 00:06 [##] 100% alarm 55.6 KiB 242K/s 00:00 [##] 100% aur64.0 KiB 288K/s 00:00 [##] 100% :: Starting full system upgrade... warning: linux-sun4i: ignoring package upgrade (3.4.79-1 => 3.4.79-2) warning: linux-sun4i-headers: ignoring package upgrade (3.4.79-1 => 3.4.79-2) there is nothing to do When I compile tasques.context, all is ok, but when I substitute the \startlines \stoplines with \starttyping \stoptyping context never ends. Is that a bug? I just found [this](http://www.ntg.nl/pipermail/ntg-context/2012/064750.html), but really no solution. Since 2012 I suppose many things are changed so I ask. Why doesn't it work? Thanks in advance, Xan. ___ 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 ___
Re: [NTG-context] Color of the "headers" of one enumeration
> Am 24.03.2014 um 14:39 schrieb Xan : > > > Hi, > > > > I have this > > \defineenumeration > > [punt] > > > > [alternative=serried,text={\startcolor[darkblue]Punt\stopcolor},stopper={.\space},left={\bgroup},right={\egroup},width=fit,headstyle=\ss,distance=0.25em,width=fit] > > > > So I get "Punt 1. bla,..." How can I achieve that "Punt 1." were in > > darkblue? Now I just have "Punt“. > > > Use the headcolor key: > > \defineenumeration > [punt] > [alternative=serried, >text={Punt}, >stopper={.}, > width=fit, >distance=0.25em, >headstyle=\ss, >headcolor=darkblue] > > Wolfgang Thank you very much, Xan. ___ 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 ___
[NTG-context] Color of the "headers" of one enumeration
Hi, I have this \defineenumeration [punt] [alternative=serried,text={\startcolor[darkblue]Punt\stopcolor},stopper={.\space},left={\bgroup},right={\egroup},width=fit,headstyle=\ss,distance=0.25em,width=fit] So I get "Punt 1. bla,..." How can I achieve that "Punt 1." were in darkblue? Now I just have "Punt". Thanks in advance, Xan ___ 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 ___
[NTG-context] Bug with TikZ
Hi, I don't know why and how when the page begins with a tikz picture, a piece of text is blue? See that: %% ConTeXt template for exercises %% ConTeXt MIV %% Carregam símbols \usesymbols[eur] %% Capçaleres i peus \setupheadertexts[{\sc\rm Funcions (T2)}] \setupheadertexts[{\rm \sc CEPA Sud}][{\rm \sc ESPA 4. Quad. 1}] \setupfootertexts[{\rm \sc Pàgina \pagenumber\space de \lastpage\space - 13 de desembre de 2013}] \usemodule[tikz] % BUGGY things \definecolor[headingcolor][c=1,m=0.5431,y=0,k=0.5451] \setupfooter[text][style={\ss\tfx},color={headingcolor},before={\hrule}] \setupheader[text][style={\ss},color={headingcolor},after={\hrule}] % end of buggy things \starttext \startitemize[n] \item \input tufte.tex \input tufte.tex \input tufte.tex \input tufte.tex \item Cada matí, en Tomeu camina des de ca seva fins a la parada de l'autobús més pròxima (vegeu la figura~\in[fig:Tomeu-modificat]). El gràfic següent mostra aquest recorregut en un dia concret: \placefigure[here] [fig:Tomeu-modificat] {Recorregut del dia 13 de desembre de 2013} { \bTABLE[frame=off,align=middle,width=fit] \bTR[frame=off] \bTD \bgroup \framed[frame=off]{\starttikzpicture[scale=0.6] \draw[very thin,help lines, color=gray] (-0.1,-0.1) grid (12.2,10); \draw[->] (-0.2,0) -- (12.2,0); \draw (6, -1) node[anchor=north] {$\text{Temps transcorregut (segons)}$}; \draw[->] (0,-0.2) -- (0,10.2) node[above] {$\text{Distància a casa (metres)}$}; \foreach \x/\xtext in {1/10, 2/20, 3/30, 4/40, 5/50, 6/60, 7/70, 8/80, 9/90, 10/100, 11/110, 12/120} { \draw (\x, -0.1 cm) -- (\x, 0.1 cm); \draw (\x, 0 cm) node[anchor=north] {\small $\xtext$}; } \foreach \x/\xtext in {1/20, 2/40, 3/60, 4/80, 5/100, 6/120, 7/140, 8/160, 9/180, 10/200} { \draw (-0.1 cm, \x) -- (0.1 cm, \x); \draw (0, \x) node[anchor=east] {\small $\xtext$}; } \draw[color=blue, ultra thick] (0,0) -- (5,3) -- (7,1) -- (10,9) -- (12.2,9); \stoptikzpicture} \egroup \eTD \eTR \eTABLE} \startitemize[a,packed] \item Quines variables es representen en el gràfic? \item A quina distància (de ca seva) està la parada del bus? \item Quina escala s'utilitza per a cada variable? \item A quin tram del gràfic va més ràpid? A quin tram va més lent? \item Quina velocitat duu a cada tram? \item Emparella aquest gràfic amb la història que correspongui: \startitemize[A] \item \startframedtext En Tomeu camina lentament. Després d'una estona, se n'adona que li han caigut els guants i torna enrera per a agafar-los. En aquest punt, veu arribar l'autobús i corre ràpidament fins a la parada. \stopframedtext \stopitemize \stopitemize \item Elegiu una de les opcions següents: Ramírez Botella \stopitemize \stoptext Is it a formal bug? My version is the latest stable: ConTeXt ver: 2014.01.03 00:40 MKIV current fmt: 2014.3.14 int: english/english I attached the file (pdf) Thanks, Xan. tikzbug.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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] OT: Reflections on usability ConTeXt for typesetting of mathematics
> Hello ConTeXist. > > 0. Do you think that this is only a problem for beginners of ConText or > it is a general problem of ConTeXt? > 1. How many of ConTeXt users use this tool for typesetting of > non-elementary mathematics? > 2. Are you satisfied with the results, which produces ConTeXt (thinking > in the field of mathematics rate)? In general, yes. But there are some issues with TiKZ [http://www.ntg.nl/pipermail/ntg-context/2013/076384.html] and in some ocasions with columns (not balanced). Perhaps we could have a bug triage system for that? > 3. What things do you need to have in ConTeXt study that one could bet > mathematics at a reasonable level? One reason for ConTeXt is the ability of deal with XML and produce several outputs. Separation of content and presentation is also good. > 4. Is ConTeXt able to substitute LaTeX to typesetting of math (e.g. in > the future)? I join one person (I don't remember who) who says there could be more examples for learning people. I think an ideal think could be to have an equivalent "The not so short introduction to LaTeX". > 5. Can you think of any more questions that should be here? > The community is good. All posted questions have posted answers. And Hans is the boss ;-) ___ 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 ___
Re: [NTG-context] solutions and problems
> > Can you help me? > > Your counter settings are useless because context stores only the environment > plus content for the answers, nothing is done with them at this point. When > you flush the answer blocks context sees them for the first time and the > counter for the questions is 3 at this point and this is why you get always > the same value. Is there any way of first evaluate \getnumber[exercici] and then store the content, and not inversely (as context does now)? > > \defineenumeration[exercici][text=Exercici] > \defineenumeration[resposta][text=Solucions] > > \defineblock[resposta] > \hideblocks[resposta] > > \starttext > > \startexercici Question 1 > \beginresposta > \resposta Answer 1 \par > \endresposta > \stopexercici > > \startexercici Question 2 > \beginresposta > \incrementcounter[resposta] > \endresposta > \stopexercici > > \startexercici Question 3 > \beginresposta > \resposta Answer 3 \par > \endresposta > \stopexercici > > \subject{Answers} > > \selectblocks[resposta] > > \stoptext > > Wolfgang Increment counter *every* time is possible option, but in fact very annoying: if I have 100 exercises (now I have more than this) and I have only 20 exercises, then I have to put "\incrementcounter" in 80 exercises. It's a tedious thing. Is there any more "relaxing" thing: assuming that I have 'resposta' nested in 'exercici' like \startexercici \beginresposta \resposta Answer X \endresposta \stopexercici ? Thanks another time, Xan ___ 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 ___
Re: [NTG-context] solutions and problems
> Am 22.02.2014 um 18:45 schrieb Xan : > > > No, it does not work. > > > > I have this: > > > > % Questions > > \defineenumeration > > [exercici] > > > > [alternative=serried,text={\startcolor[darkblue]Exercici\stopcolor},stopper={.\space},left={\bgroup},right={\egroup},width=fit,headstyle=\ss,distance=0.25em,width=fit,before={\incrementcounter[resposta]}] > > > > % Answers > > \defineenumeration[resposta][headstyle=\ss,text={Solucions de l'exercici > > \getnumber[exercici]},width=fit,alternative=serried,before={\decrementcounter[resposta]},number=no] > > > > \defineblock[resposta] > > \hideblocks[resposta] > > > > > > % Exercises > > > > \startexercici Bla... > > \beginresposta > > \resposta (Solucions: \startitemize[a,text] \item D, \item I, \item D, > > \item No té relació, \item D, \item D, \item No té relació, \item No té > > relació, \item D.\stopitemize) \par > > \endresposta > > \stopexercici > > > > \startexercici Bla 2 > > \stopexercici > > > > \startexercici Bla 3 > > \beginresposta > > \resposta (Solucions: \startitemize[a,text] \item D, \item I, \item D, > > \item No té relació, \item D, \item D, \item No té relació, \item No té > > relació, \item D.\stopitemize) \par > > \endresposta > > \stopexercici > > > > \subject{Answers} > > > > \selectblocks[resposta][criterium=section] > > > > > > I get \getnumber[exercici] as the last, not the counter of 'exercici' in > > which I have the answer. How can I do thaT? > > Make a complete minimal example. > > Wolfgang Simply put starttext and stoptext. Here it's: % Questions \defineenumeration [exercici] [alternative=serried,text={\startcolor[darkblue]Exercici\stopcolor},stopper={.\space},left={\bgroup},right={\egroup},width=fit,headstyle=\ss,distance=0.25em,width=fit,before={\incrementcounter[resposta]}] % Answers \defineenumeration[resposta][headstyle=\ss,text={Solucions de l'exercici \getnumber[exercici]},width=fit,alternative=serried,before={\decrementcounter[resposta]},number=no] \defineblock[resposta] \hideblocks[resposta] % Exercises \starttext \startexercici Bla... \beginresposta \resposta (Solucions: \startitemize[a,text] \item D, \item I, \item D, \item No té relació, \item D, \item D, \item No té relació, \item No té relació, \item D.\stopitemize) \par \endresposta \stopexercici \startexercici Bla 2 \stopexercici \startexercici Bla 3 \beginresposta \resposta (Solucions: \startitemize[a,text] \item D, \item I, \item D, \item No té relació, \item D, \item D, \item No té relació, \item No té relació, \item D.\stopitemize) \par \endresposta \stopexercici \subject{Answers} \selectblocks[resposta][criterium=section] \stoptext Can you help me? Thanks, ___ 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 ___
Re: [NTG-context] solutions and problems
No, it does not work. I have this: % Questions \defineenumeration [exercici] [alternative=serried,text={\startcolor[darkblue]Exercici\stopcolor},stopper={.\space},left={\bgroup},right={\egroup},width=fit,headstyle=\ss,distance=0.25em,width=fit,before={\incrementcounter[resposta]}] % Answers \defineenumeration[resposta][headstyle=\ss,text={Solucions de l'exercici \getnumber[exercici]},width=fit,alternative=serried,before={\decrementcounter[resposta]},number=no] \defineblock[resposta] \hideblocks[resposta] % Exercises \startexercici Bla... \beginresposta \resposta (Solucions: \startitemize[a,text] \item D, \item I, \item D, \item No té relació, \item D, \item D, \item No té relació, \item No té relació, \item D.\stopitemize) \par \endresposta \stopexercici \startexercici Bla 2 \stopexercici \startexercici Bla 3 \beginresposta \resposta (Solucions: \startitemize[a,text] \item D, \item I, \item D, \item No té relació, \item D, \item D, \item No té relació, \item No té relació, \item D.\stopitemize) \par \endresposta \stopexercici \subject{Answers} \selectblocks[resposta][criterium=section] I get \getnumber[exercici] as the last, not the counter of 'exercici' in which I have the answer. How can I do thaT? Thanks, ___ 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 ___
Re: [NTG-context] solutions and problems
Thanks for that. I use incrementcounter and decrementnumber in 'before', because I use *always* answer nested in question: \defineenumeration [exercici] [alternative=serried,text={\startcolor[darkblue]Exercici\stopcolor},stopper={.\space},left={\bgroup},right={\egroup},width=fit,headstyle=\ss,distance=0.25em,width=fit,before={\incrementcounter[answer]}] \defineenumeration[resposta][headstyle=\ss,text={Solucions},width=fit,alternative=serried,before={\decrementcounter[resposta]}] \defineblock[resposta] \hideblocks[resposta] @Thomas: thank you very much for the link. Eventually I have to migrate all my data to XML, but it's tedious do it that. XML is very verbose and I have to define my DTD structure (at least mentally ;-)). Thanks all of you, > You can add a answer block which increments the answer counter. > > \defineblock[question] > \defineblock[answer] > > \defineenumeration[question][text={Question}] > \defineenumeration[answer] [text={Answer}] > > \keepblocks[question] > \hideblocks[answer] > > \starttext > > \chapter{Question} > > \beginquestion > \startquestion > Question 1. > \stopquestion > \endquestion > > \beginanswer > \startanswer > Answer 1. > \stopanswer > \endanswer > > \beginquestion > \startquestion > Question 2. > \stopquestion > \endquestion > > \beginanswer > \incrementcounter[answer] > \endanswer > > \beginquestion > \startquestion > Question 3. > \stopquestion > \endquestion > > \beginanswer > \startanswer > Answer 3. > \stopanswer > \endanswer > > \chapter{Answers} > > \useblocks[answer] > > \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 ___
Re: [NTG-context] solutions and problems
Not exactly. If you don't have the same number of answers that the number of questions, so your counter is not properly set. See that: \defineblock[question] \defineblock[hint] \defineblock[answer] \defineenumeration[question][alternative=hanging,width=2.5cm,text={Question},stopper={.}] \defineenumeration[hint][alternative=hanging,width=4cm,text={Hint for question},stopper={.}] \defineenumeration[answer] [alternative=hanging,width=4.5cm,text={Answer to question},stopper={.}] \keepblocks[question] \hideblocks[hint] \hideblocks[answer] \starttext \section{Questions} \beginquestion \startquestion Compute $4\times 5$. \stopquestion \endquestion \beginhint \starthint Use the fact that $2\times 5 = 10$. \stophint \endhint %\beginanswer %\startanswer % $20$. %\stopanswer %\endanswer \beginquestion \startquestion What is the value of $100/10$? \stopquestion \endquestion \beginhint \starthint Remember that $10\times 10 = 100$. \stophint \endhint \beginanswer \startanswer $10$ \stopanswer \endanswer \section{Hints} \useblocks[hint] \section{Answers} \useblocks[answer] \stoptext If you comment one solution, then, you get "Answer to question 1", instead of "Answer of question 2", which is really. No always a question has an answer provided by me ;-) Thanks, > Hi, > > Maybe this is what you looking for: > > begin question-hint-answer.tex > \defineblock[question] > \defineblock[hint] > \defineblock[answer] > > \defineenumeration[question][alternative=hanging,width=2.5cm,text={Question},stopper={.}] > \defineenumeration[hint][alternative=hanging,width=4cm,text={Hint for > question},stopper={.}] > \defineenumeration[answer] [alternative=hanging,width=4.5cm,text={Answer to > question},stopper={.}] > > \keepblocks[question] > \hideblocks[hint] > \hideblocks[answer] > > \starttext > > \section{Questions} > > \beginquestion > \startquestion > Compute $4\times 5$. > \stopquestion > \endquestion > > > \beginhint > \starthint > Use the fact that $2\times 5 = 10$. > \stophint > \endhint > > \beginanswer > \startanswer > $20$. > \stopanswer > \endanswer > > \beginquestion > \startquestion > What is the value of $100/10$? > \stopquestion > \endquestion > > \beginhint > \starthint > Remember that $10\times 10 = 100$. > \stophint > \endhint > > \beginanswer > \startanswer > $10$ > \stopanswer > \endanswer > > \section{Hints} > > \useblocks[hint] > > \section{Answers} > > \useblocks[answer] > > \stoptext > end question-hint-answer.tex > > Best regards: OK ___ 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 ___
[NTG-context] solutions and problems
Hi, Just a question about blocks... I consulted the manual, but I'm in trouble: I have this definitions: % the exercise \defineenumeration [exercici] [alternative=serried,text={\startcolor[darkblue]Exercici\stopcolor},stopper={.\space},left={\bgroup},right={\egroup},width=fit,headstyle=\ss,distance=0.25em,width=fit] \defineenumeration[resposta][headstyle=\ss,text={Solucions},width=fit,alternative=serried] \defineblock[resposta] % the answer \hideblocks[resposta] And in my text, I have: \startexercici \beginresposta \resposta Exercici 2 (Solucions: \startitemize[a,text] \item D, \item I, \item D, \item No té relació, \item D, \item D, \item No té relació, \item No té relació, \item D.\stopitemize) \par \endresposta \stopexercici ... \startmode[solucions] \subject{Respostes} %Answers \selectblocks[resposta][criterium=section] \stopmode ... Is there any way that the answers (resposta) has the same number as the 'exercici' in which it belongs to? If not, I have to put "Solutions of exercici 2" in my 'resposta' Thank you very much ___ 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 ___
[NTG-context] [OT] pdf2htmlEX
Hi, Just some information: if you want to pass from pdf to html5, there is an amazing project I discovered: https://github.com/coolwanglu/pdf2htmlEX The "bad" things is that it does not preserve structures: each line is a structure in html5 generated document. Cheers, Xan. ___ 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 ___
Re: [NTG-context] What is the error of that header lines?
> Am 21.12.2013 um 19:07 schrieb Xan : > > > Hi, > > > > Can someone help me? I'm a little bit crazy. I have this example (sorry, I > > tried to achieve more minimal version): > > > The problem happens only when the tikzpicture is the first object at the > begin of the page. > > \usemodule[tikz] > > \setupfootertexts[Footer] > > \setupfooter[color=blue] > > \starttext > > \dorecurse{3}{\input knuth\par} > > \page > > \starttikzpicture[scale=0.6] > \draw (0,0) -- (0,1) node[above] {Y}; > \stoptikzpicture > > \dorecurse{6}{\input knuth\par} > > \stoptext > > Wolfgang Thanks, Wolfgang for the triage. Thank you very much. Does this means that I discovered a bug? Can someone fix it? Regards, Xan. ___ 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 ___
[NTG-context] What is the error of that header lines?
Hi, Can someone help me? I'm a little bit crazy. I have this example (sorry, I tried to achieve more minimal version): %% Carregam símbols \usesymbols[eur] %% Capçaleres i peus \setupheadertexts[{\sc\rm Funcions (T2)}] \setupheadertexts[{\rm \sc CEPA Sud}][{\rm \sc ESPA 4. Quad. 1}] \setupfootertexts[{\rm \sc Pàgina \pagenumber\space de \lastpage\space - 13 de desembre de 2013}] \usemodule[tikz] % BUGGY things \definecolor[headingcolor][c=1,m=0.5431,y=0,k=0.5451] \setupfooter[text][style={\ss\tfx},color={headingcolor},before={\hrule}] \setupheader[text][style={\ss},color={headingcolor},after={\hrule}] % end of buggy things \starttext \startitemize[n] \item \input tufte.tex \input tufte.tex \input tufte.tex \input tufte.tex \item Cada matí, en Tomeu camina des de ca seva fins a la parada de l'autobús més pròxima (vegeu la figura~\in[fig:Tomeu-modificat]). El gràfic següent mostra aquest recorregut en un dia concret: \placefigure[here] [fig:Tomeu-modificat] {Recorregut del dia 13 de desembre de 2013} { \bTABLE[frame=off,align=middle,width=fit] \bTR[frame=off] \bTD \bgroup \framed[frame=off]{\starttikzpicture[scale=0.6] \draw[very thin,help lines, color=gray] (-0.1,-0.1) grid (12.2,10); \draw[->] (-0.2,0) -- (12.2,0); \draw (6, -1) node[anchor=north] {$\text{Temps transcorregut (segons)}$}; \draw[->] (0,-0.2) -- (0,10.2) node[above] {$\text{Distància a casa (metres)}$}; \foreach \x/\xtext in {1/10, 2/20, 3/30, 4/40, 5/50, 6/60, 7/70, 8/80, 9/90, 10/100, 11/110, 12/120} { \draw (\x, -0.1 cm) -- (\x, 0.1 cm); \draw (\x, 0 cm) node[anchor=north] {\small $\xtext$}; } \foreach \x/\xtext in {1/20, 2/40, 3/60, 4/80, 5/100, 6/120, 7/140, 8/160, 9/180, 10/200} { \draw (-0.1 cm, \x) -- (0.1 cm, \x); \draw (0, \x) node[anchor=east] {\small $\xtext$}; } \draw[color=blue, ultra thick] (0,0) -- (5,3) -- (7,1) -- (10,9) -- (12.2,9); \stoptikzpicture} \egroup \eTD \eTR \eTABLE} \startitemize[a,packed] \item Quines variables es representen en el gràfic? \item A quina distància (de ca seva) està la parada del bus? \item Quina escala s'utilitza per a cada variable? \item A quin tram del gràfic va més ràpid? A quin tram va més lent? \item Quina velocitat duu a cada tram? \item Emparella aquest gràfic amb la història que correspongui: \startitemize[A] \item \startframedtext En Tomeu camina lentament. Després d'una estona, se n'adona que li han caigut els guants i torna enrera per a agafar-los. En aquest punt, veu arribar l'autobús i corre ràpidament fins a la parada. \stopframedtext \stopitemize \stopitemize \item Elegiu una de les opcions següents: Ramírez Botella \stopitemize \stoptext When I compile it, I have extra blue lines after the picture, but if I remove this lines: \definecolor[headingcolor][c=1,m=0.5431,y=0,k=0.5451] \setupfooter[text][style={\ss\tfx},color={headingcolor},before={\hrule}] \setupheader[text][style={\ss},color={headingcolor},after={\hrule}] Then, all is ok. What is the error? Thanks a lot, Xan. ___ 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 ___
Re: [NTG-context] \startpagefigure[file.pdf][page=1, ...]\stoppagefigure
> Am 09.12.2013 um 11:19 schrieb Xan : > > > Hi, > > > > When I use: > > > > \startpagefigure[file.pdf][page=X]\stoppagefigure > > > > with page >= 2 does not work. Always it puts the first page. > > > > I run MKIV. > > > > Is it a bug? > > It’s a change of the behavior of the command and I won’t say it’s a bad > change. > > To understand the change you have to know that pagefigure is combination > of \startTeXpage and \externalfigure and you get the same result with > > \startTEXpage > \externalfigure[] > \stopTEXpage > > > The first parameter of the page figure command is the name of the graphic > and the second argument let you change the values for TeXpage, in the old > MkII code the second parameter was also used as second argument for > \externalfigure. A problem in MkII was that you had something in the second > parameter which was used by \startTEXpage *and* \externalfigure and the > output wasn’t what you expected. I guess to avoid this Hans doesn’t pass > the values of the second argument to \externalfigure anymore. > > > To select now a certain page from your external document just use > the \startTEXpage and \externalfigure combination: > > \startTEXpage > \externalfigure[][page=] > \stopTEXpage > > Wolfgang Thanks, Wolfgang, for all. So there is a real bug with the command which previously I used. @Hans could be fix it Thanks, Xan ___ 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 ___
[NTG-context] \startpagefigure[file.pdf][page=1, ...]\stoppagefigure
Hi, When I use: \startpagefigure[file.pdf][page=X]\stoppagefigure with page >= 2 does not work. Always it puts the first page. I run MKIV. Is it a bug? Thanks in advance, Xan. ___ 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 ___
[NTG-context] sagemath in context (like sagetex)
Hi, Is there any kind of package for embedded sagemath in ConTeXt (like sagetex in latex). I found the same question previosly asked (http://www.ntg.nl/pipermail/ntg-context/2009/040483.html), but more things are changed until 2009... so perhaps there is now a solution By the other hand, I see lua lunatic code: http://wiki.contextgarden.net/User:Luigi.scarso/luatex_lunatic#SageMath but this is very programmer centric code, in my opinion. Is there any easy way to do that? I use MKIV Thanks, Xan. ___ 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 ___
[NTG-context] Another problem in Markdown processing
Descriptions fail: Term 1 ~ Definition 1 Term 2 ~ Definition 2a ~ Definition 2b gives you a ! Undefined control sequence. system > tex > error on line 19 in file 98-realitat.md.tex: Undefined control sequence ... 9 10 : Domino gratacels \letterbar{} funció exponencial \letterbar{} anglès 11 \letterbar{} complicat de calcular (per tempteig). no me surt la 12 resposta teòria de 29 13 14 \useURL[url3][http://mrmeyer.com/threeacts/shrinkingdollar/][][DM-35]\from[url3] 15 16 : Encollir un dòlar \letterbar{} funció exponencial \letterbar{} cap 17 \letterbar{} \letterbar{} 18 19 >> \startdescription{Term 1} 20 Definition 1 21 \stopdescription 22 23 \startdescription{Term 2} 24 Definition 2a 25 26 Definition 2b 27 \stopdescription 28 29 \section[gràfica-duna-funció]{Gràfica d'una funció} l.19 \startdescription {Term 1} ? x I think it's a bug of pandoc that does not include necessary definitions. @Aditya, can you confirm that? Xan ___ 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 ___
Re: [NTG-context] New line in cell in Markdown processing? (module t-filter)
On Mon, 11 Nov 2013 15:48:21 +0100 Xan ha escrit: > I know that now: > > http://johnmacfarlane.net/pandoc/demo/example9/pandocs-markdown.html > > On Mon, 11 Nov 2013 15:36:51 +0100 > Xan ha escrit: > > > Hi, > > > > Is there any way to have a multiline cell in markdown while I run ConTeXt > > with t-filter module? > > > > This: > > > > | Activitat | Conceptes | idioma | notes | > > |:--|:--|:---|:--| > > | [DM-40](http://mrmeyer.com/threeacts/buckythebadger/). Quantes flexions > > hauria de fer la mascota? | funció lineal? | anglès | complicat d'entendre | > > | [DM-33](http://mrmeyer.com/threeacts/dominoskyscraper/). Domino gratacels > > | funció exponencial | anglès | complicat de calcular (per tempteig). no me > > surt la resposta teòria de 29 | > > | [DM-35](http://mrmeyer.com/threeacts/shrinkingdollar/). Encollir un dòlar > > | funció exponencial | | | > > > > > > produces me a very wide table. > > > > Thanks in advance, > > Xan. > > > > PS: Please CCme > On Mon, 11 Nov 2013, Xan wrote: > > > Hi, > > > > Is there any way to have a multiline cell in markdown while I run ConTeXt > > with t-filter module? > > Can you please send a complete minimal example? Ofcourse: prova.tex %% ConTeXt template for exercises %% ConTeXt MIV % Mòdul t-filter \usemodule[filter] \defineexternalfilter [markdown] [filtercommand={pandoc -t context -o \externalfilteroutputfile\space \externalfilterinputfile}] %% el text \starttext \title{Funcions i {\em problem-solving activities}} \processmarkdownfile{./prova.md} \stoptext and prova.md: | Activitat | Conceptes | Idioma | |:--|:--|:--:| | Foo | Boo | Roo Soo | | Foo2 | Boo2 | Roo2 Soo2 | The is *ignored*. For having two lines, I have to put blank columns: | Activitat | Conceptes | Idioma | |:--|:--|:--:| | Foo | Boo | Roo | | | | Soo | | Foo2 | Boo2 | Roo2 Soo2 | If you put a long Roo paragraph, you get a (too much) wider table. @Aditya: can you report the problem or me? I think you have more tech skill to do that. I agree with you: natural tables are more suitable for conversion. And I think that html and natural tables syntax coincidence makes this process easy. Thanks for that, Xan. > > > This: > > > > | Activitat | Conceptes | idioma | notes | > > |:--|:--|:---|:--| > > | [DM-40](http://mrmeyer.com/threeacts/buckythebadger/). Quantes flexions > > hauria de fer la mascota? | funció lineal? | anglès | complicat d'entendre | > > | [DM-33](http://mrmeyer.com/threeacts/dominoskyscraper/). Domino gratacels > > | funció exponencial | anglès | complicat de calcular (per tempteig). no me > > surt la resposta teòria de 29 | > > | [DM-35](http://mrmeyer.com/threeacts/shrinkingdollar/). Encollir un dòlar > > | funció exponencial | | | > > > > > > produces me a very wide table. > > Pandoc uses the old table mechanism for tables. I think that the best way > forward is to convert a markdown table to a natural table (\bTABLE etc.). > That will make it much easier to control the layout of the table. But this > should be raised as a feature request on the pandoc mailing list. > > 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 ___
Re: [NTG-context] New line in cell in Markdown processing? (module t-filter)
I know that now: http://johnmacfarlane.net/pandoc/demo/example9/pandocs-markdown.html On Mon, 11 Nov 2013 15:36:51 +0100 Xan ha escrit: > Hi, > > Is there any way to have a multiline cell in markdown while I run ConTeXt > with t-filter module? > > This: > > | Activitat | Conceptes | idioma | notes | > |:--|:--|:---|:--| > | [DM-40](http://mrmeyer.com/threeacts/buckythebadger/). Quantes flexions > hauria de fer la mascota? | funció lineal? | anglès | complicat d'entendre | > | [DM-33](http://mrmeyer.com/threeacts/dominoskyscraper/). Domino gratacels | > funció exponencial | anglès | complicat de calcular (per tempteig). no me > surt la resposta teòria de 29 | > | [DM-35](http://mrmeyer.com/threeacts/shrinkingdollar/). Encollir un dòlar | > funció exponencial | | | > > > produces me a very wide table. > > Thanks in advance, > Xan. > > PS: Please CCme ___ 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 ___
[NTG-context] New line in cell in Markdown processing? (module t-filter)
Hi, Is there any way to have a multiline cell in markdown while I run ConTeXt with t-filter module? This: | Activitat | Conceptes | idioma | notes | |:--|:--|:---|:--| | [DM-40](http://mrmeyer.com/threeacts/buckythebadger/). Quantes flexions hauria de fer la mascota? | funció lineal? | anglès | complicat d'entendre | | [DM-33](http://mrmeyer.com/threeacts/dominoskyscraper/). Domino gratacels | funció exponencial | anglès | complicat de calcular (per tempteig). no me surt la resposta teòria de 29 | | [DM-35](http://mrmeyer.com/threeacts/shrinkingdollar/). Encollir un dòlar | funció exponencial | | | produces me a very wide table. Thanks in advance, Xan. PS: Please CCme ___ 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 ___
[NTG-context] important line in TikZ
Hi, Can someone confirm if \draw[important line] (0,0) -- (1,0); works in ConTeXt? Or is it my old version? Thanks, Xan. ___ 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 ___
Re: [NTG-context] [right=),stopper=] for all \startitemize[a]
Thanks a lot, Aditya and Wolfgang, for these suggestions. Thanks, Xan. On Sun, 3 Nov 2013 20:39:23 +0100 Wolfgang Schuster ha escrit: > > Am 03.11.2013 um 20:22 schrieb Aditya Mahajan : > > > On Sun, 3 Nov 2013, Wolfgang Schuster wrote: > > > >> > >> Am 03.11.2013 um 19:04 schrieb Xan : > >> > >>> Hi, > >>> > >>> Is possible to set \setupitemize *only* applying for \startitemize[a] > >>> with have [right=),stopper=]? > >>> > >>> I did not find in wiki. Only for levels, not for symbols type. > >> > >> No, this is not supported. > > > > One option is to use a dedicated itemgroup: > > > > \defineitemgroup[parenlist][symbol=a, right=), stopper=] > > \starttext > > \startitemize[n] > > \item One > > \item Two > >\startparenlist > >\item One > >\item Two > >\stopparenlist > > \item Three > >\startitemize[n] > > \item One > > \item Two > > \stopitemize > > \stopitemize > > \stoptext > > Another trick is to use custom conversion which contain the delimiters and > disable the stopper. > > \defineconversion[xan:a][a),b),c),d),e),f),g),h),i),j),k),l),…] > \defineconversion[xan:n][1.,2.,3.,4.,5.,6.,7.,8.,9.,10.,11.,…] > > \starttext > > \setupitemize[each][stopper=] > > \startitemize[xan:a] > \dorecurse{10}{\startitem Item \recurselevel \stopitem} > \stopitemize > > \startitemize[xan:n] > \dorecurse{10}{\startitem Item \recurselevel \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 ___
[NTG-context] [right=),stopper=] for all \startitemize[a]
Hi, Is possible to set \setupitemize *only* applying for \startitemize[a] with have [right=),stopper=]? I did not find in wiki. Only for levels, not for symbols type. Thanks in advance, Xan PS: Please Ccme ___ 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 ___
[NTG-context] \frown in ConTeXt
Hi, I just want to make an arc to a word. I found that [http://tex.stackexchange.com/questions/15468/frown-and-mathop-stackrel-overset] but it's LaTeX or XeTeX centric. Is there any equivalent in ConTeXt? Thanks in advance, Xan PS: Please CCme ___ 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 ___
Re: [NTG-context] tikz-3dplot?
> On Fri, Oct 25, 2013 at 11:19 AM, Xan wrote: > > Hi, > > > > Is there available tikz-3dplot [http://www.ctan.org/pkg/tikz-3dplot] for > > ConTeXt? > > > > Is it possible to use it? > > Most of the time packages written on top of TikZ can relatively > painlessly be ported to plain TeX and ConTeXt even if they have been > written for LaTeX only. My impression is that this is a LaTeX-only > package, but with sufficient interest from both the author and someone > familiar with ConTeXt providing the feedback, getting a working > version is doable (of course one could rewrite the package for > ConTeXt, but it makes a lot more sense to fix the original one). > > Mojca Thanks, Mojca, for your offert and investigation about that it's latex-related. I don't need this package as a vital one, but it's good if someone could port it. Aka, put it in wish list. Perhaps you could contact main developer for program the package in both systems: latex and context, like TikZ is for. Thanks, Xan ___ 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 ___
[NTG-context] tikz-3dplot?
Hi, Is there available tikz-3dplot [http://www.ctan.org/pkg/tikz-3dplot] for ConTeXt? Is it possible to use it? Thanks in advance, Xan ___ 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 ___
Re: [NTG-context] Possibly bug in ConTexT with TikZ
With version 2013-09-07 (sh ./first-setup.sh --context=2013-09-07 --modules=all --engine=luatex) it works With version 2013.10.09 it does not So there is a bug. Can anyone fix it? Thanks, Xan ___ 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 ___
Re: [NTG-context] Possibly bug in ConTexT with TikZ
On 2013–10–10 Xan wrote: > > > ! Undefined control sequence. > > > > system > tex > error on line 28 in file > > /home/xan/fems/proves-context/prova.tex: Undefined control sequence ... > > > > 18 \starttikzpicture > > 19 [decoration={ > > 20markings, > > 21mark= > > 22between positions 0 and 1 step 0.5 > > 23with { > > 24 \draw (0,-2pt) -- (0,2pt); > > 25} > > 26 } > > 27 ] > > 28 >> \coordinate (F) at (0,0); > > I can reproduce it now. Funnily it works on my regular installation > (same version). When I run it on a clean minimal installation I get > the same error. No clue what's going on and I don't have much time > to check at the moment. > > Marco Perhaps anyone could see us with this minimal example. Does anyone? Thanks in advance, Xan ___ 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 ___
[NTG-context] (no subject)
> On 2013–10–10 Xan wrote: > > > ! Undefined control sequence. > > > > system > tex > error on line 28 in file > > /home/xan/fems/proves-context/prova.tex: Undefined control sequence ... > > > > 18 \starttikzpicture > > 19 [decoration={ > > 20markings, > > 21mark= > > 22between positions 0 and 1 step 0.5 > > 23with { > > 24 \draw (0,-2pt) -- (0,2pt); > > 25} > > 26 } > > 27 ] > > 28 >> \coordinate (F) at (0,0); > > I can reproduce it now. Funnily it works on my regular installation > (same version). When I run it on a clean minimal installation I get > the same error. No clue what's going on and I don't have much time > to check at the moment. > > Marco Perhaps anyone could see us with this minimal example. Does anyone? Thanks in advance, Xan ___ 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 ___
Re: [NTG-context] Possibly bug in ConTexT with TikZ
> On 2013–10–10 Xan wrote: > > > Minimal example: > > > > % Regime > > \enableregime[utf] > > Not required if you use MkIV > > > does not work. > > It works here with 2013.10.09 10:36 using MkIV and MkII. At least I > don't get an error and a PDF with a few green blots is created. > What's the error message you get for that minimal example? Are you > running MkII or MkIV? > MKIV (read above) [xan@rulot proves-context]$ context prova.tex mtx-context | run 1: luatex --fmt="/usr/local/bin/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" --jobname="prova" --lua="/usr/local/bin/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui" --no-parse-first-line --c:currentrun=1 --c:fulljobname="./prova.tex" --c:input="./prova.tex" --c:kindofrun=1 --c:maxnofruns=8 "cont-yes.mkiv" This is LuaTeX, Version beta-0.76.0-2013040516 (rev 4627) \write18 enabled. (/usr/local/bin/context/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2013.10.09 10:36 MKIV beta fmt: 2013.10.10 int: english/english system > 'cont-new.mkiv' loaded (/usr/local/bin/context/tex/texmf-context/tex/context/base/cont-new.mkiv) system > files > jobname 'prova', input './prova', result 'prova' fonts > latin modern fonts are not preloaded languages > language 'en' is active (/home/xan/fems/proves-context/prova.tex resolvers > modules > 'tikz' is loaded (/usr/local/bin/context/tex/texmf-modules/tex/context/pgf/frontendlayer/t-tikz.tex loading > ConTeXt User Module / tikz (/usr/local/bin/context/tex/texmf-modules/tex/context/pgf/basiclayer/t-pgf.tex loading > ConTeXt User Module / pgf (/usr/local/bin/context/tex/texmf-modules/tex/context/pgf/basiclayer/t-pgfcor.tex loading > ConTeXt User Module / pgfcor (/usr/local/bin/context/tex/texmf-modules/tex/context/pgf/systemlayer/t-pgfsys.tex loading > ConTeXt User Module / pgfsys (/usr/local/bin/context/tex/texmf-modules/tex/context/pgf/utilities/t-pgfrcs.tex loading > ConTeXt User Module / pgfrcs (/usr/local/bin/context/tex/texmf-modules/tex/context/pgf/utilities/t-pgfmod.tex loading > ConTeXt User Module / pgfmodules ) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-context.def) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfrcs.code.tex)) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys.code.tex (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfkeys.code.tex (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfkeysfiltered.code.tex)) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgf.cfg) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-pdftex.def (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-common-pdf.def)) (prova.pgf)) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsyssoftpath.code.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsysprotocol.code! .tex)) (/ usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcore.code.tex (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmath.code.tex (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathcalc.code.tex (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathutil.code.tex fonts > beware: no fonts are loaded yet, using 'lm mono' in box ) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathparser.code.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.code.tex (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.basic.code.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.trigonometric.code.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.random.code.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.comparison.code.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.base.code.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.round.code.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.misc.code.tex) (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.integerarithmetics.code.tex))) (/usr/local/bin/! context/t ex/texmf-modules/tex
Re: [NTG-context] Possibly bug in ConTexT with TikZ
Minimal example: % Regime \enableregime[utf] % Choose a language, and associated hyphenation rules. \mainlanguage[ca] \usemodule [tikz] \usetikzlibrary [decorations] \usetikzlibrary[decorations.markings] \starttext \starttext \starttikzpicture [decoration={ markings, mark= between positions 0 and 1 step 0.5 with { \draw (0,-2pt) -- (0,2pt); } } ] \coordinate (F) at (0,0); \draw[very thick,color=green, loosely dashed,postaction={decorate}] (0,1) -- (F); \stoptikzpicture \stoptext \stoptext does not work. Without \coordinate it works. What fails? Thanks in advance, Xan. ___ 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 ___
[NTG-context] Possibly bug in ConTexT with TikZ
Hi, I have this error: )) structure > sectioning > title @ level 2 : 0.0 -> Funció quadràtica structure > sectioning > section @ level 3 : 0.0.1 -> Seccions còniques structure > sectioning > section @ level 3 : 0.0.2 -> Construcció geomètrica d'una paràbola structure > sectioning > subsection @ level 4 : 0.0.2.1 -> Definició ! Undefined control sequence. system > tex > error on line 57 in file /home/xan/SYNC/cepasud-raw-mercurial/classe/ESPA4/planificació/Tema1-Funció-quadràtica/97-Quadràtica-a-la-realitat.conTeXt: Undefined control sequence ... 47 {\framed[frame=off]{ 48 \starttikzpicture[domain=(-1):1, scale=4, smooth,decoration={ 49 markings,% switch on markings 50 mark=% actually add a mark 51 between positions 0 and 1 step 0.5 52 with 53 { 54\draw[color=gray] (0,-2pt) -- (0,2pt); 55 } 56 }] 57 >> \coordinate (F) at (0,0.25); 58 \draw[very thick] (-2.2,-0.25) -- (2.2,-0.25) node[right] {$r$}; 59 \draw[color=blue, very thick] plot (\x,{(\x)^2}); 60 61 \foreach \x in {1,0.5,0.75} 62 { 63\draw[very thick,color=green, loosely dashed,postaction={decorate}] (\x, -0.25) -- (\x , {(\x)^2}); 64\draw[very thick,color=green, loosely dashed,postaction={decorate}] (\x , {(\x)^2}) -- (F); 65 } 66 \filldraw[color=red] (F) circle (0.5pt); 67 \draw (F) node[anchor=north] {$F$}; \tikz@nlt ^^@-\pgfapproximatenonlineartranslation \tikz@fig@continue ...e@transformations \tikz@nlt \setbox \tikz@whichbox =\h... ; l.57 \coordinate (F) at (0,0.25); ? with this code: % Paràbola amb Focus = (0,0.25) i Directriu (x,-0.25) \placefigure[here] [taula:construcció-paràbola-1] {Paràbola amb directriu $r$ i focus $F$} {\framed[frame=off]{ \starttikzpicture[domain=(-1):1, scale=4, smooth,decoration={ markings,% switch on markings mark=% actually add a mark between positions 0 and 1 step 0.5 with { \draw[color=gray] (0,-2pt) -- (0,2pt); } }] \coordinate (F) at (0,0.25); \draw[very thick] (-2.2,-0.25) -- (2.2,-0.25) node[right] {$r$}; \draw[color=blue, very thick] plot (\x,{(\x)^2}); \foreach \x in {1,0.5,0.75} { \draw[very thick,color=green, loosely dashed,postaction={decorate}] (\x, -0.25) -- (\x , {(\x)^2}); \draw[very thick,color=green, loosely dashed,postaction={decorate}] (\x , {(\x)^2}) -- (F); } \filldraw[color=red] (F) circle (0.5pt); \draw (F) node[anchor=north] {$F$}; \stoptikzpicture}} this happens when I updated to the latest version: $ sh ./first-setup.sh --context=beta --modules=all --engine=luatex What happens there? Thanks, Xan ___ 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 ___
Re: [NTG-context] Alignment table with comma, and long long space after
On Mon, 23 Sep 2013 20:11:01 +0200 Wolfgang Schuster ha escrit: > > Am 23.09.2013 um 15:45 schrieb Xan : > > > On Sun, 22 Sep 2013 19:31:33 +0200 > > Wolfgang Schuster ha escrit: > > > >> You can show us a *complete* minimal example. > >> > >> Wolfgang > > > > What is at final? > > It’s a bug in the alignment mechanism and looking for a solution. > > Wolfgang Thanks. Please notice me when you (sure) have the solution Xan. ___ 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 ___
Re: [NTG-context] Alignment table with comma, and long long space after
On Sun, 22 Sep 2013 19:31:33 +0200 Wolfgang Schuster ha escrit: > > You can show us a *complete* minimal example. > > Wolfgang What is at final? Xan ___ 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 ___
[NTG-context] \sqrt[a]{b} with a more than one digit
Hi, \sqrt[12]{a^{11}} produces me: \sqrt[1]{2} a^{11} What happens there? Xan. ___ 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 ___
Re: [NTG-context] Alignment table with comma, and long long space after
Yes: > You can show us a *complete* minimal example. > > Wolfgang % Regime \enableregime[utf] % Choose a language, and associated hyphenation rules. \mainlanguage[ca] % AMSTHM equivalent %% Exercici %% Mirar http://wiki.contextgarden.net/Command/setupdescriptions %%% posar alternative=left per identar tots els continguts | alternative=serried per tractar el contingut com un parà graf ordinari \defineenumeration [exercici] [alternative=serried,text={\startcolor[darkblue]Exercici\stopcolor},stopper={.\space},left={\bgroup},right={\egroup},width=fit,headstyle=\ss,distance=0.25em,width=fit] %\defineenumeration % [exerciciimportant] % [text={Exercici},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em, %stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,before={\bgroup\startframedtext[background=screen,frame=off,width=broad]},after={\stopframedtext\egroup}] % Intent fer una comanda per a fer requadres a les coses importants % http://www.ntg.nl/pipermail/ntg-context/2013/074823.html \def\important{\dodoubleempty\doimportant} \def\doimportant[#1][#2]{\bgroup \ifsecondargument \startframedtext[background=color,backgroundcolor=#2,frame=off,width=broad]% #1 \else \startframedtext[background=screen,frame=off,width=broad]% #1 \fi \stopframedtext \egroup} \defineframedtext [important] [background=screen, frame=off, width=broad] % Per a veure què falla amb els sÃmbols \enabletrackers [fonts.missing] % Choose a font %\usetypescript[pagella][ec] %\setupbodyfont[pagella,11pt] \setupbodyfont [cmr,11pt] % cmr, 11pt % Margins %\setuplayout[topspace=2cm, backspace=2cm, header=1.5cm,margin=2cm,width=middle,footer=1cm] % Colors \definecolor[headingcolor][c=1,m=0.5431,y=0,k=0.5451] \definecolor[tablecolor][b=1,t=.5,a=1] % Page number \setuppagenumbering [location={header,right}] % Paper size \setuppapersize [A4] % Italic in emph (by default is slanted) \setupbodyfontenvironment[default][em=italic] % Headers and footers \setupfooter[text][style={\ss\tfx},color=headingcolor,before={\hrule}] \setupheader[text][style={\ss},color=headingcolor,after={\hrule}] %% Display of headers \setuphead[title][style={\tfd},align=middle,before={\begingroup},after={\bigskip\endgroup}] \setupheads[section,subject][style={\tfc}] \setupheads[subsubject,subsection][style={\tfb}] \setuphead[title,chapter,subject,section,subsubject,subsection][color=headingcolor] %% Per veure els enllaços \setupinteraction[state=start] %% Per a BibTeX \setuppublications[alternative=ams] %% Taules: estils %%% Per a què les taules se me puguin alinear amb les comes \chardef\characteralignmentmode=2 \chardef\characteralignmentmode\plustwo %%% http://randomdeterminism.wordpress.com/2012/11/18/separation-of-content-and-presentation-for-tables-part-1/ \startsetups table:style \setupTABLE[row][first][background=color, backgroundcolor=tablecolor, color=black, align={middle,lohi},style=ss] \setupTABLE[column][1][align={right,lohi}] \setupTABLE[column][2][align={left,lohi},alignmentcharacter={,},aligncharacter=yes] % \setupTABLE[column][2][width=.20\textwidth] \setupTABLE[loffset=1mm,roffset=1mm] \setupTABLE[frame=off] \setupTABLE[topframe=on,bottomframe=on] \setupTABLE[column][first][leftframe=on] \setupTABLE[column][last][rightframe=on] \stopsetups %% Normal \startsetups table2:style \setupTABLE[row][first][background=color, backgroundcolor=tablecolor, color=black, align={middle,lohi},style=ss] \setupTABLE[column][1][align={right,lohi}] \setupTABLE[column][2][align={left,lohi}] % \setupTABLE[column][2][width=.20\textwidth] \setupTABLE[loffset=1mm,roffset=1mm] \setupTABLE[frame=off] \setupTABLE[topframe=on,bottomframe=on] \setupTABLE[column][first][leftframe=on] \setupTABLE[column][last][rightframe=on] \stopsetups %% ConTeXt MIV %% Capçaleres i peus %%% Prenc els primers 5 carà cters del sha256 del fitxer (requereix ConTeXt MIV) \setupfootertexts[\jobname\space(versió \ctxlua{context(os.resultof("sha256sum \jobname.tex | cut -c -5"))}, \currentdate)][] \starttext \placefigure[here]{Diverses mesures}{ \bTABLE[setups={table:header, table:frame, table:style}] \bTABLEhead \bTR \bTD Esdeveniment \eTD \bTD Mesura (m) \eTD \eTR \eTABLEhead \bTABLEbody \bTR \bTD Distà ncia mitjana Terra-Lluna \eTD \bTD 150.000.000.000 \eTD \eTR \bTR \bTD Dià metre mitjà terrestre \eTD \bTD 12 800.000 \eTD \eTR \bTR \bTD Distà ncia Palma-Alcúdia \eTD \bTD 75.000 \eTD \eTR \bTR \bTD Dià metre mitjà de Júpiter \eTD \bTD 140.000.000 \eTD \eTR \bTR \bTD L'altura d'una persona \eTD \bTD 1,75 \eTD \eTR \bTR \bTD La distà ncia mitjana entre el Sol i Alfa-Centauri \eTD \bTD 40.790.494.000.000.000 \eTD \eTR \eTABLEbody \eTABLE} \stoptext prova.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry
Re: [NTG-context] Alignment table with comma, and long long space after
It does not work with that: %%% Per a què les taules se me puguin alinear amb les comes \chardef\characteralignmentmode=2 \chardef\characteralignmentmode\plustwo %%% http://randomdeterminism.wordpress.com/2012/11/18/separation-of-content-and-presentation-for-tables-part-1/ \startsetups table:style \setupTABLE[row][first][background=color, backgroundcolor=tablecolor, color=black, align={middle,lohi},style=ss] \setupTABLE[column][1][align={right,lohi}] \setupTABLE[column][2][align={left,lohi},alignmentcharacter={,},aligncharacter=yes] % \setupTABLE[column][2][width=.20\textwidth] \setupTABLE[loffset=1mm,roffset=1mm] \setupTABLE[frame=off] \setupTABLE[topframe=on,bottomframe=on] \setupTABLE[column][first][leftframe=on] \setupTABLE[column][last][rightframe=on] \stopsetups What can I do? Xan. On Sat, 21 Sep 2013 18:55:51 +0200 Wolfgang Schuster ha escrit: > > Am 21.09.2013 um 16:22 schrieb Xan : > > > Hi, > > > > I have this > > > > \startsetups table:style > > \setupTABLE[row][first][background=color, backgroundcolor=tablecolor, > > color=black, align={middle,lohi},style=ss] > > \setupTABLE[column][1][align={right,lohi}] > > > > \setupTABLE[column][2][align={left,lohi},alignmentcharacter={,},aligncharacter=yes] > > % \setupTABLE[column][2][width=.20\textwidth] > > \setupTABLE[loffset=1mm,roffset=1mm] > > \setupTABLE[frame=off] > > \setupTABLE[topframe=on,bottomframe=on] > > \setupTABLE[column][first][leftframe=on] > > \setupTABLE[column][last][rightframe=on] > > \stopsetups > > > > \placefigure[here]{Diverses mesures}{ > > \bTABLE[setups={table:header, table:frame, table:style}] > > \bTABLEhead > > \bTR \bTD Esdeveniment \eTD \bTD Mesura (m) \eTD \eTR > > \eTABLEhead > > \bTABLEbody > > \bTR \bTD Distància mitjana Terra-Lluna \eTD \bTD 150.000.000.000 \eTD \eTR > > \bTR \bTD Diàmetre mitjà terrestre \eTD \bTD 12 800.000 \eTD \eTR > > \bTR \bTD Distància Palma-Alcúdia \eTD \bTD 75.000 \eTD \eTR > > \bTR \bTD Diàmetre mitjà de Júpiter \eTD \bTD 140.000.000 \eTD \eTR > > \bTR \bTD L'altura d'una persona \eTD \bTD 1,75 \eTD \eTR > > \bTR \bTD La distància mitjana entre el Sol i Alfa-Centauri \eTD \bTD > > 40.790.494.000.000.000 \eTD \eTR > > \eTABLEbody > > \eTABLE} > > > > > > but ConTeXt produces a lot of space after 1,75. > > > > How can I do for second column fits the content? > > Add the following line to your setups for the table. > > \chardef\characteralignmentmode\plustwo > > 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 ___
Re: [NTG-context] diameter symbol in ConTeXt?
> > Really varnothing is not the same as diameter (see the reference of LaTeX I > > posted before) > > \def\diameter{\char"2300} > This (\char"2300) is really what I want. Sorry if I don't understand you. Xan. ___ 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 ___
Re: [NTG-context] diameter symbol in ConTeXt?
> On 2013–09–21 Xan wrote: > > > \diameter produces a diameter symbol. What is the equivalent in ConTeXt? > > ⌀ or \varnothing Really varnothing is not the same as diameter (see the reference of LaTeX I posted before) > > Have a look at char-def.lua for a list of context names for various > glyphs. It might make sense to enable the fonts.missing tracker. > Then ConTeXt warns you that a particular glyph is not available. > > \enabletrackers [fonts.missing] > > > Is there any compilation of symbols avaliable in ConTeXt? > > Not that I'm aware of. In ConTeXt you have easy access to all > characters of any font¹. Either input the character directly if it's > present in the current font or you can create a symbol: > > \definefontsynonym > [minion] > [name:minionproregular] > > \definesymbol > [leaf] > [\getnamedglyphdirect > {minion} > {bullet.010}] > > \starttext > Foo \symbol[leaf] Bar > \stoptext > > Marco > How can I define symbol with unicode equivalent? \diameter really is U+2300 I think. Thanks, Xan. ___ 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 ___
[NTG-context] diameter symbol in ConTeXt?
hi, In LaTeX: http://osl.ugr.es/CTAN/info/symbols/comprehensive/symbols-a4.pdf \diameter produces a diameter symbol. What is the equivalent in ConTeXt? Is there any compilation of symbols avaliable in ConTeXt? I can't find no references. Xan. ___ 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 ___
[NTG-context] Alignment table with comma, and long long space after
Hi, I have this \startsetups table:style \setupTABLE[row][first][background=color, backgroundcolor=tablecolor, color=black, align={middle,lohi},style=ss] \setupTABLE[column][1][align={right,lohi}] \setupTABLE[column][2][align={left,lohi},alignmentcharacter={,},aligncharacter=yes] % \setupTABLE[column][2][width=.20\textwidth] \setupTABLE[loffset=1mm,roffset=1mm] \setupTABLE[frame=off] \setupTABLE[topframe=on,bottomframe=on] \setupTABLE[column][first][leftframe=on] \setupTABLE[column][last][rightframe=on] \stopsetups \placefigure[here]{Diverses mesures}{ \bTABLE[setups={table:header, table:frame, table:style}] \bTABLEhead \bTR \bTD Esdeveniment \eTD \bTD Mesura (m) \eTD \eTR \eTABLEhead \bTABLEbody \bTR \bTD Distància mitjana Terra-Lluna \eTD \bTD 150.000.000.000 \eTD \eTR \bTR \bTD Diàmetre mitjà terrestre \eTD \bTD 12 800.000 \eTD \eTR \bTR \bTD Distància Palma-Alcúdia \eTD \bTD 75.000 \eTD \eTR \bTR \bTD Diàmetre mitjà de Júpiter \eTD \bTD 140.000.000 \eTD \eTR \bTR \bTD L'altura d'una persona \eTD \bTD 1,75 \eTD \eTR \bTR \bTD La distància mitjana entre el Sol i Alfa-Centauri \eTD \bTD 40.790.494.000.000.000 \eTD \eTR \eTABLEbody \eTABLE} but ConTeXt produces a lot of space after 1,75. How can I do for second column fits the content? Thanks in advance, Xan. PS: Please CCme ___ 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 ___
Re: [NTG-context] startitemize bad with columns
> \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 > - ___ 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 ___
Re: [NTG-context] startitemize bad with columns
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 ha escrit: > 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 > - ___ 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 ___
Re: [NTG-context] startitemize bad with columns
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 { 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 ha escrit: > 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 > - ___ 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 ___
Re: [NTG-context] startitemize bad with columns
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 ha escrit: > 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 > - ___ 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 ___
[NTG-context] 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. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Module simpleslides error
Hi, If I choose BottomSquares in presentation, I receive an error: \usemodule[simpleslides][style=BigNumber] \setupTitle[title={La Ronda}, author={Xavier Bordoy}, date={18 de juliol de 2013},] %% el text \starttext \placeTitle \SlideTitle{Pregunta 1} dfdsf \SlideTitle{Pregunta 2} fdfd \stoptext resolvers > modules > 'default' is loaded (/usr/local/bin/context/tex/texmf-modules/tex/context/third/simpleslides/simpleslides-s-default.tex simpleslides> loading default style setup colors > 'rgb' color space is supported colors > 'cmyk' color space is supported interface > namespaces > installing namespace 'simpleslidestitle' with settings ' type=module, name=simpleslidestitle, setup=list, style=yes, parent=simpleslidetitle, ' interface > namespaces > using namespace 'simpleslidestitle' for 'simpleslidestitle' interface > namespaces > namespace 'simpleslidestitle' for 'simpleslidestitle' uses parent 'simpleslidetitle' interface > namespaces > installing parameter handler for 'simpleslidestitle' interface > namespaces > installing parameterhash handler for 'simpleslidestitle' interface > namespaces > installing attribute handler for 'simpleslidestitle' interface > namespaces > installing setup command for 'simpleslidestitle' (multiple) interface > namespaces > installing namespace 'SlideTitle' with settings ' type=module, name=SlideTitle, command=yes, setup=list, style=yes, parent=SlideTitle, ' interface > namespaces > using namespace 'SlideTitle' for 'SlideTitle' interface > namespaces > namespace 'SlideTitle' for 'SlideTitle' uses parent 'SlideTitle' interface > namespaces > installing parameter handler for 'SlideTitle' interface > namespaces > installing parameterhash handler for 'SlideTitle' interface > namespaces > installing attribute handler for 'SlideTitle' interface > namespaces > installing definition command for 'SlideTitle' (single) interface > namespaces > installing setup command for 'SlideTitle' (multiple) ) resolvers > modules > 'simpleslides-s-BottomSquares' is loaded (/usr/local/bin/context/tex/texmf-modules/tex/context/third/simpleslides/simpleslides-s-BottomSquares.tex simpleslides> loading module BottomSquares system > command '\NormalHeight' is already defined system > command '\NormalWidth' is already defined system > command '\PictureFrameHeight' is already defined system > command '\PictureFrameWidth' is already defined ! Undefined control sequence. system > tex > error on line 68 in file /usr/local/bin/context/tex/texmf-modules/tex/context/third/simpleslides/simpleslides-s-BottomSquares.tex: Undefined control sequence ... 58 % top=\vss,bottom=\vss] 59 60 61 %D We define our color scheme: 62 63 \definecolor [simpleslides:backgroundcolor][s=.95] 64 \definecolor [simpleslides:contrastcolor] [r=.7,g=.1,b=.3] 65 \definecolor [simpleslides:variantcolor] [s=.3] 66 \definecolor [simpleslides:itemize:color] [simpleslides:contrastcolor] 67 68 >> \definevisualcounter 69 [simpleslides:bottomsquarescounter] 70 [squaremarkers] 71 [counter=userpage, 72distance={(\the\dimexpr\visualcounterparameter{maxwidth})/m + width}, 73path=unitsquare, 74maxwidth=\textwidth, 75height=0.3cm, 76width=0.3cm] 77 78 \definepalet[visualcounter:squaremarkers] l.68 \definevisualcounter ? x mkiv lua stats > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua mkiv lua stats > used cache path: /usr/local/bin/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e mkiv lua stats > resource resolver: loadtime 0.009 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 77 found files, scanned paths: mkiv lua stats > stored bytecode data: 331 modules (0.222 sec), 69 tables (0.006 sec), 400 chunks (0.227 sec) mkiv lua stats > cleaned up reserved nodes: 39 nodes, 9 lists of 457 mkiv lua stats > node memory usage: 3 attribute, 19 glue_spec, 1 attribute_list, 1 open, 1 dir mkiv lua stats > node list callback tasks: 6 unique task lists, 1 instances (re)created, 1 calls mkiv lua stats > used backend: pdf (backend for directly generating pdf output) mkiv lua stats > loaded tex modules: 5 requested, all found (*-simpleslides *-simpleslides-s-BottomSquares *-tikz simpleslides-f-default simpleslides-s-default) mkiv lua stats > loaded patterns: en::2, load time: 0.000 mkiv lua stats > jobdata time: 0.000 seconds saving, 0.001 seconds loading mkiv lua stats > callbacks: 3497 direct, 33148 indirect, 36645 total mkiv lua stats > randomizer: resumed with value 0.08730756402356 mkiv lua stats > result saved in file: Estrats-de-la-Ronda-Presentació.pdf, compresslevel 3, objectcompreslevel 3 mkiv lua stats > loaded fonts
Re: [NTG-context] Strange page break before \title
On Sun, 8 Sep 2013 14:21:08 +0200 Wolfgang Schuster ha escrit: > > Am 07.09.2013 um 22:34 schrieb Xan : > > > On Fri, 6 Sep 2013 13:22:55 +0200 > > Wolfgang Schuster ha escrit: > > > >> after=\midaligned{\blackrule[width=7cm,height=\linewidth]} > > > > Thanks, perfect. > > > > But why (by default) it breaks the page and with simple \title does not do? > > I don’t know what you mean with your simple \title. > \title{foo} does not break page in my case. ___ 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 ___