LaTeX/C2/Beamer/English-timed

From Script | Spoken-Tutorial
Revision as of 15:07, 27 December 2012 by Minal (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Time Narration
00:00 Welcome to this spoken tutorial on presentation using Latex and beamer.
00:08 Let me first explain the arrangement that I have on the screen.
00:14 I have the source file here, I will do the compilation here using pdflatex command,
00:21 and the resulting output will be seen here in this corner.
00:28 First lets see this, we will come back to this shortly.
00:33 Lets do this first, the first slide here comes from this source – begin frame, end frame, title page.
00:45 And the title page is defined in terms of title, author and date.
00:55 The document class that I am using is beamer. We have begun the document here.
01:01 Alright, this is the first slide, lets go to the second one. This is the outline, how is this created?,
01:13 Begin frame, end frame defines one slide. Frame title is outline. It comes here.
01:20 Then I use the normal ‘itemize’ command. Let’s go to the third slide.
01:28 This slide talks about other spoken tutorials on latex. There are many spoken tutorials on latex already available.
01:36 You are encourage to see them in case you are not comfortable in using latex.
01:43 These explain how to use latex, this explains how to install and run latex on windows.
01:50 And we hope to give a more permanent link using fosse dot in.
01:58 So we have come to the end of, so this is the source for this slide.
02:10 You can see that we have come to the end of this document.
02:15 Now I’m going to show you how to embellish this document with lots of other features that beamer offers.
02:22 Let’s go to the beginning. Let’s go to the top of this file. Now what I am going to do is, whatever change,
02:31 whatever improvement that I am going to make to this are here. I am going to add one at a time and explain.
02:39 Let’s see what happens when I add this command - ‘beamer theme split’.
02:47 Let me cut it, let me come back here, Let me save it, and then compile it – pdflatex beamer.
03:02 Let me go click this, so you can see that it has created this banner here and some banner here.
03:12 Here also, alright. Then what we do is, you come here and use the package.
03:23 Lets add this – beamer theme shadow. Let me cut it, go here, paste it, all of these are pasted above the document command.
03:38 Let me compile this. Alright, let’s see what happens when I click this. It has become bigger.
03:49 You can see that there is a change of color here. So this is done by the command – beamer theme shadow.
04:00 There are lots of these packages, I am going to illustrate some of the other features now.
04:06 We will give references for future reading as a part of this introduction as we see here – ‘references for further reading’.
04:17 The outline of this talk is as follows. We will spend some time on title page, author name, color, logo etc.
04:25 Minimal animation that you can use to present your talk, two column format, figures and tables, equations, verbatim and so on.
04:36 Alright, let’s come back to the beginning. The next one is logo. Let’s cut and paste logo from here.
04:49 This also has to be pasted above the begin document command. This logo, let’s see what this looks like.
04:59 Let me just see it by open iitb logo.pdf. I am giving the same name over here.
05:08 When I open it you can see that this is the image file that I am talkin about.
05:15 On including this logo command, of height 1 cm it is going to come in this corner.
05:24 So let’s see what it looks like. Let’s click this. You can see that iitb logo has come.
05:35 Now this is going to come on every page from now on.
05:42 Next we will add this command. For presentations sometimes it is useful to make all the lettering bold.
05:55 So in view of that, I will include this, cut, paste.
06:08 Actually I will have to include this after the begin document command.
06:15 Let me save this. Let me compile it. Alright now, watch this as I click this all the letters will become bold.
06:28 You can see that it has become bold.
06:37 Then, now I am going to improve the writing here.
06:43 For example, it tries to fill lots of things here. Here the title comes here, here the author information comes but lots of information is coming.
06:54 Sometimes I may want to have a smaller title here. For example this space may not be large enough.
07:02 So what we will do is, that is solved using this.
07:07 For example, this is the running title.
07:13 Let me cut this. This should come after the command title, between the title command and the actual title.
07:29 So let me paste it here. You can see that whatever I have pasted now is within square brackets.
07:36 So let’s save it. Run it.
07:46 So as I do it, let’s click this, look at this as I click what happens to this part.
07:51 You can see that the title has now changed. I have put only the bottom portion because that’s what I’m giving within the square bracket – presentation using latex and beamer.
08:03 Then i am saying that h-space is half a cm. I am giving a space here. And then I have the page number over here.
08:12 It says 1 by 3 here. Then 2 by 3. 3 by 3 here and so on.
08:21 That is achieved using ‘insert frame number divided by insert total frame number’.
08:28 Now I will do the same thing for author. So lets come here.
08:37 Let’s cut this.And after author, this comes.
08:49 Let me save it. Compile it. Click this.
08:56 You can see that Kannan Moudgalya has come. This is what I have given within the square brackets. Now this is going to come on every page.
09:05 Let’s go to the next topic. This is including equations.
09:19 The whole thing is in the form of a frame – a complete frame.
09:24 So what I will do is, I will cut the whole thing.
09:30 Come back here; go to the bottom of this document. Save it.
09:38 So I have created a new slide. Let’s see what this looks like.
09:45 So this is where the frame starts.
09:51 Let us compile this, now you see that 4 pages are there. So it still says three, so if click this once more, so it becomes 4.
10:07 So this is the equation containing slide. I am not going to explain how to write these equations.
10:15 These are explained on the spoken tutorial that I have created earlier on creating equations.
10:21 All that I have done is, I went to that latex document, cut and pasted it here, that’s all.
10:28 And of course I have removed the equation numbers. It does not make sense to give equation numbers in a slide.
10:36 On the other hand, it may be useful for you at times to highlight the color.
10:44 For example if I want to change this to blue, I will do the following. Come here.
10:54 The commands is – color, blue- and then ill close this.
11:05 Save it. Compile it. And click this. And see that this has become blue.
11:16 So you may not want to refer to an equation by numbers but you can say that consider the equation in blue or you may want to say that look at the mass balance equation and so on.
11:29 You want to refer to it by something that people can remember in talks.
11:35 Next what we will do is, what I will do now is to include animation.
11:50 Which is useful to present information concept by concept.
11:58 So I have cut, lets paste it here. Let us see what this looks like.
12:08 Lets first compile it and see what happens.
12:17 This is from the spoken tutorial on letter writing. This information is also there.
12:21 The only difference that I have done now is that between begin enumerate and end enumerate I have put this ‘item plus minus alert’.
12:33 Let’s see what this does. See here I have put a command called ‘pause’, so the moment I put a command pause, it stops there, now the begin enumerate starts.
12:45 So let me just go forward. Page down. Next page, next page, next page.
12:53 As I go down you see that the latest information is in red all others are in the default color namely black. I have come to the end of the document.
13:05 So this is one easy way to create animation where you want to present information a little at a time.
13:18 Next what I want to do is change the alerted color to blue. For example, here the alerted color is red, this is known as alerted color.
13:32 I want to make this alerted color blue. So that this is consistent with this color that I have chosen.
13:41 Okay let me come here, cut this.
13:52 This should go to the beginning of this document before the beginning document command.
14:00 Let me compile it, when I click this you can see now that the alerted color has now become blue.
14:12 It is achieved through the command ‘set beamer color – alerted text’ there is a space here ‘foreground equals blue’, fg equals blue.
14:24 Now what I am going to show is how easy it is to change the color of the entire document.
14:33 So what I will do is, ill come here, after this slash document class before the beamer phrase starts I will write here brown.
14:46 Save it. Compile it.
14:52 You can see that it has become brown. So without too much work.
15:03 So what I will do is, I will take this back to the original color.
15:09 The default color is blue so I don’t have to type it. Now we are back in blue.
15:21 So let’s come here, let me delete this. I will now include figures.
15:30 Cut this. Come here. Go to the end of this.
15:41 The last one. Let’s compile it. Let’s go to the next page. So example of the figure is given here.
15:53 Alright, what are the guidelines in placing this? There are some important guidelines. We will see it with the next bit.
16:05 Let’s cut this. Paste this. Compile it.
16:21 So I have got this. Hints for including figures.
16:28 Let’s come to the source where we created the figure. This is how we created this figure. So what are the guidelines?
16:37 Do not use floated environments in presentations, for example, don’t say begin figure, end figure which u need in the latex document.
16:46 By the way if you want to know about how to include a figure and more about it you have to go to the spoken tutorial on tables and figures.
17:01 So do not use this. Use ‘include graphics’ directly.
17:08 So for example, include graphics command is used and I’m saying that use the complete width of the text and the file is iitb.
17:19 By the way, beamer already comes with necessary packages so u don’t have to include any package, use any package, it is already included.
17:30 And then we put the whole thing in the center environment. And this frame is over.
17:40 Do not include caption, figure number etc.
17:44 Once again people are not going to remember these numbers.
17:51 If you want to refer to a previously shown figure, show it again.
17:56 It does not cost any money to create another slide. Make a copy of the earlier shown slide and do it again.
18:05 Alright, that completes the figure and the guidelines. And we have come to the end of this document.
18:12 Let us now see how to include a two column environment.
18:24 Let’s come here. Let’s go to the end of the document. Save it.
18:32 What I will do to make it easier, I will first remove this so that it becomes easy.
18:42 So what I’m going to do is I’m going to give, show part of the information. Let’s compile this and see what happens.
18:57 So I have this, two columns.
19:28 This is not saved, that is why. See the star star. What I will do is, let me first save it.
19:35 So this is the problem if you try to compile it, without saving, the pdf file that you see here does not correspond to what you have here.
19:45 So let’s compile this. Let’s come here. Now what you see here corresponds to what you have here.
19:58 Let me just center it. Frame title, two columns, and I’m using the command ‘mini page’, and I’m centering it and I’m using 45 percent of the text width.
20:15 Begin enumerate. These two and then end enumerate. And as before I am alerting.
20:25 See these two. This is the end of the document. Now what ill do is, ill come and attach whatever I have at the end of this.
20:37 Here the previous mini page got over. Now I am going to create another mini page and in this mini page I am going to put this IITb, the same image we saw earlier.
20:52 And this mini page also is 45 percent size. Let’s compile this , Let’s first save this.
21:07 Now let me click this. Now you see it has come. But it has a small problem in that when I go to this page it shows the first item and also this figure.
21:22 Although the figure comes later on, it shows this because no where have we told latex to show this later. It is perhaps implicit.
21:35 So for example, if you say that, if you put this information within this item then we say that show this first and then show this.
21:44 But no where are we saying that this should come later.
21:50 So one has to be careful of such evinces. One way to solve this problem is to put a ‘pause’.
21:59 Let me compile this. Save this. So now this is okay.
22:08 This problem is solved. The first one, the second one, and then one more, it passes once, and you can see that it has been solved.
22:24 Alright, let’s come here. The next one is the table.
22:39 Save this. Let’s compile this. You can see that the table has come.
22:51 I am not going to explain how to create this table, this has already been explained in the spoken tutorial on tables.
22:57 All I have done is to cut and to paste it here. Let’s go to the beginning of the frame.
23:12 It’s the same table that we used earlier, I just cut and pasted it. You can see the begin tabular and end tabular commands coming within center environments.
23:22 What are the guidelines? The guidelines are similar to figures.
23:28 So let’s see that also. See the guidelines are here.
23:44 Let me compile. See this, move forward.
23:51 Once again do not use floated environments in presentations.
23:56 In the spoken tutorial on tables, we put the tabular inside the table environment.
24:02 Table environment is a floated one, do not include it here. Insert it directly.
24:11 For example, we put it directly inside the center environment.
24:17 Do not include caption, table number etc. make a copy of it if required.
24:25 Now here I want to point out the way animation happens. For example, in this slide, it does not alert with a different color.
24:40 Recall that we used the blue color for alerting. Why does it happen?
24:46 That is because we have used a different kind of environment here.
24:52 Begin itemize, End itemize, within that we used item plus minus. Previously we were using the word alert.
25:01 Recall that. We are not using that anymore. As a result, it just comes in black. This is simpler way to include animation.
25:12 You can pick and choose. So this is what I have written here. Show different animations in the previous slide.
25:22 Now there is a need to convert this into a handout. For example, if you try to print this,
25:28 whatever we have here, it will produce 24 pages even though there are only 10 pages.
25:40 There are only 10 unique frames but there are 24 pages. But if you try to print out, it will produce 24 pages.
25:49 One way to do that, to take care of this is to use a simple switch here called ‘handout’.
26:00 If I do this, let me compile it, now there are only 10 pages. Let’s compile this once more.
26:13 Now the animation, is no longer there. If I go to the next page, next page, next page, next page, next page and so on.
26:24 Of course, what if I want to change the color, then you put brown once again.
26:35 You can see that it has changed. So all the parameters here are to be included separated by commas.
26:42 So let me just put this back to blue. Compile it.
26:52 Now what we will do is, sometimes you have to include Verbatim environment.
27:06 So let me just take this example.
27:13 Let’s go here, go to the end. Save it. So this is where the verbatim begins.
27:24 So you can see that the verbatim is created.
27:30 Here I have illustrated it with some SciLab commands. I have changed the color here to blue and so on.
27:39 The only unique thing you had to do is to say begin frame within square bracket – fragile.
27:52 If you don’t do that, there will be a problem. Okay so you see this, we will come back and check that.
28:01 So suppose I delete this. Save it. Compile it.
28:09 It will come and say that something is not okay.
28:14 So lets put this back – fragile. Save it, exit from here.
28:21 Compile it once again. It has come now.
28:30 Beamer class has lots of information. How does one know about other things.
28:40 So I have some information here, let’s go to the bottom.
28:48 So essentially that information, where to get this extra information is in this slide.
28:54 We will compile it and we will go through that. The authoritative source for beamer this beamer user guide dot pdf.
29:08 I located it at this point but it is also available through this beamer project website by the author of beamer class.
29:21 I’ll just illustrate this, I’ve already downloaded this, it’s in that site that I have mentioned earlier.
29:32 For example, it’s a 224 page document. It’s a huge document.
29:39 What I want to show here is that you can use the information from here directly.
29:45 So let’s come here. In the very first page the author talks about how to create simple slides and he has given the source also.
29:57 We will cut this, copy, let me minimize this. Let me go to the end of the document.
30:09 We paste it. Save it. Compile it. So let’s go to the next page.
30:21 You can see that whatever we saw there has come here. Here the author has used what is known as the theorem environment.
30:33 So for example, begin theorem, end theorem, it comes here. He has also used the frame subtitle that comes here in small letters.
30:42 And then begin proof, end proof comes here. He says proof, it opens another window, calls it ‘proof dot’.
30:52 This is how it is defined, how this environment is defined. He uses a different alert mechanism.
31:01 So if you want to see this you just go back, remove this handout, so we can see the animation. Compile it.
31:21 So let’s go to page number 34.
31:31 Let’s see the animation now by going backwards. You see this, you see this.
31:37 So what he does here is, so these two items are numbered one, and the others are numbered two and three.
31:51 In other words, it is possible to specify the sequence in which the things that you have on the slide will appear.
32:00 We don’t have time to go through this in more detail. I would suggest you go through the reference given here to know more about it.
32:10 This guide has lots of features, this beamer class has very large number of classes, and you may want to try out some of them.
32:20 Okay. Let me change this back to handout.
32:36 The problem with the presentation mode, we are now going to the handout mode,
32:42 the presentation mode where you show the animations generally takes a lot of time to compile.
32:48 So typically you would want to work with the handout mode as much as possible and only once in a while when you really want to check it out you want to use the presentation mode.
32:59 Finally of course, when you make the presentation, you may want to use the presentation mode.
33:06 And if you want to take a printout, use the handout mode. Let’s go to the end. We are almost at the end of the spoken tutorial.
33:15 Let’s acknowledge, in fact let me just copy the whole thing, come here.
33:31 Let me just compile it here as usual. Okay.
33:42 The funding for this spoken tutorial has come from the National Mission of Education through ICT. This is the website of this mission.
33:53 I want to thank you for joining us. This is Kannan Moudgalya signing off. We would like to receive your feedback at kannan@iitb.ac.in. Thank you very much.

Contributors and Content Editors

Minal, PoojaMoolya, Pratik kamble, Sandhya.np14