CoCalc Public Filestmp / 2018-03-01-120630.texOpen in with one click!
Author: William A. Stein
1
\documentclass{article}
2
3
% set font encoding for PDFLaTeX or XeLaTeX
4
\usepackage{ifxetex}
5
\ifxetex
6
\usepackage{fontspec}
7
\else
8
\usepackage[T1]{fontenc}
9
\usepackage[utf8]{inputenc}
10
\usepackage{lmodern}
11
\fi
12
13
% used in maketitle
14
\title{Title of Document}
15
\author{Name of Author}
16
17
% Enable SageTeX to run SageMath code right inside this LaTeX file.
18
% documentation: http://mirrors.ctan.org/macros/latex/contrib/sagetex/sagetexpackage.pdf
19
\usepackage{sagetex}
20
21
\begin{document}
22
\maketitle
23
24
Consider $x^2 = Y^3$
25
26
We have $2020=\sage{factor(2020)}$
27
28
\end{document}
29