Comment #4 on issue 2952 by [email protected]: PDF documentation
http://code.google.com/p/sympy/issues/detail?id=2952

I managed to produce PDF output with this procedure:

1. As already suggested above I used utf8x:

    \usepackage[utf8x]{inputenc}

2. Added two more packages:

    \usepackage{amssymb}
    \usepackage{enumitem}
    \setlistdepth{100}

3. Moved commands buried around line 9000 to top declarations

All this resulted in this kind of declaration:

    ========================================
    % Generated by Sphinx.
    \def\sphinxdocclass{report}
    \documentclass[letterpaper,10pt,english]{sphinxmanual}
    \usepackage[utf8x]{inputenc}
    %\DeclareUnicodeCharacter{00A0}{\nobreakspace}
    \usepackage[T1]{fontenc}
    \usepackage{babel}
    \usepackage{times}
    \usepackage[Bjarne]{fncychap}
    \usepackage{longtable}
    \usepackage{sphinx}
    \usepackage{multirow}

    \usepackage{amssymb}
    \usepackage{enumitem}
    \setlistdepth{100}

    \newcommand{\bfrac}[2]{\displaystyle\frac{#1}{#2}}
    \newcommand{\lp}{\left (}
    \newcommand{\rp}{\right )}
    \newcommand{\half}{\frac{1}{2}}
    \newcommand{\llt}{\left <}
    \newcommand{\rgt}{\right >}
    \newcommand{\abs}[1]{\left |{#1}\right | }
    \newcommand{\pdiff}[2]{\bfrac{\partial {#1}}{\partial {#2}}}
    \newcommand{\lbrc}{\left \{}
    \newcommand{\rbrc}{\right \}}
    \newcommand{\W}{\wedge}
    \newcommand{\R}{\dagger}
    \newcommand{\lbrk}{\left [}
    \newcommand{\rbrk}{\right ]}
    \newcommand{\proj}[2]{\llt {#1} \rgt_{#2}}
    \newcommand{\bm}{\boldsymbol}
    ========================================

4. Further, I replaced nonsensical characters, which raised errors and which BTW does not show correctly on Windows (XP and 7 with Unicode font) in both IPython code and HTML documentation: http://i.imgur.com/Vp0a6.png


PDF can be downloaded from this link: https://docs.google.com/open?id=0B8BY3UUCWEsONkZDRTlVNmR0eWM


--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" 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/sympy-issues?hl=en.

Reply via email to