#23751: Code snippets display without formatting in PDF version of the docs
--------------------------------+------------------------------------
     Reporter:  adam-glodowski  |                    Owner:  nobody
         Type:  Bug             |                   Status:  new
    Component:  Documentation   |                  Version:  1.7
     Severity:  Normal          |               Resolution:
     Keywords:                  |             Triage Stage:  Accepted
    Has patch:  0               |      Needs documentation:  0
  Needs tests:  0               |  Patch needs improvement:  0
Easy pickings:  0               |                    UI/UX:  0
--------------------------------+------------------------------------

Comment (by gwideman):

 Hi Tim,

 The PDF I generated had a TOC, but on repeat testing, I see how on a clean
 build it does not.  This seems to apply both using the original
 djangodocs.py, or my revised one.

 After some testing, I see that the proximal cause of the missing TOC is
 that the TOC is produced _after_ the first pass of producing a PDF (so
 that pagination has been calculated I guess), and so doesn't get
 incorporated until a second (non-clean) or subsequent run.

 It's not clear whether this behavior is peculiar to the up-to-date sphinx
 and latex pipeline I installed.

 However, it also appears that the Makefile produced in /_build/ for the
 latex->pdf phase is supposed to repeat that phase (presumably to
 incorporate the TOC etc), and this may stall if there are errors. And
 there does seem to be an error associated with the code that I revised. So
 I will examine that in more detail.

 It might also help if you could post some details of the sphinx version
 and latex->pdf setup that the official docs pipeline uses.

--
Ticket URL: <https://code.djangoproject.com/ticket/23751#comment:10>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/072.7aa6f847f0bf9a5011ecc959bb6f5192%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to