#12572: Add extra memory to pdflatex to build PDF manuals
------------------------+---------------------------------------------------
   Reporter:  jdemeyer  |          Owner:  hivert  
       Type:  defect    |         Status:  new     
   Priority:  blocker   |      Milestone:  sage-5.0
  Component:  packages  |       Keywords:          
Work_issues:            |       Upstream:  N/A     
   Reviewer:            |         Author:          
     Merged:            |   Dependencies:          
------------------------+---------------------------------------------------
Changes (by hivert):

  * owner:  tbd => hivert


Comment:

 One way may be to patch
 {{{
 sphinx-1.1.2.p0/src/sphinx/texinputs/Makefile
 }}}
 as
 {{{
 #!diff
 -- 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

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12572#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to