* Add other packages for creating presentations.
|
---|
Getting Started Common Elements Mechanics Technical Text Special Pages Special Documents Creating Graphics Programming Miscellaneous Help and Recommendations Appendices |
• |
LaTeX can be used for creating presentations. There are several packages for the task, such as- Powerdot , Prosper , Seminar , etc, however, the Beamer package is the most widely used.
It should be noted that Latex produces the presentation as a PDF which can be viewed in fullscreen mode with some pdf reader (e.g. Okular , Evince or Adobe Reader). If you want to navigate in your presentation, you can use the almost invisible links in the bottom right corner without leaving the fullscreen mode.
The beamer package is provided with most LaTeX distributions, but is also available from CTAN . If you use MikTeX, all you have to do is to include the beamer package and let LaTeX download all wanted packages automatically. The documentation explains the features in great detail. You can also have a look at the PracTex article Beamer by Example . [1]
The beamer package also loads many useful packages including xcolors, hyperref , etc. An introductory example and its output are shown below.
\documentclass[10pt]{beamer} % Add extra packages here \title{Presentation on XXX topic} \author{AAA} \begin{document} \maketitle \begin{frame} \frametitle{This is the first slide} Here you can put any text/equation etc. $a^2 + b^2 = c^2$. \end{frame} \begin{frame} \frametitle{This is the second slide} \framesubtitle{A bit more information about this} Some random text. \end{frame} \end{document} |
In above code, the Beamer package is loaded by the \documentclass{beamer} command in the header. The usual header information may then be specified. In Beamer presentation a frame is an equivalent term for the slide (used in MS office). A frame is defined using the environment \begin{frame} ...... \end{frame} . The \frametitle{} command specifies the title for each slide. The frame title and subtitle can also be passed with the environment as following.
The usual environments ( itemize , enumerate , equation , etc.) may be used. Inside frames, you can use environments like block , theorem , proof , ... Also, \maketitle is possible to create the Title page, if title and author are set.
The title page is the first page where one may insert following information
It should be noted that the information within square braces, i.e., [ ] is optional.
\documentclass{beamer} \title[Crisis] {The Economics of Financial Crisis}{Evidence from India} \author[Author, Anders] {F.~Author\inst{1} \and S.~Anders\inst{2}} \institute[Universities Here and There] { \inst{1} Institute of Computer Science\newline University Here \and \inst{2} Institute of Theoretical Philosophy\newline University There} \date[KPT 2004] {Conference on Presentation Techniques, 2004} \subject{Computer Science} \begin{document} \maketitle % place your frames here. \end{document} |
It is important to include the \maketitle command in the document (as in above code) to create the title frame. The commands \maketitle and \titlepage are equivalent.
The table of contents, with the current section highlighted, is displayed by:
This can be done automatically at the beginning of each section using the following code in the preamble:
Or for subsections:
As in all other LaTeX files, it is possible to structure the document using
Those commands have to be put before and between frames. They will modify the table of contents with the argument in brackets. The optional argument will be shown in the headline navigation on the slide, depending on the theme used. You can use \sectionpage macro to generate a separator slide for a declared section, for example
The following example shows a manually made references slide containing two entries:
As the reference list grows, the reference slide will divide into two slides and so on, through use of the allowframebreaks option. Individual items can be cited after adding an 'optional' label to the relevant bibitem stanza. The citation call is simply \cite . Beamer also supports limited customization of the way references are presented (see the manual).
The different types of referenced work are indicated with a little symbol (e.g. a book, an article, etc.). The symbol is set with the commands beamertemplatebookbibitems and beamertemplatearticlebibitems . It is also possible to use setbeamertemplate directly, like so
Other possible types of bibliography items, besides book and article , include e.g. online , triangle and text . It is also possible to have user defined bibliography items by including a graphic.
If one wants to have full references appear as foot notes, use the \footfullcite from the biblatex package. For example, it is possible to use
Beamer offers two ways for define the themes- 1) Use built-in themes, 2) Use user-defined themes.
Beamer has several built-in themes which can be used by specifying their "Name" and their "color" in the preamble. This Theme Matrix contains the various theme and color combinations included with Beamer . For more customizing options, have a look to the official documentation included in your distribution of beamer , particularly the part Change the way it looks .
The full list of themes is:
The full list of color themes is:
First you can specify the outertheme , which defines the head and the footline of each slide.
Here is a list of all available outer and inner themes:
infolines | shadow | smoothbars | split | rectangles | inmargin | |
miniframes | sidebar | smoothtree | tree | circles | rounded |
You can define the color of every element:
Colors can be defined as usual:
Block styles can also be defined:
You can also suppress the navigation symbols:
You may also change the fonts for particular elements. If you wanted the title of the presentation as rendered by \begin { frame } [plain] \titlepage\end { frame } to occur in a serif font instead of the default sanserif, you would use:
You could take this a step further if you are using OpenType fonts with Xe(La)TeX and specify a serif font with increased size and oldstyle proportional alternate number glyphs:
The default settings for beamer use a different set of math fonts than one would expect from creating a simple math article. One quick fix for this is to use
The options to a frame can be passed as following
Some of the useful options and their description is following.
Internal and external hyperlinks can be used in beamer to assist navigation. Clean looking buttons can also be added.
|
By default the beamer class adds navigation buttons in the bottom right corner. To remove them one can place
in the preamble.
It is possible to make figure and text to appear and disappear using the commands such as \pause, \uncover, \only and \itemize<a-b>. Text or figures after these commands will display after one of the following events (which may vary between PDF viewers): pressing space, return or page down on the keyboard, or using the mouse to scroll down or click the next slide button. A short explanation of each command is as follows and refer to chapter 9 of the Beamer manual for more details..
The \pause statement can be used as following to provide a break. I.e. the text after the command will be displayed on next event (button click/ key press/etc.)
The \uncover command specifies the appearance explicitly; \only works the same but without reserving space when hidden.
The \item command specifies appearance and disappearance of text by using <a-b> where a and b are the numbers of the events the item is to be displayed for (inclusive). For example:
A simpler approach for revealing one item per click is to use \begin { itemize } [<+->] .
In all these cases, pressing page up, scrolling up, or clicking the previous slide button in the navigation bar will backtrack through the sequence.
Above command uncovers the item and they are visible only on/after the specified frame numbers. One may also use the \setbeamercovered{transparent} command to see the uncovered items, which are shown with little opacity. This means if the visible text is in black then the uncovered text will be in gray. One may use \setbeamercovered{invisible} to revert this setting.
Similar option is also available for formatting the text. for example if you want the text to be of specific style then you may use \style<3->{Text} command. For example one may use \alert<3->{Some text.} which will show the specified text in the respective formatting for specified slides. Similarly one may use
\textbf, \textit, \textsl, \textrm, \textsf, \textcolor, \structure etc. commands.
Same is true for theorem, corollary, and proof environments. An example is given below.
For the tables one must add \onslide slide command before placing the new line (i.e., \\) .
Test 1 & repeat & 14.5 & 656 \onslide<3-> \\
In beamer class, the default mode is presentation which makes the slides. However, you can work in a different mode that is called handout by setting this option when calling the class:
This mode is useful to see each slide only one time with all its stuff on it, making any \itemize [<+->] environments visible all at once (for instance, printable version). Nevertheless, this makes an issue when working with the only command, because its purpose is to have only some text or figures at a time and not all of them together.
If you want to solve this, you can add a statement to specify precisely the behavior when dealing with only commands in handout mode. Suppose you have a code like this
These pictures being completely different, you want them both in the handout, but they cannot be both on the same slide since they are large. The solution is to add the handout statement to have the following:
This will ensure the handout will make a slide for each picture.
Now imagine you still have your two pictures with the only statements, but the second one show the first one plus some other graphs and you don't need the first one to appear in the handout. You can thus precise the handout mode not to include some only commands by:
The command can also be used to hide frames, e.g.
or even, if you have written a frame that you don't want anymore but maybe you will need it later, you can write
and this will hide your slide in both modes.
A last word about the handout mode is about the notes. Actually, the full syntax for a frame is
and you can write your notes about a frame in the field note (many of them if needed). Using this, you can add an option
The first one is useful when you make a presentation to have only the notes you need, while the second one could be given to those who have followed your presentation or those who missed it, for them to have both the slides with what you said.
Columns environment divides a slide (vertically) into columns. Example
Enclosing text in the block environment creates a distinct, headed block of text (a blank heading can be used). This allows to visually distinguish parts of a slide easily. There are three basic types of block. Their formatting depends on the theme being used.
You can specify the default options of your PDF. [2]
It is possible to number slides using this snippet:
However, this poses two problems for some presentation authors: the title slide is numbered as the first one, and the appendix or so-called "backup" (aka appendix, reserve) slides are included in the total count despite them not being intended to be public until a "hard" question is asked. [3] This is where two features come in:
The powerdot package is an alternative to beamer. It is available from CTAN . The documentation explains the features in great detail.
The powerdot package is loaded by calling the powerdot class:
The usual header information may then be specified.
Inside the usual document environment, multiple slide environments specify the content to be put on each slide.
The beamer class is very powerful and provides lots of features. For a very simple presentation, a class based on article can be used.
Some of the nice examples of the presentation are available below
Side-by-side content in beamer presentations.
There are two ways (and possibly more) to place content side-by-side in a beamer presentation, the columns and the minipage environments. The first is a beamer-specific environment and is therefore only available in a beamer presentation. Whereas the latter has other applications and is available in all document-classes.
In any LaTeX document, there is a predefined width available for text, \textwidth . In order to place content side-by-side, this width has to be split in such a way that the total width of all elements does not exceed \textwidth . Otherwise, LaTeX will automatically break the line and place elements on top of each other, which is usually not desired. The value \textwidth can be used to define the width of a column or minipage . For example, 0.33\textwidth takes a third of width of a page available for content. LaTeX also adds a small horizontal space between elements. Therefore, in order to split a page into three equal parts, 0.3\textwidth might be a more reasonable number. If required, one can add more horizontal white-space between two elements using \quad or \qquad .
The columns environment is only available in the beamer document-class and might therefore be lesser known.
Basic command structure:
And here is a complete minimal working example:
I wrote an article on the minipage environment quite some time ago. In beamer , the usage is not different.
The command is used as follows:
Below is a complete minimal working example:
Even though there are differences, I don’t know of any advantage of one method over the other when placing content side-by-side. However, I suggest choosing one environment and sticking to it throughout a presentation.
9. November 2013 at 9:44
Thank you for the post. Dividing the width into several parts has solved my problem of putting two images side by side in a presentation.
21. June 2015 at 21:25
I want to do this with a tikz picture on one side and an itemized list on the other. My suspicion is that the minipage approach is better for this application. Have you any experience with this use case?
22. July 2015 at 21:37
Both approaches should work just fine. Why do you think minipage is more suitable in this case?
Thanks, Tom
14. March 2019 at 5:07
One reason to use minipage is this: https://tex.stackexchange.com/questions/16447/beamer-top-aligning-columns-within-a-top-aligned-frame
1. insert a table in beamer, 2. horizontal lines and multicolumns in beamer tables, 3. table environment, 4. set the table size, 5. change font size for tables, 6. spacing in tables, 7. how to use colors to highlight tables in beamer, 8. tables inside blocks.
The tabular environment takes a mandatory argument that specifies the alignment for text in the different columns:
There should be the same number of alignment specifiers as columns.
Knowing this and using the \hline command to produce horizontal lines , we can already build a frame with a simple table; the following example shows how to do so:
Compiling this code yields:
Let’s now explore some more advanced functionalities of this tabular environment.
The command \multicolumn{n}{pos}{item} can be used to create items that expand for multiple columns where:
Here we put into practice the previous commands:
When the environment argument has | characters, it’s not obvious which of them get replaced by a \multicolumn ’s positioning argument. In this case, the rule that LaTeX follows is: the part of the environment argument corresponding to any column other than the first, begins with an l , r or c character.
This means that the argument of the previous example |c||ccc| is split into |c|| , c , c , and c| . For this reason, the |c| specifier inside the \multicolumn environment can be changed for c| and the result will be the same.
The tabular environment produces a box, which is the fundamental object that the underlying system TeX uses to build the document. This means that a table produced by this environment is no different that a letter typed, which makes possible to print tables in a middle of a paragraph, sentence or word. But that would look a bit strange.
Usually the tabular environment is inserted inside the table environment, which makes it a floating object. This means that you can add positioning specifiers to the floating object, a caption and a label to reference it.
This is how our previous table would look in a more realistic use of the environment:
We have already seen how to create a table in beamer using the tabular environment. When doing so, it was mentioned that technically, for TeX, the output of the tabular environment is the same as a letter; for the system, it is just a box.
And as all boxes in TeX, it can be resized using the command \resizebox . Here is an example of this command in action to fit inside a single frame a very big table :
which yields the following result:
Here is the non resized version:
Observe that the command takes three mandatory arguments:
When one of the two size arguments contains the symbol ! (as in the example above) the value of this argument is selected by LaTeX so that the aspect ratio of the box is preserved . It is highly recommended to use it unless you know what you are doing; in other case you may get some ugly results.
When resizing the box generated by a tabular environment using \resizebox , the font size is automatically scaled to fit the size needed. However, you may want to set a fixed font size for the table, to make it larger or smaller, using one of the predefined LaTeX sizes: \tiny , \scriptsize , \footnotesize , \small , \normalsize , \large , \Large , \LARGE , \huge and \Huge . To do so, you only have to put the tabular environment inside a block containing the font size declaration that you want. For example, here I fit the previous table inside the frame using this new approach:
and the result in this case is shown below:
B. horizontal spacing.
If we redefine this command and dimension in the document preamble, they will be changed throughout all the document . However, if we do it inside an environment or a {} group, they will only affect the scope of the environment or group. This is useful when we want to use the default settings for our document, but we wish to fine tune a given table that looks odd.
In the following example, we use the previous commands to increase the padding in our table:
A lot of color functionality is already integrated inside beamer, without the necessity of explicitly loading external packages such as xcolor. The reason for this is rather obvious: colors play a very important role in any beamer presentation ; a black and white presentation is not exactly what we are looking for when using beamer.
First, let’s see an example of this package in action, and then I will explain in more detail the main commands it provides :
The result of this code can be seen below:
Let’s jump into the details of the code :
We can insert without any trouble a tabular environment inside a block . In the following example we use the Warsaw theme to have styled blocks and we print a table inside an alertblock :
which produces the following image:
In this lesson, we learned how to create tables in beamer using the tabular environment. We highlighted different alignment and spacing options and how one can highlight cells with different colors.
Next Lesson: 15 Figures i n Beamer – A detailed tutorial
Stack Exchange network consists of 183 Q&A communities including Stack Overflow , the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I wish to write the code of the picture displayed below..
One simple way to put a short portion of text into two columns, if the rows need to line up, is to use the basic tabular environment. You can use the p specification to get a row with wrapped text.
For beginners in TeX who find this answer helpful, you can find a basic introduction to LaTeX by entering texdoc lshort at a terminal.
As seen on https://stackoverflow.com/questions/1491717/how-to-display-a-content-in-two-column-layout-in-latex there are multiple useful options:
Use the multicol package (if you omit the \columnbreak , the columns will balance automatically):
Alternatively, for precise control, add a minipage:
You may also find this useful: How do I force a column-break in a multi-column page?
Not the answer you're looking for browse other questions tagged columns ..
Find centralized, trusted content and collaborate around the technologies you use most.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Get early access and see previews of new features.
I have a long index (outline) for a presentation. Obviosly my index exceeds the size of a presentation page.
Is there a way to split a /tableofcontents in two columns?. This my code to generate the index.
For a better control over the break point, one could also split the toc manually
The solution is:
Reminder: Answers generated by artificial intelligence tools are not allowed on Stack Overflow. Learn more
Post as a guest.
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy .
IMAGES
COMMENTS
The "columns" feature of Beamer (other answers above) lets you customize the layout and the breaking point. However if you want to let the text flow or you don't care about the exact layout, many times the good old multicolpackage does the job well with less noise.
However, much of the content is still relevant and teaches you some basic LaTeX—skills and expertise that will apply across all platforms. Presentations with Beamer pt 2 - Lists, Columns, Pictures, Descriptions & Tables Watch on
An online LaTeX editor that's easy to use. No installation, real-time collaboration, version control, hundreds of LaTeX templates, and more.
Beamer Beamer is a powerful and flexible LaTeX class to create great looking presentations. This article outlines the basis steps to making a Beamer slideshow: creating the title page, adding a logo, highlighting important points, making a table of contents and adding effects to the slideshow.
Create structured presentations in LaTeX containing a title page, table of contents, lists, figures, tables, blocks, and much more!
In this video series we're going to show you how to create a simple presentation in LaTeX using Beamer. In this video we show you how to add lists, columns, pictures, descriptions & tables.
When creating slides in LaTex Beamer, it can be frustrating to not have the easy ability to drag text boxes around. Luckily, creating a multi-column layout in Beamer is not difficult! Below is an example of a two column slide layout, where the left side is a bulleted list, and the right side is an image: \usepackage[utf8]{inputenc}
Beamer is a LaTeX document class that provides extensive functionality to create presentations. Here, I will only show the basics and after reading this guide you will be able to create a simple presentation in LaTeX.
Learn about creating LaTeX presentations using beamer in short lessons with full code examples. A comprehensive guide to basic and advanced features.
So Im doing this presentation with Latex Beamer powerpoint. I have one slide that looks like a mess, but I need the equations in columns and in one slide. Heres how it looks: And this is the code...
We shall see in this article how to make a presentation with LaTeX, using the powerful class Beamer. If you want to make an outstanding "stressfree" presentation and bring your ideas or your work under a whole new light, let's get started!!!
How do you split a Beamer slide into two columns? Beamer provides an easy tool to divide a frame's content into two columns, which is specially useful when you want to compare things, since you can make them appear one next to each other. The following minimal working example shows how to do so: Copy to clipboard. % Beamer columns.
An online LaTeX editor that's easy to use. No installation, real-time collaboration, version control, hundreds of LaTeX templates, and more.
I made a LaTex Beamer template for creating presentations in a two-column format. I use this style to have figures on the right and text on the left. Here's the presentation the template produces: Vertical spacing and overlays can be tricky when working in columns. First, to allow for convenient spacing via \vfill, a minipage has to be included ...
LaTeX can be used for creating presentations. There are several packages for the task, such as- Powerdot, Prosper , Seminar, etc, however, the Beamer package is the most widely used.
67 I am using \columns in beamer to show two pictures. After I added \footnote{ExampleText} after captions, the ExampleTest just appear in each column. Now I want to show all of the ExampleText in the bottom of the slide instead of each column, how can I do this?
Side-by-side content in beamer presentations 21. January 2013 by tom 4 Comments There are two ways (and possibly more) to place content side-by-side in a beamer presentation, the columns and the minipage environments. The first is a beamer-specific environment and is therefore only available in a beamer presentation.
Beamer Presentations: A Tutorial for Beginners (Part 4)—Overlay Specifications Part 1 | Part 2 | Part 3 | Part 4 | Part 5 Author: Josh Cassidy (August 2013) This five-part series of articles uses a combination of video and textual descriptions to teach the basics of creating a presentation using the LaTeX beamer package.
Learn how to create and customize tables in Beamer. This includes content alignment, spacing, highlight cells with colors, resize tables and much more!
I want to align two images in a latex/beamer presentation. They do not have the same width/height ratio and I'd like to control the overall height. If I don't need captions, the following works ...
I am writing an article in LaTeX and I would like to display some content in two column layout. In the left column a matrix and in the right column a list of items. I have tried with tabular enviro...
9. One simple way to put a short portion of text into two columns, if the rows need to line up, is to use the basic tabular environment. You can use the p specification to get a row with wrapped text. \documentclass {article} \begin {document} \begin {tabular} {l p {0.5\linewidth}} Line 1 on the left & Line 1 on the right\\ Line 2 on the left ...
5 I have a long index (outline) for a presentation. Obviosly my index exceeds the size of a presentation page. Is there a way to split a /tableofcontents in two columns?. This my code to generate the index.