CoCalc Public Filestmp / 2018-04-14-123324.texOpen with one click!
Author: William A. Stein
1
\documentclass{article}
2
3
% set font encoding for PDFLaTeX, XeLaTeX, or LuaTeX
4
\usepackage{ifxetex,ifluatex}
5
\newif\ifxetexorluatex
6
\ifxetex
7
\xetexorluatextrue
8
\else
9
\ifluatex
10
\xetexorluatextrue
11
\else
12
\xetexorluatexfalse
13
\fi
14
\fi
15
16
\ifxetexorluatex
17
\usepackage{fontspec}
18
\else
19
\usepackage[T1]{fontenc}
20
\usepackage[utf8]{inputenc}
21
\usepackage{lmodern}
22
\fi
23
24
% used in maketitle
25
\title{Title of Document}
26
\author{Name of Author}
27
28
% Enable SageTeX to run SageMath code right inside this LaTeX file.
29
% documentation: http://mirrors.ctan.org/macros/latex/contrib/sagetex/sagetexpackage.pdf
30
% \usepackage{sagetex}
31
32
\begin{document}
33
\maketitle
34
35
\end{document}
36