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