LaTeX-Old-Version/C2/What-is-Compiling/English-timed
From Script | Spoken-Tutorial
Time | Narration |
00:00 | Welcome to this spoken tutorial on how to create a simple document using LaTeX. |
00:08 | I will explain this process in a MacOSX operating system. |
00:13 | Similar methods are available in other operating systems such as Linux and Windows. |
00:19 | The first thing you have to do is to create a source file using your editor. |
00:24 | My favorite editor is Emacs. I have named the file "hello.tex". The extension of the file is "tex". Although it has the spelling t-e-x, it is pronounced ‘tec’. This is the default for LaTeX. |
00:40 | The first thing to do is to tell Latex what document class we are interested in. |
00:46 | I will use the 'article class' as follows. |
01:01 | Save it. |
01:03 | There are several other classes as well. |
01:06 | We will encounter some of them in other tutorials. |
01:10 | I’m using 12 point as the font size. |
01:14 | Two smaller sizes, namely 11pt. and 10pt. are also popular in Latex. |
01:23 | Let me begin the document. |
01:29 | Let me type the text ‘Hello world!’ |
01:34 | Let me end the document. |
01:36 | Let me Save it. |
01:39 | Whatever comes in between the begin and end document commands only will be in the final output. |
01:47 | This is called the source file. I have named it "hello.tex". |
01:51 | Let us compile it using the command pdflatex. |
01:55 | We come here and show the command ‘pdf latex hello. Tex’. |
02:08 | We can also use the command ‘pdf latex hello’, without the extension ‘tex’ to compile this. |
02:23 | The default extension of 'tex' will be used in this case. |
02:28 | The command 'pdf latex' is used to create a pdf file from the latex source file. |
02:35 | On execution of this command, latex gives some informative output also. These messages are stored in a file "hello.log" as we see here. |
02:48 | Note the occurrence of "hello" in all the files that we have created so far. |
02:53 | Let us now open the file "hello.pdf". |
02:57 | In my Mac system, I do this by issuing the command ‘skim hello.pdf’. |
03:12 | ‘skim’ is a free pdf reader available for Mac OSX. |
03:18 | On issuing this command, skim opens the file "hello.pdf". |
03:22 | It has only one line as expected. Let me zoom this file. |
03:33 | Skim shows the latest version of the opened pdf file. |
03:37 | For example, if I modify it, let me add another ‘hello world’ here. |
03:48 | Let me save it first and then compile it. |
03:56 | Let me allow this. It has been updated. |
04:01 | Let me delete this, save it, compile it, now it has gone back to the original file. |
04:14 | Notice that I have always compiled after saving the file. |
04:21 | You save first, and then compile it. If you don’t save it, whatever changes you made since the last save will not be included in the compiled form. |
04:30 | I have organized these three windows, for the purpose of creating this spoken tutorial. |
04:36 | You do not need to arrange them in this fashion to create documents. However, please also note that you can use any other editor and pdf reader of your choice. |
04:45 | To use latex, one should go through these phases: creation of source, compilation and viewing the pdf file. |
05:08 | I encourage you to go through these phases by modifying the source file. |
05:12 | You may wish to add a few more lines of text in between the begin and end document commands. |
05:20 | You may also want to browse through the "hello.log" file. |
05:24 | Let me now continue the tutorial with a presentation. |
05:28 | Let me first delete this. |
05:38 | I would begin with the benefits of Latex. |
05:42 | Latex is an excellent typesetting software. |
05:47 | The quality of documents produced by latex is unmatched. |
05:51 | Latex is free and open source. |
05:53 | It is available on windows and all unix systems, including Mac and linux. |
06:00 | Latex has outstanding features, such as: automatic numbering of equations, chapters and sections, figures and tables. |
06:08 | Documents with a lot of mathematical equations can also be generated easily in Latex. |
06:13 | It is easy to produce bibliographic entries with changeable format on the fly. |
06:19 | With latex taking care of formatting, the writer can concentrate on more important activities, such as content generation and logical sequencing of ideas. |
06:31 | There are more spoken tutorials on Latex. Visit moudgalya.org for the following spoken tutorials on latex: What is compilation, letter writing, report writing, mathematical typesetting, equations, tables and figures, how to create a bibliography, and Inside story of bibliography. |
06:53 | This order of tutorials is recommended for best results. |
06:57 | Source files used to create these tutorials are also available at this website. |
07:03 | We plan to add a tutorial on installation of Latex in Windows OS. |
07:09 | There will also be other tutorial in the near future, for example, "beamer" for slide presentation. |
07:15 | This presentation has been made with beamer, using Latex. |
07:21 | Some tips: Go through as many spoken tutorials as possible. |
07:26 | Practice them in parallel. |
07:28 | Start with a working latex file. |
07:31 | Make one change at a time, save, compile and make sure that whatever you have done works, before making further changes. |
07:40 | Remember to save the source file before compiling. |
07:45 | There are many books on Latex, we recommend two. |
07:48 | The first one is by the original creator of Latex, Leslie Lamport. |
07:53 | This book is available in a low cost Indian edition as well. |
07:57 | Advanced users may consult the following book, Latex companion. |
08:03 | The first book and a web search is usually sufficient for most purposes. However, the main site for all latex related material is "ctan.org". |
08:15 | Funding for this work has come from the National Mission on Education through ICT. Launched by MHRD, Government of India. |
08:24 | URL for this mission is sakshat.ac.in. Spoken tutorial activity is the initiative of the ‘Talk to a Teacher’ project of the mission, coordinated by CDEEP, IIT Bombay: cdeep.iitb.ac.in. |
08:39 | Use of spoken tutorial to popularize software development and its use will be coordinated through fosse.in. |
08:47 | "Fossee" stands for Free and Open source software in science and engineering education. |
08:52 | This project also is supported by the national mission on education. |
08:57 | Keep watching these links for more spoken tutorials and their translation in other languages. |
09:05 | This brings us to the end of this tutorial. Thanks for joining. This is Kannan Moudgalya from CDEEP, IIT Bombay, signing off. Good bye. |