LaTeX video tutorial for beginners (video 2)
Video 1 | Video 2 | Video 3 | Video 4 | Video 5 | Video 6 | Video 7
This seven-part series of LaTeX tutorial videos was first published in 2013; consequently, today's editor interface has changed considerably due to the development of ShareLaTeX and the subsequent merger of ShareLaTeX and Overleaf. However, the video content is still relevant and teaches you the basics of LaTeX—skills and expertise that will apply across all platforms. You don’t need any previous background knowledge, and by the end of these LaTeX guides you will be able to create and write basic LaTeX documents and have the knowledge to start learning how to create more complicated documents. Each video is accompanied by a transcript (listed below the video)—these in-situ transcripts replace the URLs shown at the start of each tutorial.
Paragraphs and sections in LaTeX
Note: You can open the project used in the video by following this link.
Video transcript
In the previous video we helped you get set up with ShareLaTeX, showed you some of it’s features and helped you create your first document. In this video we are going to look at dividing documents using sections and paragraphs. Let’s open up the document we created last time.
Currently our document only has one section named ‘Introduction’. Let’s add a few more to make it more like a lab report. It’s often helpful to split up sections into further levels or subsections. These are created using the \subsection
command. You can go even lower if you want by adding sub subsections.
Now let’s talk about paragraphs. If you want to start writing a new paragraph you must leave a blank line in the code. This will start a new line and indent it for you. Note that leaving more than one blank line just does the same as leaving a single blank line. However If you only take a single line break, LaTeX will ignore it. If you want LaTeX to take a new line without taking a new paragraph then you can use a double backslash, but this is to be discouraged as it leads to bad style.
In the previous video we briefly mentioned the \maketitle
command which adds a title along with the author and date information, all of which it collects from the preamble. You might not always want a big title on your document so you can easily remove it by commenting it out. To do this simply add a percent sign directly in-front of the command.
This brings us on to the topic of commenting. Comments are parts within the code that LaTeX ignores when compiling the document. To inform LaTeX that what you are writing is a comment simply place a percent sign in front of the text, then any text following the percent sign on that line will be ignored. Comments are there to give anyone reading your code information about what the code does or it’s purpose. It is good practice to regularly comment your code. For example I may write a comment at the top of the code to state the purpose of the document. I may also write a comment to remind myself that part of a section isn’t finished yet. Comments are also useful for turning off code without deleting it as we did with the make title command.
So that concludes our discussion on sections and paragraphs. In the next video we’ll look at using LaTeX to write basic maths and equations.
Video 1 | Video 2 | Video 3 | Video 4 | Video 5 | Video 6 | Video 7
Overleaf guides
- Creating a document in Overleaf
- Uploading a project
- Copying a project
- Creating a project from a template
- Using the Overleaf project menu
- Including images in Overleaf
- Exporting your work from Overleaf
- Working offline in Overleaf
- Using Track Changes in Overleaf
- Using bibliographies in Overleaf
- Sharing your work with others
- Using the History feature
- Debugging Compilation timeout errors
- How-to guides
- Guide to Overleaf’s premium features
LaTeX Basics
- Creating your first LaTeX document
- Choosing a LaTeX Compiler
- Paragraphs and new lines
- Bold, italics and underlining
- Lists
- Errors
Mathematics
- Mathematical expressions
- Subscripts and superscripts
- Brackets and Parentheses
- Matrices
- Fractions and Binomials
- Aligning equations
- Operators
- Spacing in math mode
- Integrals, sums and limits
- Display style in math mode
- List of Greek letters and math symbols
- Mathematical fonts
- Using the Symbol Palette in Overleaf
Figures and tables
- Inserting Images
- Tables
- Positioning Images and Tables
- Lists of Tables and Figures
- Drawing Diagrams Directly in LaTeX
- TikZ package
References and Citations
- Bibliography management with bibtex
- Bibliography management with natbib
- Bibliography management with biblatex
- Bibtex bibliography styles
- Natbib bibliography styles
- Natbib citation styles
- Biblatex bibliography styles
- Biblatex citation styles
Languages
- Multilingual typesetting on Overleaf using polyglossia and fontspec
- Multilingual typesetting on Overleaf using babel and fontspec
- International language support
- Quotations and quotation marks
- Arabic
- Chinese
- French
- German
- Greek
- Italian
- Japanese
- Korean
- Portuguese
- Russian
- Spanish
Document structure
- Sections and chapters
- Table of contents
- Cross referencing sections, equations and floats
- Indices
- Glossaries
- Nomenclatures
- Management in a large project
- Multi-file LaTeX projects
- Hyperlinks
Formatting
- Lengths in LaTeX
- Headers and footers
- Page numbering
- Paragraph formatting
- Line breaks and blank spaces
- Text alignment
- Page size and margins
- Single sided and double sided documents
- Multiple columns
- Counters
- Code listing
- Code Highlighting with minted
- Using colours in LaTeX
- Footnotes
- Margin notes
Fonts
Presentations
Commands
Field specific
- Theorems and proofs
- Chemistry formulae
- Feynman diagrams
- Molecular orbital diagrams
- Chess notation
- Knitting patterns
- CircuiTikz package
- Pgfplots package
- Typesetting exams in LaTeX
- Knitr
- Attribute Value Matrices
Class files
- Understanding packages and class files
- List of packages and class files
- Writing your own package
- Writing your own class