diff options
Diffstat (limited to 'macros/latex/contrib/sagetex/sagetex.dtx')
-rw-r--r-- | macros/latex/contrib/sagetex/sagetex.dtx | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/macros/latex/contrib/sagetex/sagetex.dtx b/macros/latex/contrib/sagetex/sagetex.dtx index da0b7ff86a..b5598d990e 100644 --- a/macros/latex/contrib/sagetex/sagetex.dtx +++ b/macros/latex/contrib/sagetex/sagetex.dtx @@ -1,6 +1,7 @@ % \iffalse meta-comment % % Copyright (C) 2008--2015 by Dan Drake <dr.dan.drake (at) gmail (dot) com> +% Copyright (C) 2016--2020 by SageMath Developers <sage-devel (at) googlegroups (dot) com> % ------------------------------------------------------- % % See the "Copying and licenses" section in this file for the terms @@ -29,10 +30,10 @@ %<latex>\ProvidesPackage{sagetex} %<python>__version__ = """ %<*latex|python> - [2019/01/09 v3.2 embedding Sage into LaTeX documents] + [2020/08/12 v3.5 embedding Sage into LaTeX documents] %</latex|python> %<python>""".strip() -%<latex>\newcommand{\ST@ver}{2019/01/09 v3.2} +%<latex>\newcommand{\ST@ver}{2020/08/12 v3.5} %<*driver> \documentclass{ltxdoc} \usepackage{sagetex} @@ -175,9 +176,9 @@ suggestions. % \title{The \ST{} package\thanks{This document corresponds to % \ST \fileversion, dated \filedate.}} % -% \author{Dan Drake and others\thanks{Author's website: -% \href{http://mathsci.kaist.ac.kr/\textasciitilde drake/} -% {\texttt{mathsci.kaist.ac.kr/$\sim$drake/}}.}} +% \author{Dan Drake and others\thanks{Package's website: +% \href{https://github.com/sagemath/sagetex} +% {\texttt{github.com/sagemath/sagetex}}.}} % % \iffalse % Don't put any other code from this file into the .sty or .py @@ -818,20 +819,26 @@ suggestions. % provides Python syntax highlighting and line numbers. For example, % \begin{quote} % |\begin{sagecommandline}|\\ -% | sage: 1+1|\\ -% | 2|\\ +% | sage: t = 1+1|\\ +% | sage: for i in range(101): # multiline input example|\\ +% | ....: t+=1|\\ +% | sage: t|\\ +% | 103|\\ % | sage: factor(x^2 + 2*x + 1)|\\ % |\end{sagecommandline}| % \end{quote} % becomes \begin{sagecommandline} - sage: 1+1 - 2 + sage: t = 1+1 + sage: for i in range(101): # multiline input example + ....: t+=1 + sage: t + 103 sage: factor(x^2 + 2*x + 1) \end{sagecommandline} % You have a choice of either explicitly providing the Sage output or % leaving it up to the computer to fill in the blanks. Above, the output -% for $1+1$ was provided, but the output for the |factor()| command +% for $t$ was provided, but the output for the |factor()| command % wasn't. Moreover, any Sage comment that starts with a ``at'' sign is % escaped to \LTX. In particular, you can use |\label| to mark line % numbers in order to |\ref|erence and |\pageref|erence them as usual. |