Re: [NTG-context] clipping in metafun has weird side effects
On 10/31/2014 1:33 PM, Tobias Columbus wrote: On Fri, Oct 31, 2014 at 12:22:37PM +0100, Hans Hagen wrote: On 10/31/2014 10:15 AM, Tobias Columbus wrote: def a_impl text t = begingroup save c ; picture c ; c := mycircle ; clip c to bbox c scaled 0.5 ; try this to see what happens: % clip c to bbox c scaled 0.5 ; draw bbox c scaled 0.5 ; and then this to solve it: clip c to bbox (c scaled 0.5) ; I tried your suggestions and attached both the example and output. Drawing and clipping solves the problem indeed. But using only the modified clip either does not solve the problem, or I am just too stupid to implement your solution. Note also that in the modified example the context output coincides with the mptopdf output if one draws the label before calling test the second time. (I marked the position in the metapost file.) Sorry for probably getting on your nerves ... hopefully ok in next beta Hans - 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] (again) bug in index sorting?
On 2 Nov 2014, at 12:00 , Pablo Rodriguez oi...@gmx.es wrote I have the following sample: \setuppapersize[A6] \starttext \index{tipografía digital} \index{tipografías} \index{tomato white} \index{tomatoes red} \index{idioma+de un pasaje} \index{idioma+del documento} \completeindex \stoptext Latest beta from 2014.10.31 12:47 sorts the index entries the following way: tomatoes red tomato white Of course, this sample doesn’t make sense, but the entries in Spanish do. All of them are wrong sorted. Stable version from 2014.01.03 00:40. The different sorting criterium seems to have been introduced in beta from 2014.10.22 16:23. Or shouldn’t be the first word sorted first and then the second one in index entry? Could anyone be so kind to confirm the bug? Many thanks for your help, Pablo Hi Pablo, I cannot confirm any bug, but what I would do anyway is to force the sorting in whatever order I want by using \index[]{} with the argument specifying the order. So your example could be: \starttext \index[tipograf\'{i}adig]{tipograf\'{i}a digital} \index[tipograf\'{i}as]{tipograf\'{i}as} \index[idiomadeu]{idioma+de un pasaje} \index[idiomadel]{idioma+del documento} \completeindex \stoptext if you want tipografias digital before tipografias. This works with all mkiv and mkii versions I have, including the ones that I installed today. I use it for a rather comlex three-level index and it works flawlessly (for me). Best regards, Robert Blackstone ___ 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] Strange behavior with the command \color[]{}
Hi, In the code below, if I comment the two lines, it's okay, but if I uncomment those two lines, the number of faces of the cubes is not white but black, and there are pieces of text green. Best regards, Fabrice \usemodule[tikz] \usetikzlibrary[calc] \usetikzlibrary[cd] \usetikzlibrary[3d] \usetikzlibrary[arrows.meta] \usetikzlibrary[positioning] %\definecolor[H1prime][c=0.50, m=0.00, y=1.00, k=0.00] %\definecolor[H4][c=0.07, m=0.00, y=0.15, k=0.00] \starttext \startsetups[table:initialize] \setupTABLE[height=2.5cm,align={middle,lohi}] \setupTABLE[column][2][[width=3cm,align={right,lohi},frame=off] \setupTABLE[column][3][[width=8cm,align={right,lohi},frame=off] \setupTABLE[1][1][[width=5cm,align={right,lohi},frame=off] \setupTABLE[1][2,3][bottomframe=off] \setupTABLE[1][3,4][topframe=off] \stopsetups \bTABLE[setups=table:initialize] \switchtobodyfont[11pt] \bTR \bTD \color[orange]{\tfa Suite d'instructions correspondant au programme de calcul :} \eTD \bTD \eTD \bTD \color[orange]{\tfa Valeur de la variable $X$ après l'exécution de chaque instruction :} \eTD \eTR \bTR \bTD $X$ prend la valeur $7$ \eTD \bTD \dontleavehmode \startMPcode input hvdm; l:=2.8mm; r:=0.6; alfa:=45; beta:=0; gamma:=0; defineDefaultArrow (l, r, alfa, beta, gamma); pickup pencircle scaled 0.4mm; arrowline (0cm,0cm)--(3cm,0cm) withcolor blue ;\stopMPcode \eTD \bTD On affecte à $X$ la valeur $7$ : la valeur de $X$ est \color[green]{$7$}. \eTD \eTR \bTR \bTD $X$ prend la valeur $2X$ \eTD \bTD \dontleavehmode \startMPcode input hvdm; l:=2.8mm; r:=0.6; alfa:=45; beta:=0; gamma:=0; defineDefaultArrow (l, r, alfa, beta, gamma); pickup pencircle scaled 0.4mm; arrowline (0cm,0cm)--(3cm,0cm) withcolor red ;\stopMPcode\eTD \bTD On affecte à $X$ la valeur $2X$.\\Comme la valeur de $X$ est \color[green]{$7$}, la nouvelle valeur de $X$ est : $2\times\color[green]{7}$.\\La valeur de $X$ est maintenant \color[green]{$14$}. \eTD \eTR \bTR \bTD $X$ prend la valeur $X+3$ \eTD \bTD \dontleavehmode \startMPcode input hvdm; l:=2.8mm; r:=0.6; alfa:=45; beta:=0; gamma:=0; defineDefaultArrow (l, r, alfa, beta, gamma); pickup pencircle scaled 0.4mm; arrowline (0cm,0cm)--(3cm,0cm) withcolor green ;\stopMPcode\eTD \eTR \bTD On affecte à $X$ la valeur $X+3$.\\Comme la valeur de $X$ est \color[green]{$14$}, la nouvelle valeur de $X$ est : $\color[green]{14}+3$.\\La valeur de $X$ est maintenant \color[green]{$17$}. \eTD \eTABLE{} \startsetups[table:initialize] \setupTABLE[height=2cm,align={middle,lohi}] \setupTABLE[column][1][[width=4cm,align={right,lohi},frame=on, framecolor=H1prime] \setupTABLE[column][2][[width=5cm,align={middle,lohi},frame=off] \setupTABLE[column][3][[width=1cm,align={middle,lohi},frame=off] \setupTABLE[column][4][[width=9cm,align={right,lohi},frame=off] \setupTABLE[1][1][frame=off] \setupTABLE[1][2,3][bottomframe=off] \setupTABLE[1][3,4][topframe=off] \stopsetups \bTABLE[setups=table:initialize] \switchtobodyfont[10pt] \bTR \bTD \color[red]{ Suite d'instructions :} \eTD \bTD \eTD \bTD \eTD \bTD \color[orange]{ Valeur de la variable $A$ et valeur de la variable $B$ après l'exécution de chaque instruction :}\eTD \eTR \bTR \bTD $A$ prend la valeur $3$ \eTD \bTD \tikzset{% cube join/.style={ thick, -{Stealth}, }, cube face/.style={ minimum size=1cm, outer sep=0pt, draw=white, thick, line join=round, shading=ball, text=white, }, face color/.style={cube face/.append style={ball color=#1}}, pics/cube/.style args={#1 with #2}{ code={ \node [cube face, label={[name=-label]below:#2}] (-front) {#1}; \node [cube face] (-top) at (-front.north west) [anchor=south west, xslant=1, yscale=1/3] {}; \node [cube face] (-side) at (-front.south east) [anchor=south west, yslant=1, xscale=1/3] {}; }} } \starttikzpicture \pic [cube face/.append style={ball color=green}] at (-1, 1) {cube=3 with $A$};\pic [cube face/.append style={ball color=red}] at ( 1, 1) {cube={} with $B$}; \stoptikzpicture \eTD \bTD \dontleavehmode \startMPcode input hvdm; l:=2.8mm; r:=0.6; alfa:=45; beta:=0; gamma:=0; defineDefaultArrow (l, r, alfa, beta, gamma); pickup pencircle scaled 0.4mm; arrowline (1cm,0cm)--(0cm,0cm) ;\stopMPcode \eTD \bTD La valeur de $A$ est \color[green]{3} et $B$ n'a pas encore de valeur \eTD \eTR \bTR \bTD $B$ prend la valeur $A+1$ \eTD \bTD \tikzset{% cube join/.style={ thick, -{Stealth}, }, cube face/.style={ minimum size=1cm, outer sep=0pt, draw=white, thick, line join=round, shading=ball, text=white, font=\bfseries }, face color/.style={cube face/.append style={ball color=#1}}, pics/cube/.style args={#1 with #2}{ code={ \node [cube face, label={[name=-label]below:#2}] (-front) {#1}; \node [cube face] (-top) at (-front.north west) [anchor=south west, xslant=1, yscale=1/3] {}; \node [cube face] (-side) at (-front.south east) [anchor=south west, yslant=1,
Re: [NTG-context] clipping in metafun has weird side effects
On Sun, Nov 02, 2014 at 11:29:24AM +0100, Hans Hagen wrote: On 10/31/2014 1:33 PM, Tobias Columbus wrote: On Fri, Oct 31, 2014 at 12:22:37PM +0100, Hans Hagen wrote: On 10/31/2014 10:15 AM, Tobias Columbus wrote: def a_impl text t = begingroup save c ; picture c ; c := mycircle ; clip c to bbox c scaled 0.5 ; try this to see what happens: % clip c to bbox c scaled 0.5 ; draw bbox c scaled 0.5 ; and then this to solve it: clip c to bbox (c scaled 0.5) ; I tried your suggestions and attached both the example and output. Drawing and clipping solves the problem indeed. But using only the modified clip either does not solve the problem, or I am just too stupid to implement your solution. Note also that in the modified example the context output coincides with the mptopdf output if one draws the label before calling test the second time. (I marked the position in the metapost file.) Sorry for probably getting on your nerves ... hopefully ok in next beta Hans Seems to be fixed in 2014.11.02 12:23. Thank you very much! Tobias - 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 ___ -- ___ 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] Natural tables introduces spaces in \type
Hi, Why does \type{...} introduce spaces when used inside natural tables? MWE: \starttext \type{\test\test} %- no space introduced \bTABLE \bTR \bTD \typ{\test\test} \eTD \eTR %- space introduced \eTABLE \stoptext Kind Regards, Christoph ___ 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] Natural tables introduces spaces in \type
On 11/2/2014 2:27 PM, Christoph Reller wrote: Hi, Why does \type{...} introduce spaces when used inside natural tables? MWE: \starttext \type{\test\test} %- no space introduced \bTABLE \bTR \bTD \typ{\test\test} \eTD \eTR %- space introduced \eTABLE \stoptext it's the way tex works (when passing arguments) .. you can use this (and wikify it): \definetype[ctype][compact=absolute] \bTABLE \bTR \bTD \ctype{\test\test} \eTD \eTR \eTABLE - 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] (again) bug in index sorting?
On Sun, 2 Nov 2014 12:45:25 +0100 Robert Blackstone blackstone.rob...@gmail.com wrote: On 2 Nov 2014, at 12:00 , Pablo Rodriguez oi...@gmx.es wrote I have the following sample: \setuppapersize[A6] \starttext \index{tipografía digital} \index{tipografías} \index{tomato white} \index{tomatoes red} \index{idioma+de un pasaje} \index{idioma+del documento} \completeindex \stoptext Latest beta from 2014.10.31 12:47 sorts the index entries the following way: tomatoes red tomato white Of course, this sample doesn’t make sense, but the entries in Spanish do. All of them are wrong sorted. Stable version from 2014.01.03 00:40. The different sorting criterium seems to have been introduced in beta from 2014.10.22 16:23. Or shouldn’t be the first word sorted first and then the second one in index entry? Could anyone be so kind to confirm the bug? Many thanks for your help, Pablo Hi Pablo, I cannot confirm any bug, but what I would do anyway is to force the sorting in whatever order I want by using \index[]{} with the argument specifying the order. So your example could be: \starttext \index[tipograf\'{i}adig]{tipograf\'{i}a digital} \index[tipograf\'{i}as]{tipograf\'{i}as} \index[idiomadeu]{idioma+de un pasaje} \index[idiomadel]{idioma+del documento} \completeindex \stoptext if you want tipografias digital before tipografias. This works with all mkiv and mkii versions I have, including the ones that I installed today. I use it for a rather comlex three-level index and it works flawlessly (for me). Because I have become obsessed with the APA style rules recently (;-), \startquotation Alphabetize letter by letter. When alphabetizing surnames, remember that “nothing precedes something”: Brown, J. R., precedes Browning, A. R., even though i precedes j in the alphabet. Singh, Y., precedes Singh Siddhu, N. López, M. E., precedes López de Molina, G. Ibn Abdulaziz, T., precedes Ibn Nidal, A. K. M. Girard, J.-B., precedes Girard-Perregaux, A. S. Villafuerte, S. A., precedes Villa-Lobos, J. Benjamin, A. S., precedes ben Yaakov, D. \stopquotation Of course, these are names, a favorite subject that I share with Hans these days... Alan ___ 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: of interest for inter-European travel
The Deutsche Bahn and its partners in Danemark, in the Netherlands, in France, in Switzerland and in the Czech Republic plan to close the following overnight train lines at the end of the year 2014: Amsterdam-Copenhague Copenhague-Prague Prague-Amsterdam Bâle-Copenhague Berlin-Paris Hambourg-Paris Paris-Munich As long as the overnight train lines to/from Bachotex remain in operation, perhaps we will not be to affected by this progress. ;) Alan ___ 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: of interest for inter-European travel
On 11/2/2014 4:10 PM, Alan BRASLAU wrote: The Deutsche Bahn and its partners in Danemark, in the Netherlands, in France, in Switzerland and in the Czech Republic plan to close the following overnight train lines at the end of the year 2014: Amsterdam-Copenhague Copenhague-Prague Prague-Amsterdam Bâle-Copenhague Berlin-Paris Hambourg-Paris Paris-Munich As long as the overnight train lines to/from Bachotex remain in operation, perhaps we will not be to affected by this progress. ;) I can understand it for the Netherlands as they cannot get their high speed tracks and trains up and running (instead of outsourcing in europe they should have hired Japanese companies instead). (A few days ago I passed by train the tracks where these non-functional italian high speed trains are stalled ... overpainted by graffity in the meantime. It's always fun to drive by car along the dedicated expensive track for container-trains ... that track kind of stops at the german border.) Hans ps. Texies travel to BT by bus. - 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] \placetable whitespace problem in columnset
I have a document using columnsets to place tables near an entry in a long list of sorts. The problem is that wherever I issue a \placetable \placefigure etc command, I get unwanted extra whitespace between entries where the command is issued. I have tried changing the parameters in \setupfloats, but haven't found a setting that works. I'm using the context version distributed with the latest texlive. You can see the extra whitespace between entry Q and R in this example. \definecolumnset[TwoColumns][n=2,distance=0.04\makeupwidth] \setupindenting[yes, small] \setupfloats[before=,after=] \definedescription [MyEntry][alternative=serried,width=fit,before=\indentation,indenting=yes] \unexpanded\def\MyCommand#1#2#3% {\startMyEntry{\bi#2:}#3\stopMyEntry} \definesorting[My][Mys] \starttext \startcolumnset[TwoColumns] \definecolumnsethsize{TwoColumns}{1}{1}\One \startbuffer \placetable[lrtb][tab:mytable]{My Table}{ \bTABLE[option=stretch,textwidth=\One,align=middle] \bTR\bTH Foo \eTH\bTH Bar \eTH\eTR \bTR\bTD Bar \eTD\bTD Foo \eTD\eTR \bTR\bTD Foo \eTD\bTD Bar \eTD\eTR \eTABLE} \stopbuffer \My[Q]{\input knuth\getbuffer} \My[R]{\input knuth} \My[C]{\input knuth} \My[A]{\input knuth} \placelistofsorts[My][criterium=all,command=\MyCommand] \stopcolumnset \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 ___