Re: [NTG-context] Tikz
On Oct 1, 2009, at 8:22 AM, David Arnold wrote: Ran: first-setup.sh Then: david-arnolds-macbook-pro:context darnold$ find: tikz: No such file or directory No tikz files. D. Of course not. That's what Luigi told you. tikz is a humongous package and not part of the minimals. You have to install it. Thomas ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Tikz
Ran: first-setup.sh Then: david-arnolds-macbook-pro:context darnold$ find: tikz: No such file or directory No tikz files. D. On Sep 30, 2009, at 11:17 PM, luigi scarso wrote: On Thu, Oct 1, 2009 at 8:10 AM, David Arnold > wrote: In the minmals directory: david-arnolds-macbook-pro:context darnold$ find . grep 'tikz' find: tikz: No such file or directory So , it seems to me that you don't have tikz in your minimals anymore. Can you try to re-install? -- luigi ___ 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Tikz
On Thu, Oct 1, 2009 at 8:10 AM, David Arnold wrote: > In the minmals directory: > david-arnolds-macbook-pro:context darnold$ find . grep 'tikz' > find: tikz: No such file or directory > > So , it seems to me that you don't have tikz in your minimals anymore. Can you try to re-install? -- luigi ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Tikz
In the minmals directory: david-arnolds-macbook-pro:context darnold$ find . grep 'tikz' find: tikz: No such file or directory On Sep 30, 2009, at 10:58 PM, luigi scarso wrote: On Thu, Oct 1, 2009 at 7:42 AM, David Arnold > wrote: All, After installing context minimals, this no longer compiles with MKII: \usemodule[tikz] \starttext \starttikzpicture \draw[gray] (-5,-5) grid (5,5); \stoptikzpicture \stoptext system : module tikz loaded (./tikz.tex system : module tikz (line 2) already loaded publications: file tikz.bbl not found, waiting for bibtex systems : begin file tikz at line 3 ! Undefined control sequence. l.5 \starttikzpicture Can be. If I rememeber well, by default ./first-run.sh setup a new and fresh minimals: others files are deleted. Are there tikz* files still in your minimals ? -- luigi ___ 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Tikz
On Thu, Oct 1, 2009 at 7:42 AM, David Arnold wrote: > All, > After installing context minimals, this no longer compiles with MKII: > > \usemodule[tikz] > > \starttext > > \starttikzpicture > \draw[gray] (-5,-5) grid (5,5); > \stoptikzpicture > > \stoptext > > > system : module tikz loaded > (./tikz.tex > system : module tikz (line 2) already loaded > publications: file tikz.bbl not found, waiting for bibtex > systems : begin file tikz at line 3 > ! Undefined control sequence. > l.5 \starttikzpicture > > Can be. If I rememeber well, by default ./first-run.sh setup a new and fresh minimals: others files are deleted. Are there tikz* files still in your minimals ? -- luigi ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Tikz
All, After installing context minimals, this no longer compiles with MKII: \usemodule[tikz] \starttext \starttikzpicture \draw[gray] (-5,-5) grid (5,5); \stoptikzpicture \stoptext system : module tikz loaded (./tikz.tex system : module tikz (line 2) already loaded publications: file tikz.bbl not found, waiting for bibtex systems : begin file tikz at line 3 ! Undefined control sequence. l.5 \starttikzpicture___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math symbols "rigt floor" and "left floor"
On Wed, 30 Sep 2009, Thomas A. Schmitz wrote: On Sep 30, 2009, at 4:03 PM, Thomas A. Schmitz wrote: Hi all, quick question: does anyone know of a free font that contains the symbols "left floor" (uni230A) and "right floor" (uni120B)? I have a commercial font that does have them, but I need a portable and free version for the next release of my Greek module. err, that should have been 230A and 230B, sorry. Almost all math fonts have them. In math-vfu.lua, search for lines containing vector = tex-sy. All those fonts have lfloor and rfloor in positions 0x62 and 0x63. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] framedtext in naturaltables
Hi, If I put \startframedtext[frame=off,background=screen,width=broad]\stopframedtext in naturaltable, then I get that framed text passes table and that it aligns at top. Can you say me please how to get a right behaviour? An example: \placefigure [here,none] [fig:taula-roques-i-minerals] {Característiques de roques i minerals} {\bTABLE[frame=off,align=middle] \setupTABLE[1,2][1][leftframe=off,rightframe=off] \setupTABLE[r][2][topframe=on,bottomframe=on] \setupTABLE[c][1][rightframe=on] \setupTABLE[c][2][leftframe=on] \bTR[align=middle] \bTD[align=middle] {\sc {\blue{Minerals}}} \eTD \bTD[align=middle] {\sc {\blue{Roques}}} \eTD \eTR \bTR[align=middle] \bTD[align=middle,nc=2] {\sc Composició}: Les roques i els minerals estan formats per {\em \bf matèria inorgànica}, que és diferent de la matèria que compon els éssers vius \eTD \eTR \bTR[align=middle] \bTD {\sc Definició}: Els minerals són materials terrestres que formen les roques. Un mineral es defineix com una substància: \startitemize[1] \item {\bf \em Sòlida}. L'estat físic que apareixen els materials ha de ser sòlid. Els gasos i l'aigua no són minerals. \item {\bf \em Natural}. Els materials artificials no són minerals. \item {\bf \em Inorgànica}. Els compostos que formen els minerals són aquells que formen la matèria que no està viva \item \startframedtext[frame=off,background=screen,width=broad] {\bf \em Estructura interna fixa i ordenada}. Les partícules que formen els minerals estan {\bf \em \red{ordenades}} i ocupen un {\bf \em \red{lloc fix}} a l'espai. Qualsevol mostra d'un mateix mineral sempre té la mateixa estructura. \stopframedtext \item {\bf \em Composició química determinada}. Tots els materials tenen una {\bf \em \red{fórmula química fixa}}. Un material sempre té la mateixa proporció de cada element que el forma. \stopitemize \eTD \bTD {\sc Definició}: Una roca és un {\em \bf agregats} (unió) {\bf \em de minerals}. Poden estar formades per un sol mineral o per diversos minerals. \startitemize[1] \item \stopitemize \eTD \eTR \eTABLE} ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] virtual fonts in luatex?
Hi all, I'm running into a problem, but maybe not all hope is lost. For my Greek stuff, I will sometimes need a "dotbelowcomb" accent. Only very few fonts have that, but no problem, in mkiv, I can simply take that from a follback font: \definefontfallback [GreekFallback] [name:texgyretermesregular] [0x0323] [force=no,check=no] Now I would like to remap the exclam character to this dotbelowcom. Again, no problem: with a fea file, I can write a sub rule sub exclam by dotbelowcomb but I can't combine both approaches: if the font doesn't have the character, I get an error about "invalid glyph index." In good old pdftex, it was possible to define a virtual font for such occasions, and I seem to remember that there's something similar in mkiv, but I'm unsure how it can be done. Any pointers? Thanks, and all best Thomas ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Varying indentations
Piotr Kopszak schrieb: Seems I almost learnt how to do it, but notice the whitespace after the first paragraph. Piotr \setupindenting[yes,1pc] \defineindenting[qq][text=,separator=,width=0.5\textwidth] Just add the empty key 'after=' to your definition and the whitespace vanishes. Best wishes, Peter \starttext \qq \input zapf \input knuth \stoptext 2009/9/30 Piotr Kopszak : Hello list, Is there a way to obtain a differrent indentation for the first paragraph, than all the following ones? I would like the first to be indented by 0.5\textwidth and all the others by 1 pica. Many thanks in advance Piotr -- http://okle.pl ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math symbols "rigt floor" and "left floor"
On Sep 30, 2009, at 4:03 PM, Thomas A. Schmitz wrote: Hi all, quick question: does anyone know of a free font that contains the symbols "left floor" (uni230A) and "right floor" (uni120B)? I have a commercial font that does have them, but I need a portable and free version for the next release of my Greek module. err, that should have been 230A and 230B, sorry. Thomas ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Math symbols "rigt floor" and "left floor"
Hi all, quick question: does anyone know of a free font that contains the symbols "left floor" (uni230A) and "right floor" (uni120B)? I have a commercial font that does have them, but I need a portable and free version for the next release of my Greek module. Thanks, and all best Thomas ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Varying indentations
Seems I almost learnt how to do it, but notice the whitespace after the first paragraph. Piotr \setupindenting[yes,1pc] \defineindenting[qq][text=,separator=,width=0.5\textwidth] \starttext \qq \input zapf \input knuth \stoptext 2009/9/30 Piotr Kopszak : > Hello list, > > Is there a way to obtain a differrent indentation for the first > paragraph, than all the following ones? I would like the first to be > indented by 0.5\textwidth and all the others by 1 pica. > > Many thanks in advance > > Piotr > > -- > http://okle.pl > -- http://okle.pl ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Varying indentations
Hello list, Is there a way to obtain a differrent indentation for the first paragraph, than all the following ones? I would like the first to be indented by 0.5\textwidth and all the others by 1 pica. Many thanks in advance Piotr -- http://okle.pl ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Passing variables into context
Matthijs Kooijman wrote: > Hi Taco, > >> You should try \the\textwidth > Thanks, that works. Could you enlighten me as to what \the does and why this > helps? Does Context treat \the specially within metapost code (which seems so, > since there are more \the examples in the metafun manual), or is it expanded > before getting inserted into metapost? \the is an expandable command that 'converts' internal tex parameters into their value. The expansion takes places during \edef (like inside \expanded) or during write to a buffer. > Using this in arithmetic gets slightly more complicated (0.5\the\textwidth > doesn't work, but since this gets put into metapost, 0.5 * \the\textwidth does > work). If you want a single value inside mpost, you could use \dimexpr to do the calculation in tex. Best wishes, Taco ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Passing variables into context
Hi Taco, > You should try \the\textwidth Thanks, that works. Could you enlighten me as to what \the does and why this helps? Does Context treat \the specially within metapost code (which seems so, since there are more \the examples in the metafun manual), or is it expanded before getting inserted into metapost? Using this in arithmetic gets slightly more complicated (0.5\the\textwidth doesn't work, but since this gets put into metapost, 0.5 * \the\textwidth does work). Gr. Matthijs signature.asc Description: Digital signature ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Passing variables into context
Matthijs Kooijman wrote: > > It seems that the \textwidth option is not expanded before being passed to MP. > Is there any way to force this expansion? I've tried \expandafter (without > really understanding what that does), but that didn't help. You should try \the\textwidth Best wishes, Taco ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Passing variables into context
Hi all, I've been trying to make a metapost graphic, based on the \textwidth. However, it seems I can't just pass in \textwidth as an option. For example, the following breaks: \startuniqueMPgraphic{HLine} draw origin -- (\MPvar{width}, 0mm); \stopuniqueMPgraphic \starttext \setupMPvariables[HLine][width=\textwidth] \uniqueMPgraphic{HLine} \stoptext with the following error: mplib | mp terminal: >> textwidth ! Undefined x coordinate has been replaced by 0. ; <*> ...d:=3441; draw origin -- (\textwidth , 0mm); It seems that the \textwidth option is not expanded before being passed to MP. Is there any way to force this expansion? I've tried \expandafter (without really understanding what that does), but that didn't help. I've tried putting this graphic as an overlay under an \framed, which allows me to use the \overlaywidth macro in metapost (which I assume is expanded specially by context?). This worked, but is not very elegant. Is there something more straightforward possible? Gr. Matthijs signature.asc Description: Digital signature ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___