Re: [NTG-context] Arithmetic Overflow
David Arnold wrote: I found warningcheck:=0. Anything allow me to get even bigger numbers to work? Not easily. There is a set of macros for arbitrary calculation using strings instead of integers (sarith), and for Mlog encoded numbers (marith). That might help, but it will mean quite some changes to your code. There is some explanation on the top of "sarith.mp" and "marith.mp", which should be on your system already. Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] colors in MPgraphic
In MPgrapic I do want my own colors for drawing lines etc. These are set up in plain.mf's ("_op_" and "background"). In \startMPinclusions I just do that in order to get the drawing color I want. But then \startMPgraphic appears to reset colors (both "_op_" and "background" I suspect). Can this be changed? In plain.mf there is already a setup, so there seems no reason for \startMPgraphic to interfere. It would be nice if the color setup done in \startMPinclusions would be honored. It is a nuisance to have them set up in a special initalization file and then being forced to repeat this at the start of every graphic. Question: what tinkering with metapost parameters is done in \startMPgraphic exactly? (I could not find out readily from the ConTeXt sources) Which of these can be removed without danger for its operation, leaving settings in \startMPinclusions unchanged -- and will that be done? yours sincerely, dr. H. van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Bibliography module +BibteX with \cite inside buffer
When I put a \cite inside buffer and that I \getbuffer inside the text, the reference displys correctly BUT the list of reference isn't anymore displayed.(I use Bibtex) I have the latest bibmodule (11.23.2005) Is that a bug ? Hos to avoid this behaviour ? (I'm a beginner). Thanks ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] present for mojca
Hans, great! I love the design (including the fact that one graphic can be reused with multiple "terminals"). Just a few comments: replace \immediate\write\scratchwrite{set terminal "\@@GNUPLOTmethod"}% with \immediate\write\scratchwrite{set terminal \@@GNUPLOToutput}% (No quotes and ps should be postscript.) {\executesystemcommand{start gnuplot #1.gpd}} Here both "guplot filename" and "start gnuplot filename" work equally well (but even if "start" is left there, I would rename "pgnuplot" into "gnuplot"). Something is terribly wrong with the windows machine I'm currently working on, but on linux it worked OK (except for problems with text in the metapost sample, but I have to figure out what went wrong first). When executing these lines on MikTeX: {\doifelse\operatingsystem{mswin} {\executesystemcommand{start gnuplot \GNUPLOTfile.gpd}\message{[win]}} {\executesystemcommand{gnuplot \GNUPLOTfile.gpd}\message{[lin]}}} I got [lin] a couple of times and no traces of any gnuplot work (though gnuplot compiled the two remaining files ok when called separately). But this has nothing to do with the module itself. Most probably problem with permissions. write18 was enabled. On 1/5/06, Hans Hagen wrote: > Mojca Miklavec wrote: > > did \def\par{;} work out ok? No, it didn't. Neither under linux nor under windows. So this remains the only serious thing to fix. The example you sent worked (almost) OK, but since it had only one line in the \startGNUPLOTinclusions. As soon as I add set terminal mp color (which only overrides the already defined "set terminal mp" on the proper place, so it's OK) I get: set terminal mp ^M set title trigonometry^Mset terminal mp color^M set output "m-gnuplot-gnuplot-1-mp" ^Mplot sin(x)^M quit gnuplot didn't complain about ^M, but it can't have more than one line compressed in one. > >The problem is not in \def\par{} I guess. It doesn't have any > >influence on the way how input lines appear in the file. Even if I > >redefined the \par and put strange chars in there, it didn't have any > >influence. > > > > > strange, maybe i have a better tex binary ;) It's 1.30.0 on linux (from your distribution) and 1.21a under MikTeX. > ok, quit then > > >2. The default file extension is .plt (instead of gpd; the ending > >really doesn't matter, but this one is recognized by default when you > >"open file" from gnuplot) > > > hm, we don't want to overwrite files, do we? Does the ending matter in (not)overwriting files? I would only change \immediate\openout\scratchwrite=\GNUPLOTfile.gpd into \immediate\openout\scratchwrite=\GNUPLOTfile.plt (or even \scratchwrite=\GNUPLOTfile-\@@GNUPLOTsuffix.plt, so that the files don't overwrite each other) and gnuplot \GNUPLOTfile.gpd into gnuplot \GNUPLOTfile.plt but that's only cosmetics, doesn't really change the functionality. > that's a big list ... why isn't there a context mode? Perhaps because nobody (including me) knew that there's a module to support gnuplot inside ConTeXt source :). Well ... after I spent approximately 2 or 3 hours to figure out how to compile it I started writing the code. It's true that it's tempting to do just anything else except learning during the period of exams, but it will nevertheless take me some time to finish, so please don't expect anything that soon. Besides that: PDF support has been written 5 years ago and it is still not present in standard binaries. I have no idea how much time is needed once the support is written so that: - a new version appears - it's included in distributions - people/admins upgrade the software > >PS: Does this module really mean that I have no more excuses for not > >finishing my report(s) for physics in time? ;) > > > no, worse, you now can finish it faster > > see attached file (bottom of file); should be enough to get your reports > done So ... I have to get back to work then ;) Thanks again, Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] colors in MPgraphic
> Question: what tinkering with metapost parameters is done in > \startMPgraphic exactly? (I could not find out readily from the > ConTeXt sources) > Which of these can be removed without danger for its operation, > leaving settings in \startMPinclusions unchanged -- and will that be > done? Hans will probably answer you better, but in http://source.contextgarden.net/metafun.mp there are files with metafun macros included which may set their own colors. See those files. I doubt that any definitions can be removed without breaking anything (otherwise they wouldn't be there), but I agree that MPinclusions could/should be included AFTER metafun macros if they're not (I didn't check). Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] mode dependend character handling
(This mail was rejected as spam in my first try, and the reject message was catched by my spam filter...) A happy new year! I'd like to typeset a text in both German and Swiss German orthography, i.e. I'd like to expand "s (or the like) to ß in German and ss in Swiss German mode, or even better, automagically change ß to ss in Swiss mode. This is what I have: \startmode[swiss] \def\S#1{ss\relax} \stopmode \startnotmode[swiss] \def\S#1{\sz\relax} \stopnotmode That forces me to use \S{} in the middle of words, very ugly. I know this is possible in a more sophisticated way! Please? (My favorite solution would be to make ß expand to ss in Swiss mode.) Grüßlis vom Hraban! --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] serial definition
(This mail was rejected as spam in my first try, and the reject message was catched by my spam filter...) Am 2006-01-03 um 11:51 schrieb Taco Hoekwater: You need to expand the \Set commands in that first loop, otherwise you store the literal token \recursevelel inside the definitions of the Key and Val macros (\setvalue{}{} autoexpands its first argument, but not its second argument). When not inside a recursion, \recurselevel expands to the number 0 (zero) in the "manual bit", and you are actually re-evaluating the macro using the then current \recurselevel definition when inside the "looping" bit. The magic expansion hit me again, I should've known it. So you need: \dostepwiserecurse{1}{9}{1}{ \expanded{\Set{\recurselevel}{K\recurselevel}{V\recurselevel}} } I hope this is clear enough? Thank you very much! Actually, in the real environment I needed the \expanded at another place: \def\Sender#1#2#3{\setvalue{SenderKey#1}{#2}\setvalue{SenderVal#1}{#3}} \def\GetSenderLine#1{\bTR\bTD\doiftextelse{\getvalue{SenderKey#1}} {\getvalue{SenderKey#1}:}{}\eTD\bTD\getvalue{SenderVal#1}\eTD\eTR} % initialize values (not even needed) \dostepwiserecurse{1}{9}{1}{ \Sender{\recurselevel}{}{} } \startsetups sendertablesetup \setupTABLE[frame=off] \setupTABLE[x][1][width=\senderkeywidth, align=left, style={\keystyle \strut}] \setupTABLE[x][2][width=\sendervalwidth, align=right, style= {\valstyle\strut}] \bTABLE \dostepwiserecurse{1}{9}{1}{% count from 1 to 9, step 1 \expanded{\GetSenderLine{\recurselevel}} } \eTABLE \stopsetups I collect this (and more) at http://wiki.contextgarden.net/ Talk:Letter_style Grüßlis vom Hraban! --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] colors in MPgraphic
Mojca Miklavec wrote: Question: what tinkering with metapost parameters is done in \startMPgraphic exactly? (I could not find out readily from the ConTeXt sources) Which of these can be removed without danger for its operation, leaving settings in \startMPinclusions unchanged -- and will that be done? Hans will probably answer you better, but in http://source.contextgarden.net/metafun.mp there are files with metafun macros included which may set their own colors. See those files. I doubt that any definitions can be removed without breaking anything (otherwise they wouldn't be there), but I agree that MPinclusions could/should be included AFTER metafun macros if they're not (I didn't check). (1) metafun is a format and will be loaded first (2) inclusion scome after loading the format (3) context only sets a bunch of variables which tell metafun certain things i'm not sure what you mean with tinkering what parameters give you problems? concerning backgrounds and plain.mf ... metafont has bacckgrounds, metapost doesn't ; in mp the background is used for unfilling if you want to set the background / add own stuff you can probably best append the relevant settings / definitions to the extra_beginfig string (grep for that one) Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] colors in MPgraphic
Hans van der Meer wrote: In MPgrapic I do want my own colors for drawing lines etc. These are set up in plain.mf's ("_op_" and "background"). In \startMPinclusions I just do that in order to get the drawing color I want. But then \startMPgraphic appears to reset colors (both "_op_" and "background" I suspect). The resetfig() macro from metafun clears "_op_" and "background". I don't know why, but there''' be a reason for it, I am sure ;-) There almost certainly is an 'official' way to add some statements to the beginning of each figure, but, in any case, it works if you store your settings in extra_beginfig: \startMPinclusions extra_beginfig := "drawoptions(withcolor green)"; \stopMPinclusions Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Bibliography module +BibteX with \cite inside buffer
Alexandre Billon wrote: When I put a \cite inside buffer and that I \getbuffer inside the text, the reference displys correctly BUT the list of reference isn't anymore displayed.(I use Bibtex) I have the latest bibmodule (11.23.2005) Is that a bug ? Hos to avoid this behaviour ? (I'm a beginner). That does not immediately ring a bell. Could be a bug, but I can't be sure how/what. Can you create a minimal example? Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] mode dependend character handling
Henning Hraban Ramm wrote: (This mail was rejected as spam in my first try, and the reject message was catched by my spam filter...) No doubt that's why spam for medication is so popular: you need the medication to cope with the rest of the spam. A happy new year! Likewise! I'd like to typeset a text in both German and Swiss German orthography, i.e. I'd like to expand "s (or the like) to ß in German and ss in Swiss German mode, or even better, automagically change ß to ss in Swiss mode. The correct way would be to define swiss as a language, because then you can put a suitable redefinition inside the language specifics, but the following hack will work as well and is a lot faster to implement (please don't tell anyone I proposed this): \enableregime[il1] \let\normalssharp\ssharp \def\ssharp{\doifmodeelse{swiss}{ss}{\normalssharp}} \starttext {\enablemode[swiss] Grüßlis} Grüßlis \stoptext Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Bibliography module +BibteX with \cite inside buffer
After checking, buffers are not the problem : i just cannot get a list of references as soon as my text contains more than one \cite ! (the example below doesn't display the list) I guess i didn't install things right.?.?.. Sorry for misinterpreting my problem. And thanks for your help. -testtaco.tex : \usemodule[bib] \setuppublications[refcommand=authoryears] \setupbibtex [database={testtacobib}] \starttext After checking, the buffers have nothing to do with my problem, the list of reference only displays if I cite less than 2 references (eg. \cite[achinstein2001] and \cite[allen2004]). I guess my installation isn't proper. Moreover, the references with more than one author ( Mr X and Mr Y...) do not apear properly. \completepublications \stoptext -testtacobib.bib : @BOOK{achinstein2001, title = {The book of evidence}, publisher = {Oxford University Press}, year = {2003}, author = {Peter Achinstein}, } @ARTICLE{allen2004, author = {Paul P. Allen and M. Collins}, title = {Misattribution of External Speech in Patients with Hallucinations and Delusions}, journal = {Schizophrenia Research}, year = {2004}, pages = {277-287}, } 2006/1/6, Taco Hoekwater <[EMAIL PROTECTED]>: Alexandre Billon wrote:> When I put a \cite inside buffer and that I \getbuffer inside the text,> the reference displys correctly BUT the list of reference isn't anymore> displayed.(I use Bibtex) I have the latest bibmodule ( 11.23.2005)> Is that a bug ? Hos to avoid this behaviour ? (I'm a beginner).That does not immediately ring a bell. Could be a bug, but I can'tbe sure how/what. Can you create a minimal example? Taco___ntg-context mailing listntg-context@ntg.nlhttp://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Bibliography module +BibteX with \cite inside buffer
Alexandre Billon wrote: [...] Moreover, the references with more than one author ( Mr X and Mr Y...) do not apear properly. That was a bug hint for me. :-) Please update your context distribution first, then re-install the bib module beta. It should work after that (I am almost 100% certain that you are running a context that is too old). Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] mode dependend character handling
Henning Hraban Ramm wrote: > I'd like to typeset a text in both German and Swiss German orthography, > i.e. I'd like to expand "s (or the like) to ß in German and ss in > Swiss German mode, If everything is set OK in the regime you're using, this should work: \startmode[swiss] \definecharacter ssharp {ss} \stopmode Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] framed texts
I want to put to some paragraphs, each as framed text, on one line. Such as: \startframedtext[width=...] para 1 \startitemize etc \stopframedtext \startframedtext[width=...] para 2 \startitemize etc \stopframedtext I tried some things but the two frames will not come out on one line. How to do this? yours sincerely, dr. H. van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] framed texts
Hans van der Meer wrote: > I want to put to some paragraphs, each as framed text, on one line. > Such as: > > \startframedtext[width=...] > para 1 > \startitemize > etc > \stopframedtext > \startframedtext[width=...] > para 2 > \startitemize > etc > \stopframedtext > > I tried some things but the two frames will not come out on one line. > How to do this? > \placesidebyside (context manual p.228) should work. A \hbox is another option, but maybe too unhandy for this. Greetings, Peter > yours sincerely, > dr. H. van der Meer > > > > ___ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > > ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Marith.mp
All, Has anyone done any coding with the marith.mp package of Metapost? Any code that you can share? My specific task is to draw the polynomial x^3-7*x^2+7*x+15 on the domain [-50,50]. Thanks. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] colors in MPgraphic
Taco Hoekwater wrote: Hans van der Meer wrote: In MPgrapic I do want my own colors for drawing lines etc. These are set up in plain.mf's ("_op_" and "background"). In \startMPinclusions I just do that in order to get the drawing color I want. But then \startMPgraphic appears to reset colors (both "_op_" and "background" I suspect). The resetfig() macro from metafun clears "_op_" and "background". I don't know why, but there''' be a reason for it, I am sure ;-) sure -) [i need to think a bit] There almost certainly is an 'official' way to add some statements to the beginning of each figure, but, in any case, it works if you store your settings in extra_beginfig: \startMPinclusions extra_beginfig := "drawoptions(withcolor green)"; \stopMPinclusions maybe best is to append instead of assign Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] colors in MPgraphic
On Jan 6, 2006, at 15:19, Taco Hoekwater wrote: There almost certainly is an 'official' way to add some statements to the beginning of each figure, but, in any case, it works if you store your settings in extra_beginfig: \startMPinclusions extra_beginfig := "drawoptions(withcolor green)"; \stopMPinclusions Didn't know about extra_beginfig but that did the trick. Thanks! yours sincerely, dr. H. van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] colors in MPgraphic
On Jan 6, 2006, at 18:56, Hans Hagen wrote: There almost certainly is an 'official' way to add some statements to the beginning of each figure, but, in any case, it works if you store your settings in extra_beginfig: \startMPinclusions extra_beginfig := "drawoptions(withcolor green)"; \stopMPinclusions maybe best is to append instead of assign I am not sure about the exact syntax of that append. Is there a special macro in the context/metafun package or is it extra_beginfig := extra_beginfig&"drawoptions(withcolor green)";? yours sincerely, dr. H. van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] paragraph indenting
On Fri, 6 Jan 2006, Christopher G D Tipper wrote: > \setupindenting[small] \setupindenting[small,yes] Cheers, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] problem with \startlanguagespecifics
Hello, I get: ERROR: TeX capacity exceeded, sorry [input stack size=1500]. --- TeX said --- \@@[EMAIL PROTECTED]@-en@@la ->\@@[EMAIL PROTECTED]@-en@@la \def \Fuco {fff} and so on... with the following input file: \mainlanguage[de] \def\Fuco{FFF} \startlanguagespecifics[en] \def\Fuco{fff} \stoplanguagespecifics \starttext \Fuco {\language[en] \Fuco} \Fuco \stoptext but very strange: when I exchange "de" and "en" (en <-> de), then it works well. Greetings, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] paragraph indenting
Hi, I hope this is not a bug, and that the reference manual is just incorrect. In This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5) (format=cont-en 2005.12.24) 6 JAN 2006 20:07 ConTeXt ver: 2005.12.19 fmt: 2005.12.24 int: english mes: english The following produces no indenting at all. I expect all paragraphs to be indented except for the very first. \starttext \setupindenting[small] \noindenting\input knuth \input knuth \stoptext Some of my very old stylesheets stopped working when I moved to a new machine. What is the new syntax, please? Christopher o00o “Since light travels faster than sound, isn’t that why some people appear bright until you hear them speak” — Steve Wright ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] framed texts
On Jan 6, 2006, at 18:20, Peter Rolf wrote: Hans van der Meer wrote: I want to put to some paragraphs, each as framed text, on one line. Such as: \startframedtext[width=...] para 1 \startitemize etc \stopframedtext \startframedtext[width=...] para 2 \startitemize etc \stopframedtext I tried some things but the two frames will not come out on one line. How to do this? \placesidebyside (context manual p.228) should work. A \hbox is another option, but maybe too unhandy for this. Greetings, Peter No, that will not work. After much probing I found the culprit. The framedtext takes the full linewidth and apparently does not reduces it to the given size. Therefore enclosing in a vbox seems necessary: \vbox{\hsize=framesize\startframedtext{width=framesize ... Question for Hans Hagen: is it an option letting framedtext set the hsize when a specific width is given? yours sincerely, dr. H. van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] problem with \startlanguagespecifics
� wrote: Hello, I get: ERROR: TeX capacity exceeded, sorry [input stack size=1500]. --- TeX said --- \@@[EMAIL PROTECTED]@-en@@la ->\@@[EMAIL PROTECTED]@-en@@la \def \Fuco {fff} and so on... with the following input file: \mainlanguage[de] \def\Fuco{FFF} \startlanguagespecifics[en] \def\Fuco{fff} \stoplanguagespecifics \starttext \Fuco {\language[en] \Fuco} \Fuco \stoptext but very strange: when I exchange "de" and "en" (en <-> de), then it works well. both work ok here; i think i fixed that a while ago so i need to update the zips Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] paragraph indenting
Christopher G D Tipper wrote: Hi, I hope this is not a bug, and that the reference manual is just incorrect. In This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5) (format=cont-en 2005.12.24) 6 JAN 2006 20:07 ConTeXt ver: 2005.12.19 fmt: 2005.12.24 int: english mes: english The following produces no indenting at all. I expect all paragraphs to be indented except for the very first. \starttext \setupindenting[small] \noindenting\input knuth \input knuth \stoptext \setupindenting[small,yes] % small sets it, yes enables it btw in you rexample you hav eonly one paragraph Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] paragraph indenting
On 6 Jan 2006, at 20:52, Peter Münster wrote: \setupindenting[small] \setupindenting[small,yes] That doesn't seem to work. Is the reference manual out-of-date? Christopher Cheers, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context o00o “Since light travels faster than sound, isn’t that why some people appear bright until you hear them speak” — Steve Wright ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] paragraph indenting
http://wiki.contextgarden.net/FAQ#.5Csetupindenting.5Bmedium.5D_doesn. 27t_work.3F HTH Thomas On Jan 6, 2006, at 9:16 PM, Christopher G D Tipper wrote: Hi, I hope this is not a bug, and that the reference manual is just incorrect. In This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5) (format=cont-en 2005.12.24) 6 JAN 2006 20:07 ConTeXt ver: 2005.12.19 fmt: 2005.12.24 int: english mes: english The following produces no indenting at all. I expect all paragraphs to be indented except for the very first. \starttext \setupindenting[small] \noindenting\input knuth \input knuth \stoptext Some of my very old stylesheets stopped working when I moved to a new machine. What is the new syntax, please? Christopher o00o “Since light travels faster than sound, isn’t that why some people appear bright until you hear them speak” — Steve Wright ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] paragraph indenting
On 6 Jan 2006, at 21:03, Hans Hagen wrote: In This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5) (format=cont-en 2005.12.24) 6 JAN 2006 20:07 ConTeXt ver: 2005.12.19 fmt: 2005.12.24 int: english mes: english \setupindenting[small,yes] % small sets it, yes enables it btw in you rexample you hav eonly one paragraph I am truly sorry but this solution does not work for me. And if you try the example it has six paragraphs. Christopher Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context o00o “Since light travels faster than sound, isn’t that why some people appear bright until you hear them speak” — Steve Wright ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] colors in MPgraphic
Hans van der Meer wrote: I am not sure about the exact syntax of that append. Is there a special macro in the context/metafun package or is it extra_beginfig := extra_beginfig&"drawoptions(withcolor green)";? that's indeed an append (or actually a concat) Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] paragraph indenting
On 1/6/06, Christopher G D Tipper <[EMAIL PROTECTED]> wrote: > > > > \setupindenting[small,yes] % small sets it, yes enables it > > > > btw in you rexample you hav eonly one paragraph > > I am truly sorry but this solution does not work for me. And if you > try the example it has six paragraphs. > It does NOT work for me. In PDF I see 5 non-idented paragraphs ! I use: TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 tex : pdfeTeX, 3.141592-1.30.5-2.2 (Web2C 7.5.5) context : ver: 2005.12.19 cont-en : ver: 2005.12.19 fmt: 2005.12.19 mes: english -- http://vnoss.org Vietnamese Open Source Software Community ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] serial definition
Hi Hraban, Hans, Taco, I followed this thread with interest. By coincidence I was struggling with this kind of problem during the last days. Thanks so much for this educative example! In my case I have to fill in a table with the information concerning parcels to be sent. Some times there is a single one sometimes there are multiple pieces. For each of the parcels I have to fill in a table-row. And voilà! The community cooked up the pieces I missed. Thanks again. Willi Henning Hraban Ramm wrote: (This mail was rejected as spam in my first try, and the reject message was catched by my spam filter...) Am 2006-01-03 um 11:51 schrieb Taco Hoekwater: You need to expand the \Set commands in that first loop, otherwise you store the literal token \recursevelel inside the definitions of the Key and Val macros (\setvalue{}{} autoexpands its first argument, but not its second argument). When not inside a recursion, \recurselevel expands to the number 0 (zero) in the "manual bit", and you are actually re-evaluating the macro using the then current \recurselevel definition when inside the "looping" bit. The magic expansion hit me again, I should've known it. So you need: \dostepwiserecurse{1}{9}{1}{ \expanded{\Set{\recurselevel}{K\recurselevel}{V\recurselevel}} } I hope this is clear enough? Thank you very much! Actually, in the real environment I needed the \expanded at another place: \def\Sender#1#2#3{\setvalue{SenderKey#1}{#2}\setvalue{SenderVal#1}{#3}} \def\GetSenderLine#1{\bTR\bTD\doiftextelse{\getvalue{SenderKey#1}} {\getvalue{SenderKey#1}:}{}\eTD\bTD\getvalue{SenderVal#1}\eTD\eTR} % initialize values (not even needed) \dostepwiserecurse{1}{9}{1}{ \Sender{\recurselevel}{}{} } \startsetups sendertablesetup \setupTABLE[frame=off] \setupTABLE[x][1][width=\senderkeywidth, align=left, style={\keystyle \strut}] \setupTABLE[x][2][width=\sendervalwidth, align=right, style= {\valstyle\strut}] \bTABLE \dostepwiserecurse{1}{9}{1}{% count from 1 to 9, step 1 \expanded{\GetSenderLine{\recurselevel}} } \eTABLE \stopsetups I collect this (and more) at http://wiki.contextgarden.net/ Talk:Letter_style Grüßlis vom Hraban! --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context % Info-sheet for the parcel service % Context file % filename: infotable.tex % W.Egger % 06-01-2006 % Thanks to a thread on the Context mailinglist this works now! \environment layout \setupbodyfont[10pt] \setuppapersize[A4,landscape][A4,landscape] \setuplayout[ topspace=1.5cm, backspace=1.5cm, width=27cm] \setupheadertexts[\leftaligned{\bfd Parcel service info-sheet}] \def\Addressee#1#2#3#4#5#6#7#8{% \setvalue{Ordno#1}{#2}% \setvalue{Bestno#1}{#3}% \setvalue{Adres#1}{#4}% \setvalue{Dimension#1}{#5}% \setvalue{Weight#1}{#6}% \setvalue{Value#1}{#7}% \setvalue{Tel#1}{#8}} \def\Parcel#1{% \bTR% \bTD\getvalue{Ordno#1}% \doiftextelse{\getvalue{Bestno#1}}% {\blank[small]Ext. Orderno:\par\hfill\getvalue{Bestno#1}}{\strut\blank} \eTD% \bTD \getvalue{Adres#1} \eTD% \bTD \getvalue{Dimension#1} \eTD% \bTD \getvalue{Weight#1} \eTD% \bTD \getvalue{Value#1} \eTD% \bTD \getvalue{Tel#1} \eTD\eTR} \def\Numberofparcels{3} \starttext \Addressee{1}% {293-291}%Ordernumber {12345-2009}%External ordernumber {Maximilian Smallbody\\ Sunshinestreet 24\\ 3456 EE Natland\\ Cloudyland}%Addres {70 x 67 x 15 cm}%Dimension {7.5 kg}%Weight {1.000.00\euro}%Value {+31 455535251}%Phone \Addressee{2}% {293-292}%TC-nummer {}%External ordernumber {Milly Milltower\\ 3\high{rd} Duststreet\\ Millerstown 56789\\ Millersland}%Addres {120 x 12 x 12 cm}%Dimension {2.5 kg}%Gewicht {293.00\euro}%Waarde buiten EU {+99-9192939495}%Telefoon \Addressee{3}% {}% {}% {}% {}% {}% {}% {}% %= Do not edit below this line!= {\bfa Date: \date} \blank[1.5cm] \bTABLE \setupTABLE[row][first][style=bold,align=middle] \setupTABLE[column][each][width=.166\textwidth,align=right] \setupTABLE[x][3][align=middle] \setupTABLE[x][4][align=left] \setupTABLE[x][5][align=left] \bTR \bTD Ordernumber\eTD \bTD Address \eTD \bTD Dimension \eTD \bTD Weight \eTD \bTD Value \eTD \bTD Phone \eTD\eTR \dostepwiserecurse{1}{\Numberofparcels}{1}{% \expanded{\Parcel{\recurselevel}}} \eTABLE \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mai
Re: [NTG-context] paragraph indenting
Hans Hagen wrote: Christopher G D Tipper wrote: Hi, I hope this is not a bug, and that the reference manual is just incorrect. In This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5) (format=cont-en 2005.12.24) 6 JAN 2006 20:07 ConTeXt ver: 2005.12.19 fmt: 2005.12.24 int: english mes: english The following produces no indenting at all. I expect all paragraphs to be indented except for the very first. \starttext \setupindenting[small] \noindenting\input knuth That should be: \setupindenting[small,yes] \noindentation\input knuth %^ Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] followtokens & font color
Hi all, I use \followtokens and I would colorize the text. I've try some drawoptions or ConTeXt command to switch font color (i.e. {\red red text}) and nothing works. Is it possible to switch color during \definefont[RotFont][] ? Any idea on how to do this ? PS: Please, is there anyone who can answer to my thread [NTG-context] headers of multiple pages toc ? Thanks ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] paragraph indenting
On 1/6/06, Taco Hoekwater <[EMAIL PROTECTED]> wrote: > > That should be: > >\setupindenting[small,yes] > >\noindentation\input knuth >%^ > works perfectly. Thanks. -- http://vnoss.org Vietnamese Open Source Software Community ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context