Re: [NTG-context] Tikz updated in minimals but file does not compile
2009/3/17 Want to Learn wrote: > Thanks Wolfgang. I suppose you mean that I need the beta version and not the > stable version. Anyhow, I downloaded the beta version and tried to install > tikz > with the command Mojca mentioned in his post. Everything seemed to go on > fine. > But when I tried to compile the following simple file I get an error. Hello, the "Want to Learn", Since the main discussion with developers has been moved off-list, this is just to let you know that there have recently been changes in both TikZ and ConTeXt core, so at least for me TikZ works now with simple graphics with ConTeXt beta and latest TikZ (that version is included in the minimals). Mojca ___ 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] Number and name of a section
I try to get number and name of the current chapter into my page header. Unfortunately, ConTeXt (MkIV) disagrees with itself about what's "current" - if several chapters start on the same page, I get the name of the first and the number of the last one. I know I can influence the name with the second parameter of \getmarking, but how do I get the *number* of the first chapter on this page? (You can argue it doesn't make sense to start several chapters on one page, but it's the same with sections.) \setupheadertexts[\setups{kapitel}] \startsetups[kapitel] \framed[frame=off, bottomframe=on, width=\textwidth, strut=yes]{% \rlap{\headnumber[chapter]. \getmarking[chapter]} \hfill \strut \hfill \llap{\pagenumber} } \stopsetups Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) PGP.sig Description: Signierter Teil der Nachricht ___ 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] Number and name of a section
Henning Hraban Ramm wrote: I try to get number and name of the current chapter into my page header. Unfortunately, ConTeXt (MkIV) disagrees with itself about what's "current" - if several chapters start on the same page, I get the name of the first and the number of the last one. is this cont-xp or the regular version - 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Number and name of a section
Am 2009-03-21 um 17:35 schrieb Hans Hagen: Henning Hraban Ramm wrote: I try to get number and name of the current chapter into my page header. Unfortunately, ConTeXt (MkIV) disagrees with itself about what's "current" - if several chapters start on the same page, I get the name of the first and the number of the last one. is this cont-xp or the regular version latest stable - I need registers. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) PGP.sig Description: Signierter Teil der Nachricht ___ 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] Value of Metapost variable as a label
Hello, First of all, Mojca thanks very much for the update about TikZ. (I could not find an option to reply in Context Garden mailing list). My new question is the following. I have the following code to generate the labels for the tick marks: for i = 0 step 5 until 45: draw (i,0)*u -- (i,-0.2)*u; label.bot(decimal(i) ,(i,-0.2)*u); endfor; As you can see I use "decimal(i)" to get the labels (0,5,10,... and so on). But the font of these numbers is not the same as when I use the "btex label_text etex" command, which I have set to palatino. How can I typeset the value of Metapost variables (such as "i" in this case), using tex commands. For example, if I had to typeset (n_{1},n{2},...,n_{100}), how could I do that. On page 63 of John Hobby's metapost manual, he talks about how this could be achieved using TEX.mp. I tried typing \input TEX before \starttext, however, I get the error "I can't find file `TEX;' If I put it within the \startuseMPgraphic and \stopuseMPgraphic, it still does not work. Do I have to download this from somewhere or does Context have another solution? Thanks 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Setting framed
Hi all, in my text each section ends with an one-line box so I used \framed (thinking that's the right way). How to put each box at the same distance from last previous line even it comes after a list, a table, a regular text...? There is an the option to set the \framed's font globally? Thanks in advance -- Diego Depaoli ___ 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] Value of Metapost variable as a label
On Sat, 21 Mar 2009, Curiouslearn wrote: Hello, First of all, Mojca thanks very much for the update about TikZ. (I could not find an option to reply in Context Garden mailing list). My new question is the following. I have the following code to generate the labels for the tick marks: for i = 0 step 5 until 45: draw (i,0)*u -- (i,-0.2)*u; label.bot(decimal(i) ,(i,-0.2)*u); endfor; As you can see I use "decimal(i)" to get the labels (0,5,10,... and so on). But the font of these numbers is not the same as when I use the "btex label_text etex" command, which I have set to palatino. How can I typeset the value of Metapost variables (such as "i" in this case), using tex commands. label.bot (textext(decimal(i)), (...)) ; For example, if I had to typeset (n_{1},n{2},...,n_{100}), how could I do that. label.bot (textext("$n_{" & decimal i & "}"), ... ) ; etc. On page 63 of John Hobby's metapost manual, he talks about how this could be achieved using TEX.mp. I tried typing \input TEX before \starttext, however, I get the error "I can't find file `TEX;' If I put it within the \startuseMPgraphic and \stopuseMPgraphic, it still does not work. Do I have to download this from somewhere or does Context have another solution? Use textext. 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] Dividing dimensions
Hi, Can I divide dimensions to get a number in pdftex? I have four dimensions \!!dimena, \!!dimenb, \!!dimenc and \!!dimend, and I want if (dimena/dimenb) > (dimenc/dimend) do something else do otherthing Any hints on how to do this in ConTeXt. Thanks, 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 ___
Re: [NTG-context] Dividing dimensions
> Can I divide dimensions to get a number in pdftex? LaTeX has a package to do exactly that, fp. You could look into its code. Or you could use LuaTeX :-) Arthur ___ 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] Value of Metapost variable as a label
Aditya Mahajan umich.edu> writes: > > For example, if I had to typeset (n_{1},n{2},...,n_{100}), how > > could I do that. > > label.bot (textext("$n_{" & decimal i & "}"), ... ) ; Thanks Aditya. That works great. ___ 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] Dividing dimensions
Am 21.03.2009 um 23:26 schrieb Arthur Reutenauer: Can I divide dimensions to get a number in pdftex? LaTeX has a package to do exactly that, fp. You could look into its code. Or you could use LuaTeX :-) It's easy to do with etex but I would use lua if possible. \starttext \unprotect \!!dimena=1cm \!!dimenb=2cm \!!dimenc=1cm \!!dimend=3cm \ifdim\dimexpr\!!dimena*100/\!!dimenb\relax>\dimexpr\!!dimenc*100/\!! dimend\relax this \else that \fi \!!dimend=1cm \ifdim\dimexpr\!!dimena*100/\!!dimenb\relax>\dimexpr\!!dimenc*100/\!! dimend\relax this \else that \fi \protect \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Dividing dimensions
On Sat, 21 Mar 2009, Wolfgang Schuster wrote: Am 21.03.2009 um 23:26 schrieb Arthur Reutenauer: Can I divide dimensions to get a number in pdftex? LaTeX has a package to do exactly that, fp. You could look into its code. Or you could use LuaTeX :-) It's easy to do with etex but I would use lua if possible. \starttext \unprotect \!!dimena=1cm \!!dimenb=2cm \!!dimenc=1cm \!!dimend=3cm \ifdim\dimexpr\!!dimena*100/\!!dimenb\relax>\dimexpr\!!dimenc*100/\!!dimend\relax this \else that \fi Ah. I was using \dimexpr\!!dimena/\!!dimenb with crazy results. So the trick is to mulitply by a number in between. Thanks Wolfgang. 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 ___
Re: [NTG-context] Dividing dimensions
Am 21.03.2009 um 23:49 schrieb Aditya Mahajan: \ifdim\dimexpr\!!dimena*100/\!!dimenb\relax>\dimexpr\!! dimenc*100/\!!dimend\relax this \else that \fi Ah. I was using \dimexpr\!!dimena/\!!dimenb with crazy results. So the trick is to mulitply by a number in between. Thanks Wolfgang. Yes because you're working with integers and dividing a number by a bigger number results in zero (that's why you could also use \numexpr above). 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Dividing dimensions
Dnia Sat, Mar 21, 2009 at 06:08:41PM -0400, Aditya Mahajan napisał(a): > Hi, > > Can I divide dimensions to get a number in pdftex? > > I have four dimensions \!!dimena, \!!dimenb, \!!dimenc and \!!dimend, and > I want > > if (dimena/dimenb) > (dimenc/dimend) > do something > else > do otherthing What about if (dimena*dimend) > (dimenc*dimenb) ... ? If dimenb and dimend are positive, this should be equivalent (assuming you don't run into overflow). > Any hints on how to do this in ConTeXt. > > Thanks, > Aditya Regards -- Marcin Borkowski (http://mbork.pl) Ja nie chcę czytać tych głupich gazet I wymyślonych oglądać historii. (Chili My) ___ 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] Is \index command broken?
Hi, I tried using the \index command in my document: \starttext \type{\textext()} \index[textext]{\textext} To typeset metapost variable values (not the verbatim text) using \TEX\ markup, use this command. \page \completeindex \stoptext However, no index is created. The log file gives the following information about the version: This is LuaTeX, Version snapshot-0.35.0 (LearnMetaPost.tex ConTeXt ver: 2009.03.18 21:58 MKIV fmt: 2009.3.19 int: english/english 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Is \index command broken?
Am 22.03.2009 um 02:13 schrieb Curious Learn: I tried using the \index command in my document: However, no index is created. Hi curious who wants to learn but is still unable to use the list archive. http://www.ntg.nl/pipermail/ntg-context/2009/038198.html http://www.ntg.nl/pipermail/ntg-context/2009/037891.html http://www.ntg.nl/pipermail/ntg-context/2009/037365.html 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Dividing dimensions
On Sun, 22 Mar 2009, Marcin Borkowski wrote: Dnia Sat, Mar 21, 2009 at 06:08:41PM -0400, Aditya Mahajan napisał(a): Hi, Can I divide dimensions to get a number in pdftex? I have four dimensions \!!dimena, \!!dimenb, \!!dimenc and \!!dimend, and I want if (dimena/dimenb) > (dimenc/dimend) do something else do otherthing What about if (dimena*dimend) > (dimenc*dimenb) ... ? If dimenb and dimend are positive, this should be equivalent (assuming you don't run into overflow). I tried that, but that leads to overflow. 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 ___
Re: [NTG-context] Is \index command broken?
Wolfgang Schuster googlemail.com> writes: > > Hi curious who wants to learn but is still unable to use the list > archive. > > http://www.ntg.nl/pipermail/ntg-context/2009/038198.html > http://www.ntg.nl/pipermail/ntg-context/2009/037891.html > http://www.ntg.nl/pipermail/ntg-context/2009/037365.html > > Wolfgang > Hi Wolfgang, That was funny. Thanks for the links to the posts and thanks for being patient with me. ___ 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 ___