Show More
@@ -15,41 +15,39 b' Requirements' | |||||
15 |
|
15 | |||
16 | Sphinx-Latex: |
|
16 | Sphinx-Latex: | |
17 | :: |
|
17 | :: | |
18 | sudo apt-get install texlive-full |
|
18 | ||
19 | :: |
|
19 | sudo apt-get install texlive-full | |
|
20 | ||||
20 |
|
|
21 | ||
21 | See http://jimmyg.org/blog/2009/sphinx-pdf-generation-with-latex.html |
|
22 | See http://jimmyg.org/blog/2009/sphinx-pdf-generation-with-latex.html | |
22 |
|
23 | |||
23 | Pandoc, to convert markdown into latex |
|
24 | Pandoc, to convert markdown into latex | |
24 | :: |
|
25 | :: | |
25 | sudo apt-get install pandoc |
|
|||
26 | :: |
|
|||
27 |
|
|
26 | ||
28 | Testing |
|
27 | sudo apt-get install pandoc | |
29 | ======= |
|
|||
30 |
|
28 | |||
31 | To test, I place a Test1.ipynb file in my nbconvert directory. |
|
29 | To test, I place a Test1.ipynb file in my nbconvert directory. | |
32 |
Then I run this shell script |
|
30 | Then I run this shell script | |
33 |
|
31 | |||
34 | :: |
|
32 | :: | |
35 | mkdir test_out |
|
33 | ||
36 |
r |
|
34 | mkdir test_out | |
37 | cp Test1.ipynb test_out/Test1.ipynb |
|
35 | rm test_out/* | |
38 | cp templates/tex/*.cls test_out/ |
|
36 | cp Test1.ipynb test_out/Test1.ipynb | |
39 |
cp templates/tex/*.s |
|
37 | cp templates/tex/*.cls test_out/ | |
40 |
|
38 | cp templates/tex/*.sty test_out/ | ||
41 | python nbconvert2.py latex_sphinx_manual test_out/Test1.ipynb |
|
39 | ||
42 | cd test_out |
|
40 | python nbconvert2.py latex_sphinx_manual test_out/Test1.ipynb | |
43 | pdflatex Test1.tex |
|
41 | cd test_out | |
44 | mv Test1.pdf Test1_Manual.pdf |
|
42 | pdflatex Test1.tex | |
45 | cd .. |
|
43 | mv Test1.pdf Test1_Manual.pdf | |
46 |
|
44 | cd .. | ||
47 | python nbconvert2.py latex_sphinx_howto test_out/Test1.ipynb |
|
45 | ||
48 | cd test_out |
|
46 | python nbconvert2.py latex_sphinx_howto test_out/Test1.ipynb | |
49 | pdflatex Test1.tex |
|
47 | cd test_out | |
50 | mv Test1.pdf Test1_HowTo.pdf |
|
48 | pdflatex Test1.tex | |
51 | cd .. |
|
49 | mv Test1.pdf Test1_HowTo.pdf | |
52 | :: |
|
50 | cd .. | |
53 |
|
|
51 | ||
54 | This script will build both a Sphinx-howto and a Sphinx-manual out of the |
|
52 | This script will build both a Sphinx-howto and a Sphinx-manual out of the | |
55 | Test1 IPython notebook. |
|
53 | Test1 IPython notebook. |
General Comments 0
You need to be logged in to leave comments.
Login now