Manual

Version 2 (J. Simmons, 02/05/2015 08:58 pm)

1 1 J. Simmons
h1. Manual
2 1 J. Simmons
3 1 J. Simmons
h2. Creating MTK Documents
4 1 J. Simmons
5 1 J. Simmons
# Place the following code as the first line in the LaTeX document 
6 1 J. Simmons
% !TEX TS-program = sage
7 1 J. Simmons
# Include SageTex in the document’s preamble
8 1 J. Simmons
\usepackage{sagetex}
9 1 J. Simmons
# Include minted in the document’s preamble
10 1 J. Simmons
\usepackage{minted}
11 1 J. Simmons
\usemintedstyle{vs}
12 1 J. Simmons
\usepackage{etoolbox}
13 1 J. Simmons
\AtBeginEnvironment{minted}{\singlespace%
14 1 J. Simmons
\fontsize{10}{10}\selectfont}
15 1 J. Simmons
# Include a source file in the document
16 1 J. Simmons
## External File
17 1 J. Simmons
\inputminted[linenos,frame=lines,framesep=2.0\fboxsep]{<language>}{<file>}
18 1 J. Simmons
## Inline
19 1 J. Simmons
\begin{minted}[linenos,frame=lines,framesep=2.0\fboxsep]{<language>}
20 1 J. Simmons
<source code>
21 1 J. Simmons
\end{minted}
22 1 J. Simmons
23 1 J. Simmons
*To Do* - Add instructions on running Sage commands in the Document
24 2 J. Simmons
25 2 J. Simmons
h2. Typesetting MTK Documents
26 2 J. Simmons
27 2 J. Simmons
h3. On Macs
28 2 J. Simmons
29 2 J. Simmons
# Use the TeXShop Typeset command (TeXShop will handle the rest
30 2 J. Simmons
31 2 J. Simmons
h3. On Linux
32 2 J. Simmons
33 2 J. Simmons
# Use the Kile Typeset command
34 2 J. Simmons
# Open a command prompt to the project directory
35 2 J. Simmons
# run sage <name of tex file>.sagetex.sage
36 2 J. Simmons
# Use the Kile Typeset command again