First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

In sagetex, how to avoid italic font for sagecommandline environment within example environment?

I am using sagecommandline environment of sagetex and I love it. I currently have an issue illustrated in the example below:

\documentclass{article}
\newtheorem{example}{Example}
\usepackage{sagetex}

\begin{document}
This is in the text:
\begin{sagecommandline}
    sage: matrix(3,range(9))
\end{sagecommandline}

\begin{example}
    This is an example:
\begin{sagecommandline}
    sage: matrix(3,range(9))
\end{sagecommandline}
\end{example}
\end{document}

output is:

image description

I would like the sagecommandline code to never be in italic, even inside an environment which is in italic. How do I solve this issue?

In sagetex, how to avoid italic font for sagecommandline environment within example environment?

I am using sagecommandline environment of sagetex and I love it. I currently have an issue illustrated in the example below:

\documentclass{article}
\newtheorem{example}{Example}
\usepackage{sagetex}

\begin{document}
This is in the text:
\begin{sagecommandline}
    sage: matrix(3,range(9))
\end{sagecommandline}

\begin{example}
    This is an example:
\begin{sagecommandline}
    sage: matrix(3,range(9))
\end{sagecommandline}
\end{example}
\end{document}

output is:

image descriptionimage description

I would like the sagecommandline code to never be in italic, even inside an environment which is in italic. How do I solve this issue?

In sagetex, how to avoid italic font for sagecommandline environment within example environment?

I am using sagecommandline environment of sagetex and I love it. I currently have an issue illustrated in the example below:

\documentclass{article}
\newtheorem{example}{Example}
\usepackage{sagetex}

\begin{document}
This is in the text:
\begin{sagecommandline}
    sage: matrix(3,range(9))
\end{sagecommandline}

\begin{example}
    This is an example:
\begin{sagecommandline}
    sage: matrix(3,range(9))
\end{sagecommandline}
\end{example}
\end{document}

output is:

image description

I would like the sagecommandline code to never be in italic, even inside an environment which is in italic. How do I solve this issue?italic.

In sagetex, how to avoid italic font for sagecommandline environment within example environment?

I am using sagecommandline environment of sagetex and I love it. I currently have an issue illustrated in the example below:

\documentclass{article}
\newtheorem{example}{Example}
\usepackage{sagetex}

\begin{document}
This is in the text:
\begin{sagecommandline}
    sage: matrix(3,range(9))
\end{sagecommandline}

\begin{example}
    This is an example:
\begin{sagecommandline}
    sage: matrix(3,range(9))
\end{sagecommandline}
\end{example}
\end{document}

output is:

image description

I would like the sagecommandline code to never be in italic, even inside an environment which is in italic.