Pro použití ShareLaTeXu v Angličtina klikněte zde

## Transcript

Welcome to the ShareLaTeX tutorial videos. In this video series we’ll help you go from no knowledge of LaTeX to being able to create complex documents. We’ll be using ShareLaTeX as our LaTeX editor but the skills you learn will apply across all platforms. In this first video we’ll show you how to sing up to ShareLaTeX, give you a quick tour and show you how to compile your first LaTeX document.

Let’s go back to the code page and edit our first document. You will notice that ShareLaTeX has already given you some code by default. Let’s go through each of these lines and discuss what they do. Each statement starting with a backslash is a LaTeX command, ShareLaTeX has colour coded them in blue to make them easy to recognise. The \documentclass{} command tells LaTeX what type of document you want to produce, popular options include article, book, report, slides and letter. The command on the second line sets LaTeX up to be able to use accented characters. The \title{} command tells LaTeX the title of your document, let’s change this by editing the text in the curly brackets. The next two commands give LaTeX information regarding the document’s author and writing date, let’s update these as well. This completes what is known as the preamble.

The \begin{} command on line 8 tells LaTeX we want to start writing the document. The \maketitle{} command puts a title into the document using the information we entered in the preamble. The \section{} command is used to help you break up your document into logical parts. This first section has been named Introduction and below it we can start adding text. Line 14 is the \end{} command and here is telling LaTeX we have finished writing the document. Every time you use a \begin{} command you must also remember to use an \end{} command later on to avoid LaTeX giving you an error.

We can now see what our document looks like by clicking the green recompile button. Hovering your mouse over the left hand upper corner of the preview panel gives you options to zoom in and out on your document to enable you to check everything is as expected.

So there you have it, your first LaTeX document. In the following videos we will look at how to use more advanced LaTeX features.

Published on 17 Jul 2013