From 53e0f53148560a1055c14aa0ba087780f58821e6 Mon Sep 17 00:00:00 2001 From: 927589452 <927589452@users.noreply.github.com> Date: Sun, 8 Sep 2019 17:55:58 +0200 Subject: [PATCH 1/3] Update example.tex use the internal `\ST` command to typeset SageTeX --- example.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example.tex b/example.tex index 415092d..5460250 100644 --- a/example.tex +++ b/example.tex @@ -8,7 +8,7 @@ % \documentclass{article} -\title{Examples of embedding Sage in \LaTeX{} with \textsf{Sage\TeX}} +\title{Examples of embedding Sage in \LaTeX{} with \ST} \author{Dan Drake and others} \usepackage{hyperref} % If you want to see the examples in the section "Plotting From c7bb68936e07fdc873b74b5c672b5f32cfc2753a Mon Sep 17 00:00:00 2001 From: 927589452 Date: Mon, 9 Sep 2019 12:35:12 +0200 Subject: [PATCH 2/3] move all uses of Sage\TeX to \ST --- example.tex | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/example.tex b/example.tex index 5460250..25d7043 100644 --- a/example.tex +++ b/example.tex @@ -8,7 +8,7 @@ % \documentclass{article} -\title{Examples of embedding Sage in \LaTeX{} with \ST} +\title{Examples of embedding Sage in \LaTeX{} with \ST}% \ST typesets the SageTeX name \author{Dan Drake and others} \usepackage{hyperref} % If you want to see the examples in the section "Plotting @@ -282,7 +282,7 @@ \subsection{3D plotting} % passing an option to includegraphics \sageplot[][png]{G.plot3d()} -\section{Pausing Sage\TeX} +\section{Pausing \ST} \label{sec:pausing-sagetex} Sometimes you want to ``pause'' for a bit while writing your document if @@ -306,7 +306,7 @@ \section{Pausing Sage\TeX} \section{Make Sage write your \LaTeX{} for you} -With \textsf{Sage\TeX}, you can not only have Sage do your math for you, +With \textsf{\ST}, you can not only have Sage do your math for you, it can write parts of your \LaTeX{} document for you! For example, I hate writing \texttt{tabular} environments; there's too many fiddly little bits of punctuation and whatnot\ldots and what if you want to add @@ -452,7 +452,7 @@ \section{Include doctest-like examples in your document} 1/5*x^5 - 1/4*x^4 + 1/3*x^3 - 1/2*x^2 + 5*x + 1 \end{sageexample} -\section{Plotting functions in Ti\emph{k}Z with Sage\TeX} +\section{Plotting functions in Ti\emph{k}Z with \ST} (The code in this section should work with any reasonable version of Ti\emph{k}Z, which means it should work with all but the most terribly @@ -467,7 +467,7 @@ \section{Plotting functions in Ti\emph{k}Z with Sage\TeX} reading in a sequence of points from an external file---see chapter 18, page 193 of the TikZ manual. This facility is designed around files produced by Gnuplot, but the file format is so simple that it's very -easy to use Sage\TeX{} to generate them. First you need a function that +easy to use \ST{} to generate them. First you need a function that will evaluate functions and write the results into a file: From be20866c78312d39575b02a92b600aa7b1b3ca89 Mon Sep 17 00:00:00 2001 From: 927589452 Date: Mon, 9 Sep 2019 18:04:58 +0200 Subject: [PATCH 3/3] remove nested textsf --- example.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example.tex b/example.tex index 25d7043..a662be8 100644 --- a/example.tex +++ b/example.tex @@ -306,7 +306,7 @@ \section{Pausing \ST} \section{Make Sage write your \LaTeX{} for you} -With \textsf{\ST}, you can not only have Sage do your math for you, +With \ST, you can not only have Sage do your math for you, it can write parts of your \LaTeX{} document for you! For example, I hate writing \texttt{tabular} environments; there's too many fiddly little bits of punctuation and whatnot\ldots and what if you want to add