Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Sagetex doesn't compile tex file with figures

Hi.. I am using Sagetex in Windows 10. The package were working without problems until I got a warning from my Kaspersky internet security for a malicious program detected in Python2.7 in Sagemath installation directory

Kaspersky deleted Python27. I had to reinstall Sagemath to make sure that Python 27 is installed again.

I tried to run the example.tex file located in the sagemath directory. I noticed however that Sagemath stopped compiling the code and doesn't produce any output.

I used another tex file without any plots. It seems the file can be compiled without any problems. It seemed that the problem is associated with the using plot. Sagetex stop compile the plots whenever the number of plots is more than four.

I appreciate your help

Sagetex doesn't compile tex file with figures

Hi.. I am using Sagetex in Windows 10. The package were working without problems until I got a warning from my Kaspersky internet security for a malicious program detected in Python2.7 in Sagemath installation directory

Kaspersky deleted Python27. I had to reinstall Sagemath to make sure that Python 27 is installed again.

I tried to run the example.tex file located in the sagemath directory. I noticed however that Sagemath stopped compiling the code and doesn't produce any output.

I used another tex file without any plots. It seems the file can be compiled without any problems. It seemed that However, as I include figure using the \sageplot command I started noticing the problem is associated with the using plot. Sagetex stop compile the plots whenever the number of plots is more than four. Sagetex can compile up to the fourth figure where it stopped suddenly without giving any error message.

I appreciate your help

Sagetex doesn't compile tex file with figures

Hi.. I am using Sagetex in Windows 10. The package were working without problems until I got a warning from my Kaspersky internet security for a malicious program detected in Python2.7 in Sagemath installation directory

Kaspersky deleted Python27. I had to reinstall Sagemath to make sure that Python 27 is installed again.

I tried to run the example.tex file located in the sagemath directory. I noticed however that Sagemath stopped compiling the code and doesn't produce any output.

I used another tex file without any plots. It seems the file can be compiled without any problems. However, as I include figure using the \sageplot command I started noticing the problem whenever the number of plots is more than four. Sagetex can compile up to the fourth figure where it stopped suddenly without giving any error message. I am sure the fourth command does not have any programming errors because when I move it in place of any of the first three figure it can compile without problems.

I appreciate your help

Sagetex doesn't compile tex file with figures

Hi.. I am using Sagetex in Windows 10. The package were working without problems until I got a warning from have a problem that arises when the number of plots in my Kaspersky internet security for a malicious program detected in Python2.7 in Sagemath installation directory

Kaspersky deleted Python27. I had to reinstall Sagemath to make sure that Python 27 is installed again.

I tried to run the example.tex file located in the sagemath directory. I noticed however that Sagemath stopped compiling the code and doesn't produce any output.

I used another tex file without any plots. It seems the file can be compiled without any problems. However, as I include figure using the \sageplot command I started noticing the problem whenever the number of plots is more increases than four.

Here is the code I used

% General example LaTeX file for including Sage calculations and plots % Build with: % % (pdf)latex example.tex; sage example.sagetex.sage; pdflatex example.tex % % Please read README and the documentation of the SageTeX package for % more information! %

\documentclass{article} \title{Examples of embedding Sage in \LaTeX{} with \textsf{Sage\TeX}} \author{Dan Drake and others} \usepackage{hyperref} % If you want to see the examples in the section "Plotting % (combinatorial) graphs with TikZ" remove the \begin{comment} % and \end{comment} in that section and uncomment the following line. %\usepackage{tkz-berge}

\usepackage{sagetex} % % If you want SageTeX to use Imagemagick's `convert' utility to make eps % files from png files when generating a dvi file, add the "imagemagick" % option above: % % \usepackage[imagemagick]{sagetex}

\setlength{\sagetexindent}{10ex}

\begin{document} \maketitle

\section{Inline Sage, code blocks}

This is an example $2+2=\sage{2+2}$. If you raise the current year mod $100$ (which equals $\sage{mod(\the\year, 100)}$) to the power of the current day ($\the\day$), you get $\sage{Integer(mod(\the\year, 100))^\the\day}$. Also, $\the\year$ modulo $42$ is $\sage{\the\year \percent 42}$.

Code block which uses a variable \texttt{s} to store the solutions: \begin{sageblock} 1+1 var('a,b,c') eqn = [a+bc==20, b-ac==-12, a+b==5] s = solve(eqn, a,b,c) \end{sageblock}

Solutions of $\mbox{eqn}=\sage{eqn}$: [ \sage{s[0]} ] [ \sage{s[1]} ]

\begin{sageblock} eqn = [a+bc==0, b-ac==-2, a+b==5] s = solve(eqn, a,b,c) \end{sageblock}

Solutions of $\mbox{eqn}=\sage{eqn}$: [ \sage{s[0]} ] [ \sage{s[1]} ]

You can use variables to hold plot objects and do stuff with them. \begin{sageblock} p = plot(tan(x), x, -5, 5) \end{sageblock}

Here's a small plot of $f$ from $-5$ to $5$, which I've centered:

\begin{center} \sageplot[scale=.2]{p} \end{center}

\begin{sageblock} p = plot(tan(x), x, -5, 5) \end{sageblock}

Here's a small plot of $f$ from $-5$ to $5$, which I've centered:

\begin{center} \sageplot[scale=.2]{p} \end{center}

\begin{sageblock} p = plot(tan(x), x, -5, 5) \end{sageblock}

Here's a small plot of $f$ from $-5$ to $5$, which I've centered:

\begin{center} \sageplot[scale=.2]{p} \end{center}

\begin{sageblock} p = plot(tan(x), x, -5, 5) \end{sageblock}

Here's a small plot of $f$ from $-5$ to $5$, which I've centered:

\begin{center} \sageplot[scale=.2]{p} \end{center}

\begin{sageblock} p = plot(tan(x), x, -5, 5) \end{sageblock}

Here's a small plot of $f$ from $-5$ to $5$, which I've centered:

\begin{center} \sageplot[scale=.2]{p} \end{center}

\end{document}

Sagetex can compile up to the fourth figure where without any problem if I omit the last \sageplot. If it stopped is there the shell will stop suddenly without giving any error message. I am sure the fourth command does not have any programming errors because when I move it in place of any of the first three figure it can compile without problems. message.

I appreciate your help

Sagetex doesn't compile tex file with figures

Hi.. I am using Sagetex in Windows 10. I have a problem that arises when the number of plots in my tex file increases than four.

Here is the code I used

% General example LaTeX file for including Sage calculations and plots % Build with: % % (pdf)latex example.tex; sage example.sagetex.sage; pdflatex example.tex % % Please read README and the documentation of the SageTeX package for % more information! %

\documentclass{article} \title{Examples of embedding Sage in \LaTeX{} with \textsf{Sage\TeX}} \author{Dan Drake and others} \usepackage{hyperref} % If you want to see the examples in the section "Plotting % (combinatorial) graphs with TikZ" remove the \begin{comment} % and \end{comment} in that section and uncomment the following line. %\usepackage{tkz-berge}

\usepackage{sagetex} % % If you want SageTeX to use Imagemagick's `convert' utility to make eps % files from png files when generating a dvi file, add the "imagemagick" % option above: % % \usepackage[imagemagick]{sagetex}

\setlength{\sagetexindent}{10ex}

\setlength{\sagetexindent}{10ex} \begin{document} \maketitle

\maketitle \section{Inline Sage, code blocks}

blocks} This is an example $2+2=\sage{2+2}$. If you raise the current year mod $100$ (which equals $\sage{mod(\the\year, 100)}$) to the power of the current day ($\the\day$), you get $\sage{Integer(mod(\the\year, 100))^\the\day}$. Also, $\the\year$ modulo $42$ is $\sage{\the\year \percent 42}$.

Code block which uses a variable \texttt{s} to store the solutions: \begin{sageblock} 1+1 var('a,b,c') eqn = [a+bc==20, b-ac==-12, a+b==5] s = solve(eqn, a,b,c) \end{sageblock}

Solutions of $\mbox{eqn}=\sage{eqn}$: [ \sage{s[0]} ] [ \sage{s[1]} ]

\begin{sageblock} eqn = [a+bc==0, b-ac==-2, a+b==5] s = solve(eqn, a,b,c) \end{sageblock}

Solutions of $\mbox{eqn}=\sage{eqn}$: [ \sage{s[0]} ] [ \sage{s[1]} ]

You can use variables to hold plot objects and do stuff with them. \begin{sageblock} p = plot(tan(x), x, -5, 5) \end{sageblock}

Here's a small plot of $f$ from $-5$ to $5$, which I've centered:

\begin{center} \sageplot[scale=.2]{p} \end{center}

\begin{sageblock} p = plot(tan(x), x, -5, 5) \end{sageblock}

Here's a small plot of $f$ from $-5$ to $5$, which I've centered:

\begin{center} \sageplot[scale=.2]{p} \end{center}

\begin{sageblock} p = plot(tan(x), x, -5, 5) \end{sageblock}

Here's a small plot of $f$ from $-5$ to $5$, which I've centered:

\begin{center} \sageplot[scale=.2]{p} \end{center}

\begin{sageblock} p = plot(tan(x), x, -5, 5) \end{sageblock}

Here's a small plot of $f$ from $-5$ to $5$, which I've centered:

\begin{center} \sageplot[scale=.2]{p} \end{center}

\begin{sageblock} p = plot(tan(x), x, -5, 5) \end{sageblock}

Here's a small plot of $f$ from $-5$ to $5$, which I've centered:

\begin{center} \sageplot[scale=.2]{p} \end{center}

\end{document}

Sagetex can compile without any problem if I omit the last \sageplot. If it is there the shell will stop suddenly without giving any error message.

I appreciate your help

Sagetex doesn't compile tex file with figures

Hi.. I am using Sagetex in Windows 10. I have a problem that arises when the number of plots in my tex file increases than four.

Here is the code I used

\documentclass{article} \documentclass{article}

\title{Examples of embedding Sage in \LaTeX{} with \textsf{Sage\TeX}} \textsf{Sage\TeX}}

\author{Dan Drake and others} \usepackage{hyperref} \usepackage{sagetex} \setlength{\sagetexindent}{10ex} \begin{document} \maketitle others}

\usepackage{hyperref}

\usepackage{sagetex}

\setlength{\sagetexindent}{10ex}

\begin{document}

\maketitle

\section{Inline Sage, code blocks} blocks}

This is an example $2+2=\sage{2+2}$. If you raise the current year mod $100$ (which equals $\sage{mod(\the\year, 100)}$) to the power of the current day ($\the\day$), you get $\sage{Integer(mod(\the\year, 100))^\the\day}$. Also, $\the\year$ modulo $42$ is $\sage{\the\year \percent 42}$.

Code block which uses a variable \texttt{s} to store the solutions: \begin{sageblock} 1+1 var('a,b,c') eqn = [a+bc==20, b-ac==-12, a+b==5] s = solve(eqn, a,b,c) \end{sageblock}

Solutions of $\mbox{eqn}=\sage{eqn}$: [ \sage{s[0]} ] [ \sage{s[1]} ]

\begin{sageblock} eqn = [a+bc==0, b-ac==-2, a+b==5] s = solve(eqn, a,b,c) \end{sageblock}

Solutions of $\mbox{eqn}=\sage{eqn}$: [ \sage{s[0]} ] [ \sage{s[1]} ]

You can use variables to hold plot objects and do stuff with them. \begin{sageblock} p = plot(tan(x), x, -5, 5) \end{sageblock}

Here's a small plot of $f$ from $-5$ to $5$, which I've centered:

\begin{center} \sageplot[scale=.2]{p} \end{center}

\begin{sageblock} p = plot(tan(x), x, -5, 5) \end{sageblock}

Here's a small plot of $f$ from $-5$ to $5$, which I've centered:

\begin{center} \sageplot[scale=.2]{p} \end{center}

\begin{sageblock} p = plot(tan(x), x, -5, 5) \end{sageblock}

Here's a small plot of $f$ from $-5$ to $5$, which I've centered:

\begin{center} \sageplot[scale=.2]{p} \end{center}

\begin{sageblock} p = plot(tan(x), x, -5, 5) \end{sageblock}

Here's a small plot of $f$ from $-5$ to $5$, which I've centered:

\begin{center} \sageplot[scale=.2]{p} \end{center}

\begin{sageblock} p = plot(tan(x), x, -5, 5) \end{sageblock}

Here's a small plot of $f$ from $-5$ to $5$, which I've centered:

\begin{center} \sageplot[scale=.2]{p} \end{center}

\end{document}

Sagetex can compile without any problem if I omit the last \sageplot. If it is there the shell will stop suddenly without giving any error message.

I appreciate your help

Sagetex doesn't compile tex file with figures

Hi.. I am using Sagetex in Windows 10. I have a problem that arises when the number of plots in my tex file increases than four.

Here is the code I used

\documentclass{article}

\documentclass{article}

\title{Examples of embedding Sage in \LaTeX{} with \textsf{Sage\TeX}}

\textsf{Sage\TeX}} \author{Dan Drake and others}

\usepackage{hyperref}

\usepackage{sagetex}

\setlength{\sagetexindent}{10ex}

\begin{document}

\maketitle

others} \usepackage{hyperref} \usepackage{sagetex} \setlength{\sagetexindent}{10ex} \begin{document} \maketitle \section{Inline Sage, code blocks}

blocks} This is an example $2+2=\sage{2+2}$. If you raise the current year mod $100$ (which equals $\sage{mod(\the\year, 100)}$) to the power of the current day ($\the\day$), you get $\sage{Integer(mod(\the\year, 100))^\the\day}$. Also, $\the\year$ modulo $42$ is $\sage{\the\year \percent 42}$.

42}$. Code block which uses a variable \texttt{s} to store the solutions: \begin{sageblock} 1+1 var('a,b,c') eqn = [a+bc==20, b-ac==-12, [a+b*c==20, b-a*c==-12, a+b==5] s = solve(eqn, a,b,c) \end{sageblock}

\end{sageblock} Solutions of $\mbox{eqn}=\sage{eqn}$: [ \[ \sage{s[0]} ] [ \] \[ \sage{s[1]} ]

\] \begin{sageblock} eqn = [a+bc==0, b-ac==-2, [a+b*c==0, b-a*c==-2, a+b==5] s = solve(eqn, a,b,c) \end{sageblock}

\end{sageblock} Solutions of $\mbox{eqn}=\sage{eqn}$: [ \[ \sage{s[0]} ] [ \] \[ \sage{s[1]} ]

\] You can use variables to hold plot objects and do stuff with them. \begin{sageblock} p = plot(tan(x), x, -5, 5) \end{sageblock}

Here's a small plot of $f$ from $-5$ to $5$, which I've centered:

\begin{center} \sageplot[scale=.2]{p} \end{center}

\begin{sageblock} p = plot(tan(x), x, -5, 5) \end{sageblock}

Here's a small plot of $f$ from $-5$ to $5$, which I've centered:

\begin{center} \sageplot[scale=.2]{p} \end{center}

\begin{sageblock} p = plot(tan(x), x, -5, 5) \end{sageblock}

Here's a small plot of $f$ from $-5$ to $5$, which I've centered:

\begin{center} \sageplot[scale=.2]{p} \end{center}

\begin{sageblock} p = plot(tan(x), x, -5, 5) \end{sageblock}

Here's a small plot of $f$ from $-5$ to $5$, which I've centered:

\begin{center} \sageplot[scale=.2]{p} \end{center}

\begin{sageblock} p = plot(tan(x), x, -5, 5) \end{sageblock}

Here's a small plot of $f$ from $-5$ to $5$, which I've centered:

\begin{center} \sageplot[scale=.2]{p} \end{center}

\end{document}

\end{sageblock} Here's a small plot of $f$ from $-5$ to $5$, which I've centered: \begin{center} \sageplot[scale=.2]{p} \end{center} \begin{sageblock} p = plot(tan(x), x, -5, 5) \end{sageblock} Here's a small plot of $f$ from $-5$ to $5$, which I've centered: \begin{center} \sageplot[scale=.2]{p} \end{center} \begin{sageblock} p = plot(tan(x), x, -5, 5) \end{sageblock} Here's a small plot of $f$ from $-5$ to $5$, which I've centered: \begin{center} \sageplot[scale=.2]{p} \end{center} \begin{sageblock} p = plot(tan(x), x, -5, 5) \end{sageblock} Here's a small plot of $f$ from $-5$ to $5$, which I've centered: \begin{center} \sageplot[scale=.2]{p} \end{center} \begin{sageblock} p = plot(tan(x), x, -5, 5) \end{sageblock} Here's a small plot of $f$ from $-5$ to $5$, which I've centered: \begin{center} \sageplot[scale=.2]{p} \end{center} \end{document}

Sagetex can compile without any problem if I omit the last \sageplot. If it is there the shell will stop suddenly without giving any error message.

I appreciate your help