Tag Info

New answers tagged

3

You could simply check whether the lastpage reference (i.e. \r@lastpagenum) is defined (using the \ifdefined macro) before performing your calculations: \makeatletter% required as some of the commands we will use contain "@" in their name \lhead{ % only perform the calculations if the "lastpagenum" reference is defined \ifdefined\r@lastpagenum% % ...


3

This is how I use columns environment for alignment at the top (you may repalce the [t], by [c] for centering). \begin{columns}[t] \begin{column}{5cm} \begin{figure} \includegraphics[scale=0.08]{2ENQ-A.png} \end{figure} \end{column} \begin{column}{5cm} \begin{itemize} \item<1-> 345, 453 and 420 are all ...


0

Here's a solution, using a redefinition of the internal command \beamer@sectionintoc implemented in the beamerbasetoc.sty file; with the redefinition, no number is typeset in the ToC if it's less than 1: \documentclass{beamer} \usetheme{CambridgeUS} \makeatletter \def\beamer@sectionintoc#1#2#3#4#5{% \ifnum\c@tocdepth>0% ...


2

The following produces five slides: the first contains four images that are scaled down to fit within one frame, and the rest of the four slides each contains a bigger version of the images. By clicking on a smaller image, you can jump to the slide containing the bigger version of that image, and clicking the larger image will take you back to the initial ...


1

There is an example in the documentation (chapter 11.3) and a special command \framezoom for doing this. Here is my example: \documentclass[17pt]{beamer} \begin{document} % Main part of presentation \begin{frame}<1>[plain,label=tramwaje] \framezoom<1><2>[border](0.3cm,2cm)(2cm,2cm) ...


4

This error only occurs if the document is typeset with pdflatex or lualatex, while xelatex, latex+dvips+ps2pdf work smoothly. animate puts the animation frame content first into a box, using the LaTeX \savebox command. The filled box is then distilled into a PDF Form XObject using the command \pdfxform from pdfTeX. The last step fails, if the box contains ...


3

To get that particular effect, do not use the uncover for blocks: \documentclass{beamer} \usepackage{lmodern} \usetheme{CambridgeUS} \setbeamercovered{transparent} \begin{document} \begin{frame}{myFrame}{subtitle} \begin{columns} \begin{column}{.4\textwidth} \begin{enumerate} \item<1->item 1 \item<2->item 2 ...


2

The xr package, or maybe zref-xr for more powerful features, is the tool you're looking for. However, you have to use different names for your files, say jakob-art.tex and jakob-pres.tex for the article mode and presentation mode versions respectively. Both can input a common file jakob.tex, of course. In the presentation version you'll add ...


1

I had the same problem today, and here is my simple solution: I just define a single column using the "columns" environment. By default, Beamer will put that column in the center of the page, so this should take care of both margins. \begin{frame}[allowframebreaks]{References} \begin{columns} \column{0.85\paperwidth} \printbibliography \end{columns} ...


2

You could also use the textpos package. \documentclass{beamer} \usepackage[absolute,overlay]{textpos} \usepackage{graphicx} \begin{document} \begin{frame} \begin{textblock*}{5cm}(3cm,1cm) % {block width} (coords) \includegraphics[width=5cm]{images/logo.jpg} \end{textblock*} \end{frame} \end{document}


2

beamer doesn't really support floats as they don't make sense in a presentation. The figure environment is allowed but doesn't really do much. \vspace*{2cm} \hspace*{3cm}\includegraphics[width=0.15\textwidth,natwidth=69,natheight=87]{images/logo.jpg} would probably do what you want, adjust the lengths to fit. Leave blank lines before and after these two ...


1

Update: the initial solution I proposed (it's on the bottom now) was theme-dependent since it involved a redefinition of the footline template (which may vary from them to theme). Here now I present a simpler solution which doesn't depend on the theme used. The idea is to use the background canvas template and a \node (inside a tikzpicture environment with ...


0

I use exactly the same preamble than yours, but I think you must have your files in a directory with you theme name for each .sty /usr/local/texlive/2012/texmf-dist/tex/latex/beamer/themes/color/Uni/beamercolorUni.sty /usr/local/texlive/2012/texmf-dist/tex/latex/beamer/themes/outer/Uni/beamerouterUni.sty ...


1

In MikTeX tree this package may be located here: \MiKTeX 2.9\tex\latex\xcolor\xcolor.sty. If not, please download xcolor.sty and put it into your working directory or, better, the whole package xcolor, using MikTeX tools of updating.


1

If you don't mind using eqnarray in place of align, then you can get the pauses to work. At least that is my experience.


2

for both tabular use: \begin{tabularx}{\dimexpr\textwidth-2\tabcolsep}{@{}p{0.56\textwidth}@{}X@{}X@{}}%


3

You could use a smaller font size, e.g.: \begin{frame} \frametitle{...} \small \tableofcontents \end{frame} Other possibilities: Shorter titles to avoid titles that need more than one line. Simpler section structure ...


5

\write18 is executed at shipout time, when the frame has already ended, so the local definition of \mytest has been discarded. If you use \immediate\write18 you get what you want. Of course, the instruction will be executed as many times as there are overlays in the frame, so perhaps an \only instruction should be used.


0

Finally, I managed to solve my own question, although it does now look as nice as what I expected. After compiling, one can have


5

the problem, as pointed out by egreg, is that you need to specify \begin{frame}[fragile] when including verbatim material in the frame. this is documented in the beamer manual (texdoc beamer) in section 3.1.3, "verbatim text". (it almost never hurts to check the manual, and the beamer manual is a good one.)


1

You can write everything you want between frame environment into a note command. With the option [itemize] everything you write into the note will look like an itemize list. %\documentclass[notes]{beamer} % print frame + notes \documentclass[notes=only]{beamer} % only notes %\documentclass{beamer} % only frames \title[Your Short ...


0

Here's one possibility: use \titlepagefootline before the frame containing the title page and \mainfootline after this frame. New commands \supervisor, \departament and \defense were also provided to add the information about the supervisor, the Departament, and the "Defense" text, respectively. To get your University logo in the title page and in the ...


2

You can add a figure to the title frame by using the command \titlegraphic{}. The standard behaviour puts the graphic at the bottom. However instead of redefining the default behaviour you can work with \raisebox whereby a \smash is needed: \titlegraphic{\leavevmode\smash{\raisebox{6cm}{foo}}} For "foo" you can use \includegraphics or whatever you want.


2

CambridgeUS uses the default title page template which inserts the title graphic at the end; you can redefine the template to include it before the title, and then use \titlegraphic{\includegraphics[<options>]{image}} A complete example, including your settings from the linked question: \documentclass{beamer} \usetheme{CambridgeUS} % Set Color ...


2

Include this in the preamble: \usepackage{unicode-math} \setmathfont{Cambria Math} \setmainfont{Times New Roman} Then compile your document with xelatex instead of pdflatex, otherwise it won't work. AFAIK you can't use Cambria Math unless you switch to xelatex. On a personal note, I strongly recommend against using Times New Roman or Arial in a ...


2

The answer can be derived from your previous question. The frame title is defined by: \setbeamercolor{frametitle}{fg=cyan!80!black} So the specification sets the foreground (fg). To specify the background (bg) add \setbeamercolor{frametitle}{fg=cyan!80!black,bg=green!60!white}


0

You can use the beamerposter package to set a custom page size: \documentclass{beamer} \usepackage[orientation=portrait,size=custom,width=21.59,height=27.94]{beamerposter} \setbeamertemplate{navigation symbols}{} \begin{document} \begin{frame}[t]{slide title} this is written in 24 point font. \end{frame} \end{document} Notice that the height and width ...


5

You can adapt this answer to How to make beamer overlays with Tikz node: \tikzset{onslide/.code args={<#1>#2}{% \only<#1>{\pgfkeysalso{#2}} % \pgfkeysalso doesn't change the path }} \tikzset{alt/.code args={<#1>#2#3}{% \alt<#1>{\pgfkeysalso{#2}}{\pgfkeysalso{#3}} % \pgfkeysalso doesn't change the path }} \tikzset{temporal/.code ...


3

To change the color for the frame title and for the title and subtitle, you need to redefine the beamer colors frametitle and title: \setbeamercolor{frametitle}{<color>} \setbeamercolor{title}{<color>} to change the position of the headers, you need to redefine the headline template as defined in the outer theme infolines (internally used by ...


2

There exists a project (amongst others), but it will not do all of the conversion stuff. Creating scientific slideshows: see RTFBeamer Anyway, maybe you have to convert your pptx to ppt. Apart from that: Writing Beamer code without generation will be better. A similar thread exists: Any way of converting ppt or odf to beamer or org?


4

Commenting on the linked question, Herbert states I suppose a problem with \leaders [...] the definition of \hrulefill also uses the \kern\z@ [...] The definition of \hrulefill is \leavevmode\leaders\hrule\hfill\kern\z@ The booktabs commands that include \leaders in their definition are \@cmiderulea and \@cmidruleb: \def\@cmidrulea{% ...


3

For the vertical alignment, you can use the [t] option (or [T] to force it) (see a related question and its second answer, Stable vertical alignment of columns in Beamer) As for the second point, it is, I think, a problem with the horizontal centering of columns. It may vary from one theme to another (see this answer How to center blocks and columns in ...


1

You can use \AtBeginSection to include a \tableofcontents: \documentclass{beamer} \AtBeginSection[] % Do nothing for \section* { \begin{frame}<beamer> \frametitle{Outline - Section \thesection} \tableofcontents[currentsection] \end{frame} } \begin{document} \section{Test Section One} \begin{frame} test \end{frame} \subsection{Test Subsection One ...


0

Based on David's answer, you can do the following. I also suggest you to remove the navigation symbols because with this approach there is a problem in the specialframe. \documentclass[c]{beamer} \usetheme{Goettingen} \usepackage{lipsum} \usecolortheme{seahorse} \setbeamertemplate{navigation symbols}{} % removes navigation symbols ...


4

You have an "unprotected" end of line that counts as a space: \documentclass{beamer} \begin{document} \begin{frame} \frametitle{TP-Basis} Ausgangspunkt: \begin{align*} s(x) = \begin{cases} a+bx & x \leq k \\ c+dx & x > k \end{cases} \end{align*} \only<2>{% \includegraphics[width=.70\textwidth]{PiecewiseLinear_2}% }% <---- THIS IS ...


1

You can use these: \documentclass{beamer} \usetheme{Warsaw} \useoutertheme[subsection=false]{smoothbars} It is almost the same as your link, but with a difference that it shows subsections of each section as dots below that section.


2

As texenthusiast, said in the comment, the simplest thing to do is to use the optional arguments of \author and \institute commands and let them be empty. \documentclass{beamer} \usepackage{lmodern} \usetheme{CambridgeUS} \title{My talk} \author[]{Author 1, Author 2, Author 3} \institute[]{My university} \begin{document} \begin{frame} \titlepage ...


0

The following should do the job, however gives an error about an extra } I can't get rid of. If anyone could fix it I'd be happy to adjust the example. \documentclass{beamer} \usepackage{ifthen} \newboolean{tomatoes} \setboolean{tomatoes}{true} \begin{document} \begin{frame}[fragile]{A Slide about Apples} Bla bla \end{frame} ...


4

\documentclass{beamer} \usetheme{Goettingen} \usepackage{lipsum} \usecolortheme{seahorse} \begin{document} \begin{frame}{title} \lipsum \end{frame} \begin{frame}[plain]{title} \advance\textwidth2cm \hsize\textwidth \columnwidth\textwidth \lipsum \end{frame} \end{document}


0

Seeing how there are many questions here regarding using XeTeX-engine and non-Unicode, non-OpenType -fonts, let me make this perfectly clear: The number one reason to use XeTeX, is its ability to use OpenType fonts (which you can also do with LuaTeX) So with that out of the way, chances are that the symbol you would've needed from the package is ...


2

Found a solution: \usefonttheme{structurebold} \setbeamerfont{title}{series=\bfseries,parent=structure} \setbeamerfont{subtitle}{size=\scriptsize,series=\bfseries,parent=structure} \setbeamerfont{author}{size=\scriptsize,series=\bfseries,parent=structure} \setbeamerfont{institute}{size=\scriptsize,series=\bfseries,parent=structure} ...


1

Here's one possibility using the enhanced tikz-qtree package: \documentclass{beamer} \usepackage{tikz-qtree} \begin{document} \begin{frame} \centering \begin{tikzpicture}[ every tree node/.style={align=center, anchor=north}, level distance=50pt] \Tree [. L [.L1 [.{\textit{Lag:}\\ $x=z$} {\small C} ] ] [.L2 {\textit{Lag}:\\ $x=z$} ] ] ...


3

This is actually a font issue. Try \usepackage[T1]{fontenc} plus \usepackage{lmodern}, or something similar.


1

There's no need (at least in this example code) to use remember picture, overlay. You can simply use the fact that \node is overlay aware: \documentclass[xcolor=dvipsnames]{beamer} \usecolortheme[named=Goldenrod]{structure} \usetheme[height=7mm]{Rochester} \usepackage{tikz} \usetikzlibrary{shapes} \begin{document} \begin{frame} \frametitle{A title} ...


2

I think I would use columns for this, as they are overlay aware. In addition, you can use the tried and tested tikzmark idea (now available as a package) and used on this site in many, many examples :) I have \usetikzlibrary{calc} to bump the nodes around a bit- you can tweak as you see necessary. % arara: pdflatex % !arara: indent: {overwrite: yes} ...


1

To color the mini frames of slides already shown gray and the current and all future frames white, the existing solution can be modified like this: \documentclass{beamer} \usetheme{Frankfurt} \usecolortheme{dove} \setbeamercolor{section in head/foot}{fg=white, bg=black} \definecolor{dark-gray}{gray}{0.10} %color for the navigation squares \makeatletter ...


0

I don't have this problem... Here it what I tried, and it worked perfectly fine ! \documentclass{beamer} \usepackage[francais]{babel} \usetheme{Frankfurt} \begin{document} \begin{frame}{Outline} \tableofcontents \end{frame} \section{One} \subsection{Sec 1.1} \begin{frame}{Title 1} Hello ! \end{frame} \begin{frame}{Title 2} Hello ! \end{frame} ...


4

The columns environment internally uses minipage, so you can simply use minipages in your document; a simple example (I added some frames just as visual guidelines). The \Colsep length can be used to control the separation between the minipages: \documentclass{article} \usepackage{lipsum} \newlength\Colsep \setlength\Colsep{10pt} \begin{document} ...


0

The solution of Tobi has some significant disadvantages. It only works when the titlepage is actually the first frame and also produces a problem when not using the titlepage. A somewhat better solution is using the \AddToShipoutPictureFG* command of eso-pic inside the \setbeamertemplate{title page} command. So the code for the askers inner.sty would be: ...


1

In terms of colour choices, beamer provides themes of different flavours. Consider scrolling through the beamer theme gallery or the beamer theme matrix. These both list the styles available in many of the available themes so you can pick and choose whichever you're interested in or is appealing to you/your audience. Positioning using a drag-and-drop or ...



Top 50 recent answers are included