LaTeX-Old-Version/C2/MikTeX-Updates/English

From Script | Spoken-Tutorial
Revision as of 20:37, 28 November 2012 by Pravin1389 (Talk | contribs)

Jump to: navigation, search

Hi, welcome to this tutorial on how to update and include missing packages in MikTeX, a LaTeX distribution. On the desktop you see texnic center, in case you don’t know how to install texnic center, please go through my spoken tutorial on installing and running LaTeX on Windows. This includes the installation of MikTeX in Windows. In all the spoken tutorials that I have created so far, the length of the recorded tutorial is exactly equal to the actual time that I spent on the computer. The current tutorial however, involves demonstrations that require network access. Some of the downloads could take a lot of time especially if the bandwidth is low. As a result, I will pause the recording when required.

You can see a file that uses Beamer class. You can see it here. In case you don’t know about Beamer, you may want to see the spoken tutorial on Beamer that I have created. Let me compile this file by pressing control and f7 keys simultaneously. MikTeX complains that Beamer is missing. I will explain how to address this problem. The first thing is to update MikTeX. You may do this in two ways as I show now. Press start, go to Programs. In MikTeX, there are two options, one is update directly the other is through browse packages. One can go to update and one can use – one can select, for example, a remote package repository. I generally use inria, in fact, the last time I used this, so it gives this as an option. In the beginning however, you will see only these two buttons. Use the nearest package repository, and the other one is let me choose a remote package repository. Supposing we try this, before that we also need to set up connection settings. Connection settings have to be set first. So we use a proxy server. Address. Port. It requires authentication , so I put a click here. So now if I choose this, It will come and say, give the name and password. So I enter this information. Okay. So I can for example use, anything that I choose, that I am comfortable with, so this is already selected. So let me select it. So now the update process will take time because it has to download the entire package information. In view of this, I will do a pause of the recording. After of about five minutes it comes back and says that there are currently no updates available because I just updated. Otherwise what it will do is, it will give a list of packages and it will recommend the packages to be checked. When I did first time, I found that all the packages had been listed, all the packages had been selected, then I just go and say update the whole thing. You don’t have to do this update every day. You may just want to do it once in a while. Alright. Let’s go back. Okay, I can go back once more. Now, of course, it is also possible to update through a CD/DVD distribution or within your neighborhood if you have a local package repository. You can use that as well. Okay, let me just cancel this.

We still haven’t explained how to include Beamer. What we did by update is to make our MikTeX distribution current. Now I told you that there are two ways to do that, this is the second way which I will point out. Let’s go to programs, MikTeX. In that, browse packages. This also takes a little bit of time, a few seconds to load. It gives a list of all the known packages and when it was packaged. This column is extremely important, it says whether this package is available on your system. So let’s just go down and see whether Beamer is available. You can see Beamer – this column is blank – suggesting that we do not have Beamer. Before we proceed with this, let us first go to the ‘task’, ‘update wizard’ – we see the identical page we saw a little earlier. You can do the same thing, you can set the connection. Make sure your connection, your proxy, everything is okay and then choose the package that you like and then go ahead.

Because we are not going to do the updating now, we will not follow this. You have to keep in mind that its likely that some of the remote sites may be down. Typically, you may have to try a few of them until it actually works and until you become comfortable. Once you are comfortable you may keep using it repeatedly. Alright, let me cancel this. Right now what we want to do is, is we want to, let me select this. The moment I selected this, this got activated. Now if I say install, it says that this installation will be updated, one package will be installed. Let’s just do that. Alright, it comes and says proxy authentication is required. Let’s close this. Here we have to - I think this is refreshing, it takes a little while - what we will do is, we have to go to this repository, change package repository. We have to do this once again, connection setting, so it’s already there. Okay. And it also wants the password. So let’s give this. Okay, so ‘inria’ is already selected. Let me finish with this. After a few minutes, I get this error message that something can not be updated, so it doesn’t matter. So what we will do is, let’s see whether we can install it anyway. Let’s go to Beamer, its here. Let’s select this. Press this. Alright, now it starts to install. It took a few minutes and downloaded Beamer. So we can close this. Now let’s and also of course let’s just check, for example it is now updating this page. Let it update, in the mean time let’s come here and try to compile it using control f7. Okay I am not sure what we did to the old one. I think this is something we have to cancel. So this is the result of the recent compilation. Okay let me just, to make it clear, let’s close this and do control f7. Previously we got the complaint that Beamer was not found; now it says that something else is not available. It doesn’t complain about Beamer any longer. If you go down and check Beamer. Scroll down to Beamer and you can see that it got installed on 5th of November. Alright, so what we will do is the following, let’s look at this complain. And actually this gives an option to install it directly, so we have two ways of doing it. One is too install it here and the other one is to go through this. Let’s see what happens when we try this. It asks for authentication. Unlike the previous technique, that is when we went through this, that it showed the copying and so on, now the whole thing happens in the background. So let’s wait for some time.

Alright, it downloaded that and now it says that xcolor.sty is missing. Should it install? We will say go ahead. And it is installing it in the background. Alright, now it says that translator is missing, let’s install that as well. So even after several minutes, nothing else has appeared. Let’s just go here and see what the current status is. Let’s do a reset here. And then we will just check whether the packages that we tried to install are already installed. We can see that Beamer is already here, as we saw. Now we will have to see the other things, namely - pgfcode, xcolor and translator. you can see that pgf is installed today, then, we are looking at translator, translator is also installed. Xcolor is the other one, let’s verify that also, xcolor, it also got installed. So it looks like we have all the packages, now let’s compile, control f7. Alright, seems to be going through. Okay what we will do is, let’s now close this. We no longer need this. I will open the file that I created, so it is in LaTeX files. And the file is called MikTeX update dot tex. So I am looking at MikTeX update dot pdf. This is the file I am looking at. So let me just open this with Sumatra. Alright, so here we are. Let me make this slightly smaller. Let’s take it here. See what happens when you make it bigger. Let me close this. Of course you can see that this date is 4th November, I was trying to do this yesterday also and it didn’t work yesterday. So what I will do is I will change this to 5th. Save it. Control f7. Alright it has updated. Let’s go down.

So here is the acknowledgement about this spoken tutorial. Funding to create this tutorial has come from the National Mission on Education through ICT. The website for this mission is sakshat.ac.in. I would like to receive your feedback on this spoken tutorial at kannan@iitb.ac.in . We plan to coordinate the spoken tutorial activity in the future through spoken tutorial. Org. I just want to point out that many of the updates took, many of the installations of individual packages didn’t take very much time. Maybe a couple of minutes but the initial update could take a lot of time. For example, here I am using MikTeX 2.7, and if I try to update it the very first time it could take about 20 minutes or even half an hour. So it depends on what version of MikTeX you have, it could take some time to update, initially it could take a little bit of effort. After that if you have reasonable network individual packages should not take too much time.

So with this, I come to the end of this tutorial. Thank you for joining us and good bye.

Contributors and Content Editors

Chandrika, Nancyvarkey, Pravin1389