Re: [NTG-context] Bold in math mode
David, The method I use to get bold math is on the wiki: http://wiki.contextgarden.net/Bold_Math under "Wrapping in a \hbox". Then, to get a bold x, I would use $\boldsymbol{x}$. Regards, David David Arnold : > How do I get a bold x in math mode? > ___ > 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] How to \bf for math?
Adam Lindsay wrote : > David Munger wrote: > > Adam Lindsay wrote : > >> David Munger wrote: > >>> Very interesting, but with these definitions, I can't get roman > >>> characters in formulae. For the moment, the best solution for me is > >>> still the hbox wrapper. > >> Okay. > >> What do you mean by "can't get roman characters"? Can you give an > >> minimal example? > >> > >> adam > > > > Sorry, I should have given one. > > > > \startmathcollection[default] > > \definemathcharacter [a] [nothing] [mi] ["61] > > \stopmathcollection > > > > \definetypeface [] [mm] [bfmath] [computer-modern] [computer-modern] > > \setupformulas [method=bold] > > > > \starttext > > \formula{a, {\rm a}, {\bfm a}, {\bfm\rm a}} > > \stoptext > > > > I can't get bold roman math. And by using [mr] instead of [mi]: > > \definemathcharacter [a] [nothing] [mr] ["61] > > one gets the inverse problem: no more bold math italic. > > oh, I see. I'll admit: all the maths I've dealt with don't require such > fine manual control over the fonts. Well, sometimes it's useful when dealing with different kinds of objects such as vectors and tensors. > Would it be for individual characters? Would an approach like this work? > \formula{a, {\rm a}, {\bfm a}, \text{\bf a}} Yes, of course. This happens to be an \hbox. My point is simply that we have not come to a general solution yet, we are just finding different workarounds to suit our personal needs, which is not bad indeed. Cheers, David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to \bf for math?
Adam Lindsay wrote : > David Munger wrote: > > Very interesting, but with these definitions, I can't get roman > > characters in formulae. For the moment, the best solution for me is > > still the hbox wrapper. > > Okay. > What do you mean by "can't get roman characters"? Can you give an > minimal example? > > adam Sorry, I should have given one. \startmathcollection[default] \definemathcharacter [a] [nothing] [mi] ["61] \stopmathcollection \definetypeface [] [mm] [bfmath] [computer-modern] [computer-modern] \setupformulas [method=bold] \starttext \formula{a, {\rm a}, {\bfm a}, {\bfm\rm a}} \stoptext I can't get bold roman math. And by using [mr] instead of [mi]: \definemathcharacter [a] [nothing] [mr] ["61] one gets the inverse problem: no more bold math italic. David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to \bf for math?
Very interesting, but with these definitions, I can't get roman characters in formulae. For the moment, the best solution for me is still the hbox wrapper. David > Adam Lindsay wrote: > > > \startmathcollection[default] %eventual patch for math-tex? > > \definemathcharacter [a] [nothing] [mi] ["61] > > \definemathcharacter [b] [nothing] [mi] ["62] > > \definemathcharacter [c] [nothing] [mi] ["63] > > \definemathcharacter [d] [nothing] [mi] ["64] > > \definemathcharacter [e] [nothing] [mi] ["65] > ... > > Interesting. With these definitions in place, getting mixed bold in cmr > math is a lot better, too... > > \definetypeface [] [mm] [bfmath] [computer-modern] [computer-modern] > \setupformulas [method=bold] > > \starttext > \startformula > n({\bfm a} + {\bfm b}) = {\bfm \Gamma} > \stopformula > \stoptext > > Now, do digits ever get bold-ed in mixed bold and regular math? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to \bf for math?
Hi Mojca, I must say I understand about nothing about fonts in ConTeXt. But I've somehow managed do define a "bold vector" command, working in my environment. I hope it helps. \definetypeface [boldmath] [mm] [boldmath] [latin-modern] [default] % boldsymbol work-around \setupformulae[method=bold] \define[1]\boldsymbol{\hbox{\formula[boldmath]{#1}}} \define[1]\boldsymbolscript{\hbox{\formula[boldmath,script]{#1}}} \define[1]\boldsymbolscriptscript{\hbox{\formula[boldmath,scriptscript]{#1}}} % bold vector \define[1]\bvec{{% \mathchoice {\let\bs=\boldsymbol}% {\let\bs=\boldsymbol}% {\let\bs=\boldsymbolscript}% {\let\bs=\boldsymbolscripscript}% \bs{#1}}} Mojca Miklavec : > Hello, > > What exactly is the ConTeXt alternative to LaTeX's \mathbf (switch to > bold or bold italic math fonts)? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Updated RawSteps module
Hi all, There have been many requests in the last few months regarding the RawSteps module, but I had not much time to spend on it before the holidays. Until Patrick updates the garden, you can grab the updated module on my website: http://mhd.selfip.info/tex/ The documentation is also updated on the wiki: http://wiki.contextgarden.net/RawSteps New features since 2005-04-11: * New macro: \OnSteps (thanks to Taco Hoekwater) * New macro: \StepsRegisterNumber as a numbering helper * Bug fixes: section numbering, table of contents, and step > 10. Since I'm rather loosely monitoring the list, please CC me when reporting bugs, or at least put "RawSteps" or "rsteps" as the first word of the subject, so my email client doesn't hide it. Best regards, David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: function plotting
> gnuplot is great indeed, but the output is rather large; it would be nice if > there was a real good output mode (say, comparable to the output produced by > metapost: compact, parsable); > > btw, is it really that difficult to use gnuplot output in context? > > Hans I often use metapost output from gnuplot indeed, then pass it through a short sed script to do stuff like adding \start/stopuseMPgraphic commands and cleaning the preamble. I think gnuplot does a great job in general. For more complex graphs, I prefer the mp-graph package. Regards, David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Boxed formula
Jilani, > Thank you for your answer. I seems that "\startformula .. \stopformula" > doesn't have any effect to produce a "dispaly mode" formula. When I try: \startformula \mframed[offset=.3em,rulethickness=1pt]{ I=x-\sqrt2\,\arctan\frac{x}{\sqrt2}+C} \stopformula it does typeset a displayed formula. However, you could still force displayed style by adding a \displaystyle command at the beginning of your \mframed argument. Regards, David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Boxed formula
The way I usually do it: \startformula \mframed[offset=.3em,rulethickness=1pt]{a^2 + b^2 = c^2} \stopformula Regards, David Le Vendredi 30 septembre 2005 à 13:41 +0200, Jilani Khaldi a écrit : > Hi All, > how to make a boxed formula with ConTeXt? > Thanks! > ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] t-rsteps and starttyping
Hans Hagen: > did you ever try > > texexec --mode=demo s-pre-61 > > using 'layers' is rather robust (no duplicate pages and such); Of course, I did. The only issue is about JavaScript, which does not work in most non-Acrobat PDF readers. This is the purpose of the RawSteps module: to avoid using JavaScript. > Some of the older presentation styles build the pages stepwise, they > use either boxes, or buffers (i must look into it, but there is also > one that plugs into the otr; in your case, collecting in a box and > uncopying it is probably the best method. Do you mean with \setbox-like commands? I'll have a look at it. Thanks for the suggestion. David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] t-rsteps and starttyping
Hans, The RawSteps module produces virtual slides with stepping, by rendering the step incrementally on successive pages. Thus, the \StartSteps...\StopSteps macro has to expand its argument (i.e. the content of the slide) a certain number of times, depending the number of requested steps. Of course, it shows only the relevant parts at each step. To allow this, I had to work around page numbers, formula numbers, and lately \starttyping blocks. If you could suggest a better way to achieve this multiple expansion, it would be welcome. Regards, David > why exactly do you need this construct; there may be other ways to do it; > > Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] t-rsteps and starttyping
Hi Christopher, This was the right way. Thanks a lot! Still, I don't understand how the \starttyping macro gets to work if ^^M is redefined as ^^J. I will tell Patrick to update the module on the garden. Meanwhile, you can get the updated version on my site: http://cfd.homelinux.org/tex/ David Le Jeudi 22 septembre 2005 à 08:56 +0200, Christopher Creutzig a écrit : > David Munger wrote: > > > Unfortunately, the \StartLong macro is not meant only for producing > > line-wise content. In the general case, it contains something else than > > just \starttyping block. > > Please try this: > > \bgroup > > \catcode`\^^M=\active > > \gdef\StartLong{\begingroup\obeylines\let^^M^^J\doStartLong} > > \egroup > > \def\doStartLong#1\StopLong{% > \setbuffer[x]#1\endbuffer > \endgroup > \getbuffer[x] > } > > > \starttext > \StartLong > \starttyping > abcde > \stoptyping > > and now > for something > completely different > > \StopLong > \stoptext > > > Christopher > ___ > 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] t-rsteps and starttyping
Thanks Taco, This solution works in that particular case. Unfortunately, the \StartLong macro is not meant only for producing line-wise content. In the general case, it contains something else than just \starttyping block. David Le Mercredi 21 septembre 2005 à 16:13 +0200, Taco Hoekwater a écrit : > Hi, > > \starttyping needs to be followed by a newline, but macro > arguments cannot contain newlines unless \obeylines is in > effect. So: > >\def\StartLong{\begingroup\obeylines\doStartLong} >\long\def\doStartLong#1\StopLong{\scantokens{#1}\endgroup} > > Cheers, > > Taco > > David Munger wrote: > > > > I do need the argument. Its use is repeated in the real macro. > > > > > >>\long\def\StartLong#1\StopLong{\scantokens{#1}} > > > > > > This produces no output as well. texexec says: > > No pages of output. > > > > Thanks anyway. > > > > David > > > > ___ > > 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 mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] t-rsteps and starttyping
Le Mercredi 21 septembre 2005 à 14:38 +0200, Christopher Creutzig a écrit : > David Munger wrote: > > \long\def\StartLong#1\StopLong{#1} > > > > \starttext > > \StartLong > > \starttyping > > hallo > > \stoptyping > > \StopLong > > \stoptext > > > > This will produce no error, but no output as well. Maybe we could use > > some alternate mechanism to define the \StartLong...\StopLong pair. > > \def\StartLong{} > \def\StopLong{} > > Or, if you insist on having the argument, I do need the argument. Its use is repeated in the real macro. > \long\def\StartLong#1\StopLong{\scantokens{#1}} This produces no output as well. texexec says: No pages of output. Thanks anyway. David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] t-rsteps and starttyping
Hi Peter, I am very sorry, I had completely forgotten about that issue. It boils down to the following: \long\def\StartLong#1\StopLong{#1} \starttext \StartLong \starttyping hallo \stoptyping \StopLong \stoptext This will produce no error, but no output as well. Maybe we could use some alternate mechanism to define the \StartLong...\StopLong pair. However, this is beyond my knowledge. Hans? Regards, David Le Monday 12 September 2005 à 19:04 +0200, Peter Münster a écrit : > On Mon, 27 Jun 2005, David Munger wrote: > > > I'm currently not at home. I'll be back next week and then I'll try to > > figure out what happens. > > Hi David, > have you already found something? > Regards, Peter > ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] scite
Hans Hagen : > Hi, > > I made a spell checking extension (tex/xml aware), wrapper and some more > stuff for scite. Should work with any recent scite version. Of course > the challenge is to get it working for all kind of encodings. > > Is there any interest for this kind of things? > > Hans I always use SciTE as well. Interest here, thanks. David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] t-rsteps and starttyping
Hi Peter, I'm currently not at home. I'll be back next week and then I'll try to figure out what happens. Regards, David Peter Münster : > Hello, > could somebody help me with the following problem please? > > With the following test file, I get the error > "ERROR: Illegal parameter number in definition of \verbatimline." > > \usemodule[rsteps] > \starttext > \StartSteps > \starttyping > hallo > \stoptyping > \NextStep > hallo > \StopSteps > \stoptext > > Greetings, Peter > ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] s-pre-19: page numbers?
Christopher Creutzig : > Christopher Creutzig wrote: > > Taco Hoekwater wrote: > > > >> Is this not the same problem as the one that was mentioned last > >> week (the one that requires the core-lst.tex that Hans posted > >> as attachment)? > > As a short term measure, I have included > > \def\linklisttoelement#1#2#3#4#5% % list location format page data >{\gotonextinternal\currentlist{#2}{#4}{#5}} > > into my document and got the menu I wanted – no spurious numbers any > more and the hyperlinks do work. YMMV. > > > Technical discussion (probably should go to the dev-list): Indeed I've already mentioned this in the dev-list, but there was no follow-up. http://archive.contextgarden.net/message/20050419.193933.63c4f706.html I had the same questions. Regards, David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Using modes
Reminds me of this post: http://archive.contextgarden.net/message/20041101.205339.1e76d98d.html I bet that is what we all do! David Matthias Weber : > Hello again, > > oh my, this was a stupid mistake. I added the > [screen] and [print] parameters to \stopmode. > No wonder that is what is being printed. > > Sorry for the confusion! > > Matthias ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] start*matter adding page
Hi Stuart, I use to have the same problem some time ago, and I've found the solution on the wiki: http://contextgarden.net/Empty_page_at_the_end Regards, David Le mardi 26 avril 2005 Ã 17:01 -0600, Stuart Jansen a Ãcrit : > When I divide my document into \startfrontmatter, \startbodymatter, etc. > an extra page is added to the end of the pdf. Is this expected behavior? > How can I prevent it? > > \def\mypagenumber#1% > {\headnumber[chapter]-#1} > \setuppagenumbering[command=\mypagenumber] > \starttext > \startfrontmatter > \completecontent > \stopfrontmatter > \startbodymatter > \chapter{foo} \section{bar} \section{baz} > \chapter{qux} \section{quux} \section{corge} > \chapter{grault} \section{garply} \section{waldo} > \stopbodymatter > \stoptext > > ___ > 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] How to insert a full page pdf.
Hi John, John R. Culleton : > I need to insert some example pages from one document into > another. Both are 8.5 x 11. > > I have read the old posts about \startTEXpage etc. and looked at > the source code. But I still have a few questions: > 1. Can I select e.g., just page 2 from the external document to > insert in my document? How? I'm no expert, but here's the way I do it: \externalfigure[filename][page=2] Then, I adjust the clipping to -- for instance -- get rid of the page number of the inserted `figure', as well as of its top and left margins. \clip [ voffset=1.25in, % clip the topmost part of the inserted page hoffset=1.5in, % clip the left margin of the inserted page height=9in, % clip the bottom of the inserted page width=5.1in]% clip the right margin {\externalfigure[filename][page=2]}} And, if you like, you can put all this into a \midaligned{}. > 2. Does Context automatically bump its page counter to compensate > for the inserted page or pages, or do I have to adjust it after > each such insertion? Well, if you treat the inserted PDF page as a figure, the page number of your main document won't be affected. Just clip the page number (if any) which lies on the inserted PDF page. Regards, David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] new beta
Solved. Insert the usual escaping command before line 2769 of texexec.pl: ... unless ( $dosish && !$escapeshell ) { $cmd =~ s/[^\\]\&/\\\&/io ; } $Problems = system("$cmd $MpMpName"); David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] new beta
Le mardi 19 avril 2005 Ã 09:43 +0200, Hans Hagen a Ãcrit : > David Munger wrote: > > Hans, > > > > That's not enough. There is another problem when ConTeXt text has to be > > rendered from inside MetaPost graphics. Consider the following code: > > > > \starttext > > \startuseMPgraphic{mptest} > > label (btex test etex, origin); > > \stopuseMPgraphic > > \useMPgraphic{mptest} > > \stoptext > > > > Even with the patch for texexec.pl ($cmd =~ s/([^\\])\&/$1\\\&/io ;), it > > fails. > > > > The problem occurs during the call to: > > > > pdfetex -progname=context \&cont-en > > > > from within texexec.pl. > > > > But surprisingly, it compiles successfully with the '\&' fix in > > texexec.ini. I guess that pdfetex has to call ConTeXt somehow in order > > to produce the `btex/etex' output, but that instance of ConTeXt doesn't > > do the shell escaping correctly. > > > > Any clue? What script should I look into? > > what shell do you use? bash The first escaping works. The problem occurs only when compiling the MetaPost. David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] new beta
Hans, That's not enough. There is another problem when ConTeXt text has to be rendered from inside MetaPost graphics. Consider the following code: \starttext \startuseMPgraphic{mptest} label (btex test etex, origin); \stopuseMPgraphic \useMPgraphic{mptest} \stoptext Even with the patch for texexec.pl ($cmd =~ s/([^\\])\&/$1\\\&/io ;), it fails. The problem occurs during the call to: pdfetex -progname=context \&cont-en from within texexec.pl. But surprisingly, it compiles successfully with the '\&' fix in texexec.ini. I guess that pdfetex has to call ConTeXt somehow in order to produce the `btex/etex' output, but that instance of ConTeXt doesn't do the shell escaping correctly. Any clue? What script should I look into? Regards, David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] section title in second line
Hi Steffen, I'm used to doing it this way: \def\ChapterTitleCmd#1#2% {\vbox {\blank[6*big]{\tfd #1}\blank[big]{\bfd #2}\blank[2*big]}} \setuphead [chapter] [style={},header=empty,command=\ChapterTitleCmd] Regards, David Steffen Wolfrum : > Hi, > > probably a silly question - nevertheless I couldn't find the answer yet. > I'd like to have a section title like this: > > Chapter 1 > This the the chapters title > > > What command gives me this linebreak?` > > Sorry, > > Steffen > ___ > 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] new beta
Hi Thomas, Thanks for trying, but it is not the correct way. Sorry for being unclear. The point is that shell escaping was not done in the proper way. Fix 1 used to do it in the configuration file (texexec.ini) which is basically a bad idea. Shell escaping has to be done properly by texexec. Thomas A.Schmitz : > OK, I think I got the new beta working now under OS X. David Munger's > suggestions were key (thanks a lot!). I had to apply both fixes, > AFAICS: Fix 1 should not be applied. Don't touch your texexec.ini, the right lines are the original ones: set TeXFormatFlag to & set MpFormatFlag to & Fix 2 has to be applied to lines 1505 _and _ 2443: $cmd =~ s/([^\\])\&/$1\\\&/io ; Regards, David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] new beta
Hans, > unless ( $dosish && ! $escapeshell ) { > $cmd =~ s/[^\\]\&/\\\&/io ; > } The space before the & gets replaced by a \ so that cmd was: ... -int=batchmode &cont-en and becomes: ... -int=batchmode\&cont-en Maybe use: $cmd =~ s/([^\\])\&/$1\\\&/io ; David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Page number in interaction menu
Sorry to bother again, but could somebody please check if they get these undesired page numbers within the interaction menu from this code? It seems to me that it is a bug, unless there is some setup command missing in my code. Thanks for any help, David David Munger : > Hello, > > Is there a way to remove the page number from the interaction menu? I > might be doing something wrong. Thanks for any clue. > > Minimal example: > > \setuppapersize [S6][S6] > \setuplayout [height=300pt, bottom=24pt] > \setupbodyfont [20pt] > > \setupinteraction [state=start, menu=on] > \startinteractionmenu [bottom] > Menu: \placelist[chapter] > [alternative=bottom,criterium=all,pagenumber=no] > \stopinteractionmenu > > \starttext > \chapter{First} > \page hello > \chapter{Second} > \stoptext > > > Regards, > > David > > ___ > 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] new beta
Hi Thomas, You may try to look in your texexec.ini (run "kpsewhich texexec.ini" to get the path) for those lines: set TeXFormatFlag to & set MpFormatFlag to & and replace them with those: set TeXFormatFlag to \& set MpFormatFlag to \& It solved it for me. Regards, David Thomas A.Schmitz : > Sorry to be a pest, but am I the only one seeing these problems? Has > everyone else installed the latest beta without problems? I thought > that I may have made a silly mistake installing, so I installed again > using Gerben's method, but I get the same error. For all purposes, this > beta does seem to be broken? > > Best > > Thomas ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] new beta
I tried today's beta too. Got exactly the same output as Otared's. Regards, David Otared Kavian : > Then after making a texhash, ran again context and ended up with an > error, which is not exactly as yours: > No pages of output. > Transcript written on cont-en.log.' instead of a filename. > Sorry, I can't find the format `cont-en.fmt'; will try `context.fmt'. > kpathsea: Running mktexfmt context.fmt > fmtutil: no info for format `context'. > I can't find the format file `context.fmt'! > ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \stretched fails with accents + \hyphenation
Hi again, I ran into the same problem with unicode strings in \hyphenation{...}. Any clue? \hyphenation{ma-gn{Ã}-to-hy-dro-dy-na-mi-que} Regards, David Le lundi 11 avril 2005 Ã 11:28 +0200, Hans Hagen a Ãcrit : > David Munger wrote: > > > Both of these fail (the second one is assumed to be unicode). > > > > \hbox to \textwidth {\stretched{pr\'edoctoral}} > > \hbox to \textwidth {\stretched{prÃdoctoral}} > > \hbox to \textwidth {\stretched{pr{\'e}doctoral}} > \hbox to \textwidth {\stretched{pr{Ã}doctoral}} > > an other alternative is to use the properties mechanism > > 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 mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \stretched fails with accents
> \hbox to \textwidth {\stretched{pr{\'e}doctoral}} > \hbox to \textwidth {\stretched{pr{Ã}doctoral}} Right. Thanks. > an other alternative is to use the properties mechanism Do you mean with something like: \hbox to \textwidth {\setuptolerance[stretch]inter word space is stretched} ? David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] symbol parameter of \setuplist
> \definesymbol[list][mine] [\MyListSymbol] > \definesymbol[list][another][\AnotherListSymbol] Aha! My code lacked the `list' parameter after \definesymbol. Thanks Hans. David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] symbol parameter of \setuplist
Hello, I fear I cannot figure out what is the meaning of the `symbol' parameter of \setuplist. From all the documentation or mailing list archives, the only use I can find is "symbol=1". Is there a way to use it to draw bullets, say, before each list item, like those in the itemize environment? If not, what would be the best way of achieving this? With \placelist[command=...] maybe? Regards, David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Page number in interaction menu
Hello, Is there a way to remove the page number from the interaction menu? I might be doing something wrong. Thanks for any clue. Minimal example: \setuppapersize [S6][S6] \setuplayout [height=300pt, bottom=24pt] \setupbodyfont [20pt] \setupinteraction [state=start, menu=on] \startinteractionmenu [bottom] Menu: \placelist[chapter] [alternative=bottom,criterium=all,pagenumber=no] \stopinteractionmenu \starttext \chapter{First} \page hello \chapter{Second} \stoptext Regards, David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \stretched fails with accents
Hello, Both of these fail (the second one is assumed to be unicode). \hbox to \textwidth {\stretched{pr\'edoctoral}} \hbox to \textwidth {\stretched{prÃdoctoral}} Regards, David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] bib module: \cite with page numbers
It works pretty well, thanks a lot! David Taco Hoekwater wrote : > >\setupcite[author,year][left=,right=] % disable braces >\def\citewithpages[#1]#2{% new command > (\cite[author][#1], \cite[year][#1], #2)% >} > >\citewithpages[davidson2001]{pp. 163-170} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] bib module: \cite with page numbers
Hello, Is it possible to get page numbers (or a chapter number) displayed in a citation, e.g. \cite[authoryears]{pp. 163-170}[davidson2001] and see \cite[authoryear]{chap. 3}[davidson2001] would format as: (Davidson, 2001, pp. 163-170) and see Davidson (2001) chap. 3 Thanks for any clue, David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] bib module problem
Taco Hoekwater wrote : > David Munger wrote: > > The bib module won't complete the publications list when there is more > > than one cite command. Try the following: > > Works for me, so .. what versions are you using? Ok. Here it is: $ texexec --version TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005 texexec : TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005 texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 tex : pdfeTeX, 3.14159-1.10b-2.1 (Web2C 7.4.5) context : ver: 2005.01.24 cont-en : ver: 2005.01.24 fmt: 2005.1.25 mes: english $ grep version= tex/context/bib/t-bib.tex %Dversion=2005.01.04, $ bibtex --version BibTeX (Web2C 7.4.5) 0.99c kpathsea version 3.4.5 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] bib module problem
The bib module won't complete the publications list when there is more than one cite command. Try the following: \usemodule[bib] \startpublication[k=biskamp2003,t=inbook, a={Biskamp},y=2003,n=1,s=Bis03] \author[]{Dieter}[D.]{}{Biskamp} \pubyear{2003} \title{Magnetohydrodynamic turbulence} \pubname{Cambridge University Press} \stoppublication \startpublication[k=sneyd1994,t=article, a={Sneyd and Wang},y=1994,n=2,s=SW94] \artauthor[]{A.~D.}[A.~D.]{}{Sneyd} \artauthor[]{A.}[A.]{}{Wang} \pubyear{1994} \arttitle{Interfacial instability due to {MHD} mode coupling in aluminium reduction cells} \journal{J. Fluid Mech.} \volume{263} \pages{343-359} \stoppublication \starttext See \cite[authoryear][biskamp2003] and \cite[authoryear][sneyd1994]. \placepublications \stoptext You'll get no publication list. Then comment out either of the \cite commands and you'll get the single-publication list. Thanks for any help. Regards, David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] nath bug
Giuseppe Bilotta wrote : > \appendtoks > \livesupsub@ > \to\everymath > > in t-nath.tex after the definition of livesupsub@ and > killsupsub@ Hmm... It seemed to work at first, but it just moved the problem. Now it's (\sum) limits that are typeset like in inline style. > Maybe Hans has some suggestion for a better solution: the > problem is that the mathcode is ignored for characters with > code 7 or 8 (sup- or subscript). So I'm currently changing the > catcode of ^ and _ when entering mathmode. I hope he has! Regards, David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \bfm broken
\bfm seems broken in 2004.12.06 Compiling the following: \setupformulas [method=bold] \starttext \startformula {\bfm x} \stopformula \stoptext results in: ... ! Bad number (127). \defaultskewcharmi \dosetskewchar ...ar \empty \skewchar \textfont #1 #2\skewchar \scriptfont #1... ...ultskewcharmi \dosetmathfamily \sybffam \textface \script... ...\else \the \boldmathstrategies \fi \autoenablemathcollect... \synchronizemath ...athfonts \the \mathstrategies \fam \mrfam \fi ...bfamily \c!bf \synchronizemath \aftergroup \synchronizemath ... l.4 {\bfm x} ? Any help welcome. Thanks in advance, David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] using \startfiguretext ... \stopfiguretext
Hi NIkolai, It might not be the only way, this should work: \placefigure [here] [fig:somelabel] {Caption} \placelegend{Figure} {Text} Nikolai Weibull wrote : > How do I get a figure with text that is displayed like > > Figure > Text > Caption > > where we first have the figure, then a description of it below, and > finally a caption? So far I've only managed to get the text to appear > to the left or right of the figure. > nikolai > ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] nath bug
Hello Giuseppe, I think I found a bug in the nath module. Try the following: \usemodule[nath] \starttext \[ e^{f(x)} \] \stoptext And by the way, fractions in exponents are typeset too big: \usemodule[nath] \starttext \[ e^{\frac{1}{\gamma-1}} \] \stoptext Best regards, David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: Re[2]: [NTG-context] Updated math modules
Giuseppe Bilotta wrote : > > Try the attached nath module. > Works great. Thanks. David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Updated math modules
Ok. I got a simpler example (no TOC): \usemodule [nath] \enableregime [utf] \starttext ^^c3^^a9 \stoptext With nath, I get "^^c3^^a9" in the output; without, I get "Ã". Thanks for any help, David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Updated math modules
Hello Giuseppe, Thanks for your good work. Sorry for reminding this bug to you, but it's the only reason why I can't use nath even though I wish a lot. About the problem unicode characters in toc. Ref.: http://www.ntg.nl/pipermail/ntg-context/2004/005306.html I attached a minimal example unicode file. You'll get garbage instead of the expected the "e acute" on the word "MathÃmatiques" in the table of contents. No matter wheter I use the amsl module or not, I get the following entry in my tuo file: \listentry{section}{1}{1}{Math^^c3^^a9matiques}{2::0:0:1:0:0:0:0::1}{1} Moreover, if you replace [nath] with just [amsl], you'll get different alignment of the formula. BTW: my TeX doesn't seem to like DOS-style newlines in t-amsl.tex, so I had to convert them to Unix-style ones. David \usemodule [nath] \enableregime [utf] \starttext \completecontent \section{MathÃmatiques} \[ f(x)= \frac 1x \] \stoptext ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Request: translation of texshow-web
Patrick Gundlach wrote : > Dear ConTeXt (and texshow-web) users, > > I am currently translating texshow-web into various languages. Well > I'd like to, but all languages besides german (and english) give me > headaches... So I am looking for some native speakers to help me > translating. The job is pretty easy, I'd send you a small textfile and > you send it back to me with some strings translated (currently 35 > strings, but there is also the help page and main page...) > > Patrick I'll take care of the french translation. ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \presentationstep
Hans Hagen wrote : > David Munger wrote: > > > I'm sorry, I'm no TeX/ConTeXt guru and I really have no idea of how to > > achieve this. I think now we need Hans' help. > > I haven't followed the discussion so closely, what is the problem? We're trying to implement steps-without-JavaScript for slides. You can get the module here: http://cfd.homelinux.org/tex/ The current problem, in its simplest form, is that using \mframed breaks the spacing. Minimal example: \starttext We aim to get this spacing: \startformula a + b \stopformula but when using: \startformula a \mframed{+ b} \stopformula we get the same broken spacing as in: \startformula a {+ b} \stopformula \stoptext > eh ... are you redefining low level macros? I'd never dare to... ;-) Just overriding \placeformula within \begingroup/\endgroup to mangle the formula numbers. Thank you, David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \presentationstep
Otared Kavian wrote : > Hi David and all ConTeXters, > > I was away from my e-mail so I am late in answering. > Thank you for the file you put on your site. Indeed everything works > as intended (the \placeformula no longer advances with each step), > and I think one may suggest to Hans to include this in future > distributions. > > However, in the spirit of ConTeXters who are always asking for a > step(!) towards perfectness, I let you know the following drawbacks > of the macros: > > 1) Somehow the \FromStep[n][reserve] changes the internal mechanism > of glue or spaces in displayed formulas. So one needs (as you do in > your example) to add \; around operators such as +, -, =. Can one > avoid this? I'm sorry, I'm no TeX/ConTeXt guru and I really have no idea of how to achieve this. I think now we need Hans' help. I have indeed noticed that enclosing an operator between braces breaks the spacing system. Try, for instance: \startformula \vec\nabla\cdot\vec u = 0 \stopformula \startformula \vec\nabla\cdot\vec u {=} 0 \stopformula Unfortunately, using \phatom{=} results in the same broken spacing as second formula. > 2) When one refers (see example below) with the command (\in[eq:NS]) > to an equation which has been introduced with \placeformula[eq:NS] > the interaction makes appear the first instance of that formula, > which may be incomplete. Could one have a control over this, that is > for instance, in this particular case, make appear the completed > equation at the end of the slide made with \StartSteps[Navier||Stokes > equation]? Good point! Here's the fix (file updated on my website): 37c37 < \dodoubleempty\doplaceformula[##1]} --- > \dodoubleempty\doplaceformula} 50c50,54 < \dodoubleempty\doplaceformula[1]} --- > [EMAIL PROTECTED]@number% > [EMAIL PROTECTED] > \else > [EMAIL PROTECTED] > [EMAIL PROTECTED] Now we got rid of the duplicate label warnings. I also added your contribution to the usage example. Thank you. Regards, David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \presentationstep
Otared Kavian wrote : > Hi David, > > I could not get through the example file: here is what I get: Argh... It's because of the line splits in email. I just put the file on my website: http://cfd.homelinux.org/tex/ Regards, David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \presentationstep
Otared Kavian wrote : > Hi David, > > Thanks for the details. Indeed I get now what is expected from your > macros, and as a matter of fact the result is much much better than > that of my crude macros... You did a great improvement! > So I am going to use yours from now on: thanks again! > > If I can suggest a possible improvement to the t-rsteps.tex macros, > it is the following: > When one uses these macros with an automatic numbering such as > \placeformula[equation-reference] (see the example below), with each > invocation of \page (that is a step) the number increases, and this > is an unwanted side result. Would it possible to "freeze" the > numbering procedure in such a way that the number doesn't change in > each step? (When I was using my macros, I didn't use \placeformula in > sildes with steps, but rather an old \leqno from plain TeX). Excellent idea indeed! Here's the fix. It is obviously not optimal, though it allows for multiple formula numbers on the same slide. Try it with: texexec --pdf --mode=demo t-rsteps Thanks for your advice. David %D \module %D [ file=t-rsteps, %Dversion=2004.11.08, %D title=\CONTEXT\ User Module, %D subtitle=Raw steps for slides, %D author=David Munger, %D date=\currentdate, %D copyright={David Munger}] % Thanks to Otared Kavian whose work inspired this module, % and who contributed to its development. % steps for slides \unprotect \newif\ifUseSteps \UseStepstrue % \UseStepsfalse \definecolor [highlightcolor] [blue] \long\def\StartSteps[#1]#2\StopSteps{% \begingroup% [EMAIL PROTECTED] [EMAIL PROTECTED] \ifUseSteps% %%% %% Workaround to make formula numbers "stick" \def\placeformula[##1]{% \incrementnumber[formula]% \expandafter\xdef\csname [EMAIL PROTECTED] \endcsname{\rawnumber[formula]} \expandafter\xdef\csname [EMAIL PROTECTED] \endcsname{\rawnumber[formula]} \dodoubleempty\doplaceformula[##1]} %%% \loop% [EMAIL PROTECTED] [EMAIL PROTECTED]@stopstep% [EMAIL PROTECTED]@autocounter% [EMAIL PROTECTED]<[EMAIL PROTECTED] [EMAIL PROTECTED] %%% %% Workaround to make formula numbers "stick" \def\placeformula[1]{% \setnumber[formula]{\csname [EMAIL PROTECTED] \setfalse\incrementformulanumber% \dodoubleempty\doplaceformula[1]} %%% \repeat% \else% [EMAIL PROTECTED]@stopstep% \fi% \endgroup} [EMAIL PROTECTED]@startstep} \def\OnlyStep[#1]{% [EMAIL PROTECTED] [EMAIL PROTECTED]@counter=#1}% [EMAIL PROTECTED] \def\FromStep[#1]{% [EMAIL PROTECTED] [EMAIL PROTECTED] \increment([EMAIL PROTECTED],#1-1)% [EMAIL PROTECTED]@counter>[EMAIL PROTECTED] [EMAIL PROTECTED] \def\AfterStep[#1]{% [EMAIL PROTECTED] [EMAIL PROTECTED]@counter>#1}% [EMAIL PROTECTED] \def\UntilStep[#1]{% [EMAIL PROTECTED] [EMAIL PROTECTED]@counter<#1}% [EMAIL PROTECTED] \def\HighlightStep[#1]#2{% {\UntilStep[#1]{#2}\OnlyStep[#1]{\highlightcolor #2}\AfterStep[#1]{#2}}} %% % internal macros %% [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] \ifUseSteps% [EMAIL PROTECTED]>[EMAIL PROTECTED] [EMAIL PROTECTED] \fi% \fi% \starthidden} [EMAIL PROTECTED] [EMAIL PROTECTED]@number<#1% [EMAIL PROTECTED] \doglobal\increment([EMAIL PROTECTED],#1)\fi} \defineframedtext [EMAIL PROTECTED] [offset=overlay,width=broad,height=fit,frame=off] [EMAIL PROTECTED]@hide]} [EMAIL PROTECTED] [EMAIL PROTECTED] \processallactionsinset [#1] [ reserve=>[EMAIL PROTECTED]@dostepreserve, \s!default=>[EMAIL PROTECTED]@dostepnoreserve] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] \ifUseSteps% [EMAIL PROTECTED] [EMAIL PROTECTED] \fi% \fi% \ifmmode\expandafter\mframed\else\expandafter\framed\fi% [EMAIL PROTECTED],frame=off,offset=overlay]{#1}% \ifmmode\;\fi} [EMAIL PROTECTED] [EMAIL PROTECTED];\fi}% \ifUseSteps% [EMAIL PROTECTED]@next{\relax}\fi% [EMAIL PROTECTED] \protect \doifnotmode{demo}{\endinput} % % usage example % \usemodule [pre-original] \usemodule [rsteps] \starttext \StartSteps[Slide Title] % the title is passed to % the \Subject macro \startitemi
Re: [NTG-context] \presentationstep
Otared Kavian wrote : > Hi David, Hi all Contexters, > > Sorry for being late in answering. > > I just tried to test your code but did not succeed in showing things > step by step, even after adding: > \def\Subject#1{\centerline{\bf #1}} > \setuppapersize [S6][S6] > \setupcolors[state=start] > and changing the commands \[ and \] (which are probably from a LaTeX > background) into \startformula and \stopformula. > > What I get doesn't show any step, but only one or two pages with > several "Slide Title", and the items you had in your example, on it, > and one or two pages with "Navier-Stokes equation". > > Am I missing something? Could you please send me (if necessary off > List) a source file of yours which is completely working? > > Best regards: OK Oh sorry for not being clear about it. I was assuming that some presentation module would be imported, for instance: \usemodule[pre-original] So probably there lacks a \page command in your \Subject definition. About the \[ and \]: you're right. I was using the amsl module from Giuseppe Bilotta. Thanks for your remarks. :-) So, assuming that the steps code is in a file name t-rsteps.tex, the complete example would be: -- \usemodule [pre-original] \usemodule [rsteps] \starttext \StartSteps[Slide Title] % the title is passed to % the \Subject macro \startitemize \item Item 1 \OnlyStep[2] {\item (oops!)} \UntilStep[4] {\item Item 2*} \FromStep[4] {\item Item 2} \stopitemize \StopSteps \StartSteps[Navier||Stokes equation] \startformula \frac{D\vec u}{Dt} = \FromStep[2][reserve]{-{\red \frac1\rho \vec\nabla p}} \FromStep[3][reserve]{+\;{\green \vec g}} \FromStep[4][reserve]{+\;{\blue \frac1\rho \vec\nabla\cdot S}} \stopformula Momentum transport: \NextStep \item {\red Pressure gradient}\par\NextStep \item {\green Gravity} \par\NextStep \item {\blue Stress (viscous, turbulent, Maxwell)} \StopSteps \stoptext -- ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \presentationstep
Hi all, Inspiring from Otared Kavian's code and Han's presentation styles with support for steps, I cooked the following in order to solve the non JavaScript version issue. I post it in case it could be useful to other people. This implementation supports an \{Only|From|Until}Step[n] syntax as well as the simple \NextStep-style one. Otared: Any comments or suggestions? And here is an example of usage: --- \StartSteps[Slide Title] % the title is passed to % the \Subject macro \startitemize \item Item 1 \OnlyStep[2] {\item (oops!)} \UntilStep[4] {\item Item 2*} \FromStep[4] {\item Item 2} \stopitemize \StopSteps --- And here is a mixed example: --- \StartSteps[Navier||Stokes equation] \[ \frac{D\vec u}{Dt} = \FromStep[2][reserve]{-{\red \frac1\rho \vec\nabla p}} \FromStep[3][reserve]{+\;{\green \vec g}} \FromStep[4][reserve]{+\;{\blue \frac1\rho \div S}} \] Momentum transport: \NextStep \item {\red Pressure gradient}\par\NextStep \item {\green Gravity} \par\NextStep \item {\blue Stress (viscous, turbulent, Maxwell)} \StopSteps --- And here's the code: % steps for slides \unprotect \newif\ifUseSteps \UseStepstrue % \UseStepsfalse \long\def\StartSteps[#1]#2\StopSteps{% [EMAIL PROTECTED] [EMAIL PROTECTED] \ifUseSteps% \loop% [EMAIL PROTECTED] [EMAIL PROTECTED]@stopstep% [EMAIL PROTECTED]@autocounter% [EMAIL PROTECTED]<[EMAIL PROTECTED] [EMAIL PROTECTED] \repeat% \else% [EMAIL PROTECTED]@stopstep% \fi} [EMAIL PROTECTED]@startstep} \def\OnlyStep[#1]{% [EMAIL PROTECTED] [EMAIL PROTECTED]@counter=#1}% [EMAIL PROTECTED] \def\FromStep[#1]{% [EMAIL PROTECTED] [EMAIL PROTECTED] \increment([EMAIL PROTECTED],#1-1)% [EMAIL PROTECTED]@counter>[EMAIL PROTECTED] [EMAIL PROTECTED] \def\UntilStep[#1]{% [EMAIL PROTECTED] [EMAIL PROTECTED]@counter<#1}% [EMAIL PROTECTED] %% % internal macros %% [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] \ifUseSteps% [EMAIL PROTECTED]>[EMAIL PROTECTED] [EMAIL PROTECTED] \fi% \fi% \starthidden} [EMAIL PROTECTED] [EMAIL PROTECTED]@number<#1% [EMAIL PROTECTED] \doglobal\increment([EMAIL PROTECTED],#1)\fi} \defineframedtext [EMAIL PROTECTED] [offset=overlay,width=broad,height=fit,frame=off] [EMAIL PROTECTED]@hide]} [EMAIL PROTECTED] [EMAIL PROTECTED] \processallactionsinset [#1] [ reserve=>[EMAIL PROTECTED]@dostepreserve, \s!default=>[EMAIL PROTECTED]@dostepnoreserve] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] \ifUseSteps% [EMAIL PROTECTED] [EMAIL PROTECTED] \fi% \fi% \ifmmode\expandafter\mframed\else\expandafter\framed\fi% [EMAIL PROTECTED],frame=off,offset=overlay]{#1}% \ifmmode\;\fi} [EMAIL PROTECTED] [EMAIL PROTECTED];\fi}% \ifUseSteps% [EMAIL PROTECTED]@next{\relax}\fi% [EMAIL PROTECTED] \protect ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \presentationstep
Hi Otared, Thanks a lot for you macros. They do the job pretty well. They remind me of the way Prosper does things. When I have time, I'll try to find out how to Wiki your post. Thanks again! David Otared Kavian wrote : > Hi David, > > A few months ago I had to use steps in my presentations, but since I > could not use thouroughly s-pre-60.tex (and the examples given in > s-pre-61.tex) I ended up > writing a few macros which work fine with ConTeXt and the presentation modules. > These macros are very elementary and crude, but they work... > If I succeed to learn how to use layers smartly as does Hans, I will > write these macros again. :-) > > Below are the macros and some examples. > Best regards: OK > begin test-step-ok.tex > %%K test-step-ok.tex > > %%K Here we use the plain \TeX\ command \phantom{} in order to have > %%K some material appear step by step. > %%K The structure is quite simple, but since I am not very > %%K familiar with ConTeXt, I cannot write elegant code as does > %%K Hans Hagen... > %%K > %%K An advantage is that the code can be used also in > %%K plain TeX, in LaTeX and other macro-packages. > %%K > > \newif\ifSteppingSlide > \SteppingSlidetrue %%K this is when you want a step by step presentation > %\SteppingSlidefalse %%K this is when you want to print the slides > % > \newcount\StepsCounter > \StepsCounter=0 > % > \newcount\NumberOfSteps > \NumberOfSteps=10 > % > \newcount\BeforeStepNumber > \BeforeStepNumber=0 > % > %%K StepBetween[number1,number2]{material} will make "material" > %%K appear between steps "number1" and "number2" > \def\StepBetween[#1,#2]#3{% > \ifSteppingSlide > \ifnum#1>\StepsCounter \phantom{#3} >\else > \ifnum#2<\StepsCounter \phantom{#3} >\else \relax #3 > \fi >\fi >\else {#3} > \fi} > % > %%K Step{number1}{material} will make "material" > %%K appear beginning with step "number1" until "NumberOfSteps" > \def\Step#1#2{\StepBetween[#1,\NumberOfSteps]{#2}} > % > %%K OnlyStep{number1}{material} will make "material" > %%K appear only on step "number1" > \def\OnlyStep#1#2{\StepBetween[#1,#1]{#2}} > % > %%K StepBefore{number1}{material} will make "material" > %%K appear only on all steps before "number1" > \def\StepBefore#1#2{ > \global\BeforeStepNumber=#1 > \StepBetween[0,\BeforeStepNumber]{#2}} > % > \long\def\SlideWithSteps#1#2{ > \ifSteppingSlide > \global\StepsCounter=0 > \global\NumberOfSteps=#1 > \MakeSteps{#2} > \else #2 > \fi} > % > \long\def\MakeSteps#1{\loop #1 > \ifnum\StepsCounter<\NumberOfSteps > \global\advance\StepsCounter by 1\vfill\eject > \repeat > \vfill\eject} > % > > > %%K This is the end of the macros > % > > % \endinput > > %%K Here is a sample of how you can use these macros > %%K > \starttext > > \startitemize > > \SlideWithSteps{8}{ > \item Consider the following nonlinear equation: > $$\Step{8}{{\partial u \over \partial t}} \Step{1}{-\Delta u + > |u|^{p-1}u} \Step{2}{=} \Step{3}{f} \Step{4}{+{\rm div}(g)} > \Step{5}{+|\nabla u|{\Step{6}{^2}}}$$ > \StepBetween[3,5]{\item This line appears only between steps 3 and 5} > \Step{8}{\item The equation may be parabolic.} > \StepBefore{4}{\item This line appears only before step 4.} > \OnlyStep{4}{\item This line appears only at step 4.} > \vfill (Here you see step number \the\StepsCounter) > } % end of \SlideWithSteps > > \stopitemize > \page > > \stoptext > > ___ > ntg-context mailing list > [EMAIL PROTECTED] > http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \presentationstep
> try > > texexec --pdf --mode=demo s-pre-61 This is actually what I tried. > and see if that one suit syour needs (the stepper can be used with other sytles > as well, once \usemodule[pre-60] is done; acrobat 6 needed) I think the latest Acrobat Reader version for Linux is 5.0.9. I guess this means I should forget about steps. Thanks anyway. David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \presentationstep
Nothing seems to work here. I'm afraid the problem is indeed that Acrobat Reader under Linux is not really JavaScript aware... Would it be possible to implement the steps commands such that steps span over multiple slides instead of being managed by JavaScript? David Le mardi 02 novembre 2004 Ã 10:58 +0100, Hans Hagen a Ãcrit : > Henning Hraban Ramm wrote: > > > Am 02.11.2004 um 07:04 schrieb David Munger: > > > >> Could someone tell me if I'm doing something bad here, please? > >> > >> File test.tex > >> --- > >> \usemodule[pre-original] > >> \starttext > >> \Subject{Test} > >> step 1 > >> \presentationstep > >> step 2 > >> \stoptext > >> --- > >> texexec --mode=step --output=pdf test.tex > >> > >> This gives me a white page instead of the text I get without > >> `--mode=step'. > > > > > > You doesn't define a "step" mode, so there's no output. > > Completely logical. What's the matter? > > > > You can use "--mode=something" switch only for environments like > > \startmode[something] > > \stopmode[something] > > > > \startnotmode[something] > > \stopnotmode[something] > > > > See the wiki: > > http://contextgarden.net/Modes > > > > But probably you're looking for: > > http://contextgarden.net/Presentation_effects > > another option is to use s-pre-60 > > 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 > [EMAIL PROTECTED] > http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \presentationstep
Hi, Could someone tell me if I'm doing something bad here, please? File test.tex --- \usemodule[pre-original] \starttext \Subject{Test} step 1 \presentationstep step 2 \stoptext --- texexec --mode=step --output=pdf test.tex This gives me a white page instead of the text I get without `--mode=step'. Thanks for any help, David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] placeformula with active colon
Hello, Making the colon active results in errors when using colons in formula labels. Example: \useencoding[ffr] \mainlanguage [fr] \starttext \placeformula[eq:foo] \startformula a = 0 \stopformula \stoptext Log: TeXExec 5.0 - ConTeXt / PRAGMA ADE 1997-2004 [...] ConTeXt ver: 2004.10.19 fmt: 2004.10.23 int: english mes: english [...] ! Undefined control sequence. \discretionarytoken \convertargument #1\to #2->\dodoglobal \edef #2 {\detokenize {#1}} \directdiscretionary ...#1\to \discretionarytoken \let \textmodediscretionar... eq: foo \doifelse #1#2->\edef \!!stringa {#1 }\edef \!!stringb {#2}\ifx \!! stringa \!... \dodoplaceformula [#1]#2->\doifelse {#1}{-} {\setfalse \handleformulanumber ... ... l.5 \startformula Thanks for any help, David Munger ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] definemathsymbol and txfonts
Hi, I can't figure out how to get \definemathsymbol work with txfonts extended-A math fonts: \definemathsymbol [oiint] [op] [txexa] ["09] \starttext I want to get this: \getglyph{txexa}{\char"09} \startformula \oiint f(x,y) \,da \stopformula \stoptext Thanks for any help, David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re : [NTG-context] Re: Re : [NTG-context] Re: Re : [NTG-context] amsl: startcases/stopcases
> Indeed, I used to like nath a lot, but as I pointed out in this thread > http://www.ntg.nl/pipermail/ntg-context/2004/005306.html > there are bugs which prevent me from using it at the moment. Yes, it's still in my TODO list. Sadly, I don't have enough time to work on it these days :\ What you've done so far is already a great piece of work. :) Without it, I wouldn't be writing my physics thesis using ConTeXt. David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re : [NTG-context] Re: Re : [NTG-context] amsl: startcases/stopcases
> Oh, great! I'm really looking forward to get this new version. By the > way, would you be so kind to include some multiline equation > environment? Something like (or better than) > \[ > first part of very long equation > \eqbreak > second part of very long equation > \eqbreak > third part of very long equation > \] You want to use the nath module: all equations are multiline: Indeed, I used to like nath a lot, but as I pointed out in this thread http://www.ntg.nl/pipermail/ntg-context/2004/005306.html there are bugs which prevent me from using it at the moment. Regards, David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re : [NTG-context] Cell padding in natural tables
And by the way, is there a way to lock the total width of the table without setting the width of individual cells? you can set the 'offset'; think of each table cell as being something \framed Ahh... So that was the point. Works perfectly. Thank you. And how about locking the table's total width, without having to tweak individual cells width? David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Cell padding in natural tables
Hello, There was that question to which I could not find an answer: http://www.ntg.nl/pipermail/ntg-context/2002/000140.html So, is there a way to set the cell padding in natural tables? And by the way, is there a way to lock the total width of the table without setting the width of individual cells? Regards, David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re : [NTG-context] amsl: startcases/stopcases
> Is there some way of telling startcases/stopcases to behave in display > mode? Yup, I just changed a couple of things and now we have a \startbigcases ... \stopbigcases for this. Will upload new version soon. Oh, great! I'm really looking forward to get this new version. By the way, would you be so kind to include some multiline equation environment? Something like (or better than) \[ first part of very long equation \eqbreak second part of very long equation \eqbreak third part of very long equation \] which I achieve at the moment by doing \[ \startalign first part of very long equation \hskip 1.5em \\ \hfill second part of very long equation \\ \hfill third and part of very long equation \stopalign \] But this does not work as well I wish. I'd like to substitute the '\hskip 1.5 em' after the first line for a '\hfill' so that it always be the leftmost line, but the latter does nothing at all. So I have to put a '\hskip' and tweak the distance by hand. Thanks for you help, David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re : [NTG-context] French quotes
there has been a fix in the guillemots (wrong latin modern defs) It works great now. Thanks a lot, Hans. David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] amsl: startcases/stopcases
Hello Giuseppe, I'm having a little trouble with the cases in amsl. Compiling this: \[ f(x) = \startcases 0& \text{if $x < -\epsilon$} \\ \frac12 & \text{if $x > \epsilon$} \stopcases \] results in an error around the \frac. Changing it to \dfrac makes the input compile ok, but typesets the cases in an ugly manner with really narrow spacing. Is there some way of telling startcases/stopcases to behave in display mode? Thanks in advance, David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] French quotes
Hello, Processing this source: \enableregime [utf] \mainlanguage [french] \starttext Let's quote \quote{something}. \stoptext with ConTeXt ver: 2004.4.9 fmt: 2004.5.20 int: english mes: english results in pdf with strange symbols instead of french quotation marks. It used to work fine with: ConTeXt ver: 2004.1.13 fmt: 2004.5.1 int: english mes: english Has something changed in font processing since then? David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] aligned equation numbers in nath
Hi Giuseppe, I know it's still work in progress, but could you suggest me some workaround in order to number individual aligned equations in nath? Maybe some \label command that would work like this way: \[ \startalign x^2 + y^2 &= a^2 \\ \label[eq:bogus] a^2 &= R^2 \stopalign \] In \in{equation}[eq:bogus], blah blah No matter wether the other aligned equations are numbered or not. All I wish is to be able to refer to a single equation. Or maybe there is a way to set a kind of anchor? \[ x^2 + y^2 \setanchor= a^2 \] \placeformula[eq:bogus] \[ a^2 \getanchor= R^2 \] so that both equal signs be aligned. Something like this would be very nice. Thanks in advance, David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re : [NTG-context] boldsymbol workaround
\define[1]\boldsymbol{{\hbox{\formula{\bfm #1 When using nath, it doesn't work with inline formulas. So in that case, better use \unprotect [EMAIL PROTECTED] \bfm #1 [EMAIL PROTECTED] \protect ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] boldsymbol workaround
Hi all, I've just found a little workaround for using boldsymbols. It works even with the nath module. It's probably not the best way of doing it, but since it does the trick for me, I guess it might useful to other ConTeXters. Here it is: \define[1]\boldsymbol{{\hbox{\formula{\bfm #1 I also have to: \definebodyfont [17.3pt,14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt,4pt] [mm] [mrbf=cmbx10 sa 1, exbf=cmex10 sa 1, mibf=cmmib10 sa 1, sybf=cmbsy10 sa 1, mabf=msam10 sa 1] \setupformulae[method=bold] Then, I may define very handy commands like \define\grad{\boldsymbol{\nabla}} \define[1]\vec{\boldsymbol{#1}} \define[1]\unitvec{\hat{\vec{#1}}} and formulas like this typeset perfectly: \[ \grad h = a \unitvec{n} \] ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re : [NTG-context] Re: Re : [NTG-context] Unicode garbage in table of contents
hm, so maybe nath makes < or > active ? I guess you're right. What should I look for in the tex file to make them inactive? David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re : [NTG-context] Unicode garbage in table of contents
\enableregime[utf] in the preamble and unicode characteurs in the document are typeset correctly. But, in the table of contents and in the index, they are replaced with their hex codes with some garbage. how does the \jobname.tuo file looks like? maybe you run a 7 bit tex (in which care you need to enable the 8 bit tcx extension) The text in the tuo file looks exactly like the one in the table of contents. A few more tests pointed out that the problem arises from the nath module. But my TeX knowledge is too limited so I can't find where it happens into the file. David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Unicode garbage in table of contents
Hello, I'm using \enableregime[utf] in the preamble and unicode characteurs in the document are typeset correctly. But, in the table of contents and in the index, they are replaced with their hex codes with some garbage. Anything I might be doing wrong? David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] bfmath in nath
Hello, The following outputs a nice bold displayed omega (the first one), and a thin normal inline one (the second one): \usemodule [nath] \setupbodyfont [12pt] \definebodyfont [12pt] [mm] [mibf=cmmib10 sa 1] \starttext \[\bfmath \omega\] $\bfmath \omega$ \stoptext Note that replacing nath with amsl in \usemodule[nath] results in two bold omegas, so the problem has to be in t-nath.tex. Btw, this nath module is very useful to me. If I'd be able to do some debugging into it, I sure would. Could you please point me to some ConTeXt hacking references? Thanks in advance, David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re : [NTG-context] Re: Re : [NTG-context] Indentation after formulas
Try \setupformulas[indentnext=yes], rather. Of course, you do know that indenting the text following a formula when the text refers to the formula is not a typographical/structural good idea, don't you? ;) Ahhh... It works fine with \setupformulas[indentnext=no]. Thanks. Actually, I was not trying to indent text following formulas, but rather to remove such indentation, which seems to be the default behavior. I noticed a \setupformulas[indentnext=auto] in t-amsl.tex. Is it intended to indent on a paragraph change following a formula and to make no indentation if there's no paragraph change, just like in LaTeX? If it is, I might have to upgrade again. David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re : [NTG-context] Indentation after formulas
Let \placeformula \[ f(x) = x^2, \] where $x$ means nothing. I've found that inserting \let\startformula\startmpformula \let\stopformula\stopmpformula before \usemodule[nath] does the trick. But I feel it's not a very good idea. Any advice? David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Indentation after formulas
Hello, Compiling the following results in indented text following the formula: % interface=en tex=pdfetex output=pdftex \usemodule [nath] \setupindenting [medium] \starttext \section{Some section} Let \placeformula \[ f(x) = x^2, \] where $x$ means nothing. \stoptext I'd like "where $x$ means nothing." not to be indented as a new paragraph. Am I doing something wrong? David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Indentation after formulas
Hello, Compiling the following results in indented text following the formula: % interface=en tex=pdfetex output=pdftex \usemodule [nath] \setupindenting [medium] \starttext \section{Some section} Let \placeformula \[ f(x) = x^2, \] where $x$ means nothing. \stoptext I'd like "where $x$ means nothing." not to be indented as a new paragraph. Am I doing something wrong? David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re : [NTG-context] Re: Re : [NTG-context] Re: Re : MetaPost with etex/btex
what ConTeXt version do you have? It sounds like an older one. texexec says: ConTeXt ver: 2003.12.12 fmt: 2003.12.14 int: english mes: english Freshly downloaded, but poorly installed by a novice... Actually I replaced the ConTeXt part from the debian unstable package source. So teTeX and ConTeXt are not synchronized. David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re : [NTG-context] Re: psfrag
Patrick Gundlach wrote : Hi David, > So, is there any ConTeXt equivalent to LaTeX's \psfrag command? No. > It would be very useful to process PostScript output from vector > graphics drawing programs. How does psfrag from LaTeX work internally? Perhaps we are able to make something similar. I don't know how about its internals, but here's a usage example. For instance, using some vector graphics program, I write a text label "alpha" on some figure, and I print this figure in an EPS file. Then, using PSfrag, right before \including the EPS file, I tell PSfrag to replace "alpha" with "$\alpha $": \psfrag{alpha}{$\alpha$} \includegraphics{some_eps_file} I believe PSfrag works in conjunction with dvips. There's this PS file which may give you some clue: texmf/dvips/psfrag/psfrag.pro I can neither read TeX code nor PS code, but it is likely that it builds some sort of lookup table for the labels. If I can help anyway, please tell me. There are those two other files: texmf/tex/plain/graphics/psfrag.tex texmf/tex/latex/misc/psfrag.sty David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re : [NTG-context] Re: Re : MetaPost with etex/btex
Patrick Gundlach wrote : Do you have \protectbufferstrue in cont-sys.tex? That was the exact point. It fixed it. Thanks a lot! David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re : [NTG-context] MetaPost with etex/btex
Hi Willi, Thanks for the examples, they'll sure be useful. But I realize I have not been precise enough in my post. The point is that \startMPcode fill fullcircle scaled 1cm withcolor red ; \stopMPcode works, while \startMPcode label.top("Some label", (1cm,1cm)) ; \stopMPcode produces some garbage between "Some" and "label", and \startMPcode label.top(btex Some label etex, (1cm,1cm)) ; \stopMPcode doesn't work at all. Sorry for being that vague. David On 2003-12-14 07:01:34, Willi Egger wrote : Hi David, The use of the different possibilities of including metapost graphics in ConTeXt are described in the METAFUN-manual on pages 9, 81-82, 115 For your refernce I attach a small demo file using your code ... Kind regards Willi David Munger wrote: Hello, The following code results in no label output: \starttext \startMPcode label.top(btex Some label etex, (1cm,1cm)) ; \stopMPcode \stoptext I'm using ConTeXt 2003.12.12. By the way, why don't \startMPgraphic and \stopMPgraphic do anything? ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] psfrag
Hello, I know this topic was treated in the past years, but I couldn't find the answer in mailing list archives. So, is there any ConTeXt equivalent to LaTeX's \psfrag command? It would be very useful to process PostScript output from vector graphics drawing programs. David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] MetaPost with etex/btex
Hello, The following code results in no label output: \starttext \startMPcode label.top(btex Some label etex, (1cm,1cm)) ; \stopMPcode \stoptext I'm using ConTeXt 2003.12.12. By the way, why don't \startMPgraphic and \stopMPgraphic do anything? David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re : [NTG-context] Re: [NTG-context] Re: [NTG-context] Re : [NTG-context] Gathered equations with t-amsl and t-nath
Monday, December 8, 2003 Giuseppe Bilotta wrote: > Regarding your problem(s): > * with the ConTeXt version I have (2003.09.26), all lines in > the gather are separate. The whole block has a single number, > though. This is both with, and without nath. > * formula (sub)numbering needs a good cleanup in ConTeXt (just > like math support in general ...). I need to discuss the thing > with Hans before being able to fix the thing in amsl and/or > nath. Ok, I think I found what's going wrong. Actually you did! :) One number per line, great! Thank you. David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re : [NTG-context] Gathered equations with t-amsl and t-nath
What version of ConTeXt are you using? texexec says: ConTeXt ver: 2003.1.31 fmt: 2003.10.4 int: english mes: english I'm using the version included in debian unstable's tetex package. * formula (sub)numbering needs a good cleanup in ConTeXt (just like math support in general ...). I need to discuss the thing with Hans before being able to fix the thing in amsl and/or nath. I just started using ConTeXt for writing scientific papers. Before I was aware of the nath module, writing math was tedious. But now, in my opinion, your nath module does the trick pretty well. Thanks for helping, David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re : [NTG-context] Gathered equations with t-amsl and t-nath
> \placeformula > \startgather > f(x) = x \\ > g(x) = x^2 \\ > h(x) = x^3 > \stopgather I will look into this. Are you using amsl only or nath too? It works well with amsl only. Though it would be nice to have an option to chose between individual numbering or one number for all equations. The bug happens when using nath too. ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Gathered equations with t-amsl and t-nath
Hello Giuseppe, you've done a great work with amsl an nath modules! Seems that there is a little bug when you try to gather more than two formulas: \placeformula \startgather f(x) = x \\ g(x) = x^2 \\ h(x) = x^3 \stopgather When doing so, I end up with the last two equations on the same line, with the same equation number. Thanks! David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re : [NTG-context] Gathered equations with t-amsl and t-nath
> \placeformula > \startgather > f(x) = x \\ > g(x) = x^2 \\ > h(x) = x^3 > \stopgather I will look into this. Are you using amsl only or nath too? It works well with amsl only. Though it would be nice to have an option to chose between individual numbering or one number for all equations. The bug happens when using nath too. ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Gathered equations with t-amsl and t-nath
[Sorry if this is a repost. The first time, I posted from the wrong email account.] --- Hello Giuseppe, you've done a great work with amsl an nath modules! Seems that there is a little bug when you try to gather more than two formulas: \placeformula \startgather f(x) = x \\ g(x) = x^2 \\ h(x) = x^3 \stopgather When doing so, I end up with the last two equations on the same line, with the same equation number. Thanks! David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context