LaTeX-Old-Version/C2/Installing-MikTeX/English-timed
From Script | Spoken-Tutorial
Time | Narration |
00:00 | Welcome to this tutorial on installing LaTeX on Windows. |
00:08 | It can be used to produce outstanding documents. If you are going to create many documents in the rest of your life, it is time you started using Latex. |
00:19 | If you are going to include a lot of mathematics, there is no substitute for latex at all. |
00:27 | Latex documents created in one operating system, say Windows, can be reused without any changes, in other systems, such as Linux and Mac – and conversely, Latex is free and also open source. |
00:44 | Above all, it has excellent user communities to help you with doubts, for example, 'visit tug India'. |
00:52 | The following spoken tutorials on latex are available at 'moudgalya.org'. |
00:58 | Please go through the first on the above list, namely- 'What is compilation?', before continuing with the current tutorial. |
01:06 | Finally, web search could be the best source of information! Expect future support for latex from 'http fossee dot in' – note two s’s and two e’s. |
01:22 | 'FOSSEE' stands for free and open source software in science and engineering education.
I will now explain how to use latex in the Windows operating system. |
01:37 | I will begin with the installation of 'Miktex', a free distribution of latex. Then TeXnic Center, a free front end to 'miktex'. |
01:49 | I will show how to compile using 'TeXnic Center' and view through Adobe Reader. I will conclude with an optional pdf reader called 'Sumatra', that is free and open source. |
02:04 | Miktex is a popular installation of latex for Windows. Locate version 2.7 in 'miktex dot org'. |
02:18 | Okay.. let’s go there. Here it is. So, you can download this. |
02:40 | After downloading it, save it as you may want to use it a few times if you are a beginner.
The name of this file is given here. It is a large file, about 83 mega bytes. |
02:57 | The complete version of Miktex is even larger, of the order of 900 mega bytes; so we do not recommend it. |
03:04 | IF you do not have good connectivity, use a CD, to be available in the future from fossee dot in. |
03:12 | I have saved this installation file in my Downloads directory which I will open now. |
03:21 | I have already downloaded it here. I begin installation by clicking that icon. |
03:32 | Give all default answers, it takes about 20 minutes to install, so I will not show that here. |
03:41 | I have already installed it; it is installed at this location. |
03:47 | Next, 'Adobe Reader'- it is a free reader that can be used to display pdf files. |
03:56 | Your system may already have this. If so, you may skip the rest of this slide. |
04:03 | If you do not have it, go to adobe dot com. Download the free Adobe Reader. |
04:11 | I have downloaded it in my 'Downloads' directory. So, here it is. |
04:21 | Double click it and install it, default answers are acceptable. I have already done that. |
04:29 | Next we will install 'TeXnic Center' in Windows. Go to texnic center dot org, notice two c’s in 'texnic center'. |
04:43 | Okay.. let me see if I have this here. There you are. So, here I have TEXnic Center download directory. |
05:01 | And if you go down here, let me just see, I think we are just going back to texnic center dot org. |
05:10 | Let's just go there. So, as we are doing it, let's get back to– oh! there we are. So, here is the 'TeXnic Center' webpage. |
05:28 | You can see that it talks about "TeXnic Center- The center of your latex universe" and so on. |
05:36 | You have to click the Download, this is the previous page that we had. |
05:45 | Once you go there, the very first thing in the Download’s page is to be clicked and downloaded. I have already downloaded that. |
06:00 | So, you can see that. This is the Downloads directory in which I have downloaded. Alright.. what we will do is, we will go back to this, click the Download button. |
06:19 | It will take you to the list of downloads as I mentioned earlier. You need the TeXnic Center installer which is first on this list. |
06:27 | Click this, you may need to choose a mirror for download. After downloading, save it for future use, as you may want to install it a few times. |
06:38 | I have it in my 'Downloads' folder as I mentioned. Let us now install it by double clicking and giving default answers. |
06:47 | So, let me go there. Go to 'Downloads'. Okay, so let's get on with it. Let’s accept this gpl agreement. Next. So, let’s go ahead and install it. Okay.. alright it is getting installed. |
07:29 | Then, TeXnic Center gets installed with a shortcut on the desktop. So, double click the TeXnic Center icon from the desktop and launch it. |
07:45 | Okay, here is the desktop. Let me launch it. Let me close this. Okay.. so what we will do is, we need to configure this. It says, enter the place where the Tex distribution is located. |
08:15 | So, I know where it is. So, let me enter that: c colon, program files, miktex 2.7, miktex, bin. Of course you can also browse for this and locate the directory. |
08:41 | Alright, I have come to the next page. This is the Post Script Viewer. We will accept, let’s not enter anything. |
08:49 | Here, what I will do is, I will browse and install the directory where my 'Adobe Reader' is located. |
09:06 | Okay.. it is in Program Files, adobe, reader 9.0, reader. So, let me just click that. So, now it is selected. So let’s Next, Finish. |
09:33 | Alright, now 'TeXnic Center' is configured. Now, what I will do is I will make this smaller so that you can see all of it. |
09:46 | It has come here. Let me actually make it slightly bigger. Okay.. now we are ready to use. Now let’s go back here. |
10:07 | So, it will give a tip – close it. It will open a configuration menu and ask you to install a latex distribution and will also recommend miktex. |
10:16 | So, we already accepted that. We pressed the next button. You will be asked to provide folder address where the binary files of Miktex are stored. |
10:27 | We entered that also. In my directory, it is located at this place. I entered this manually. PS files we don’t have to enter anything and then we browsed and located this for acrobat PDF reader. |
10:48 | We are now ready to use the 'TeXnic Center'. So, please go through ‘what is compilation’ a spoken tutorial available at 'moudgalya dot org', in case you have not done so already. |
11:00 | The rest of the tutorial assumes that you have gone through this.
So let’s go to TeXnic Center and click the File menu. And then what do we do? |
11:15 | If you want to create a file, click New, type and save. I already have the file ‘hello.tex’, load it. So this is what we will do. |
11:24 | Okay.. go here, File, Open. I have it in Latex files, hello dot tex. So let me open this. Okay let’s come back here. |
11:50 | The best help for 'TeXnic Center' comes with it. Another excellent source is 'texnic center dot org' which we have already seen. |
12:00 | For now, let’s go to Help, click the Contents, can get help on 'TeXnic Center' and latex. What I mean is let's come here, there is Help, Contents. |
12:16 | So, we can see that we have help available on two things, namely- on 'TeXnic Center' and also on 'latex help e-book'. |
12:28 | So, if I click this, you will see lots of different things. You can also click this, you can see lots of things, for example, you can see 'latex maths and graphics'. |
12:42 | Maths- you can get lots of things, fractions, matrices, so on and so forth. Let’s close this. |
12:52 | Advanced latex, environments, you have things like alignments, environments, array, pictures, maths, so on and so forth. |
13:02 | Let’s close this also. Alright, let me just come here. So, help on 'TeXnic Center', the first one gives you help on font, look and feel of 'TeXnic Center'. |
13:25 | It helps you on how to configure 'TeXnic Center'. Sometimes there could be discrepancies between the manual and actual implementation. If so, do a web search and find answers. |
13:37 | In fact, this is the standard approach in most open source software systems – ask somebody, they will answer. |
13:45 | The second one was latex related help – how to structure your report, how to include mathematics, how to include list environment? And so on. |
13:52 | Of course, a web search is an excellent option too. Now let’s go back here and make the font slightly bigger. So it is here, Tools> Options> Text Format. |
14:19 | So, if I choose this size 12, OK, okay, you can see that the size has become bigger. I made the font slightly bigger. We did this. Now you may include line numbers in the editor if you like. |
14:44 | So let’s come back here, Tools > Options > Editor > Show line numbers > OK. So you can see that line numbers have come. |
15:03 | So now let’s proceed to compile our document. Choose the option latex to pdf. Okay let’s do latex to pdf. Then enter Ctrl Shift and F5 keys simultaneously. |
15:27 | So, let me do that. So if I click Ctrl, Shift, F5 keys simultaneously. What will happen? It will compile and the resulting pdf file is displayed. It should have one line. Let’s do that, Ctrl Shift, F5. |
15:48 | You can see it is compiling. And it has opened the pdf reader. So, let me bring it here. I can make it bigger. You can see only one line here. |
16:06 | You may modify this file, compile and see the results. So, let me close 'hello dot tex' and also 'hello dot pdf'. So we can also do this later. |
16:19 | We will now explain a shortcoming that 'Adobe Reader' has. To explain this, let us load the file 'report dot tex', used to create the spoken tutorial ‘Report Writing’, also available at 'moudgalya dot org'. |
16:32 | So, let me do that. Now I will close this but I will open 'report dot tex'. Okay.. so let me take it here, so I can see some more of it. Alright, so what we will do first, is let’s first compile this by pressing Ctrl, Shift, F5. |
17:06 | It compiles, 1 page report comes. So, let me take it here. Okay. Let me also make it slightly bigger. Okay, what happens? |
17:31 | So we have done this. Now what we will do is, let us change the class of this document to report. Here it is "article", let me delete this, and change it to "report". |
17:46 | Save it. Then let's compile – Ctrl, Shift, F5. Alright, now it has come to two pages. Let’s take it back, make it bigger, let’s go to the second page. Alright it is on the second page. |
18:14 | As we have seen, it goes to two pages and mind you we were looking at the second page. Okay.. so let’s compile it once again. So come back here. Okay, we can actually close this, we don’t need. |
18:36 | Let’s go to this 'report dot pdf'. Alright, what I want to say is that I am looking at the second page. Okay.. you can see it here, this is the second page, first page.. |
18:51 | We are looking at the second page. Let me come back here, let me re-compile. Ctrl, Shift, F5 – and you can see that it goes back to the first page. |
19:03 | It re-opens but shows the first page. So, that’s what I mentioned here, but it opens in the first page. We were viewing the second page, on compilation, it goes to the first page. |
19:19 | It is a problem, 'Adobe Reader' does not remember the page that is being viewed. This could be a bigger problem for large documents. |
19:27 | If you use 'Adobe Reader', after every compilation, the file always opens in the first page. This is a problem with large documents. |
19:37 | The pdf reader Sumatra solves this problem. Okay Sumatra automatically refreshes the pdf file also, in addition it remembers the page that was viewed last. |
19:51 | And Sumatra is free and open source. So, a search for this reader takes you to this page. I’ll show that page shortly. |
20:01 | Okay, here it is. And go to this 'Download' page. And it shows you the file that needs to be installed. It is about 1.5 MB, that I have already downloaded. |
20:17 | So, let me just close this now. Come back here. Let’s go to next page. Let us now double click the icon and install it by giving default answers. |
20:35 | Let me do that now. Okay.. let me go to Downloads, I have already downloaded 'Sumatra'. Let me install it. Okay, Install. Alright, it is done. |
20:54 | Close. Sumatra is installed now. Let’s go to the next page. So, in my system it gets installed at Program Files, 'Sumatra dot pdf'. |
21:11 | First you have to tell 'TeXnic Center' that it should use Sumatra. So, go to Build, then to define output profile, then we will do all of this. |
21:22 | Then to viewer. So, this is where it is. So, let’s locate this. Okay.. alright actually we don’t need this also. Let me close that. This is TeXnic Center, so Build, define output profiles, go to Viewer. |
21:43 | So, it is pointing to Adobe. Let’s say that we want to change this. Okay. Let’s go back here. Go back here. |
21:54 | Go back here. In Program Files, we look at Sumatra. Here it is. And you have to refer to this. Alright. So, we are done. |
22:11 | Okay, from now on it is going to compile using Sumatra. Okay, this is what we did. We browsed, located, now we are ready to use Sumatra. |
22:25 | So, we close the Adobe Reader. So, let us compile 'report dot tex' by pressing Ctrl and F7 keys simultaneously. |
22:34 | So, we are going to press Ctrl and F7 and not what we did earlier. So let’s do Control, f7, you can see that it has compiled. |
22:47 | So, what do we do next? Locate the file 'report dot pdf'. Open it using Sumatra. Let’s go to latex files, so 'report dot pdf' is there. So, what I will do is, I will ‘open with Sumatra. |
23:08 | Alright, this is Sumatra. Let me just take it up a little bit. And let's go to the next page. Alright, this is the first page, second page we have to go from here. Okay, this is the second page. |
23:42 | Now what we will do is, we went to the second page. Now let's add a line to the text. Let me add a line to the text. “Added Line”. Save it, then Ctrl, F7. |
24:03 | And you can see in the 'report dot pdf', you can see that the page number is still the same. In fact, what I did was, it was already there, so then easiest way to convince you is- let me just make it smaller so that I can see both simultaneously. |
24:23 | Alright. So what I will do is, let me just delete this, save this, Control f7, compiled. Open it, you can see that it is gone. |
24:38 | In fact, what I can do is, I can also go to let’s say chapter-new. Let me close it. Save it, Ctrl, F7. |
24:59 | Now let’s come here, now we see that there are three pages, but of course we are on the second page because we were in the second page to start with. |
25:05 | Now I go to third page. If I compile it once again, come back here. It doesn’t change at all. So, that is the key thing about Sumatra. |
25:18 | Okay, we did all of this; so let’s just go through this. The pdf file changes automatically, you don’t have to do anything. |
25:25 | More importantly, it shows the same page. Add an appendix, compile it using Ctrl F7, has three pages. So, we can go to page three, we can re-compile it; it will continue to be in page three. |
25:38 | So, what next? So, we installed only the basic version of Miktex, only a basic version of latex is available. Of course, you can do a lot of things with this. |
25:48 | Several packages, of course, are not available here; some of these are listed here and also useful packages such as Beamer. |
25:57 | The way to include missing packages is explained in the next slide. As soon as installing the basic miktex, update it. |
26:06 | Click the Start button, at the taskbar which is at the bottom left hand corner of the Windows screen. |
26:12 | Click Programs and then miktex 2.7. Click Update, choose mirror, proxy etc., as required. It will get updated. |
26:22 | Then, proceed with the use of 'TeXnic Center' as explained in this tutorial. When a package is missing, Package Installation of MiKTeX will prompt you for installing it. |
26:32 | You can install it from the internet. Or you can do it from a CD based distribution. First you have to copy the entire content to the hard disk and then install it from there. |
26:45 | There is some difficulty in installing it from the CD. This, of course, calls for hard disk space of about 1 GB. |
26:55 | If you have questions, feel free to contact user communities. For example, 'contact TUG India'. |
27:01 | We expect to provide some help also through fossee dot in. We also hope to create some more spoken tutorials for latex in the future . |
27:12 | Please send your feedback back to me. This is Kannan Moudgalya from IIT Bombay, signing off. Thanks for joining. |
Contributors and Content Editors
Minal, Nancyvarkey, PoojaMoolya, Pratik kamble, Sandhya.np14