|
11 | 11 |
|
12 | 12 | :Author: Geoffrey Poore
|
13 | 13 |
|
14 |
| -:Version: 0.14 |
| 14 | +:Version: 0.15 |
15 | 15 |
|
16 | 16 | :License: LPPL_ (LaTeX code) and `BSD 3-Clause`_ (Python code)
|
17 | 17 |
|
18 | 18 | .. _LPPL: http://www.latex-project.org/lppl.txt
|
19 | 19 |
|
20 | 20 | .. _`BSD 3-Clause`: http://www.opensource.org/licenses/BSD-3-Clause
|
21 | 21 |
|
22 |
| - |
| 22 | + |
| 23 | + |
23 | 24 | Overview
|
24 | 25 | ========
|
25 | 26 |
|
26 |
| -PythonTeX provides fast, user-friendly access to Python from within LaTeX. It allows Python code entered within a LaTeX document to be executed, and the results to be included within the original document. It also provides syntax highlighting for code within LaTeX documents via the Pygments syntax highlighter. |
| 27 | +PythonTeX provides fast, user-friendly access to Python from within LaTeX. It |
| 28 | +allows Python code entered within a LaTeX document to be executed, and the |
| 29 | +results to be included within the original document. It also provides syntax |
| 30 | +highlighting for code within LaTeX documents via the Pygments syntax |
| 31 | +highlighter. |
27 | 32 |
|
28 |
| -PythonTeX also provides support for Ruby, Julia, and Octave. Support for additional languages is coming soon. |
| 33 | +PythonTeX also provides support for Ruby, Julia, Octave, Sage, Bash, and Rust. |
| 34 | +Support for additional languages is coming soon. |
29 | 35 |
|
30 |
| -See ``pythontex.pdf`` for detailed installation instructions, or use the installation script for TeX Live and MiKTeX. See ``pythontex_quickstart.pdf`` to get started, and ``pythontex_gallery.pdf`` for examples of what is possible with PythonTeX. |
| 36 | +See ``pythontex_quickstart.pdf`` to get started, and ``pythontex_gallery.pdf`` |
| 37 | +for examples of what is possible with PythonTeX. PythonTeX is included in |
| 38 | +TeX Live and MiKTeX and may be installed via the package manager. See |
| 39 | +``pythontex.pdf`` for detailed installation instructions if you want to |
| 40 | +install the current development version, or use the installation script for |
| 41 | +TeX Live and MiKTeX. |
| 42 | + |
| 43 | +The ``depythontex`` utility creates a copy of a PythonTeX document in which |
| 44 | +all Python code has been replaced by its output. This plain LaTeX document is |
| 45 | +more suitable for journal submission, sharing, or conversion to other document |
| 46 | +formats. See ``pythontex_gallery.html`` and the accompanying conversion |
| 47 | +script for an example of a PythonTeX document that was converted to HTML via |
| 48 | +``depythontex`` and `Pandoc <http://johnmacfarlane.net/pandoc/>`_. |
31 | 49 |
|
32 |
| -The ``depythontex`` utility creates a copy of a PythonTeX document in which all Python code has been replaced by its output. This plain LaTeX document is more suitable for journal submission, sharing, or conversion to other document formats. See ``pythontex_gallery.html`` and the accompanying conversion script for an example of a PythonTeX document that was converted to HTML via ``depythontex`` and `Pandoc <http://johnmacfarlane.net/pandoc/>`_. |
33 | 50 |
|
34 | 51 |
|
35 | 52 | Citing PythonTeX
|
36 | 53 | ================
|
37 | 54 |
|
38 |
| -If you use PythonTeX in your writing and research, please consider citing it in any resulting publications. The best and most recent paper is in `Computational Science & Discovery <http://stacks.iop.org/1749-4699/8/i=1/a=014010>`_ (doi:10.1088/1749-4699/8/1/014010). You may also cite the paper in the `2013 SciPy proceedings <http://conference.scipy.org/proceedings/scipy2013/poore.html>`_. |
39 |
| - |
40 |
| - |
41 |
| -Latest release |
42 |
| -============== |
43 |
| - |
44 |
| -(Full release history is available `here <https://github.com/gpoore/pythontex/blob/master/NEWS.rst>`_.) |
45 |
| - |
46 |
| -v0.14 (2014/07/17) |
47 |
| ------------------- |
48 |
| - |
49 |
| -New features |
50 |
| -~~~~~~~~~~~~ |
51 |
| - |
52 |
| -* All commands for working with code inline are now robust, via |
53 |
| - ``etoolbox``'s ``\newrobustcmd``. Among other things, this allows |
54 |
| - commands like ``\py`` to work in standard captions that have not been |
55 |
| - redefined to avoid protection issues. |
56 |
| -* Upgraded ``syncpdb`` to v0.2, which provides better list formatting. |
57 |
| - |
58 |
| -Backward-incompatible changes |
59 |
| -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
60 |
| - |
61 |
| -* The default working directory is now the main document directory instead |
62 |
| - of the output directory. Using the output directory was a common source |
63 |
| - of confusion for new users and was incompatible with plans for future |
64 |
| - development. Old documents in which the working directory was not |
65 |
| - specified will continue to use the output directory, but PythonTeX will |
66 |
| - print an upgrade message; new documents will use the new setting. The |
67 |
| - output directory may be selected as the working directory manually, or |
68 |
| - with the shorthand |
69 |
| - "``\setpythontexworkingdir{<outputdir>}``". |
70 |
| - |
71 |
| -* Standardized version numbering by removing the "v" prefix from the stored |
72 |
| - version numbers in Python variables and LaTeX macros. Standardized the |
73 |
| - PythonTeX scripts by renaming ``version`` to ``__version__``. |
74 |
| - |
75 |
| - |
76 |
| -Objectives for future releases |
77 |
| -============================== |
78 |
| - |
79 |
| -* Improve support for macro programming with PythonTeX. Add ``depythontex`` support for user macros. |
80 |
| -* Improve system for adding other languages. |
81 |
| -* Improve ``stderr`` synchronization. Simplify support for multiple languages. |
82 |
| -* Add finer-grained control. Work toward ``rerun`` control of execution at the session level, and control of whether ``stdout`` and ``strerr`` are displayed at the command/environment level. |
83 |
| -* Refactor to separate the code-management core from LaTeX-related features, so that the core can be used with other document formats (for example, markdown) in a manner similar to Sweave. |
84 |
| - |
| 55 | +If you use PythonTeX in your writing and research, please consider citing it |
| 56 | +in any resulting publications. The best and most recent paper is in |
| 57 | +`Computational Science & Discovery <http://stacks.iop.org/1749-4699/8/i=1/a=014010>`_ (doi:10.1088/1749-4699/8/1/014010). |
| 58 | +You may also cite the paper in the |
| 59 | +`2013 SciPy proceedings <http://conference.scipy.org/proceedings/scipy2013/poore.html>`_. |
85 | 60 |
|
86 | 61 |
|
87 | 62 |
|
|
0 commit comments