ABSTRACT

This chapter explains about basic LaTeX document structures and syntax as well as how to dynamically create LaTeX bibliographies with BibTeX, R, and knitr. It looks at how to create PDF beamer slideshows. The chapter shows how to create a LaTeX article including what editor programs to use, the basic structure of a LaTeX document, including preamble and body, LaTeX syntax for creating headings, paragraphs, lines, text formatting, math, lists, footnotes, and cross-references. There are many other LaTeX editors and many text editors that can be modified to compile LaTeX documents. For example, alongside writing this book in RStudio, first typed much of the LaTeX markup in the Atom text editor because it was easier to work with a large number of files simultaneously. However, RStudio has by far the best integration with knitr. There are a number of places to find comprehensive lists of LaTeX commands.