Re: [NTG-context] selectively turn off captions

2007-12-02 Thread Sanjoy Mahajan
I'm using the dual extension .ctx.tex as a way of telling my editor (emacs) to invoke the context mode of AUCTeX when I load a file with that extension. Auctex automatically recognizes plain tex vs latex vs context files by the first few lines in the file. The main time when that method

[NTG-context] defineitemgroup interferes with item reference

2008-05-01 Thread Sanjoy Mahajan
I cannot figure out the error in the following nested itemization with a reference. Is it a bug or am I overlooking something? Here is the smallest example I could make. Strangely, if I change the startproblemlist to startitemize and stopproblemlist to stopitemize, all is well.

Re: [NTG-context] defineitemgroup interferes with item reference

2008-05-03 Thread Sanjoy Mahajan
Hans Hagen [EMAIL PROTECTED] wrote: itemgroups cannot be miced Though there's no problem without those references in [brackets], so the mixing works most of the time anyway. this catches it Thanks! With two small changes, your definition makes the mixing work even when using references.

Re: [NTG-context] Referencing Itemized Items?

2008-05-03 Thread Sanjoy Mahajan
Aditya Mahajan [EMAIL PROTECTED] wrote: I usually prefer Note that \in Step[fire] is optional for experienced chefs. This way, if you enable interaction, Step 3 will become a link, rather than just 3. An example showing a third alternative. This alternative is useful if you use that

Re: [NTG-context] defineitemgroup interferes with item reference

2008-05-03 Thread Sanjoy Mahajan
Aditya Mahajan [EMAIL PROTECTED] wrote: Are you using an old version of ConTeXt? Version 2008.01.28 from Norbert's latest packages for Debian unstable. I can upgrade to 2008.04.27 by hand, but my TeX life has become so sipmle since using Norbert's packages that I may let laziness triumph.

[NTG-context] \placebookmarks: opening with only topmost levels visible

2008-07-09 Thread Sanjoy Mahajan
From this minimal example, the resulting PDF file opens with chapter and section bookmarks. But it should open with just chapter bookmarks due to the second argument in this line: \placebookmarks [chapter,section] [chapter] The problem is mentioned on the wiki

Re: [NTG-context] \placebookmarks: opening with only topmost levels visible

2008-07-10 Thread Sanjoy Mahajan
Wolfgang Schuster [EMAIL PROTECTED] wrote: \placebookmarks [chapter,section] [chapter] \placebookmarks [chapter,section] That's true meaning that my minimal example was too minimal! Giving no argument works here is that the default, i.e. with no second argument to

Re: [NTG-context] \placebookmarks: opening with only topmost levels visible

2008-07-10 Thread Sanjoy Mahajan
Wolfgang Schuster [EMAIL PROTECTED] wrote: \placebookmarks [chapter,section,subsection] [chapter,section] should work but it shows all three levels. What do you expect, you open the chater *and* the section branches. Thanks, now I understand what the second argument means: It's not

Re: [NTG-context] Newbie questions

2006-06-24 Thread Sanjoy Mahajan
From:Thomas Moore [EMAIL PROTECTED] I have figured out how to download the t-amsl module and can successfully invoke it as long as the t-amsl.tex file is in the same folder as my document files. But how do I install it permanently so that I can invoke it in all my documents? I don't know

Re: [NTG-context] Newbie questions

2006-06-24 Thread Sanjoy Mahajan
how do I run mktexlsr? from the OS X Terminal Since you're using tetex, 'mktexlsr' should be in the PATH already (on my linux system it's in /usr/bin, one of the very standard components of PATH), so 'mktexlsr' from the Terminal should work. If that doesn't work, what's the output of 'printenv

Re: [NTG-context] Newbie questions

2006-06-28 Thread Sanjoy Mahajan
From:Thomas Moore [EMAIL PROTECTED] \setuppapersize[letter] You want \setuppapersize[letter][letter] otherwise you get letter sized pages imposed on A4 paper (not widely available in Pomona probably!) because the default value for the second argument is A4. You might get lucky and end up

Re: [NTG-context] ConTeXt + asymptote

2006-06-29 Thread Sanjoy Mahajan
In regard to the remark I saw posted about monster eps files That was from me. The size was one issue and probably, as you say, disappears in the size of the final pdf file (I didn't test it extensively but I think that happened). However, a related issue to the size is that ConTeXt parses the

Re: [NTG-context] Malicious little bugger

2006-07-02 Thread Sanjoy Mahajan
are the same, i.e. the \cs ends at a non-letter and the space is gobbled Can someone give me an example where this happens in either latex or tex? Not sure if this example is what you're looking for, but a typical case in TeX or LaTeX is: \TeX has a programming language that only a

Re: [NTG-context] Can't get texmfstart to work

2006-07-20 Thread Sanjoy Mahajan
file:line:error style messages enabled. i've never seen that one It's very useful. Here's a sample run of pdftex with that option, which makes the error output match the format that most language compilers use (e.g. gcc). So you can run tex in an Emacs *compilation* buffer (with M-x

Re: [NTG-context] Charts, Graphs, Tufte, and ConTeXt

2006-07-23 Thread Sanjoy Mahajan
Hans writes: fyi: there is a new tufte book (don't have it yet but i'm told that it's nice too) It's _Beautiful Evidence_ (2006) and it is beautiful. I think it was typeset in Quark. A few pages from the book, as well some of Tufte's updates on the book's production, are here:

Re: [NTG-context] Charts, Graphs, Tufte, and ConTeXt

2006-07-23 Thread Sanjoy Mahajan
Can TeX/LaTeX/ConTexT-based typesetting can look as good? Perhaps! I'm curious: What is preventing ConTeXt in particular from looking this good? What is the basis of your Perhaps!? What's missing? Mostly my lack of skill with ConTeXt, but the experts could say for sure. A likely trouble

[NTG-context] updating context on Ubuntu 6.06

2006-07-25 Thread Sanjoy Mahajan
Here's what I had to do to update to the latest Context (2006.07.14) on Ubuntu 6.06 (i.e. 2006.06) distribution of Linux. It comes with tetex 3.0. The commands below assume a working Context already installed in your ~/texmf, and the commands use bash syntax, which is almost like 'sh' but has

Re: [NTG-context] Charts, Graphs, Tufte, and ConTeXt

2006-07-25 Thread Sanjoy Mahajan
http://www.nieuwarchief.nl/serie5/index.php Thanks, lots of elegant layouts there, and enjoyable mathematics! -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.

Re: [NTG-context] updating context on Ubuntu 6.06

2006-07-26 Thread Sanjoy Mahajan
ConTeXt ver: 2005.01.31 fmt: 2006.6.27 int: english mes: english language: language en is active protectionstate 0 system : cont-new loaded (/home/ralf/texmf/tex/context/base/cont-new.tex ! Undefined control sequence. l.14 \newcontextversion

Re: [NTG-context] [off-list, urgent] Index design

2006-07-26 Thread Sanjoy Mahajan
(Sorry for the strange conversation, but my e-mail appears with about 20 minutes delay on the list. And Hans is faster.) I've noticed this too, after I found many examples where Hans or Taco would answer questions that I didn't even know people had! It seems that some emails (based on From:

Re: [NTG-context] updating context on Ubuntu 6.06

2006-07-26 Thread Sanjoy Mahajan
1. (optional cleanup) Delete the old Context-installed files in ~/texmf/. This step is optional, but I do it so that I can track the I am not so sure that step is optional. Because if the preinstalled version had a cont-sys.tex or cont-usr.tex, then this step may be required to make

Re: [NTG-context] updating context on Ubuntu 6.06

2006-07-26 Thread Sanjoy Mahajan
Whereas the $@ form would produce texmfstart.rb --option=hi there This second form is what you want, no? Ah, I see. (is that bash-only?) It was hard to find a machine not running bash, a measure of the success of free software. But I eventually found a nearby Solaris machine

Re: [NTG-context] updating context on Ubuntu 6.06

2006-07-26 Thread Sanjoy Mahajan
($1$2 ... ) coincidentaly i read this in the bash manual today but i was puzzled by it not being ($1 $2 ... ) # separated by spaces Sorry, my typo. i didn't follow this thread but i assume that at some point the outcome will be summarized; keep in mind that patched need to work

Re: [NTG-context] updating context on Ubuntu 6.06

2006-07-27 Thread Sanjoy Mahajan
It was hard to find a machine not running bash, a measure of the success of free software. But I eventually found a nearby Solaris more a measure of the lack of diversity ... imagine everyone living a house of the same design, driving the same car, etc etc Or instead walking,

Re: [NTG-context] regexp for matching entire footnotes

2006-07-30 Thread Sanjoy Mahajan
I have to find (highlight) footnotes with the entire footnote being marked/highlighted. The problems are the (potentially) nested pairs of curled brackets (like for \index, \emphasize etc etc) ... I'm not sure what you mean by marking or highlighting the footnote. Do you mean in the printed

Re: [NTG-context] Context alternative for Latex's \overset \underset

2006-08-02 Thread Sanjoy Mahajan
[where is the amsl module] $ kpsewhere t-amsl /usr/share/texmf-tetex/tex/context/maths/t-amsl.tex and that's the only one ('locate amsl.tex' confirms it). The /usr/share context tree is the ancient version that comes with tetex 3.0 (Context 2005.01.31 I think). My ~/texmf tree has the newer

[NTG-context] units: \spacedimensionstrue fails when using unit powers

2006-08-02 Thread Sanjoy Mahajan
I'm considering switching from my units macros to the units module. In doing that I'm trying \spaceddimensionstrue (found in the m-units.tex source), which is the most common convention in physics tables and books, rather than using \Times to separate quantities with a dot. But it seems not to

Re: [NTG-context] Newbie installation problems

2006-08-03 Thread Sanjoy Mahajan
I suppose it's a font problem, but where can I find these fonts, and how should I install them ? Right, it's the latin-modern font problem. If you're using Debian testing/unstable, you can probably just do apt-get install lmodern to install lmodern v1.00. Ubuntu gives you v0.92, which isn't

Re: [NTG-context] updating ConTeXt with ctxtools

2006-08-06 Thread Sanjoy Mahajan
kpsewhich: option `--expand-var' requires an argument See the Ubuntu installation thread a couple weeks ago (search for TEXMFLOCAL and Ubuntu). The problem is that TEXMFLOCAL isn't being evaluated properly due to quoting differences between Unix and Windows syntax (with ctxtools using the

[NTG-context] indenting after section headings with before, after keyvals

2006-08-06 Thread Sanjoy Mahajan
The text after section headings is normally not indented, even if \setupindenting[yes] is given -- which looks good and was a pain to get right in my plain TeX days. But the don't indent that code seems to get confused if before= and after= values are given in the heading setup. Below is a

Re: [NTG-context] Context 2006.08.04 released

2006-08-07 Thread Sanjoy Mahajan
From:Taco Hoekwater [EMAIL PROTECTED] The current release has version 2006.08.04 After updating I see a slightly earlier date: CtxTools | context version: 2006.08.02 23:31 * some identation problems removed I just tested yesterday's example of paragraph indention combined with before=

Re: [NTG-context] indenting after section headings with before, after keyvals

2006-08-07 Thread Sanjoy Mahajan
I think that the command is \noindentation. Thanks, that does the trick. For future ConTeXt releases, should the no-indentation be handled automatically by \section (e.g. it would wrap the section including the before and after material in an environment with \parindent=0pt)? Or is it better to

[NTG-context] environment files and indenting

2006-08-07 Thread Sanjoy Mahajan
Not sure what I'm doing wrong here, but this is the minimal example I could make. The environment file ne.tex contains \startenvironment ne \setupindenting[medium,yes] \stopenvironment And the test file is \environment ne \starttext \placeformula\startformula x = 10 \stopformula \stoptext

Re: [NTG-context] Context 2006.08.04 released

2006-08-07 Thread Sanjoy Mahajan
in such case you need to add a \dontleavehmode to force tex into starting a paragraph Is that better than using \noindentation (suggested by the other Mahajan)? The one problem with it that I found is an extra space in indentation for the first paragraph. I guess it's because there's a space

Re: [NTG-context] environment files and indenting

2006-08-08 Thread Sanjoy Mahajan
And also no PDF, because \stopenvironment executes \endinput :-) Whoops! I'd been testing so many variants in order to find the minimal file and had outsourced the checking to 'grep hbox' (rather than reading through the texexec output by hand). So I didn't even notice the lack of a PDF file.

[NTG-context] \dontleavehmode and indenting after section (was Re: Context 2006.08.04 released)

2006-08-08 Thread Sanjoy Mahajan
Hans wrote: Is that better than using \noindentation (suggested by the other Mahajan)? The one problem with it that I found is an extra space in indentation for the first paragraph. I guess it's because there's a space in horizontal mode somewhere that isn't being ignored (as it would

Re: [NTG-context] \dontleavehmode and indenting after section (was Re: Context 2006.08.04 released)

2006-08-08 Thread Sanjoy Mahajan
The space is created from the linefeed at the end of the line \section{First} but I do not quite see why it is not ignored. Right in front of my nose (I was looking in the source files for a line that needed a % at the end). Is it because tex is still in horizontal mode thanks to the

Re: [NTG-context] environment files and indenting

2006-08-08 Thread Sanjoy Mahajan
The overfull box is caused by a strut. It is easily removed by \def\verticalstrut{\normalvbox {\hsize \zeropoint \noindent\strut }} Easily removed, but not so easily found! Thanks, that fixes it. Looking at the standard definition of \verticalstrut (in core-spa.tex): \def\verticalstrut

Re: [NTG-context] \dontleavehmode and indenting after section (was Re: Context 2006.08.04 released)

2006-08-08 Thread Sanjoy Mahajan
Taco wrote: Right in front of my nose (I was looking in the source files for a line that needed a % at the end). Is it because tex is still in horizontal mode thanks to the \dontleavehmode, and also because spaces after } are not ignored automatically? The answer is yes (the new

Re: [NTG-context] Context 2006.08.08 released

2006-08-08 Thread Sanjoy Mahajan
anyway, with a bit of delay ... new zips uploaded (unchecked -) I just tested Aditya's example \starttext \placeformula \startformula a = b \stopformula \stoptext and found that it worked fine (with 2006.08.08 21:51), so I guessed that some fast updating happened! I've added that example to

Re: [NTG-context] updating ConTeXt with ctxtools

2006-08-08 Thread Sanjoy Mahajan
In any case, I have probably misunderstood the thread. Has a summary been posted somewhere that I might consult? I need to summarize all the Linux installation methods on the Wiki, once I get it all straight in my head. Right now in reality and in my head it's a nightmare because of all the

[NTG-context] ctxtools.rb (was Re: Context 2006.08.08 released )

2006-08-08 Thread Sanjoy Mahajan
Hans, The latest ctxtools.rb has: def locatedlocaltree tree = `kpsewhich --expand-path $TEXMFLOCAL`.chomp rescue nil unless tree FileTest.directory?(tree) then tree = `kpsewhich --expand-path $TEXMF`.chomp rescue nil

Re: [NTG-context] modules

2006-08-08 Thread Sanjoy Mahajan
TDS is the Tex Directory Structure, designed so that the various tex distributions use the same file structure. See http://www.tug.org/tds/ -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.

Re: [NTG-context] m-bib module

2006-08-09 Thread Sanjoy Mahajan
I have just installed the latest version of m-bib. Where I had before a citation alpher and bethe with \cite[author] for a bib-item with two authors I get only the first now. What has to be changed in order to get two authors in the text while for more than two there will be alpher et

Re: [NTG-context] m-bib module

2006-08-09 Thread Sanjoy Mahajan
No, it is all my fault, sorry. For a quick fix, please add this \setupcite[authoryears][authoretallimit=2] to your document. I will upload a fixed version asap. Thanks, that fixes it. -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell,

Re: [NTG-context] m-bib module

2006-08-09 Thread Sanjoy Mahajan
Try 'authoryear' or 'authoryears' if you want to have both, the author and the year. Could you try \setupcite[authoryears][authoretallimit=2] \setupcite[authoryear][authoretallimit=2] maybe it works. (I still have an older ConTeXt and no time to test.) Thanks, the

[NTG-context] figure directory is sort of searched

2006-08-14 Thread Sanjoy Mahajan
I still can't figure this problem one out, from a few months ago, and it happens with a recent ConTeXt (2006.08.08 21:51). The figure searching code gets confused if a file of the same basename (but in a different directory) has already been loaded. Here is a minimal min.tex to show what I mean:

Re: [NTG-context] figure directory is sort of searched

2006-08-15 Thread Sanjoy Mahajan
Taco sez: Sanjoy sez: The figure searching code gets confused if a file of the same basename (but in a different directory) has already been loaded. I remember I ran into that as well (more than a year ago) and I ended up renaming my figures to figure1-1.pdf etc. It actually turned out to

Re: [NTG-context] nonbreakablespace

2006-08-15 Thread Sanjoy Mahajan
\starttext A~B \stoptext It works fine here with vanilla ConTeXt ver 2006.08.08 21:51, texexec 6.2.0, tetex 3.0 on Ubuntu (generating pdf). For me, this makes context hang!! Where does it hang? Running tex or pdftex, or in texexec? -Sanjoy `Never underestimate the evil of which men of

[NTG-context] 2DOWN imposition gives blank pages

2006-08-23 Thread Sanjoy Mahajan
I'm learning page rearrangements and cannot figure out why the following small example doesn't work (it's similar to those in the cont-eni.pdf manual, fig 3.22). Here it produces a two-page, blank PDF file when I run 'texexec --arrange p2' [ConTeXt ver: 2006.08.08 21:51 fmt: 2006.8.8 int: english

Re: [NTG-context] 2DOWN imposition gives blank pages

2006-08-24 Thread Sanjoy Mahajan
Taco wrote: Don't you need: \setuppapersize[A5,landscape][A4,landscape] \setuparranging[2DOWN,rotated] The following produces a first page with p.1 on the right half, but a blank 2nd page: \setuppapersize[A5,landscape][A4,landscape] \setuparranging[2DOWN,rotated] \starttext \input

Re: [NTG-context] 2DOWN imposition gives blank pages

2006-08-27 Thread Sanjoy Mahajan
Dear Willi and Wolfgang, Thanks for the explanations. I understand ConTeXt arranging a bit better now and am trying more (and longer) experiments. I still can't figure out this one, though. Even printing doublesided, you don't want p.1 to vanish: \setuppapersize[A5][A4,landscape]

Re: [NTG-context] 2DOWN imposition gives blank pages

2006-08-28 Thread Sanjoy Mahajan
Willi Egger wrote: In your code you try to typeset two A5 portrait beneeth each other on a A4 landscape, which is impossible. ... By the way if you want to typeset A5 on a A4 landscape without intending to make a booklet, then you can use setuparranging[2SIDE] Thanks for the explanations.

Re: [NTG-context] 2DOWN imposition gives blank pages

2006-08-29 Thread Sanjoy Mahajan
texexec --pdfarrange --paper=a5a4 --2up yourfile.pdf I tried a few experiments with no luck. Not sure if it's a context or texexec problem, or my confusion. I made the multi-page p5.pdf from \setuppapersize[A4][A4] \starttext \dorecurse{50}{ \input tufte } \stoptext Then I ran 'texexec

Re: [NTG-context] Arragning pdf-pages

2006-08-29 Thread Sanjoy Mahajan
use --paperformat in order to distinguish between paperoffset etc Thanks. For achival value in case anyone else searches the list for this topic, here's the command line that works for me: texexec --pdfarrange --paperformat=a5a4 --print=2UP p5.pdf (2SIDE also works, and the --print= is

Re: [NTG-context] 2DOWN imposition gives blank pages

2006-09-05 Thread Sanjoy Mahajan
I've mostly understood arranging but I cannot figure out how to make 2SIDE place a blank page (page 0, to not affect the page numbering) on the left half of the first arranged sheet and carry on as normal. To illustrate, where the enclosed numbers are the unarranged numbers: p.1: | |1| p.2:

Re: [NTG-context] YABQ (yet another bib question...)

2006-09-11 Thread Sanjoy Mahajan
Thomas, Is it possible to refer to this raw counter across chapters? Not sure -- it is beyond my ConTeXt bib module competence, but I hope one of the resident experts has an idea... -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War

[NTG-context] runMPgraphicstrue produces undefined figure

2006-09-12 Thread Sanjoy Mahajan
I'm playing with simple files in order to learn metafun. The following small example produces an undefined figure. It illustrates either a context problem or, more likely, a confusion on my part. = cut here === \runMPgraphicstrue

Re: [NTG-context] runMPgraphicstrue produces undefined figure

2006-09-12 Thread Sanjoy Mahajan
Check your log file for systems : system commands are enabled Thanks, that was the problem. It was saying 'disabled' instead. The fix was to change /etc/texmf/texmf.cnf to enable write18. The shell_escape line has to be set to 't' rather than 'f', i.e.: shell_escape = t Actually,

Re: [NTG-context] runMPgraphicstrue produces undefined figure

2006-09-13 Thread Sanjoy Mahajan
Hans Hagen wrote: Sanjoy Mahajan wrote: Actually, on my system (Ubuntu, a Debian derivative), changing the texmf.cnf file directly is not a good idea. Instead one should change the same line in /etc/texmf/texmf.d/95NonPath.cnf and then run 'update-texmf' as root to generate the texmf.cnf

Re: [NTG-context] runMPgraphicstrue produces undefined figure

2006-09-13 Thread Sanjoy Mahajan
Hans Hagen wrote: well, opening files and overwriting them can be done anyway That's true. Though the default teTeX setup seems to be (from texmf.cnf): % Allow TeX \openin, \openout, or \input on filenames starting with `.' % (e.g., .rhosts) or outside the current tree (e.g., /etc/passwd)?

Re: [NTG-context] Making context produce dvi file.

2006-09-14 Thread Sanjoy Mahajan
Hans Hagen wrote: And, a small point of disagreement with the old man entry for texexec: 'texexec --output=dvi' produces pdf. line 116 in tex.rb in the ruby base path can be adapted: ['dvips','ps','dvi'] .each do |b| @@backends[b] = 'dvips' end

Re: [NTG-context] Making context produce dvi file.

2006-09-14 Thread Sanjoy Mahajan
Hans Hagen wrote: texexec --dvi test --nobackend That works. As another test, using --output=dvi instead of --dvi produces pdf even with --nobackend. Just to be thorough, or difficult, I also tried texexec test --nobackend where pdftex is both front- and backend. It did the right thing

Re: [NTG-context] YABQ (yet another bib question...)

2006-09-15 Thread Sanjoy Mahajan
IMHO, bibtex should now generate keys such as Hoek2006a and Hoek2006b or authoryear references like Hoekwater (2006a) and Hoekwater (2006b), but it should not (!) append the a and b to the years in the bibliographic list itself. But I may be wrong here - what do you and other users say?

Re: [NTG-context] html wizard

2006-09-15 Thread Sanjoy Mahajan
Hans Hagen wrote: is there an html/javascript wizard who can help me with some issues concerning a future version of context (not related to html generation at all) I'm willing to help with whatever skills I have. I programmed the site http://columbiamedicine.org/education/clean.shtml. It

Re: [NTG-context] problem in kpse.rb

2006-09-16 Thread Sanjoy Mahajan
path = run(--expand-path=\\\$#{varname}) rescue '' to path = run(--expand-path=\$#{varname}) rescue '' I also ran into this (a few weeks ago on the list) and the patch I sent Hans after testing it on my Ubuntu Linux laptop was to use two backslashes: run(--expand-path=\\$#{varname}) so

[NTG-context] displayed formula confuses parshape around figure

2006-09-19 Thread Sanjoy Mahajan
In the following small example, two squares are cut out of the long paragraph. The first is where the external figure belongs and goes, so no problem with that. But the second removed square is after the displayed equation, and it shouldn't be removed. If I comment out the formula, then the

Re: [NTG-context] displayed formula confuses parshape around figure

2006-09-20 Thread Sanjoy Mahajan
It works for me if put a \par or a empty line after the first \input. That's true, but doing so ends the paragraph. Shouldn't the displayed math be part of the paragraph? The \input tufte's were just to make the minimal example. It came from a paragraph with text and math that begins with a

Re: [NTG-context] Separate PDF files

2006-09-20 Thread Sanjoy Mahajan
Is there a way to have texexec output separate pdf files for each page it generates instead of a single pdf file? Not sure, but pdftk (the PDF toolkit, a.k.a. Swiss army knife) has a 'burst' option. For example: pdftk mydoc.pdf burst gives you pg_0001.pdf, pg_0002.pdf, You can

[NTG-context] ConTeXt submissions to arxiv.org

2006-09-20 Thread Sanjoy Mahajan
:Tue, 19 Sep 2006 11:36:27 -0400 From:Angela Zoss [www-admin] [EMAIL PROTECTED] To: Sanjoy Mahajan [EMAIL PROTECTED] Subject: Re: ConTeXt submissions At this time we have not had enough requests for support for ConTeXt to warrant implementing this feature on our system

Re: [NTG-context] displayed formula confuses parshape around figure

2006-09-21 Thread Sanjoy Mahajan
[this bounced before, I think due to disk space being used up on the mailman server. Hopefully you don't get it twice] Wolfgang Schuster [EMAIL PROTECTED] wrote: Ok, I played yesterday I bit with your example and can you give now a solution for your problem. At first I thought I'd need to

[NTG-context] trouble with \startMPinclusions[+]

2006-09-22 Thread Sanjoy Mahajan
The small test file below uses \startMPinclusions[+], but it produces TeX capacity exceeded from what looks like an endless loop. The error msgs are below the file. This is with context 2006.08.08 21:51, and the live ConTeXt (2006.09.17) gives the same error. [I was trying to test whether I

[NTG-context] does metafun require texexec --final?

2006-09-22 Thread Sanjoy Mahajan
I was trying experiments with the file below, changing r from 1cm to 10cm or vice versa, then rerunning texexec and looking at the pdf. But the pdf changes only the second time that I run texexec (and each time, texexec runs metafun for the embedded graphic). However, the pdf changes right away

Re: [NTG-context] does metafun require texexec --final?

2006-09-23 Thread Sanjoy Mahajan
[Hans: Feature suggestion for figure inclusion at the end...] I wrote: So, is --final a requirement when using metafun, or am I hacking around a problem I've caused by leaving something out? An answer is that I should set \runMPgraphicstrue. I thought it was automatically set,

[NTG-context] transparent metafun colors turn nearly black

2006-09-23 Thread Sanjoy Mahajan
Just for (meta)fun, I tried a few experiments with transparent colors. The example below gives a black circle instead of a red one. Is it that transparent colors aren't part of metafun -- which I can easily live with since color printing is too expensive still, alas -- or have I omitted an

Re: [NTG-context] does metafun require texexec --final?

2006-09-23 Thread Sanjoy Mahajan
Wolfgang, Thanks for the pointer. I don't have a cont-sys.tex, but cont-sys.rme has these lines % \runMPgraphicstrue % \runMPTEXgraphicstrue The .rme extension meant I'd missed it when I ran grep on the .tex files. I'll uncomment them. Oh, that's not a good idea, because the next context

Re: [NTG-context] transparent metafun colors turn nearly black

2006-09-23 Thread Sanjoy Mahajan
Maybe you also need \runMPTEXgraphicstrue (enabled in my cont-sys.tex)? I just enabled that in cont-sys.rme, and I put it in the test file for good measure. your example works here (beta 17.09.). I also tried your example at contextgarden (same beta) and it worked too (using Firefox).

Re: [NTG-context] flow charts

2006-09-23 Thread Sanjoy Mahajan
Is it also possible to get a copy of the flowchart manual to which you refer? The flowcharts page on the wikie http://wiki.contextgarden.net/Flow_Charts links to the manual. -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in

Re: [NTG-context] transparent metafun colors turn nearly black

2006-09-23 Thread Sanjoy Mahajan
These were the memory setting in the /etc/texmf/texmf.d/95NonPath.cnf configlet that is part of Debian and Ubuntu: main_memory = 100 % words of inimemory available; also applies to inimfmp main_memory.context = 150 main_memory.mpost = 150 I commented out the .mpost line (there was no

[NTG-context] staticMPfigures can overrun output streams

2006-09-24 Thread Sanjoy Mahajan
The following minimal file overruns the available output streams (version 2006.08.08 and context live): \starttext \dorecurse{16}{\startstaticMPfigure{\recurselevel} fill fullcircle scaled 1cm withcolor red; \stopstaticMPfigure} \stoptext At the end are the last few lines of the log. Here are

Re: [NTG-context] beta

2006-09-24 Thread Sanjoy Mahajan
Can someone verify this error please or is there something wrong with my code? The figure file is not found here as well (2006.08.08). But if I change it to: \startMPrun \input test.mp \stopMPrun \starttext \externalfigure[w-mprun.1][width=15mm] \stoptext then there's no problem (w.tex was

[NTG-context] metafun: verbatimtex coming too late?

2006-09-24 Thread Sanjoy Mahajan
In this file, I intended that all labels would come out in 7pt: === cut here \starttext \startMPenvironment \setupbodyfont[7pt] \stopMPenvironment \startMPinclusions def drawtext = label(btex In drawtext() macro. etex, origin); enddef;

Re: [NTG-context] metafun: verbatimtex coming too late?

2006-09-24 Thread Sanjoy Mahajan
I had wondered: only the label that is directly in the figure (Inline in the figure.) comes out in 7pt. The other one, produced by the drawtext macro, comes out in 12pt. A possible solution is to put the verbatimtex at the beginning of the mp file or after the input mp-grph, making it like

[NTG-context] \textext can fail in definitions in \startMPinclusions

2006-09-24 Thread Sanjoy Mahajan
Another test file for metafun. I know that textext doesn't work in loops. I don't understand how it's implemented enough to know why, but is the reason for its not working in loops the same as the reason it doesn't work in included definitions (related to static analysis of the code)? The

[NTG-context] \sometxt in staticMPfigure

2006-09-24 Thread Sanjoy Mahajan
Another small metafun test file. It displays no text in the middle of the ellipse. Using \textext instead of \sometxt works. \starttext \startstaticMPfigure{fig} draw \sometxt{hello}; draw fullcircle scaled 1cm xscaled 2; \stopstaticMPfigure \usestaticMPfigure[fig] xyz \stoptext

Re: [NTG-context] transparent metafun colors turn nearly black

2006-09-25 Thread Sanjoy Mahajan
(I wonder if the live context has been having the same problem?) I tried to fix it after Taco reported the exact problem. Plese test if it's working now. Thanks, the live context works! I tested this file: \setupcolors[state=start] \starttext \startreusableMPgraphic{a} fill

Re: [NTG-context] Very strange bug related to textbackground

2006-09-25 Thread Sanjoy Mahajan
I don't have a fix, only chiming in that I've seen the same issue. It happened when I was learning about backgrounds, so I figured it was my ignorance and didn't save the test file. But I'll try to reconstruct it. -Sanjoy `Never underestimate the evil of which men of power are capable.'

Re: [NTG-context] staticMPfigures can overrun output streams

2006-09-25 Thread Sanjoy Mahajan
In another thread, Hans mentioned the 2006.09.25 beta. I tested it against this test file and it works great: \starttext \dorecurse{20}{\startreusableMPgraphic{\recurselevel} draw fullcircle scaled 3mm; \stopreusableMPgraphic \placefigure[here,none]{}{\reuseMPgraphic{\recurselevel}}} \stoptext

Re: [NTG-context] \sometxt in staticMPfigure

2006-09-25 Thread Sanjoy Mahajan
Hans Hagen wrote: demanding guy ... a static is just an mp graphic and mp does not know a thing about \macros Thanks, I understand now; and sorry, I hadn't meant it as a feature request! I was trying only to learn the differences between all the ways of doing *TeX labels in figures, and was

Re: [NTG-context] \sometxt in staticMPfigure

2006-09-25 Thread Sanjoy Mahajan
def processmpstatic if filename = getvariable('filename') then in tex.rb looks like a messed up update Ah, you're right and I just realized what happened. 'ctxtools --updatecontext' calls unzip with -uo: -u update existing files and create new ones if needed. This

Re: [NTG-context] \sometxt in staticMPfigure

2006-09-25 Thread Sanjoy Mahajan
With the new beta, this stress test for \sometxt works fine: \setupcolors[state=start] \starttext \startstaticMPfigure{fig} label(\sometxt{he\color[blue]{ab}lo}, origin) withcolor red; draw fullcircle scaled 1cm xscaled 2;

Re: [NTG-context] does metafun require texexec --final?

2006-09-26 Thread Sanjoy Mahajan
sure, that's an option, but up to the user (maybe wikify this suggestion) Patrick: Not sure if it's a firefox-only problem or one that the contextgarden wiki can help with by sending more detailed mime types, but... If I try to edit the top level of a page by clicking the edit tab at the top,

Re: [NTG-context] \sometxt in staticMPfigure

2006-09-26 Thread Sanjoy Mahajan
\starttext \startMPinclusions input boxes \stopMPinclusions \startstaticMPfigure{fig} boxit.h(btex h etex); drawboxed(h); \stopstaticMPfigure \usestaticMPfigure[fig] xyz \stoptext hm, i'll add the inclusions (here it fails anyway doe to some

Re: [NTG-context] \sometxt in staticMPfigure

2006-09-26 Thread Sanjoy Mahajan
Is it important to have -u? dunno, probably only for speed reasons, so maybe we should use just -o I agree. Correctness over speed, I think. -u makes testing reports less reliable and can cause subtle bugs when all the files don't share the same version (I noticed it soon in this case only

Re: [NTG-context] \sometxt in staticMPfigure

2006-09-26 Thread Sanjoy Mahajan
you can test the beta This gives the clearboxes error: === box.tex === \startMPinclusions input boxes \stopMPinclusions \starttext \startstaticMPfigure{fig} boxit.h(btex h etex); drawboxed(h); \stopstaticMPfigure \usestaticMPfigure[fig] \stoptext

Re: [NTG-context] \sometxt in staticMPfigure

2006-09-26 Thread Sanjoy Mahajan
Hans Hagen wrote: test case: \setupcolors[state=start,textcolor=red] \starttext red \color[green]{green \startMPcode label(\sometxt{green\color[blue]{blue}green}, origin) withcolor red; draw fullcircle scaled 1cm xscaled 2;

[NTG-context] mp to pdf inline conversion adds whitespace (2006.09.26 beta)

2006-09-26 Thread Sanjoy Mahajan
I'm using the 2006.09.26 beta, and noticed an extra gap before some external metapost figures. Here is a small test: test.mp = beginfig(1) draw fullcircle scaled (0.75in) xscaled 1.5; endfig; end

Re: [NTG-context] \sometxt in staticMPfigure

2006-09-26 Thread Sanjoy Mahajan
Hans Hagen [EMAIL PROTECTED] wrote: indeed, another option is to replace more of mp's color stuff by context but then we may end up in other problems I'm guessing that pdftex+lua will make it easier to meld tex and metapost. -Sanjoy `A society of sheep must in time beget a government of

Re: [NTG-context] \sometxt in staticMPfigure

2006-09-26 Thread Sanjoy Mahajan
Hans Hagen wrote: the problem (if you look into the mp file) is that there is *no* beginfig; this is because we now use a more stupid (stripped down) variant of saving the graphic. Right, I looked into the mp file and saw the new plan. \startstaticMPfigure{fig} beginfig(1);

Re: [NTG-context] texexec command line switches missing in ruby version

2006-09-26 Thread Sanjoy Mahajan
Ralf Schmitt [EMAIL PROTECTED] wrote: Apparently I'm a bit mistaken: --mode is working. --result is not. None is listed in texexec --help. I haven't noticed problems with those. But could you post a short test file and the full command line that you use? Then I can test it here (running

  1   2   3   4   5   >