ntg-context@ntg.nl
Hans van der Meer wrote: > On Jul 13, 2006, at 22:27, Hans Hagen wrote: > > >> Hans van der Meer wrote: >> >>> I want to do something with & in tables (making it an active column >>> separator). >>> Now I have a macro with two arguments for parameters in Context >>> style: >>> >>> \def\starttablex{\dodoubleargument\dostarttablex} >>> \def\dostarttablex[#1][#2]{% >>> >>> Now for input:�\starttable[][] & ... all is well, >>> but for input: \starttable[]� �& ... the ampersand appears to >>> be eaten >>> up by the double argument expansion. >>> > > >> starttable or starttablex >> > > Sorry, but I am missing your point here. > Does your answer imply that I cannot work with a [][]-parameterlist? > That would be problematic because I am using your getparameters-thing > extensively. > Or do you mean something else that will stop the parameter gathering > at the & ? > no, it's just that your definition defines *x and that you use * ; it' shard to see what goes wrong with an uncomplete example; in normal cases arg grabbing should work ok Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] frames in natural tables
Hallo! In the following example with two nearly identical tables: -- \starttext \setupTABLE[r][each][frame=off] \setupTABLE[r][first][bottomframe=on,rulethickness=.05em] \bTABLE \bTR \bTD Nr.\ \eTD \bTD Eintrag \eTD \eTR \bTR \bTD 1 \eTD \bTD Bla \eTD \eTR \bTR \bTD 2 \eTD \bTD Blub \eTD \eTR \bTR \bTD 3 \eTD \bTD Boing \eTD \eTR \bTR \bTD 4 \eTD \bTD Blubber \eTD \eTR \eTABLE \blank %\setupTABLE[frame=off] \setupTABLE[r][first][bottomframe=off] \bTABLE[frame=off] \bTR \bTD Nr.\ \eTD \bTD Eintrag \eTD \eTR \bTR \bTD 1 \eTD \bTD Bla \eTD \eTR \bTR \bTD 2 \eTD \bTD Blub \eTD \eTR \bTR \bTD 3 \eTD \bTD Boing \eTD \eTR \bTR \bTD 4 \eTD \bTD Blubber \eTD \eTR \eTABLE \stoptext -- the first \setupTABLE[r][each][frame=off] switched frames off and the second \setupTABLE[r][first][bottomframe=on,rulethickness=.05em] switched the bottomframe on in the first row. but in the second table neighter \setupTABLE[frame=off] nor \setupTABLE[r][each][frame=off] switched frames off the bottomframe in row 1 survives from the first table! One has explicitly use \setupTABLE[r][first][bottomframe=off] to switch this frameline off too. So, 1. Is there no general 'frame=off'? 2. Is the first \setupTABLE not really working? It should, because the defaults are 'frame=on', aren't they? Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] New bib module release (2006.07.13)
Hans Hagen wrote: >>thanks for the new version! I didn't have time to play with your >>latest beta, but the new release appears to have a problem: numbered >>references don't seem to work! I found an older post to the list by Hans' comment below this point was right, but in this case it really didn't work. I've just finished uploading a new version that should be better. Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] colored box background
Say I have a box, e.g. \setbox\thebox=\vbox{} with dimensions \wd\thebox etc.What then is the most efficient and economic (in terms of complexity and speed) way to generate a colored background for it? I know I can use \framed, but this I wish to avoid because it seems overly complex for this simple task and may have side effects in terms of alignment issues.Is the best perhaps using a metapost graphic? and if so, what is best MPgraphic, useMPgraphic, reuseMPgraphic, etc.? Hans van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] colored box background
Hans van der Meer wrote: > Say I have a box, e.g. \setbox\thebox=\vbox{} with dimensions > \wd\thebox etc. > What then is the most efficient and economic (in terms of complexity and > speed) way to generate a colored background for it? If you really want your code to be as efficient and minimalist as possible, you are better of with the plain format than with ConTeXt in any case. Personally I prefer to optimize on complexity and readability of my sources instead of on machine clock cycles. That said, metapost graphics are, in general, heavier than \framed. If you really need thousands and thousands of those boxes, a macro like: \def\bgcolorthebox#1% {\dontleavehmode \rlap{\color[#] {\vrule height \ht\thebox depth \dp\thebox width \wd\thebox}}% \box\thebox } can help. But if it is only a few, simply use \framed. Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Context 2006.07.13 released
Hello all, I am pleased to announce that the new ConTeXt release from Hans Hagen can be downloaded as of now from the Pragma ADE website or one of its mirrors. http://www.pragma-ade.com/context/current/cont-tmf.zip http://context.aanhet.net/context/current/cont-tmf.zip http://mirror.contextgarden.net/context/current/cont-tmf.zip The current release has version 2006.07.13 A very short list of changes is given below. As usual, there is an html page with more detailed release notes available on the Wiki, see: http://wiki.contextgarden.net/Release_Notes New features since 2006.05.11: * The use of \sometxt in MetaPost figures (instead of \textext) can remove the need for indirect "texexec" runs, resulting in a massive speed improvement for heavy documents. * Table splitting is reimplemented and improved * Initial support for the new TeXGyre font families * A new release of the bib module, with better support for interaction and per-chapter bibliographies * Some small extensions to \framed * The database module now supports ASCII (non-TeX) files with CSV quoting * \setupformulae accepts a conversion parameter now * More built in math support (matrices etc.) * A prerelease of the "koeieletters" font * A new module for R integration * Itemizations can be randomized (for multiple-choice courseware) * Support for typesetting OpenMath (via MathML) Happy TeXing, Taco Hoekwater ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] colored box background
Hans van der Meer wrote: > Say I have a box, e.g. \setbox\thebox=\vbox{} with dimensions > \wd\thebox etc. > What then is the most efficient and economic (in terms of complexity > and speed) way to generate a colored background for it?� > I know I can use \framed, but this I wish to avoid because it seems > overly complex for this simple task and may have side effects in terms > of alignment issues. > Is the best perhaps using a metapost graphic? and if so, what is best > MPgraphic, useMPgraphic, reuseMPgraphic, etc.? \backgroundline[red]{...} - 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] colored box background
Hans Hagen wrote: > > \backgroundline[red]{...} As you can see, there are plenty commands even I had not heard about yet :-) Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] colored box background
On 7/14/06, Taco Hoekwater <[EMAIL PROTECTED]> wrote: > > > Hans Hagen wrote: > > > > \backgroundline[red]{...} > > As you can see, there are plenty commands even I had not heard > about yet :-) ...call for modules.pdf ? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] tracingmacros
Usually I employ \tracingmacros=1 in order to find nasty problems in my macros.Font operations then produce a lot of noise in the log.Is it possible to shutdown these selectively? Hans van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] New bib module release (2006.07.13)
On Jul 14, 2006, at 10:19 AM, Taco Hoekwater wrote: > Hans' comment below this point was right, but in this case it really > didn't work. I've just finished uploading a new version that should > be better. > > Cheers, Taco Of course Hans was right, but the problem persisted. Thanks for the new version, Taco, it works beautifully now! I'm still experiencing some problems with the structure of my projects (I have split up a lengthy book into several components and frontmatter, bodymatter, and backmatter: references are OK when I have component foo in the backmatter yet disappear when I put the same component into the frontmatter or bodymatter block), but you had warned me that the module may not work with such projects, and I may simply have to copy everything into one big file at the end of the editing process. Thanks, and best Thomas ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] colored box background
Thanks, I will try the suggestions. As for Taco's remark: > If you really want your code to be as efficient and minimalist as > possible, you are better of with the plain format than with ConTeXt > in any case. Personally I prefer to optimize on complexity and > readability of my sources instead of on machine clock cycles. Yes, I from the old programming school (back to the sixties) and I like simple efficient and thus a bit minimalistic, code. Not because of the clock cycles (anymore) but because I believe the simplest code most often is the one with the least problems. Regarding plain format: no I like what is possible in Context and am abhorred by the idea to have to find out all that by myself; but so now and then I am self-willed enough to do things "my way". On Jul 14, 2006, at 12:13, Taco Hoekwater wrote: > > > Hans Hagen wrote: >> >> \backgroundline[red]{...} > > As you can see, there are plenty commands even I had not heard > about yet :-) > > Taco > ___ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context met vriendelijke groet Hans van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
ntg-context@ntg.nl
Hans van der Meer wrote: > I want to do something with & in tables (making it an active column > separator). > Now I have a macro with two arguments for parameters in Context style: > > \def\starttablex{\dodoubleargument\dostarttablex} Shouldn't this be \dodoubleempty for optional arguments? Peter > \def\dostarttablex[#1][#2]{% > > Now for input: \starttable[][] & ... all is well, > but for input: \starttable[] & ... the ampersand appears to be eaten > up by the double argument expansion. > > How can I prevent that, letting & end the parameter scanning and using > it as the first input? > > Hans 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] Misplaced \noalign
Hello, after update to version 2006.07.14, I get the following error: ! Misplaced \noalign. \TABLEnoalign ->\noalign \bgroup \let \noalign \relax \let \next = \insertTABLEtail ->\TABLEnoalign {\global \settrue \preventTABLEbreak \globa... \stoptable ->\insertTABLEtail \globalletempty \@@TABLEhead \globalletempty \... l.4 \stoptable with this example file: \starttext \starttable[|l|l|] \NC bla\NC bla\NC\AR \stoptable \stoptext Cheers, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] tracingmacros
Hans van der Meer wrote: > Usually I employ \tracingmacros=1 in order to find nasty problems in my > macros. > Font operations then produce a lot of noise in the log. > Is it possible to shutdown these selectively? Not at the moment, no. Greetings, taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Misplaced \noalign
� wrote: > Hello, > after update to version 2006.07.14, I get the following error: > ! Misplaced \noalign. > \TABLEnoalign ->\noalign > \bgroup \let \noalign \relax \let \next = > \insertTABLEtail ->\TABLEnoalign > {\global \settrue \preventTABLEbreak > \globa... > > \stoptable ->\insertTABLEtail > \globalletempty \@@TABLEhead \globalletempty > \... > l.4 \stoptable > > with this example file: > > \starttext > \starttable[|l|l|] > \NC bla\NC bla\NC\AR > \stoptable > \stoptext > \def\stoptable {\chuckTABLEautorow % before the tail \insertTABLEtail \TABLEnoalign{\globalletempty\@@TABLEhead}% \TABLEnoalign{\globalletempty\@@TABLEtail}% \finishTABLE \doifelsenothing\@@tiframe {\ifinsidefloat\else \stopbaselinecorrection \goodbreak % compensates all the nobreaks \fi} \stopframedcontent \egroup} put this in cont-new.tex 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Context 2006.07.13 released
On Jul 14, 2006, at 11:54, Taco Hoekwater wrote: > New features since 2006.05.11: > > * The use of \sometxt in MetaPost figures (instead of \textext) can >remove the need for indirect "texexec" runs, resulting in a massive >speed improvement for heavy documents. Do I understand correct that this is meant to generally replace \textext from inside metapost figures? Is the following change correct, for example: % prevent wobbling of text boxes with uneven depth pic := textext("\setbox0=\hbox{"&labeltext&"}\dp0=0pt\box0"); into: pic := sometxt("\setbox0=\hbox{"&labeltext&"}\dp0=0pt\box0"); Are there restrictions? When to use \sometxt and when is there need for \textext? Hans van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Context 2006.07.13 released
Hans van der Meer wrote: > On Jul 14, 2006, at 11:54, Taco Hoekwater wrote: > > >> New features since 2006.05.11: >> >> * The use of \sometxt in MetaPost figures (instead of \textext) can >>remove the need for indirect "texexec" runs, resulting in a massive >>speed improvement for heavy documents. >> > > > Do I understand correct that this is meant to generally replace > \textext from inside metapost figures? > > Is the following change correct, for example: > % prevent wobbling of text boxes with uneven depth > pic := textext("\setbox0=\hbox{"&labeltext&"}\dp0=0pt\box0"); > into: > pic := sometxt("\setbox0=\hbox{"&labeltext&"}\dp0=0pt\box0"); > this should work > Are there restrictions? When to use \sometxt and when is there need > for \textext? > when such texts are used in e.g. mp loops, you should use textext 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
ntg-context@ntg.nl
Hans van der Meer wrote: > I want to do something with & in (my homemade) tables (making it an > active column separator). > Now I have a macro with two arguments for parameters in Context > style: > > \def\starttablex{\dodoubleargument\dostarttablex} > \def\dostarttablex[#1][#2]{% > > Now for input:�\starttablex[][] & ... all is well, > but for input: \starttablex[]� �& ... the ampersand appears to > be eaten > up by the double argument expansion. > After some experimenting with argument retrieval I guess I figured out what happens here. Reducing to one optional argument and crippling \dosingleempty to \def\dosingleempty#1% {\noshowargumenterror % \relax % prevents lookahead, brr dosinglefakeempty#1} There is no problem in processing the active &. Therefore I conclude to the following: on inspecting the next character with "\doifnextcharelse[%" the character which is compared is the &. Being not equal to [ it is given back but -- if I remember well -- there can be a catcode problem. I guess & still functions as separator in the \halign template but no longer functions as a macro, as it should in my code. There might be no solution for this within TeX's limitations. But maybe you can confirm cq. deny that from your knowledge of TeX (which certainly is greater than mine). Hans van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
ntg-context@ntg.nl
Hans van der Meer wrote: > Therefore I conclude to the following: on inspecting the next > character with "\doifnextcharelse[%" the character which is compared > is the &. It is more technically correct to say that the \doifnextcharelse compares the first token of the expansion of '&' with the second token of the expansion of '&'. Down this road awaits madness. In general, you can not intermix optional arguments and active characters, you need to have at least one non-active non-space token to break off the search in a reliable manner. Simply adding a \relax statement sounds like the simplest solution. > Being not equal to [ it is given back but -- if I remember > well -- there can be a catcode problem. I guess & still functions as > separator in the \halign template but no longer functions as a macro, > as it should in my code. > > There might be no solution for this within TeX's limitations. But > maybe you can confirm cq. deny that from your knowledge of TeX (which > certainly is greater than mine). There is a chance that there is a hackish way around this limitiation for some very specific cases, but i cannot tell without the actual code you use. Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
ntg-context@ntg.nl
Hans van der Meer wrote: > There might be no solution for this within TeX's limitations. But > maybe you can confirm cq. deny that from your knowledge of TeX (which > certainly is greater than mine). > there is undoubtely a solution but it quickly becomes messy as soon as preambles and such are involved (lookahead problems); 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
ntg-context@ntg.nl
On 7/13/06, Hans van der Meer wrote: > > I want to do something with & in tables (making it an active column > separator). I didn't follow this discussion closely (I have to catch up with the mails from this week), so I might have missed the point, but does something like this satisfy your needs? \usemodule [database] % you can change the commands to \starttabulate or \starttable, % according to the pattern % but I don't know them by heart \defineseparatedlist [MyList] [left=\bTD,right=\eTD, first=\bTR,last=\eTR, before=\bTABLE,after=\eTABLE, separator=&] \starttext \startseparatedlist[MyList] a & b & c \stopseparatedlist \stoptext Temporary documentation for "separatedlist" can be found on http://pub.mojca.org/tex/csv/, but I have to wait until two important bugs are fixed, namely UTF-8 (twice) and multiple separators one after another (and I have some little problems with showing the settings of two commands, which is most probably my fault). Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt, Charts, and transparency
Idris Samawi Hamid wrote: > Dear syndicate, > > So it's not a graphical charts module but I'm curious anyway: Could > someone explain why the following sample file apparently does not work or > what I am missing? > did you look into m-chart (flow charts) 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt, Charts, and transparency
Taco Hoekwater wrote: > Idris Samawi Hamid wrote: > >> Dear syndicate, >> >> So it's not a graphical charts module but I'm curious anyway: Could >> someone explain why the following sample file apparently does not work or >> what I am missing? >> > > FWIW: Doesn't work here either. > can someone send me the test file off-list? 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt, Charts, and transparency
On Fri, 14 Jul 2006 09:33:13 -0600, Hans Hagen <[EMAIL PROTECTED]> wrote: > Idris Samawi Hamid wrote: >> Dear syndicate, >> >> So it's not a graphical charts module but I'm curious anyway: Could >> someone explain why the following sample file apparently does not work >> or >> what I am missing? >> > did you look into m-chart (flow charts) Yes, but that seems mainly geared towards flow charts, not graphical charts. Can m-chart do things like the example png attached at the start of the thread? Best Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] positionoverlays problem
Hans van der Meer wrote: > I more or less guess there are only a restricted number of overlays > possible? Could that be a correct conclusion? > The elegant way would have been being able to define separate > positionoverlays for each picture, imho. However I found a practical > solution in defining all items centrally within one positionoverlay. > Up till now it has not failed, so I can live with that, but I cross > my fingers it will still hold for a few hundred positional graphics. > no, in principle there is no limitation in the stacking, but there are a few levels predefined (text+/-2) 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] BBEdit
David Arnold wrote: > Hi, > > Anyone on this list use BBEdit for the Context editing? > all i know is that in the context data path there are bbedit files (ctxtools --bbedit) but htese are generated based on user specs 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] positionoverlays problem
Taco Hoekwater wrote: > Hans van der Meer wrote: > >> Thanks, I guess that is the case. If the number of \hpos's will not >> overflow it shouldn't be a big problem. Can you confirm that all >> these positional graphics are generated one by one, or are they >> collected in a list that might overflow and one day cause me trouble? >> >> > > Anything in TeX will overflow eventually, but you should be safe > enough. And if it still barks, you could define temp on a > per-chapter basis (or any other place with a 'natural' page > break). > indeed; at some point, with lots of refs and positions (once you use positions, each paragraph will generate one at least) there may be problems; in the coming luatex version we can use lua to store information in hashes) 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
ntg-context@ntg.nl
On Jul 14, 2006, at 16:18, Mojca Miklavec wrote: > On 7/13/06, Hans van der Meer wrote: >> >> I want to do something with & in tables (making it an active column >> separator). > > I didn't follow this discussion closely (I have to catch up with the > mails from this week), so I might have missed the point, but does > something like this satisfy your needs? > > \usemodule > [database] > % you can change the commands to \starttabulate or \starttable, Thanks for trying to help, but I don't think this is the solution. The problem arises from the construction of a private table-modules, not from using current Context stuff other than lowlevel macro's. Hans van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
ntg-context@ntg.nl
On Jul 14, 2006, at 15:57, Taco Hoekwater wrote: > > > Hans van der Meer wrote: > >> Therefore I conclude to the following: on inspecting the next >> character with "\doifnextcharelse[%" the character which is compared >> is the &. > > It is more technically correct to say that the \doifnextcharelse > compares the first token of the expansion of '&' with the second > token of the expansion of '&'. Down this road awaits madness. Indeed, that is certainly more correct. > > In general, you can not intermix optional arguments and active > characters, you need to have at least one non-active non-space > token to break off the search in a reliable manner. > > Simply adding a \relax statement sounds like the simplest solution. Yes, I found that out already, even something like {} does the trick. But stubborn as I sometimes may be, I first tried to find a solution within the macro definition, that does not depend on the data processed. > >> Being not equal to [ it is given back but -- if I remember >> well -- there can be a catcode problem. I guess & still functions as >> separator in the \halign template but no longer functions as a macro, >> as it should in my code. >> >> There might be no solution for this within TeX's limitations. But >> maybe you can confirm cq. deny that from your knowledge of TeX (which >> certainly is greater than mine). > > There is a chance that there is a hackish way around this > limitiation for some very specific cases, but i cannot > tell without the actual code you use. I will privately mail a copy of my file. It is fairly extensively commented. But not yet a finished product though. However, very hackish doesn't foretells much good. I certainly am able to acknowdledge defeat if it faces me so strongly as is the case here. > > Taco > ___ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context Hans van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Here's what is done.
David Arnold wrote: > Hans, Taco, > > See: > > http://online.redwoods.edu/IntAlgText/ > that's an impressive project it would be nice to have links to such projects on the wiki 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt, Charts, and transparency
The problem is in the arrows ... \startMPinclusions def set_ahlength (text t) = % ahlength := (ahfactor*pen_size(_op_ t)) ; % _op_ added % problem: _op_ can contain color so a no-go, we could apply the transform % but i need to figure out the best way (fakepicture and take components). ahlength := (ahfactor*pen_size(t)) ; enddef ; \stopMPinclusions 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt, Charts, and transparency
Idris Samawi Hamid wrote: > > Yes, but that seems mainly geared towards flow charts, not graphical > charts. Can m-chart do things like the example png attached at the start > of the thread? > i lost that one; actually, willy egger is the most experienced chart user but he's on vacation 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] regenerating formats
I downloaded the latest ConTeXt and tried regenerating the hyphenation patterns and formats (to get hyphenation with Thomas’ Greek module). The first step texmfstart ctxtools --patwas successful. But sudo texmfstart texexec --make --all(which worked with the last ConTeXt installation)and sudo -H texmfstart texexec --make --allfailed with the error message sudo: texmfstart: command not found.Fortunately, sudo texexec --make --allstill works, so life goes on.Still, why is this happening?Does it matter that I have the line alias texmfstart='ruby /usr/local/teTeX/share/texmf.local/scripts/context/ruby/texmfstart.rb'in my .profile rather than an executable version of the texmfstart script in my $PATH?If it does, is there a way to set things so that texmfstart is automatically available to the administrator and user whenever a Terminal session is begun?Alan___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] small new feature on the wiki
Patrick Gundlach wrote: > Hi there, > > since there might be some users here who edit pages on the wiki and > who don't read the 'recent changes' page: > > you can now say > > > \your \TeX \code=here > > > this will typeset the source with the > highlighter/formatter, then output the (optional) text 'produces', and > finally renders the already known graphical representation of the > source. This way you only have to enter the code once (less errors). > Special thanks to Jano Kula for this. > > Example at > > http://wiki.contextgarden.net/Right_and_left > very nice btw, we should start thinking of a proper export so that one can typeset a wiki page 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] regenerating formats
On Fri, 14 Jul 2006, Alan Bowen wrote: > sudo texmfstart texexec --make --all > (which worked with the last ConTeXt installation) > and > sudo -H texmfstart texexec --make --all > failed with the error message > sudo: texmfstart: command not found. > Does it matter that I have the line > alias texmfstart='ruby /usr/local/teTeX/share/texmf.local/scripts/ > context/ruby/texmfstart.rb' > in my .profile rather than an executable version of the texmfstart > script in my $PATH? Hello Alan, I doubt, that an alias is inherited by the shell of sudo. Here is one way, how to set up the ruby scripts without touching the ConTeXt-texmf tree (extracted from my tetex.spec in http://pmrb.free.fr/work/OS/ConTeXt/tetex/): mkdir -p /opt/teTeX/ruby-bin install texexec /opt/teTeX/ruby-bin ln -s ../texmf-context/scripts/context/ruby/texmfstart.rb \ /opt/teTeX/ruby-bin/texmfstart for i in `unzip -l cont-tmf.zip | \ sed -nre 's_^.*scripts/context/ruby/([^/]+)\.rb$_\1_p'`; do if [ "$i" != texexec -a "$i" != texmfstart ]; then ln -s texexec /opt/teTeX/ruby-bin/$i fi done And these 2 lines in the file "texexec": #!/bin/sh exec texmfstart `basename $0`.rb "$@" Then, /opt/teTeX/ruby-bin must come before the normal teTeX-bin in PATH. Cheers, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] regenerating formats
On Jul 14, 2006, at 2:23 PM, Alan Bowen wrote: > I downloaded the latest ConTeXt and tried regenerating the hyphenation > patterns > and formats (to get hyphenation with Thomas’ Greek module). The first > step > texmfstart ctxtools --pat > was successful. But > sudo texmfstart texexec --make --all > (which worked with the last ConTeXt installation) > and > sudo -H texmfstart texexec --make --all > failed with the error message > sudo: texmfstart: command not found. > [...] > > Does it matter that I have the line > alias texmfstart='ruby > /usr/local/teTeX/share/texmf.local/scripts/context/ruby/texmfstart.rb' > in my .profile rather than an executable version of the texmfstart > script in my $PATH? Yes -- sudo doesn't know about shell aliases, it's trying to find an executable file named texmfstart in your PATH. > If it does, is there a way to set things so that texmfstart is > automatically available to the administrator and user > whenever a Terminal session is begun? Yes, by saving the following script as texmfstart in /usr/local/bin or wherever is appropriate: #!/bin/sh exec ruby /usr/local/teTeX/share/texmf.local/scripts/context/ruby/texmfstart.rb "$@" (Everything from 'exec' to '"$@"' should be on a single line.) If you're using sudo while logged in as yourself (i.e., not root), this texmfstart script can be anywhere in your PATH. Paul. > Alan___ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > -- Paul Hoffman <[EMAIL PROTECTED]> http://nkuitse.com/ http://hoffmancommapaul.com/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] frames in natural tables
[EMAIL PROTECTED] wrote: > in the second table neighter > > \setupTABLE[frame=off] > > nor > > \setupTABLE[r][each][frame=off] > > switched frames off > > the bottomframe in row 1 survives from the first table! > > One has explicitly use > use grouping \start \setupTABLE[r][each][frame=off] \setupTABLE[r][first][bottomframe=on,rulethickness=.05em] \bTABLE \bTR \bTD Nr.\ \eTD \bTD Eintrag \eTD \eTR \bTR \bTD 1 \eTD \bTD Bla \eTD \eTR \bTR \bTD 2 \eTD \bTD Blub \eTD \eTR \bTR \bTD 3 \eTD \bTD Boing \eTD \eTR \bTR \bTD 4 \eTD \bTD Blubber \eTD \eTR \eTABLE \stop \blank \start \setupTABLE[r][first][bottomframe=off] \bTABLE[frame=off] \bTR \bTD Nr.\ \eTD \bTD Eintrag \eTD \eTR \bTR \bTD 1 \eTD \bTD Bla \eTD \eTR \bTR \bTD 2 \eTD \bTD Blub \eTD \eTR \bTR \bTD 3 \eTD \bTD Boing \eTD \eTR \bTR \bTD 4 \eTD \bTD Blubber \eTD \eTR \eTABLE \stop when no grouping is used settings are persistent; and a general setupTABLE will not replace row/col settings; see \setupTBLcell in core-ntb for the order of definitions and what kind of definitions take place 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Context Quiz?
On Tue, 11 Jul 2006, Hans Hagen wrote: > > (There is this Best Of Ruby Quiz book, maybe we should make a Best Of Context > Quiz one ... ) Maybe we should first start a Context Quiz? Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] align question
On another matter, I'm having some alignment issues. Consider the following code: \starttext \startformula \startalign[n=4,{left, middle, middle, middle}] aaa&b&&d\\ a&bbb&c&ddd \stopalign \stopformula \stoptext Compile this and you will notice that the alignment parameters {left, middle, middle, middle} are ignored. And you can change these to anything else (left, middle, right), with absolutely no change. Any idea what is going on here? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] align question
On Fri, 14 Jul 2006, David Arnold wrote: > On another matter, I'm having some alignment issues. Consider the > following code: > > \starttext > > \startformula > \startalign[n=4,{left, middle, middle, middle}] > aaa&b&&d\\ > a&bbb&c&ddd > \stopalign > \stopformula > > \stoptext > > Compile this and you will notice that the alignment parameters {left, > middle, middle, middle} are ignored. And you can change these to > anything else (left, middle, right), with absolutely no change. Any > idea what is going on here? Wrong syntax. It should be \startalign[n=4,align={left,}] I would strongly suggest to use \NC \NC bb \NC d \NR instead of "raw" & and \\. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context