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