%-------------------- Preamble -------------------
% Used to set properties (global settings) and define some custom commands
\documentclass{article} % Document type; the formatting will vary based on the document type, e.g., article, book, letter, etc.
%---------- Title Section ------------
\title{\LaTeX Introduction}
\author{Raffe Yang}
\date{\today} % \today will automatically sync to today's date
%-------------------- Document Body -------------------
% A .tex file has exactly one document section
\begin{document}
\maketitle % Actually outputs the title section
Hi \LaTeX
% An empty line in the document indicates a line break
% $inline formula$ $$display formula$$
Let $f(x)$ be defined by the formula $$f(x)=2\sin x$$ which is a polynomial of degree 2.
\end{document}

PDF Preview
Create an account to compile and preview