Hi Håkan, On Sun, Nov 7, 2010 at 8:02 PM, Håkan Granath <hakan.gran...@googlemail.com> wrote: > Some more info on the failure: It seems that TeX runs out of > string characters when typesetting the index. If I comment > out the next to last line > > \printindex > > of reference.tex the file compiles. How to fix it I do not know > yet.
I have similar problems in upgrading the Sphinx spkg to upstream version 1.0.4. My upgraded spkg [1] is still being tested before I set ticket #10118 to "needs review". I fixed the problems by increasing the pool and save sizes in the Makefile that is distributed with Sphinx. I have produced an updated spkg of Sphinx 0.6.3 with the above fix. You can download it at http://sage.math.washington.edu/home/mvngu/spkg/standard/sphinx/sphinx-0.6.3.p5.spkg Or force an installation with $ ./sage -f http://sage.math.washington.edu/home/mvngu/spkg/standard/sphinx/sphinx-0.6.3.p5.spkg Then test it out by building both the HTML and PDF versions of the Sage documentation. In case you're interested in the fix, here's the patch against Sphinx's Makefile: --- src/sphinx/texinputs/Makefile 2009-03-24 13:51:15.000000000 -0700 +++ patches/Makefile 2010-11-07 10:50:41.408636986 -0800 @@ -8,6 +8,8 @@ ARCHIVEPRREFIX = # Additional LaTeX options LATEXOPTS = +POOL_SIZE = 2000000 +SAVE_SIZE = 20000 all: $(ALLPDF) all-pdf: $(ALLPDF) @@ -42,13 +44,22 @@ latex $(LATEXOPTS) '$<' %.pdf: %.tex - pdflatex $(LATEXOPTS) '$<' - pdflatex $(LATEXOPTS) '$<' - pdflatex $(LATEXOPTS) '$<' + (pool_size=$(POOL_SIZE) && export pool_size && \ + save_size=$(SAVE_SIZE) && export save_size && \ + pdflatex $(LATEXOPTS) '$<') + (pool_size=$(POOL_SIZE) && export pool_size && \ + save_size=$(SAVE_SIZE) && export save_size && \ + pdflatex $(LATEXOPTS) '$<') + (pool_size=$(POOL_SIZE) && export pool_size && \ + save_size=$(SAVE_SIZE) && export save_size && \ + pdflatex $(LATEXOPTS) '$<') -makeindex -s python.ist '$(basename $<).idx' - -makeindex -s python.ist '$(basename mod$<).idx' - pdflatex $(LATEXOPTS) '$<' - pdflatex $(LATEXOPTS) '$<' + (pool_size=$(POOL_SIZE) && export pool_size && \ + save_size=$(SAVE_SIZE) && export save_size && \ + pdflatex $(LATEXOPTS) '$<') + (pool_size=$(POOL_SIZE) && export pool_size && \ + save_size=$(SAVE_SIZE) && export save_size && \ + pdflatex $(LATEXOPTS) '$<') clean: rm -f *.pdf *.dvi *.ps [1] http://sage.math.washington.edu/home/mvngu/spkg/standard/sphinx/sphinx-1.0.4.p0.spkg -- Regards Minh Van Nguyen -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org