« Previous - Version 2/8 (diff) - Next » - Current version
J. Simmons, 02/05/2015 08:58 pm


Manual

Creating MTK Documents

  1. Place the following code as the first line in the LaTeX document
    % !TEX TS-program = sage
  2. Include SageTex in the document’s preamble
    \usepackage{sagetex}
  3. Include minted in the document’s preamble
    \usepackage{minted}
    \usemintedstyle{vs}
    \usepackage{etoolbox}
    \AtBeginEnvironment{minted}{\singlespace%
    \fontsize{10}{10}\selectfont}
  4. Include a source file in the document
    1. External File
      \inputminted[linenos,frame=lines,framesep=2.0\fboxsep]{<language>}{<file>}
    2. 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

Typesetting MTK Documents

On Macs

  1. Use the TeXShop Typeset command (TeXShop will handle the rest

On Linux

  1. Use the Kile Typeset command
  2. Open a command prompt to the project directory
  3. run sage <name of tex file>.sagetex.sage
  4. Use the Kile Typeset command again

Also available in: HTML TXT