Re: [NTG-context] Typographical Engineering in Context
On 3 avr. 2010, at 19:00, Idris Samawi Hamid ادريس سماوي حامد wrote: > News flash: it's already there! See attached. Hi Idriss, That's wonderful! Could you please tell us what font you have used and give us the font features turned on to get that kind of coloring and « kashide »? Can you send an example ConTeXt file that produces what you sent as a png file? 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] itemize with columns in \startcolumns enviroment
Hi, I have \startcolumns [...] \startexercici Amb el mateix experiment aleatori de l'activitat anterior, calcula els esdeveniments següents: \startitemize[a,packed,columns] \item $(A^c)^c$ \item $(A \cap B)^c$ \item $(A \cup B)^c$ \item $A^c \cup B$ \item $A^c \cap B$ \item $A \cup B^c$ \item $A^c \cap B^c$ \item $A \cap B^c$ \stopitemize \stopexercici [...] \stopcolumns but the itemize does NOt display as two columns. What is the solution for that? Please, CCme Thanks a lot, Xan. PS: The exercici enviroment is defined as: \defineenumeration [exercici] [text={\startcolor[middlecyan]Exercici\stopcolor},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em, stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,headstyle=\ss] ___ 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] itemize with columns in \startcolumns enviroment
Am 11.04.10 12:47, schrieb Xan: Hi, I have \startcolumns [...] \startexercici Amb el mateix experiment aleatori de l'activitat anterior, calcula els esdeveniments següents: \startitemize[a,packed,columns] \item $(A^c)^c$ \item $(A \cap B)^c$ \item $(A \cup B)^c$ \item $A^c \cup B$ \item $A^c \cap B$ \item $A \cup B^c$ \item $A^c \cap B^c$ \item $A \cap B^c$ \stopitemize \stopexercici [...] \stopcolumns but the itemize does NOt display as two columns. What is the solution for that? Columns can't be nested but you can use \start/\stopsimplecolumns for the itemize. 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] itemize with columns in \startcolumns enviroment
En/na Wolfgang Schuster ha escrit: Columns can't be nested but you can use \start/\stopsimplecolumns for the itemize. Wolfgang Thanks Wolfgang. Perfect solution! For the other hand, can't columns be nested? Why not put in \startitemize code one "if": if there is _in_ a column environment,use \startsimplecolumns, Is it technically possible? 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] itemize with columns in \startcolumns enviroment
Am 11.04.10 13:01, schrieb Xan: For the other hand, can't columns be nested? No. Why not put in \startitemize code one "if": if there is _in_ a column environment,use \startsimplecolumns, Is it technically possible? Possible but not so simple as you think. 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] How to define your own math character (MK-IV)
Hi, How to use definemathcommand to setup some of the missing math symbols ? Some of these symbols are defined in char-def.lua but missing in math-vfu.lua. 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] MetaPost in TABLEs ?
Hi all, In a book on construction engineering I found two kind of tables that presumably could be set very nicely in ConTeXt (see attachments). Set with MetaPost within natural tables? 1) Curly braces that span over cells: Their height should be depending to the cell's height (nr=2 oder nr=3). http://werksatz.com/attachments/braces.jpg 2) Arrows that are pointing from one cell to an other (middle or border of cell), http://werksatz.com/attachments/arrows.jpg To me this looks like standard purpose, that most like is already pre-defined somewhere in Metapost/MetaFun/ConTeXt (MkII please!) ... Is there any MetaPost guru out there that knows these cases? Thank you, Steffen ___ 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] Help needed: texshow-web/command reference
Hi all, the garden maintainers have moved the command reference from texshow-web (http://texshow.contextgarde.net) to the wiki, below the page http://wiki.contextgarden.net/Category:Reference/en This means, everybody can update the command reference now! Hooray! The contents has been transferred automatically, but this process can lead to some unwanted formatting errors. To find these errors, we need your help: Everybody: please pick one random command from http://wiki.contextgarden.net/Category:Reference_Cleanup and make if this looks ok. If you are finished, please remove the first two lines from that page and save it. If everybody from this list helps with _one_ command, we are quickly done with checking the new reference! Thanks for your help! Patrick (for the garden maintainers) ___ 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] stopcolumns causes new page!!!?
Hi, I attach a file. In page 7, when I put \stopcolumns, then automatically context create one new page. When I comment that, all is fine. See the mark "%here is the problem" for the exact position. Please, CCme. Thanks a lot, Xan. % interface=en output=pdftex % texexec --mode=solucions nomfitxer.context per veure les solucions % Regime \enableregime[utf] % Choose a font \setupbodyfont [cmr,11pt] % Be tolerant with paragraph building \setuptolerance [horizontal,verytolerant,stretch] % Choose a language, and associated hyphenation rules. %\language [ca] \mainlanguage[ca] % Page number \setuppagenumbering [location={footer}] % Paper size \setuppapersize [a4] % Margins %\setuplayout [grid=yes, footer=0.5\footerheight, header=0.5\headerheight] %\setuplayout[footer=2cm, header=2cm] %\showlayout %\showframe %\showsetups % Enable colors and activate hyperlinks \setupcolors [state=start] %\definecolor[lightBlue][r=0.5, g=0.5, b=1.0] %\setupinteraction [state=start, color=lightBlue] %\setupurl[style=small, space=yes] \setupurl[space=yes] % Enumerate the URLs %\useURL [mccammond][{http://www.math.ucsb.edu/~jon.mccammond/geogrouptheory/}][] [{\tf http://www.math.ucsb.edu/\~{}jon.mccammond/geogrouptheory/}] \useURL [link:toomates][{http://www.toomates.net}][] [{\tf http://www.toomates.net}] \useURL [link:aubanell][{http://www.xtec.cat/\~{}aaubanel/}][] [{\tf http://www.xtec.cat/\~{}aaubanel/}] % Fonts %% Chapters... \setupheads[align=flushleft] \setuphead[chapter][style={\tfd\bf}] \setuphead[section][style={\ssbfc}, header=nomarking] \setuphead[subsection][style={\ssbfb}] \setuphead[subsubsection][style={\bfa}] %\setuphead[section][textstyle=bold] % Bibliography options % BIBTEX \usemodule[bib] \setupbibtex[database=probabilitat,sort=author] \setuppublications [alternative=ams,sorttype=bbl, criterium=all]% era criterium=cite per a llistar només els citats% \setupheadtext[ca][pubs=Referències] \setuppublicationlist[authoretallimit=3] \setuppublicationlist[authoretaltext={\it\ et al.}] \setuppublicationlist[authoretaldisplay=1] %Indentation \setupheads[indentnext=yes] \setupindenting[yes,small,first] % Vertical spaces between paragraphs \setupwhitespace[none] %Itemize \setupitemize[each][identnext=yes,margin=0em] \setupitemize[each][headstyle=bold] % Mathematical packets \usemodule[newmat] % Modules \usemodule[tikz] \usetikzlibrary[mindmap,arrows,calc] %\usetikzlibrary[trees] % AMSTHM \defineenumeration [exercici] [text={\startcolor[middlecyan]Exercici\stopcolor},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em, stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,headstyle=\ss] % Table of contents %% dots between... and subsubsubsection are not listed \setupcombinedlist[content][level=4,alternative=c] %% section = bold. % width= 10mm --> less space between num-letter %% line break after section. \setuplist[section][style=bold,width=10mm] \setuplist[section][before=\blank] %% margin = 10 mm. Put the subsection just bottom section. \setuplist[subsection][margin=10mm,width=10mm] \setuplist[subsubsection][margin=20mm,width=10mm] % Set "Ãndex" like "Ãndex de continguts" \setupheadtext [ca] [content=Ãndex] % Heads and footers \setupfootertexts[{\tfx \pagenumber/\lastpage}] \setupfooter[text][before=\hrule] \setupheader[text][after=\hrule] \setupheadertexts[{\tfx IES Binissalem. Dept. Orientació}][{\tfx 4t C MAT. Tema 4 - Probabilitat. \currentdate}] % hyphenating \hyphenation{do-cu-ment} \hyphenation{subs-ti-tueix} \hyphenation{pro-ble-ma} \hyphenation{Ma-the-ma-tics} \hyphenation{Ma-the-ma-ti-cal} \hyphenation{es-crip-tu-ra} \hyphenation{ge-ne-ra-lit-za-ció} \hyphenation{va-ria-bles} % SPLIT \def\startsplit {\startalign} % no number by default \def\stopsplit {&\doalignNR[+][]\crcr % for a number on last line \stopalign} % GROUP FOR FORMULAS WITH CASES. \definemathmatrix[GROUP][left={\left\{\,}, right={\right.},align={left},style=\displaystyle,distance=0.2em] \setupformulas[align=middle] \setupitemize[each][margin=2em] % Start the text \starttext % TÃtol \startstandardmakeup \bigskip \bigskip \bigskip \bigskip \bigskip \bigskip \startalignment[middle] {\sc\switchtobodyfont[14pt] Unitat didà ctica }\par \thinrule {\switchtobodyfont[40pt] \bf \sc \startcolor[middleblue]Probabilitat\stopcolor}\par \stopalignment \vfill \thinrule \placefigure [force,none] [fig:latex-vs-context-version-etc] {Latex vs ConTeXt information} {\bTABLE[frame=off,align={middle,lohi}] \bTR[align={middle,lohi}] \bTD[align={middle,lohi}]{\switchtobodyfont[12pt] {\sc Programa de Diversificació Curricular} } \eTD \eTR \bTR \bTD[align={lohi,middle}] {\sc Versió: \currentdate} \eTD \eTR \eTABLE } %\vfill %\page[yes] \stopstandardmakeup % Format de marges \setuplayout[topspace=1cm,margin=1cm,header=1cm,footer=0.6cm,width=fit,height=fit,backspace=1.5cm] \completecontent \page % Introducció \section{Introducció} \subsection{O
Re: [NTG-context] itemize with columns in \startcolumns enviroment
En/na Wolfgang Schuster ha escrit: Am 11.04.10 13:01, schrieb Xan: For the other hand, can't columns be nested? No. Why not put in \startitemize code one "if": if there is _in_ a column environment,use \startsimplecolumns, Is it technically possible? Possible but not so simple as you think. Wolfgang Thanks anyway. 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 package for typesetting bibliographies
On Sun, 04 Apr 2010 20:43:43 -0600, Aditya Mahajan wrote: Just saw this on CTAN announce. http://www.tex.ac.uk/tex-archive/help/Catalogue/entries/librarian.html It says that it works with ConTeXt. The manual was done in LuaTeX! OTOH, from the link "Creating references thus depends entirely on the user's skill in TeX." So it's a package for TeXperts? Anyway, worth learning more, although I no longer use bib files but rather bbl with \start/stoppublication. Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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] Help needed: texshow-web/command reference
Patrick Gundlach wrote: Thanks for your help! A great big thank you! to you! 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MetaPost in TABLEs ?
On 11-4-2010 3:25, Steffen Wolfrum wrote: Hi all, In a book on construction engineering I found two kind of tables that presumably could be set very nicely in ConTeXt (see attachments). Set with MetaPost within natural tables? 1) Curly braces that span over cells: Their height should be depending to the cell's height (nr=2 oder nr=3). http://werksatz.com/attachments/braces.jpg 2) Arrows that are pointing from one cell to an other (middle or border of cell), http://werksatz.com/attachments/arrows.jpg To me this looks like standard purpose, that most like is already pre-defined somewhere in Metapost/MetaFun/ConTeXt (MkII please!) ... Is there any MetaPost guru out there that knows these cases? use textbackgrounds ... instead of drawing lines you then do a textext that does a \left{ in math alongside a vbox that has the height of the lefgt boundary etc etc - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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] Help needed: texshow-web/command reference
On 11-4-2010 3:45, Patrick Gundlach wrote: Hi all, the garden maintainers have moved the command reference from texshow-web (http://texshow.contextgarde.net) to the wiki, below the page http://wiki.contextgarden.net/Category:Reference/en This means, everybody can update the command reference now! Hooray! very nice The contents has been transferred automatically, but this process can lead to some unwanted formatting errors. To find these errors, we need your help: Everybody: please pick one random command from http://wiki.contextgarden.net/Category:Reference_Cleanup and make if this looks ok. If you are finished, please remove the first two lines from that page and save it. good plan! Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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] How to define your own math character (MK-IV)
On 11-4-2010 2:45, gummybears wrote: Hi, How to use definemathcommand to setup some of the missing math symbols ? Some of these symbols are defined in char-def.lua but missing in math-vfu.lua. if they are in the regular tex fonts, then we need to extend the vfu ... keep in mind that the vfu approach is just a placeholder for real math fonts ... we're not going to waste much time on hacks when eventually we will have proper uinicode math fonts. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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] MetaPost in TABLEs ?
Am 11.04.2010 um 17:51 schrieb Hans Hagen: > On 11-4-2010 3:25, Steffen Wolfrum wrote: >> Hi all, >> >> In a book on construction engineering I found two kind of tables that >> presumably could be set very nicely in ConTeXt (see attachments). Set with >> MetaPost within natural tables? >> >> 1) Curly braces that span over cells: Their height should be depending to >> the cell's height (nr=2 oder nr=3). >> http://werksatz.com/attachments/braces.jpg >> >> 2) Arrows that are pointing from one cell to an other (middle or border of >> cell), >> http://werksatz.com/attachments/arrows.jpg >> >> >> To me this looks like standard purpose, that most like is already >> pre-defined somewhere in Metapost/MetaFun/ConTeXt (MkII please!) ... >> >> Is there any MetaPost guru out there that knows these cases? > > use textbackgrounds ... instead of drawing lines you then do a textext that > does a \left{ in math alongside a vbox that has the height of the lefgt > boundary etc etc Thank you Hans! I can imagine that this fits on the first example. Do you also have an idea on the second case, the arrows from one table cell to another? (Does it has to be so complex as in metafun manual, page 140: "5.2 Anchors and layers"??) Steffen ___ 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] How to define your own math character (MK-IV)
On Sun, 11 Apr 2010, gummybears wrote: Hi, How to use definemathcommand to setup some of the missing math symbols ? Some of these symbols are defined in char-def.lua but missing in math-vfu.lua. math-vfu does not use definecommand. You need to find the font that contains that symbol, create a math vector containing mappings like [uncode slot] = [font slot] and add the math vector to define_math_font (don't remember the exact name). It may be faster if you tell which symbolsare missing (or wrong) in math-vfu and the name of the font that contains them (if you know that). If you give the list of missing symbols in small installments, I can update math-vfu to include them. Finding the missing symbols/mappings is the more time consuming step. 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] MetaPost in TABLEs ?
On 11-4-2010 6:10, Steffen Wolfrum wrote: Thank you Hans! I can imagine that this fits on the first example. Do you also have an idea on the second case, the arrows from one table cell to another? (Does it has to be so complex as in metafun manual, page 140: "5.2 Anchors and layers"??) positional graphics as mentioned in the metafun manual ... connecting points with arrows - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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] MetaPost in TABLEs ?
> use textbackgrounds ... instead of drawing lines you then do a textext that > does a \left{ in math alongside a vbox that has the height of the lefgt > boundary etc etc That would be really interesting for a project I'm working on (a songbook). I thought textbackgrounds could only put a color behind the text. Could you give an example of putting such a brace next to an arbitrary number of lines, please? Thank you in advance, Vianney ___ 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] MetaPost in TABLEs ?
Am 11.04.2010 um 18:31 schrieb Hans Hagen: > On 11-4-2010 6:10, Steffen Wolfrum wrote: > >> Thank you Hans! I can imagine that this fits on the first example. >> >> Do you also have an idea on the second case, the arrows from one table cell >> to another? >> (Does it has to be so complex as in metafun manual, page 140: "5.2 Anchors >> and layers"??) > > positional graphics as mentioned in the metafun manual ... connecting points > with arrows This is exactly the chapter I meant / feared of ... "We already warned the reader: this is not an easy chapter." (Hans Hagen 2002) ;o) Nevertheless I'll try my best. Just, even trying to run that example from the manual gives an error (MkII): ! The paths don't intersect. ; intersectionpoint->...The paths don't intersect"); origin.else:0.5[point.x_.o... ) l.148 ...= pab cutafter (pab intersectionpoint pb) ; pickup pencircle scaled... ? Steffen ___ 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] Help needed: texshow-web/command reference
> Help needed: texshow-web/command referenc Gladly started with this, but two questions arose: 1) What is "the standard"? What formatting errors too look for? Should they be evident or subtle? 2) Should the description be added before removing Reference_Cleanup? Foe example, \but wiki page looks meaningless without the descrption. http://wiki.contextgarden.net/Reference/en/but -- Best Regards, Vyatcheslav Yatskovsky ___ 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] Where to put MP macro?
Hello, Thanks to Taco, I have some progress in developing "guitar chord" command. My current trouble is how to develop the "mark" MP macro and where to put it? Inside startuseMPgraphic? \startuseMPgraphic{chordgrid}{e,B,G,D,A,E} drawoptions(withpen pencircle scaled 0.4pt withcolor black) ; draw hlingrid(0, 5, 1, 0.8cm, 1cm) ; draw vlingrid(0, 4, 1, 1cm, 0.8cm) ; draw mark(1,\MPvar{e}); draw mark(2,\MPvar{B}); draw mark(3,\MPvar{G}); draw mark(4,\MPvar{D}); draw mark(5,\MPvar{A}); draw mark(6,\MPvar{E}); \stopuseMPgraphic \define[6]\Ch {\dontleavehmode \useMPgraphic{chordgrid}{e={#1},B={#2},G={#3},D={#4},A={#5},E={#6}}% \hskip2mm} \starttext \Ch{1}{3}{1}{2}{1}{1} \stoptext -- Best Regards, Vyatcheslav Yatskovsky ___ 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] Help needed: texshow-web/command reference
Am 11.04.10 19:13, schrieb Vyatcheslav Yatskovsky: 2) Should the description be added before removing Reference_Cleanup? Foe example, \but wiki page looks meaningless without the descrption. http://wiki.contextgarden.net/Reference/en/but ConTeXt has no \but command although i think there was one in the past. \starttext \show\but \stoptext gives > \but=undefined. l.4 \show\but but mult-en.tex contains \setinterfacecommand{but}{but} When you miss a description add one, that’s the meaning of a wiki. 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] Why any substring is not find inside string?
Hello, Sorry for my beginners question. I am experimenting with CSV parsing and I have miscellaneous delimiters. Finding any delimiters is OK, but with any delimiters are problem - there are not to find inside string. Here is my minimal example: \starttext \startluacode text2split='"1";"GYZA";"382/2010";"482/2010";"402";"Májkova";"Barbora";"20.4.1995";"Zábřeh, Skalička 48";"789 53"' delim_from, delim_to = string.find(text2split, '";"') tex.sprint(tostring(delim_from),' - ', tostring(delim_to),'\\par') -- OK text2splitA='!1/;!GYZAs 482/2010/;!GYZA 382/2010/;!GYZA 482/2010/;!402/;!Májková/;!Barbora/;!ž/;!20.4.1995/;!Zábřeh/;!ČR/;!Mírov 69/;!Mírov/;!789 53/;!Májková/;!Michaela/;!Mírov 69/;!Mírov/;!789 53/;!/' delim_from, delim_to = string.find(text2splitA, '!;/') tex.sprint(tostring(delim_from),' - ', tostring(delim_to)) -- Not finding \stopluacode \stoptext Where is problem, where I making a mistake (I am beginning with Lua). Thanx Jaroslav Hajtmar ___ 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] Help needed: texshow-web/command reference
Hi Willi and all NTG members, I recently asked about if I can work off my annual NTG membership fee. Now I see great possibility for this. I can take an obligation to clean up *all* http://wiki.contextgarden.net/Category:Reference_Cleanup concerning http://archive.contextgarden.net/message/20100411.134521.3f2da72d.en.html -- Best Regards, Vyatcheslav Yatskovsky ___ 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] Help needed: texshow-web/command reference
Thank you for answer, Wolfgang. ConTeXt has no \but command although i think there was one in the past. I'm afraid you are wrong. See updated wiki page: http://wiki.contextgarden.net/Reference/en/but P.S. What about to wikify \show command itself? Or it is not ConTeXt command? Regards, Vyatcheslav ___ 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] Help needed: texshow-web/command reference
Am 11.04.10 20:16, schrieb Vyatcheslav Yatskovsky: Thank you for answer, Wolfgang. ConTeXt has no \but command although i think there was one in the past. I'm afraid you are wrong. See updated wiki page: http://wiki.contextgarden.net/Reference/en/but It's also available for itemize: \startitemize \but [content] ... \stopitemize I should include \let in my search next time. P.S. What about to wikify \show command itself? Or it is not ConTeXt command? It's a TeX primitive. 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] Why any substring is not find inside string?
Sorry ... I see it now.. When I created mimimal example I make mistake. J.Hajtmar Dne 11.4.2010 19:30, Jaroslav Hajtmar napsal(a): Hello, Sorry for my beginners question. I am experimenting with CSV parsing and I have miscellaneous delimiters. Finding any delimiters is OK, but with any delimiters are problem - there are not to find inside string. Here is my minimal example: \starttext \startluacode text2split='"1";"GYZA";"382/2010";"482/2010";"402";"Májkova";"Barbora";"20.4.1995";"Zábřeh, Skalička 48";"789 53"' delim_from, delim_to = string.find(text2split, '";"') tex.sprint(tostring(delim_from),' - ', tostring(delim_to),'\\par') -- OK text2splitA='!1/;!GYZAs 482/2010/;!GYZA 382/2010/;!GYZA 482/2010/;!402/;!Májková/;!Barbora/;!ž/;!20.4.1995/;!Zábřeh/;!ČR/;!Mírov 69/;!Mírov/;!789 53/;!Májková/;!Michaela/;!Mírov 69/;!Mírov/;!789 53/;!/' delim_from, delim_to = string.find(text2splitA, '!;/') tex.sprint(tostring(delim_from),' - ', tostring(delim_to)) -- Not finding \stopluacode \stoptext Where is problem, where I making a mistake (I am beginning with Lua). Thanx Jaroslav Hajtmar ___ 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 ___
Re: [NTG-context] Help needed: texshow-web/command reference
On 11.04.2010 22:34, ntg-context-requ...@ntg.nl wrote: Thank you for answer, Wolfgang. ConTeXt has no \but command although i think there was one in the past. I'm afraid you are wrong. See updated wiki page: http://wiki.contextgarden.net/Reference/en/but It's also available for itemize: \startitemize \but [content] ... \stopitemize Don't understand how to use it. Without \definerreference there is no difference form ordinary \item, but \definerreference gives an error. \setupinteraction [state=start] %\definerreference[content][] %gives error \starttext \startitemize \but [content] ... \stopitemize -- Best Regards, Vyatcheslav Yatskovsky ___ 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] Help needed: texshow-web/command reference
Am 2010-04-11 um 21:37 schrieb Vyatcheslav Yatskovsky: Don't understand how to use it. Without \definerreference there is no difference form ordinary \item, but \definerreference gives an error. \setupinteraction [state=start] %\definerreference[content][] %gives error \starttext \startitemize \but [content] ... \stopitemize Did you try \definereference ? ;-) Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] marginrule does not work properly in wiki
Hello, The following example does not work properly in wiki (the rule is missed), while in mkIV it's OK. \starttext \startmarginrule The sound of a duck is a good demonstration of how different people listen to a sound. Everywhere in Europe the sound is equal. But in every country it is described differently: kwaak||kwaak (Netherlands), couin||couin (French), gick||gack (German), rap||rap (Danish) and mech||mech (Spanish). If you speak these words aloud you will notice that in spite of the consonants the sound is really very well described. And what about a cow, does it say boe, mboe or mm? \stopmarginrule \stoptext http://wiki.contextgarden.net/Reference/en/startmarginrule Regards, Vyatcheslav ___ 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] difference between a and b alternatives in \blackrule
Hello, What is the difference between a and b alternatives in \blackrule? http://wiki.contextgarden.net/Reference/en/setupblackrules#Description Regards, Vyatcheslav ___ 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] marginrule does not work properly in wiki
Looks like I understood the reason. It's not visible because it's inside the margin, and wiki does margins. :) Am I right? Hello, The following example does not work properly in wiki (the rule is missed), while in mkIV it's OK. \starttext \startmarginrule The sound of a duck is a good demonstration of how different people listen to a sound. Everywhere in Europe the sound is equal. But in every country it is described differently: kwaak||kwaak (Netherlands), couin||couin (French), gick||gack (German), rap||rap (Danish) and mech||mech (Spanish). If you speak these words aloud you will notice that in spite of the consonants the sound is really very well described. And what about a cow, does it say boe, mboe or mm? \stopmarginrule \stoptext http://wiki.contextgarden.net/Reference/en/startmarginrule Regards, Vyatcheslav -- Best Regards, Vyatcheslav Yatskovsky ___ 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] Aligning text to bottom of page
Is there a command that will align the text that follows to the bottom of the page? Copyright pages are often oriented this way. Another example of this is the end of chapter page in "The TeXbook" by Knuth. Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ 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] difference between a and b alternatives in \blackrule
Am 12.04.10 00:07, schrieb Vyatcheslav Yatskovsky: Hello, What is the difference between a and b alternatives in \blackrule? http://wiki.contextgarden.net/Reference/en/setupblackrules#Description Can you see it? \setupblackrules[width=2cm] \starttext text \blackrules[alternative=a] tex\par text \blackrules[alternative=b] text \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] Aligning text to bottom of page
On Mon, Apr 12, 2010 at 4:12 AM, Tom wrote: > Is there a command that will align the text that follows to the bottom of > the page? Copyright pages are often oriented this way. Another example of > this is the end of chapter page in "The TeXbook" by Knuth. > Hi Tom, I usually do something like \page[yes] \mbox{} \vfill This is aligned at bottom. \page[yes] /Mikael ___ 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 ___