Manual

Version 6 (J. Simmons, 02/20/2015 10:27 pm) → Version 7/8 (J. Simmons, 11/01/2015 04:08 pm)

h1. Manual

{{toc}}

We have just changed implementation of MTK. Please stand by while we update our documentation to reflect these changes.

h2. 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

h2. Typesetting MTK Documents



h3. On Macs

# Use the TeXShop Typeset command (TeXShop will handle the rest)

h3. On Linux

# Use the Kile Typeset command
# Open a command prompt to the project directory
# run sage <name of tex file>.sagetex.sage
# Use the Kile Typeset command again
# "Link":http://tex.stackexchange.com/questions/96409/is-it-possible-to-integrate-sage-in-kile to automate these steps in Kile.

h2. Performing Math Operations in MTK

* "Supported Units":https://github.com/hgrecco/pint/blob/b5ead03728af49aa8272e8d58d61c13697a179ff/pint/default_en.txt (from Pint source code - we should port this to a wiki table later)