LaTex Guide

@Square Zhong

Basic Grammar

Baisc Structure

\\class{}

\\begin{}

body

\\end{}

Preamble

Anything before \begin{} is called preamble

\\documentclass[12pt, letterpaper]{article}

[font size, paper size]

Default [10pt, a4paper in overleaf]

\\usepackage[utf8]{inputenc}

[encoding] utf8 is recommended

Adding a title, author and date

Add three lines to preamble

\\title{First document}

\\author{Square Zhong}