Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Creating Your First Document

new project

If you and your group have any questions or get stuck as you work through this in-class exercise, please ask the instructor for assistance. Have fun!

  1. Go to https://www.overleaf.com/ and log into your account.
  2. Create a new project and choose the first one (Blank project)
  3. Replace the original text with the following:

    \documentclass[a4paper,12pt]{article}
    \begin{document}
    This is my first document.
    \end{document}
    

    first document

    auto compile

    For the rest of this activity, make sure that all the content of your document stays in between \begin{document} and \end{document}. Note: You can always preview the file on the rightmost window. If you want to, enable “Auto Compile”. You can also use the keyboard shortcut Ctrl+s (Cmd+s on mac) to compile.

  4. Create a Title
    Replace “This is my first document” with the following:

    \title{Introduction to LaTeX}
    \author{My Name}
    \date{\today}
    \maketitle
    

    You can also customize the data by typing \date{Dec 2042}

    create title

  5. Add sections and subsections
    After \maketitle but before \end{document} insert the following:

    \section{Introduction}
    This is the introduction
    \section{Modeling}
    \subsection{Model 1}
    Introduction to model 1.
    \subsection{Model 2}
    Introduction to model 2.
    \section{Results}
    Here are my results.
    

    sections

  6. Produce a list of items in the “Results” section after “Here are my results.”

    \begin{enumerate}
    \item First result
    \item Second result
    \begin{itemize}
    \item A sub-thing
    \item Another sub-thing
    \end{itemize}
    \item Third result
    \end{enumerate}
    

    results

  7. Create a nested list
    Notice the differences between the first list that used {itemize} and the second list that used nesting.

    \begin{enumerate}
    \item Create a numbered list.
    \item Lettered lists can be created by being nested.
    \begin{enumerate}
    \item The first lettered item...
    \item The second lettered item...
    \end{enumerate}
    \item The last enumerated item...
    \end{enumerate}
    

    nested lists

  8. Create a table of contents
    Insert the following directly after \maketitle

    \pagenumbering{roman}
    \tableofcontents
    \newpage
    \pagenumbering{arabic}
    

    table of contents

  9. Inserting References
    Download (https://goo.gl/E9m6S7) and upload the BibTeX file to Overleaf. In the main.tex file, type the following between \end{enumerate} and \end{document}:

    See \cite{DUMMY:1} for more proof details.
    \newpage
    \bibliography{Reference}
    \bibliographystyle{ieeetr}
    

    You can add more references in the “Reference.bib” file.

    adding references

  10. Download PDF and share the LaTeX file
    You can download the PDF file by clicking the “Download PDF” button at the top of your compiled LaTeX page. You can also invite others to edit your file by clicking the “SHARE” button at the top right of your screen.

NEXT STEP: Inserting Tables and Figures