Sharedlatex-tests / default.texOpen in CoCalc
Author: Harald Schilly
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
\usepackage{hyperref}
25
26
\title{Title of Document}
27
\author{Name of Author}
28
29
% Enable SageTeX to run SageMath code right inside this LaTeX file.
30
% http://mirrors.ctan.org/macros/latex/contrib/sagetex/sagetexpackage.pdf
31
% \usepackage{sagetex}
32
33
\begin{document}
34
\maketitle
35
36
\end{document}
37