Manual¶
Creating MTK Documents¶
- Place the following code as the first line in the LaTeX document
% !TEX TS-program = sage
- Include SageTex in the document’s preamble
\usepackage{sagetex}
- Include minted in the document’s preamble
\usepackage{minted}
\usemintedstyle{vs}
\usepackage{etoolbox}
\AtBeginEnvironment{minted}{\singlespace%
\fontsize{10}{10}\selectfont}
- Include a source file in the document
- External File
\inputminted[linenos,frame=lines,framesep=2.0\fboxsep]{<language>}{<file>}
- Inline
\begin{minted}[linenos,frame=lines,framesep=2.0\fboxsep]{<language>}
<source code>
\end{minted}
To Do - Add instructions on running Sage commands in the Document