Latex basic

LaTeX basic usages. takeaways from Luke Smith’s Latex tutorial

Basic Structure


\author{Emmanuel Blyatstein}
\title{This is a title}

    \section{section 1}
        \subsection{Subsection 1}
        \subsection{Subsection 2}
    \section{section 2}

Numbered Lists

    \item item1
    \item item2 
    \item item3


    \item item1
    \item item2 
    \item item3

Fonts and Quotations

This is normal. 
\textbf{this is bold}
\textit{this is italic.}
\emph{this is emphatic.}
\underline{this is underline}
``This is a quot''
`this is a single quot'

Labels and references:

\section{something \label{som}}

I'm using ref to \ref{som}

the numbering of \ref and \label will match when the article structure changes.

Images & Figures


Basic usage


Figures figures are numbered. can add captions

    \caption{this is a figure}

Figure Positioning:
by default latex put figures where it’s most space-efficient

  • \begin{figure}[h] puts the figure exactly where this line of source code is.

  • \begin{figure}[t] puts the figure on page top.

  • \begin{figure}[b] puts the figure on page bottom.

paras e.g.



Wrapping package:





  • {r} place on the right
  • {3in} width of the wrap area (not the figure width)

Figure Label and Refs

    \caption{this is a figure \label{t1}}

please refer to figure \ref{t1}

Bibliographies managements

in file library.bib

        author = "LASTNAME, FirstName",
        title  = "A book",
        year   = "2021",
        publisher = "XXX Verlag"

note: test is the reference id


\textcite{test} says fuck

this is a parencite \parencite{test}



TWO-Column Articles:









\newcommand{\commandName}[Paras]{what to do}