ddrake / SageTeX (http://tug.ctan.org/pkg/sagetex)
The SageTeX package allows you to embed code, results of computations, and plots from the Sage mathematics software suite (http://sagemath.org) into LaTeX documents.
| commit 68: | 91feb804ae7d |
| parent 67: | 1ba3b09487a5 |
| branch: | default |
draft of new installation section
3 months ago
Changed (Δ1.5 KB):
raw changeset »
sagetexpackage.dtx (38 lines added, 1 lines removed)
setup.py (1 lines added, 1 lines removed)
Up to file-list sagetexpackage.dtx:
29 |
29 |
%<latex>\ProvidesPackage{sagetex} |
30 |
30 |
%<python>__version__ = """ |
31 |
31 |
%<*latex|python> |
32 |
[2009/07/27 v2.2. |
|
32 |
[2009/07/27 v2.2.3 embedding Sage into LaTeX documents] |
|
33 |
33 |
%</latex|python> |
34 |
34 |
%<python>""" |
35 |
35 |
%<*driver> |
| … | … | @@ -293,10 +293,47 @@ California, 94105, USA. |
293 |
293 |
% \label{sec:installation} |
294 |
294 |
% \changes{v2.0}{2009/01/14}{Fixed up installation section, final |
295 |
295 |
% \emph{final} 2.0} |
296 |
% \changes{v2.2.3}{2009/12/29}{Rewrote installation section to reflect |
|
297 |
% inclusion as standard spkg} |
|
296 |
298 |
% |
297 |
299 |
% \newcommand{\sageroot}{\$SAGE\_ROOT} |
298 |
300 |
% |
299 |
301 |
% new installation section FIXME FIXME FIXME |
302 |
% |
|
303 |
% \ST needs two parts to work: a Python module known to Sage, and a |
|
304 |
% \LTX package known to \TeX. As of Sage version 4.3.1, \ST comes |
|
305 |
% included with Sage, so you only need to make sagetex.sty, the \LTX |
|
306 |
% package, known to \TeX. Full details of this are in the Sage |
|
307 |
% Installation guide at http://sagemath.org/doc/installation/ in the |
|
308 |
% obviously-named section ``Make \ST known to \TeX''. Here's a brief |
|
309 |
% summary of how to do that: |
|
310 |
% |
|
311 |
% \begin{itemize} |
|
312 |
% |
|
313 |
% \item Copy sagetex.sty to the same directory as your document. This |
|
314 |
% always works, but requires lots of copies off sagetex.sty and is prone |
|
315 |
% to version skew. |
|
316 |
% |
|
317 |
% \item Set the environment variable TEXINPUTS to |
|
318 |
% ``\sageroot/local/share/texmf//:'', where \sageroot refers to the |
|
319 |
% location of your Sage install. |
|
320 |
% |
|
321 |
% \item Copy the above directory to your home directory with a command |
|
322 |
% like ``cp -R \sageroot/local/share/texmf ~/''. |
|
323 |
% |
|
324 |
% \end{itemize} |
|
325 |
% |
|
326 |
% I prefer using TEXINPUTS, as it guarantees that both Sage and \TeX are |
|
327 |
% using synchronized code. |
|
328 |
% |
|
329 |
% \subsection{\ST and \TeX Live} |
|
330 |
% |
|
331 |
% \ST is included in \TeX Live, which is very nice, but because the Python |
|
332 |
% module and \LTX package for \ST need to be synchronized, if you use |
|
333 |
% the \LTX package from \TeX Live and the Python module from Sage, they |
|
334 |
% may not work together if they are from different versions of \ST. |
|
335 |
% Because of this, I strongly recommend using \ST only from what is |
|
336 |
% included with Sage and ignoring what's included with \TeX Live. |
|
300 |
337 |
% |
301 |
338 |
% \subsection{Using \TeX Shop} |
302 |
339 |
% \label{sec:using-texshop} |
| … | … | @@ -4,7 +4,7 @@ setup(name='sagetex', |
4 |
4 |
long_description="""The SageTeX package allows you to embed code, |
5 |
5 |
results of computations, and plots from the Sage mathematics |
6 |
6 |
software suite (http://sagemath.org) into LaTeX documents.""", |
7 |
version='2.2. |
|
7 |
version='2.2.3', |
|
8 |
8 |
author='Dan Drake', |
9 |
9 |
author_email='ddrake@member.ams.org', |
10 |
10 |
url='http://mathsci.kaist.ac.kr/~drake', |
