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

From Script | Spoken-Tutorial
Jump to: navigation, search
Time Narration
00:00 Hi, welcome to this tutorial on how to update and include missing packages in MikTeX, a LaTeX distribution.
00:10 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.
00:22 This includes the installation of MikTeX in Windows. In all the spoken tutorials that I have created so far,
00:30 the length of the recorded tutorial is exactly equal to the actual time that I spent on the computer.
00:37 The current tutorial however, involves demonstrations that require network access.
00:43 Some of the downloads could take a lot of time especially if the bandwidth is low.
00:48 As a result, I will pause the recording when required.
00:55 You can see a file that uses Beamer class. You can see it here.
01:02 In case you don’t know about Beamer, you may want to see the spoken-tutorial on Beamer that I have created.
01:09 Let me compile this file by pressing control and f7 keys simultaneously.
01:23 MikTeX complains that Beamer is missing.
01:27 I will explain how to address this problem. The first thing is to update MikTeX.
01:34 You may do this in two ways as I show now. Press Start, go to Programs.
01:47 In MikTeX, there are two options, one is Update directly, the other is through Browse packages.
01:57 One can go to Update and one can use – one can select, for example, a remote package repository.
02:12 I generally use inria, in fact, the last time I used this, so it gives this as an option.
02:19 In the beginning, however, you will see only these two buttons.
02:22 Use the nearest package repository, and the other one is, let me choose a remote package repository.
02:28 Supposing we try this, before that we also need to set up connection settings.
02:34 Connection settings have to be set first. So we use a proxy server, Address, Port.
02:44 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.
02:58 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.
03:19 So, let me select it. Now the update process will take time because it has to download the entire package information.
03:33 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.
03:47 Otherwise what it will do is, it will give a list of packages and it will recommend the packages to be checked.
03:56 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.
04:05 You don’t have to do this update every day. You may just want to do it once in a while.
04:11 Alright. Let’s go back. Okay, I can go back once more.
04:22 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,
04:34 you can use that as well. Okay, let me just cancel this.
04:41 We still haven’t explained how to include Beamer. What we did by update is to make our MikTeX distribution current.
04:53 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.
05:03 In that, Browse packages. This also takes a little bit of time, a few seconds to load.
05:17 It gives a list of all the known packages and when it was packaged.
05:23 This column is extremely important, it says whether this package is available on your system.
05:31 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.
05:44 Alright, before we proceed with this, let us first go to the Task, update wizard – we see the identical page that we saw a little earlier.
06:01 You can do the same thing, you can set the connection. Make sure that your connection, your proxy, everything is okay and then choose the package that you like and then go ahead.
06:13 Because we are not going to do the updating now, we will not follow this. You have to keep in mind that it's likely that some of the remote sites may be down.
06:26 Typically, you may have to try a few of them until it actually works and until you become comfortable.
06:34 Once you are comfortable, you may keep using it repeatedly. Alright, let me cancel this.
06:40 Right now what we want to do is, let me select this. The moment I selected this, this got activated.
06:50 Now if I say install, it says that this installation will be updated, one package will be installed.
07:01 Let’s just do that. Alright, it comes and says proxy authentication is required. Let’s close this.
07:11 Here we have to - I think it is refreshing this, it takes a little while - what we will do is, we have to go to this repository, change package repository.
07:30 We have to do this once again, connection setting, so it’s already there. Okay. And it also wants the password.
07:42 So let’s give this. Okay, so ‘inria’ is already selected. Let me finish with this.
08:04 After a few minutes, I get this error message that something can not be updated, so it doesn’t matter.
08:10 So, what we will do is, let’s see whether we can install it anyway. Let’s go to Beamer, it's here.
08:23 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.
08:45 Now let’s and also of course let’s just check, for example- it is now updating this page.
08:55 Let it update, in the mean time let’s come here and try to compile it using control f7.
09:05 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.
09:22 Okay let me just, to make it clear, let’s close this and do control f7.
09:34 Previously, we got the complaint that Beamer was not found; now it says that something else is not available.
09:41 It doesn’t complain about Beamer any longer if you go down and check Beamer.
09:54 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 complaint.
10:13 And actually this gives an option to install it directly, so we have two ways of doing it.
10:17 One is to install it here and the other one is to go through this. Let’s see what happens when we try this.
10:24 It asks for authentication.
10:35 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.
10:45 So, let’s wait for some time.
10:48 Alright, it downloaded that and now it says that 'xcolor.sty' is missing. Should it install?
10:55 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.
11:10 So even after several minutes, nothing else has appeared. Let’s just go here and see what the current status is.
11:22 Let’s do a reset here. And then we will just check whether the packages that we tried to install are already installed.
11:29 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.
11:59 Alright, it has come back. You can see that pgf is installed today. Then, we are looking at translator, translator is also installed.
12:17 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.
12:40 Alright, seems to be going through. Okay what we will do is, let’s now close this. We no longer need this.
12:48 I will open the file that I created, so it is in LaTeX files. And the file is called 'MikTeX update dot tex'.
13:03 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.
13:21 Alright, so here we are. Let me make this slightly smaller. Let’s take it here. See what happens when you make it bigger.
13:42 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.
13:54 So what I will do is I will change this to 5th. Save it. Control f7. Alright it has updated. Let’s go down.
14:14 So here is the acknowledgement about this spoken tutorial. Funding to create this tutorial has come from the National Mission on Education through ICT.
14:24 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.
14:35 We plan to coordinate the spoken tutorial activity in the future through spoken tutorial.org.
14:42 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.
14:51 Maybe a couple of minutes but the initial update could take a lot of time.
14:56 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.
15:08 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.
15:17 After that, if you have reasonable network individual packages should not take too much time.
15:24 So with this, I come to the end of this tutorial. Thank you for joining us and good bye.

Contributors and Content Editors

Minal, Nancyvarkey, PoojaMoolya, Pratik kamble, Sandhya.np14