Opened 8 years ago

Closed 8 years ago

#12572 closed defect (fixed)

Add extra memory to pdflatex to build PDF manuals

Reported by: jdemeyer Owned by: hivert
Priority: blocker Milestone: sage-5.0
Component: packages: standard Keywords:
Cc: Merged in: sage-5.0.beta7
Authors: Jeroen Demeyer Reviewers: Minh Van Nguyen
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description (last modified by jdemeyer)

See #9128, we should add the environment variable

extra_mem_top=2000000

for the reference manual to compile. This means patching the Sphinx spkg.

spkg: http://boxen.math.washington.edu/home/jdemeyer/spkg/sphinx-1.1.2.p1.spkg

Attachments (1)

sphinx-1.1.2.p1.diff (3.5 KB) - added by jdemeyer 8 years ago.
Diff for the sphinx spkg, for review only

Download all attachments as: .zip

Change History (6)

comment:1 Changed 8 years ago by hivert

  • Owner changed from tbd to hivert

One way may be to patch

sphinx-1.1.2.p0/src/sphinx/texinputs/Makefile

as

-- Makefile.orig       2012-02-23 18:46:38.007660500 +0100
+++ Makefile    2012-02-23 18:48:07.945904333 +0100
@@ -8,6 +8,7 @@
 ARCHIVEPRREFIX =
 # Additional LaTeX options
 LATEXOPTS =
+LATEXENV = "extra_mem_top=2000000"
 
 all: $(ALLPDF)
 all-pdf: $(ALLPDF)
@@ -43,20 +44,20 @@
 # The number of LaTeX runs is quite conservative, but I don't expect it
 # to get run often, so the little extra time won't hurt.
 %.dvi: %.tex
-       latex $(LATEXOPTS) '$<'
-       latex $(LATEXOPTS) '$<'
-       latex $(LATEXOPTS) '$<'
+       $(LATEXENV) latex $(LATEXOPTS) '$<'
+       $(LATEXENV) latex $(LATEXOPTS) '$<'
+       $(LATEXENV) latex $(LATEXOPTS) '$<'
        -makeindex -s python.ist '$(basename $<).idx'
-       latex $(LATEXOPTS) '$<'
-       latex $(LATEXOPTS) '$<'
+       $(LATEXENV) latex $(LATEXOPTS) '$<'
+       $(LATEXENV) latex $(LATEXOPTS) '$<'
 
 %.pdf: %.tex
-       pdflatex $(LATEXOPTS) '$<'
-       pdflatex $(LATEXOPTS) '$<'
-       pdflatex $(LATEXOPTS) '$<'
+       $(LATEXENV) pdflatex $(LATEXOPTS) '$<'
+       $(LATEXENV) pdflatex $(LATEXOPTS) '$<'
+       $(LATEXENV) pdflatex $(LATEXOPTS) '$<'
        -makeindex -s python.ist '$(basename $<).idx'
-       pdflatex $(LATEXOPTS) '$<'
-       pdflatex $(LATEXOPTS) '$<'
+       $(LATEXENV) pdflatex $(LATEXOPTS) '$<'
+       $(LATEXENV) pdflatex $(LATEXOPTS) '$<'
 
 clean:
        rm -f *.dvi *.log *.ind *.aux *.toc *.syn *.idx *.out *.ilg *.pla

Sorry, I've no time to make a spkg now

Florent

comment:2 Changed 8 years ago by jdemeyer

  • Authors set to Jeroen Demeyer
  • Description modified (diff)

Changed 8 years ago by jdemeyer

Diff for the sphinx spkg, for review only

comment:3 Changed 8 years ago by jdemeyer

  • Status changed from new to needs_review

comment:4 Changed 8 years ago by mvngu

  • Reviewers set to Minh Van Nguyen
  • Status changed from needs_review to positive_review

The documentation (both HTML and PDF versions) built fine for me. Thanks.

comment:5 Changed 8 years ago by jdemeyer

  • Merged in set to sage-5.0.beta7
  • Resolution set to fixed
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.