Tag Info

New answers tagged

2

You can achieve this with the optional arguments for \tableofcontents and the \AtBeginSection-command. You can define the style for the sections and subsections like this: sectionstyle=<current section>/<other sections> subsectionstyle=<current subsection>/<other subsections in current secton>/<other subsections> Valid ...


6

Here is a simple solution using a new question counter. \documentclass{beamer} \newcounter{question} \newcommand\question[1]{\stepcounter{question}Q.~\arabic{question} -- #1} \begin{document} \begin{frame} \frametitle{Frame one} \question{Where is my first question?} \question{What is my second question?} \end{frame} \begin{frame} ...


0

I'm still not really sure which bits you want from what, but maybe you can do something with this: \documentclass[svgnames, 17pt]{beamer} \usepackage{booktabs,etoolbox,fontspec,microtype,ragged2e} \usefonttheme{professionalfonts,serif,structuresmallcapsserif} \setmainfont[Numbers=OldStyle,SmallCapsFeatures={Kerning=Uppercase}]{Minion Pro} ...


0

I have taught a course myself this year and had to prepare all materials from scratch. I have decided to go for a double strategy: Have one big file and files per lecture in addition I have created individual TeX files which only contain the real content for a certain topic. In the first line of each file I have added the name of the master file, so in ...


2

You can do it by modifying the footer. Of course this depends on the theme you use, but in the example below in line 24 you can adjust the 2.25ex to how thick you need the black bar. \documentclass{beamer} \usetheme{Madrid} \setbeamercolor{back}{fg=black,bg=black} \makeatletter \setbeamertemplate{footline} { \leavevmode% \hbox{% ...


1

This happens because the bemaer column system uses the LaTeX minipage behind the scenes: a vertical box. As these are not set with a fixed height they don't stretch, in contrast to setting a frame where beamer does some resizing (so the stretch is important). For a one-off application I'd be tempted to use a raw minipage and adjust as require. For example ...


4

I usually prepare a few frames in a separate file that has only the preamble in common with the main one. Missing labels for cross references are not a problem during the preparation of the presentation: they might cause some slight difference in the final printout, but the chances are very small. Actually I almost never use cross references in ...


0

As suggested in a comment, the hobete shows one way to do this: alter the frametitle template. As this is 'standard' beamer it's easiest done without the extras of the package: \documentclass{beamer} \setbeamertemplate{frametitle} {% \nointerlineskip \begin{beamercolorbox} [wd=\paperwidth,dp=1ex, ht=4.5ex, sep=0.5ex, colsep*=0pt]% ...


4

Rather than define a new command, I would use the \againframe facility offered by beamer itself: \documentclass{beamer} \setbeamercovered{transparent} \begin{document} \begin{frame}<4>[label=repeater]{Repeating frame} \begin{enumerate} \item \uncover<1,4>{The is item 1} \item \uncover<2,4>{The is item 2} \item ...


1

Here is a more general approach where you can also determine the total ammount of items and give alternate titles to single frames: \documentclass{beamer} \setbeamercovered{transparent} \usepackage{pgffor} \makeatletter \@namedef{theitem1}{The is item 1} \@namedef{theitem2}{The is item 2} \@namedef{theitem3}{The is item 3} \@namedef{theitem4}{The is item ...


1

This is one possible solution via a simple \ifnum #1=xx ... \else ... \fi conditional check. Code \documentclass{beamer} \setbeamercovered{transparent} \newcommand{\repeatingframe}[1]{ \ifnum #1=0 \def\a{1} \def\b{1} \def\c{1} \else \ifnum #1=3 \def\a{0} \def\b{0} \def\c{1} \else \ifnum #1=1 \def\a{1} \def\b{0} \def\c{0} \else \ifnum #1=2 ...


7

Something like this? You can apply the overlay option to the whole document or remove it after the item list. \documentclass{beamer} %\setbeamercovered{transparent} \begin{document} \frame{\frametitle{Frame1} \setbeamercovered{transparent} \begin{itemize} \item<1-1> Self-X1, $\cdots$. \item<1-2> ...


6

The beamer class sets paper height using geometry, so while there isn't an interface to override the settings you can just force the issue after loading the class. \documentclass{beamer} \geometry{letterpaper,landscape} \begin{document} \begin{frame} Hello world \end{frame} \end{document} If you want the aspect ratio without the full page size then ...


1

To get this option globally \documentclass[t]{beamer} \begin{document} \begin{frame} Text on top \end{frame} \end{document}


1

\begin{frame}[t] Frame contents \end{frame} does the job


0

Just stumpled upon this while googling. A slightly more forward approach to simply add page numbers to the old macro would be \newcommand*\oldmacro{}% \let\oldmacro\insertshorttitle% \renewcommand*\insertshorttitle{% \oldmacro\hfill% \insertframenumber\,/\,\inserttotalframenumber} as seen on the texblog ( ...


0

You can add the following code before \begin{document}: \expandafter\def\expandafter\insertshorttitle\expandafter{% \insertshorttitle\hfill% \insertframenumber\,/\,\inserttotalframenumber}


2

This uses TikZ for the drawings and the default (empty) theme. \documentclass{beamer} \usepackage[english]{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage{amsmath,amssymb} \usepackage{xcolor} \usepackage{tikz} % \usetheme{Frankfurt} \setbeamertemplate{frametitle}{% \tikz[remember picture,overlay]{ ...


0

This worked with me having a similar error: Simply navigate to your miktex bin directory and execute the below commands: e.g. c:\Program Files\MiKTeX 2.9\miktex\bin\ initexmf --mkmaps intiexmf --update-fndb as described in: https://dev-eth0.de/miktex-makepk-pk-font-umvs-could-not-be-created/


1

I'm pretty convinced this code has issues but it does seem to solve the immediate problem. The linked solution sets a fixed height for the block equal to that set for the block and frame titles. You don't need an itemisation to show the problem - just multiple lines of text. \documentclass{beamer} \setbeamertemplate{block begin}{ \vskip\baselineskip ...


1

You have to download the files and move them to the folders they belong to. Usually, package writers prepare the needed directory structure, but in this case, unfortunatelu not. If you just want to use the theme, copy the package files found in the theme folder to your working directory. This is the shortcut for now, but if you want to use the theme over ...


1

The following seems to achieve what was intended. \documentclass{beamer} \begin{document} \begin{frame} \begin{overprint} \onslide*<1>{ \begin{table}[h] \begin{tabular}{cc} %column specs f & f%first table \end{tabular} \caption{1} %some caption \end{table} } % \onslide*<2>{ \begin{table}[h] \begin{tabular}{cc} %column ...


1

The default overlay specifications use the \uncover method. This means if it they are not “on” the current slide they are invisible, but take up the same amount of space as if they were there. It sounds like you want material not on the current slide to be skipped altogether, which means you want \only instead. You can add this into the overlay spec ...


1

Ok, figured it out, and how to do it with latexmk. Put $biber = 'biber --bblsafechars %O %B'; in ~/.latexmkrc.


1

overprint only copes well with fairly simple cases. I suspect that the use here does not count as sufficiently simple, at least without some sort of adjustments. Simpler to use overlayarea for the entire itemize environment: \documentclass[utf8]{beamer} \begin{document} \begin{frame} \begin{overlayarea}{\linewidth}{.75\textheight} ...


2

Specify that you want to use the numbered template associated with captions. That is, add \setbeamertemplate{caption}[numbered]{}% Number float-like environments to your preamble: \documentclass{beamer} \usetheme{CambridgeUS} \usepackage{graphicx,mathabx} \setbeamertemplate{caption}[numbered]{}% Number float-like environments \begin{document} ...


1

By default, \and is set to insert a line-break (and vertically skip 1em... technically \\[1em]) within \institute. To that end, define your own \samelineand that doesn't insert this vertical skip: \documentclass{beamer} \useoutertheme{infolines} \title{Title} \author{Me\inst{1} \and Someone\inst{2} \and Someone else\inst{3}} \institute[short]{\inst{1} ...


2

You need to add the [t] option to your frames to align the text to the top of the frame. You can use the enumitem package to control the spacing of the itemized lists as shown in this answer, but you have to restore the default bullets after you do so, as explained here. Also, as mentioned in a comment, you should not put the frametitle in a center ...


0

Putting all the stuff in one of the texmf trees (with unique names) and adding some \RequirePackages solved all the problems.


1

If we look inside beamerouterthemesmoothbars.sty and beamerouterthememiniframes.sty, we can see that the former uses \setbeamercolor{section in head/foot}{parent=palette quaternary} while the last uses \setbeamercolor{section in head/foot}{parent=palette tertiary}. section in head/foot beamercolor is the one used to include navigation in headline, so a ...


3

I don't think there's an easy workaround. First option Footnotes inside an overprint are tratead as minipage's footnotes. What you can do is transform footnote marks in numeric ones through the command \renewcommand{\thempfootnote}{\arabic{mpfootnote}} Insert this line at the beginning of each \onslide \setcounter{mpfootnote}{\value{footnote}} ...


0

I managed to get it working with some carefully placed comments, see below for example. It seems that LaTeX doesn't like it when you place \\ and \*rule on different lines. \documentclass{beamer} \usepackage{booktabs} \begin{document} \begin{frame}{Example} \begin{tabular}{ll} \toprule bla & bla \\ \midrule A & A ...


5

Don't change the textwidth, just hide the width of the image. \begin{center} \makebox[0pt]{\includegraphics{...}} \end{center}


1

I had the same question and cyberSingularity's answer worked for me. I filled it out so that it does work with the compact option, and also patched \fakeslideentry. The trickery with \ifhadanonsubsecn means that your various sections can be different: some can have subsections, some can lack them, and some can have some slides before their first subsection. ...


5

Loading the sourcecodepro package makes Source Code Pro the default typewriter font of the document. However, by default, the listings package uses the document's default roman family. Therefore, after loading sourcecodepro, you still need to tell listings that you want to typeset your code in typewriter font: basicstyle = \ttfamily ...


4

TeX does give more clues, you just did not show them in your quotation above. If there is a $x^{$ on a frame the error is [2]) Runaway argument? {title of bad frame} \begin {itemize} \item [Esophagus] Four columns \ETC. ! File ended while scanning use of \frame. <inserted text> \par You omitted the first three lines which tells ...


2

You may use the columns environment. \documentclass{beamer} \begin{document} \begin{frame} \frametitle{Image with comments} \begin{columns} \column{.2\textwidth} Left comment \column{.5\textwidth} \begin{figure} \includegraphics[width=\linewidth]{example-image} \caption{Example image} \end{figure} ...


6

Why not increasing the size of the font in the arrays? Use for example \large before \begin{array} and adjust the spacing before it (I've used \vspace*{-3cm}). MWE: \documentclass[final]{beamer} % beamer 3.10: do NOT use option hyperref={pdfpagelabels=false} ! \mode<presentation> { \usetheme{default} } \usepackage[english]{babel} ...


0

So you want to have a bold font in math mode? You could try the package bm and use it like $\bm{\frac{1}{2}}$. Other solutions: How can I get bold math symbols? ... you can btw change all fonts to bold using \boldmath (after begin document). One thing is too make them bold. But you could also change the fontsize How to change the font size of a document?


0

The output of tree on your machine uses special UTF-8 characters ├, ─, └ to draw the lines. On the one hand, these characters are not available in the standard LaTeX fonts. On the other hand, listings itself is not capable to typeset multibyte characters. To include the output "as is" in you LaTeX document, a simple solution would be to use listings ...


2

May be you should use dirtree package: \documentclass[10pt,a4paper,compress,svgnames]{beamer} \usepackage{dirtree} \begin{document} \begin{frame} \dirtree{% .1 5053 . .2 20141018105053\_100\_samples.bin. .2 20141018105053\_101\_samples.bin. .2 20141018105053\_102\_samples.bin. .2 ...


0

Motivated by Positioning logo in the front page as well as slides I decided to post an answer using tikz package. If one decide to use tikz package, he can add different logos, to different part of a slide. The code is practically the same as Gonzalo Medina's work, but I added a few lines. \documentclass{beamer} \usetheme{Berkeley} \usepackage{tikz} ...


5

From beamer user guide: So, the background canvas goes behind everything, and on that comes background and then main contents. Compare these codes: \documentclass{beamer} \usepackage{tikz} \setbeamertemplate{background}{ \begin{tikzpicture}[remember picture,overlay] \node at (current page.center) {here}; \end{tikzpicture} } \setbeamertemplate{background ...


3

EDIT: There are two possibilities for obtaining the desired transparency effect. The original solution making use only of the beamer code is given in Method 2. A simpler and maybe more elegant solution based on the transparent package is given as Method 1. Method 1 Using the package transparent it is possible to create a simple transparent environment that ...


2

This answer was moved from a duplicate using the Berkeley theme. The code is practically the same as Gonzalo Medina's (since both themes use the sidebar outer theme), but maybe it adds some value for the interested reader (no background color on the right and width/height of the logos) This might work: I will add a longer explanation how I came to this ...


1

Its a dirty hack but one could try something like this \logo{% \makebox[1.85\paperwidth]{% \hfill% \hspace{3em} \includegraphics[width=1cm,keepaspectratio]{example-image-a}% \hfill% \includegraphics[width=1cm,keepaspectratio]{example-image-b}% }% } The idea: the logo is centered in the top left corner. If you ...


1

This might work: I will add a longer explanation how I came to this solution (and I am by far a Beamer expert), so other can see how to approach problems like this. First you see that the used theme is "Berkeley", so going into the definition file beamerthemeBerkeley.sty (just google it and you'll find the code). There we can see that the outer theme ...


1

Its a dirty hack, but If you want to avoid pgf, try this \logo{% \makebox[1.85\paperwidth]{% \hfill% \hspace{3em} \includegraphics[width=1cm,keepaspectratio]{example-image-a}% \hfill% \includegraphics[width=1cm,keepaspectratio]{example-image-b}% }% } The idea: the logo is centered in the top left corner. If you ...


1

If you check the contents of beamerthemeBoadilla.sty you will find: \usecolortheme{rose} \useinnertheme[shadow]{rounded} \usecolortheme{dolphin} \useoutertheme{infolines} Thus, Boadilla uses the rose color theme for the inner theme and the dolphin color theme for the outer theme. In your code you have \usecolortheme{beaver}, which is also an inner theme. ...


3

There is a related question. I think Jealie's answer seems to be what you want, but I can't get it to work. The general problem is the way the transparency is generated. Using custom (text) symbols could be an option (since there is no problem with text) or a tikz picture. That led me to spend way too much time on recreating the article icon (even though a ...



Top 50 recent answers are included