Manual
Version 1 (J. Simmons, 01/22/2015 09:40 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 |