Tag Info

New answers tagged

3

Frames containing verbatim material should be declared fragile; also you don't really want that dramatic indentation, which will be kept in the listing. \documentclass{beamer} \usepackage{alltt} \begin{document} \begin{frame}[fragile] \frametitle{Beispiel Mergesort} \begin{alltt} mergesort :: (Ord a, Trans a) => [a] -> [a] mergesort [] = [] ...


5

Hiding other subsections is easy: it's enough to use the hideothersubsections option (either for the theme or for the sidebar outer theme). Hiding other sections is not so simple; it involves a redefinition of \insertverticalnavigation as implemented in beamerbasenavigation.sty. Hiding the navigation bar from the title frame can be achieved using the plain ...


7

Use frame number instead page number in \setbeamertemplate{footline}[frame number]{} Code: \documentclass{beamer} \usetheme{Warsaw} \setbeamertemplate{navigation symbols}{} \setbeamertemplate{footline}[frame number]{} \begin{document} \begin{frame}\frametitle{My frame} First question? \begin{itemize} \item first item \item second item ...


6

Customizing a beamer theme might require a considerable amount of work, since a theme involves a lot of elements and unfortunately just a singlr frame dosen't give enough information about all the elements involved in the theme. Below I present an option which produces a similar result for the elements showed in the image attached to the question. ...


0

Possibility One The easiest way would be, not modifying the margins! If you want a picture to be shown bigger there are other ways, e.g. \documentclass{beamer} \usetheme{Warsaw} \begin{document} \begin{frame} \hspace*{-1cm} \includegraphics[width=1.16\textwidth]{example-grid-100x100bp.pdf} \end{frame} ...


2

I think beamer itself uses beamercolorboxes, so you could also use theme to get a good imitation \documentclass[xcolor=dvipsnames]{beamer} \usetheme{Warsaw} % thème \usecolortheme{wolverine} % variante de couleur \setbeamerfont*{title}{series=\bfseries} \title{La Bote Questions} \begin{document} \begin{frame}[plain] \titlepage ...


3

There are several options: You can use \only: \documentclass{beamer} \begin{document} \begin{frame} \only<1>{Roses}\only<2>{Flowers} are red. \end{frame} \end{document} You can use \alt: \documentclass{beamer} \begin{document} \begin{frame} \alt<2>{Flowers}{Roses} are red. \end{frame} \end{document} The result:


0

If I've understood correctly, you wish to display all frames of the picture on the first slide but only the second frame on the second slide. If so, you can do this by specifying the slides to show as an optional argument to the frame environment for the second slide: \documentclass{beamer} \usepackage{tikz} \usepackage{filecontents} ...


1

A non-answer using pdftk With the existing solution (the MWE), the last spurious slide (in the cases where it exists) can be easily removed with the help of pdftk (although this sort of post-production makes me feel dirty inside): pdftk "input.pdf" cat 1-r2 output "output.pdf" Another possibility would be to go with an entirely pdftk solution. I put ...


1

I only see the condensed light (cl) series in the opensans sample pdf. You can set your title font to this using \setbeamerfont{frametitle}{series={\fontseries{cl}}}


5

The question is solved, it was just the wrong usage of pdftex which does not know of \documentclass command. The error is not connected directly to Ubuntu but can occur on any operating system. In order to compile beamer it is necessary to use latex, pdflatex, xelatex or lualatex instead. For example call on commandline or corresponding menu ...


0

In some cases I have found that more recent versions of beamer/keyval are more picky about what is defined or not. You can pass the option "unknownkeysallowed" to beamer to stop some of these messages.


6

Try this: \documentclass{beamer} \setbeamertemplate{section in toc}{\hspace*{1em}\inserttocsectionnumber.~\inserttocsection\par} \setbeamertemplate{subsection in toc}{\hspace*{2em}\inserttocsectionnumber.\inserttocsubsectionnumber.~\inserttocsubsection\par} \begin{document} \begin{frame}[allowframebreaks]{Best Linear Predictor} \begin{itemize} \item ...


2

Add \par at the end of the redefinitions of the templates. You can prepend \inserttocsectionnumber. to your current definition of the subsection in toc template. The code: \documentclass{beamer} \setbeamertemplate{section in toc}{\hspace*{1em}\inserttocsectionnumber.~\inserttocsection\par} \setbeamertemplate{subsection in ...


4

You would need to use \title[<short title>]{<title>} From the beamer documentation (section 10.1 Adding a Title Page): \title[<short title>]{<title>} The <short title> is used in headlines and footlines. Inside the <title> line breaks can be inserted using the double-backslash command.


5

You can use \temporal instead of \alt to specify a "before" "on slide" and "after" style and use that directly to avoid duplication of nodes. To avoid hardcoding of slide numbers just use the special overlay specification + which means "insert a new slide and refer to the new one as the reference for the spec": \documentclass[c]{beamer} ...


3

The easylist package uses catcode tricks, which don't work properly with beamer's usual frame processing code. (Same as verbatim.) To fix this (but slow down the output slightly), write \begin{frame}[fragile]{...} instead. Fixing the original example for typos and simplifying it a bit: \documentclass{beamer} \usepackage[at]{easylist} \begin{document} ...


1

For drag and drop, I assume you mean within the application rather than between applications, since drag and drop rarely works between different programs anyway e.g. I can't even drag an image from a webpage in Internet Explorer to a Word document, and both those programs were made by Microsoft. I know that this is not the advice you asked for, but changing ...


6

One possibility: The code (requires PGF/TikZ version 3.0): \documentclass[border=3pt]{standalone} \usepackage{tikz} \usetikzlibrary{positioning,fit,patterns} \tikzset{ pics/media/.style ={ code = { % \node[text width=2cm,minimum height=2cm,#1] (back) {}; \node[draw,anchor=center,fill=white] at ([yshift=5pt]back.center) {Media}; ...


0

To startup, Have a look (with TikZ): \documentclass[12pt]{article} \usepackage{tikz} \usepackage[left=0in,right=0in]{geometry} \begin{document} \begin{tikzpicture} \draw[dashed, color=blue] (-3,0) rectangle (4,4); \filldraw[color=blue!20] (-2.5,1.2) rectangle (-0.5,2.7); \end{tikzpicture} \end{document}


5

It seems you can get pdfpages to change the aspect ratio after all. The original 16x9 document was stored in file test.pdf \documentclass{article} \usepackage{pdfpages} \begin{document} \includepdf[pages=-,height=4.5in,width=6in,fitpaper=true]{test} \end{document}


3

One other option is to invest some time in mastering any decent text editor or latex-specific editor. Either of two will certainly solve your problem with images. Having math typed in LaTeX is the most portable solution. I find it easier to deal with math when using unicode-math.sty in xelatex. Since you already know beamer I think it is your best bet. ...


0

I would suggest to use inkscape withJessyInk. Check the link http://www.timteatro.net/2010/08/12/a-tutorial-introduction-to-jessyink-presentations-in-inkscape/ Mathematical formulas can be rendered once pstoedit is installed. http://www.timteatro.net/2010/08/05/textext-for-math-in-inkscape/


1

Use the \lecture command for each one of your lectures (refer to the beamer manual, Section 10.4 Splitting a Course Into Lectures), and then add \renewcommand\thetheorem{\arabic{lecture}.\arabic{theorem}} \makeatletter \@addtoreset{theorem}{lecture} \makeatother to the preamble of your document. This will produce the desired result for theorems and the ...


5

Just specify the slides on which you want things to appear. Method 1: Relative Overlay Specifications \documentclass{beamer} \begin{document} \begin{frame} \begin{itemize} \item<+> First \item<.-+>Second \item<+(-2)>Third \end{itemize} \end{frame} \end{document} + increments the overlay count which ...


1

A simple possible solution. You can improve it, ifyou wish. \documentclass{beamer} \begin{document} \begin{frame} \begin{itemize} \item<1> Only at 1st slide \item<1> Also only at 1st slide \item<1-2> At 1st and 2nd slide \end{itemize} \end{frame} \end{document} Edit: \begin{frame} \noindent% \begin{minipage}[t]{.3\linewidth} ...


4

Here's one possibility; adjust the settings according to your needs: \documentclass[8pt,onlymath,usenames,dvipsnames]{beamer} \usepackage{tikz} \definecolor{titlecolor}{RGB}{0,173,239} \mode<presentation>{ \usetheme{Warsaw} \usefonttheme{structurebold} ...


11

Pgfmath offers also boolean compositions hence you can fall back to it and test the resulting boolean with \ifnum; \setbeamertemplate{background}{% \begin{tikzpicture} \useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight); \pgfmathparse{\value{page}<33 &&\value{page}>1?int(1):int(0)} \ifnum\pgfmathresult>0\relax% Not the title ...


8

Buiding on Werner's answer, but without hard-coding the item numbers: The code: \documentclass{beamer} \usepackage{etoolbox} \makeatletter \def\c@slideinframe{\beamer@slideinframe} \def\beamerslideinframe{\beamer@slideinframe} \makeatother \def\AdvCnt{\setcounter{enumi}{\numexpr\arabic{slideinframe}-1\relax}} \pretocmd{\item}{\AdvCnt}{}{} ...


8

An easier way would be to use \documentclass{beamer} \usepackage{lmodern}% http://tex.stackexchange.com/q/58087/5764 \begin{document} \begin{frame}{Test} \begin{enumerate} \only<1>{\item[1.] Item 1} \only<2>{\item[2.] Item 2} \only<3>{\item[3.] Item 3} \end{enumerate} \end{frame} \end{document}


13

The primitive \ifnum accepts only a single test, it's not able to do 1 < \value{page} < 33 Thus you need to make in more steps: \setbeamertemplate{background}{% \begin{tikzpicture} \useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight); \ifnum \value{page}=1 \fill[color=MedianBrown] (0,1.2) rectangle ...


1

This is a possible solution where absolute position via tikzpicture environment \node[<option>] (<label>) at (current page.south east){<content>} is used. Code %\PassOptionsToPackage{demo}{graphicx} \documentclass{beamer} %\usepackage{textpos} \usepackage{tikz} \setbeamertemplate{navigation symbols}{} \begin{document} ...


5

In order for exsheets to be able to define its solution environment you need to “delete” beamer's solution environment by letting the macro \solution to \relax: \let\solution\relax If you also want to be able to use beamer's solution environment alongside exsheets you'd need to save the macros \solution and \endsolution first: ...


2

Not beautiful, but a compilable version. Probably mixing the first & needed in \cases with $ forced ad hoc changes, with many unneeded $'s. \documentclass{beamer} \usepackage{amsmath} \usepackage{amssymb} % \usepackage{comicsans} \usepackage{graphicx} % \usepackage[inline]{enumitem} \usepackage{array} \makeatletter ...


0

Form your MWE, it is clear that you want to suppress the entry from the navigation bar and not from the sidebar. Anyways, I can offer you two options: 1) To use \appendix just before your bibliography (the entry will still appear in the navigation bar but not in the "main" navigation bar but on a navigation of its own): ...


1

simply overwrite the colours craneorange and craneblue of the colour theme by whatever you like \documentclass{beamer} \mode<presentation> { \usetheme{Warsaw} \usecolortheme{crane} } \definecolor{craneorange}{rgb}{0.68,1,1} \definecolor{craneblue}{gray}{0.85} \begin{document} \begin{frame} test \end{frame} \end{document}


1

use \only<3>{Block 3a}% no following empty line! \onslide<4>{Block 3b} instead of \only. Then the vertical space of the invisible overlays is taken into account. An alternative is Block 2 \pause Block 3\only<3>{a}\only<4>{b}


0

The overlayarea-environment might do the trick \documentclass{beamer} \begin{document} \begin{frame} \onslide<1->{1} \onslide<2->{2} \begin{overlayarea}{\textwidth}{0.2\textheight} \only<3>{3a} \only<4>{3b} \end{overlayarea} \end{frame} \end{document}


3

Here is a suggestion using the predefined beamer item shapes: \documentclass{beamer} \usepackage[T1]{fontenc} \usepackage{lmodern} \newcommand\itemshape[1]{% \setbeamertemplate{itemize item}[#1]% \usebeamertemplate{itemize item}% } \begin{document} \begin{frame} \begin{itemize} \item[\itemshape{circle}] first item ...


0

You can use \documentclass{beamer} \newcommand{\mysquare}{\rule[0.0mm]{2.2mm}{2.2mm}~} \newcommand{\mycirc}{\textbullet~} \begin{document} \begin{frame} \begin{enumerate}[0.1] \item[\mysquare] a \item[\mycirc] b \item[3) ] c \item[4) ] d \end{enumerate} \end{frame} \end{document}


1

Indeed, there's no framesubtitle template, but you have the possibility to set an independent color and font for the framesubtitle by using \setbeamerfont{framesubtitle}{<your specification>} \setbeamercolor{framesubtitle}{<your specification>} A complete example: \documentclass[20pt, aspectratio=169]{beamer} \usepackage[utf8]{inputenc} ...


1

It seems as though you're not telling beamer to typeset the framesubtitle. I don't think the framesubtitle is a template you can set... The following works for me: \documentclass[20pt, aspectratio=169]{beamer} \usetheme{default} \setbeamertemplate{navigation symbols}{} \usefonttheme{serif} \setbeamercolor{frametitle}{fg=white} ...


1

Simply remove the linebreaks after \hline \documentclass{beamer} \usepackage{booktabs} \begin{document} \begin{frame} \begin{table} \begin{tabular}{|c|c|c|c|c|} \hline $2800$ & $+2.15$ & $-$ & $-$ & $-$\\ \hline $3300$ & $-17.17$ & $-$ & $-$ & $-18.65$\\ \hline \end{tabular} ...


1

\documentclass{beamer} \usetheme{Boadilla} \newsavebox{\squaredblocktext} \setbeamertemplate{block begin}{ \par\vskip\medskipamount% \makebox[\dimexpr\textwidth-1.5ex\relax][l]{% \begin{beamercolorbox}[colsep*=.75ex]{block title} \usebeamerfont*{block title}\insertblocktitle% \end{beamercolorbox}}% ...


1

I have experienced the same problem using Lyx on Mac 2.1.0 version. As @scottkosty pointed out, the source of the problem is lyx2lyx. Here is my steps to use the latest version of lyx2lyx to get around this problem: git clone git://git.lyx.org/lyx cp lyx/lib/lyx2lyx/*py /Applications/LyX.app/Contents/Resources/lyx2lyx/ Now I can open the old Lyx files.


0

A best practice approach (IMHO): Step 1 Put each diagram in a separate compilable input file with standalone document class as follows. % frames.tex \documentclass[pstricks,border=12pt]{standalone} \begin{document} \foreach \r in {0.1,0.2,...,1.0}{% \begin{pspicture}(4,4) \pscircle(2,2){\r} \end{pspicture}} \end{document} Because the diagram is ...


3

If the definition/items are the same on the two slides and you are concerned about the 'jump' when you go from the first to second slide, the solution is to use a single frame and either the overprint or overlayarea environment. In this case, the simpler but less flexible overprint will do the job: \documentclass[t]{beamer} \usetheme{boxes} ...


1

According to this post on SO: http://stackoverflow.com/questions/2865581/changing-the-colour-of-textbullet-in-latex-beamer The best solution is: \setbeamercolor*{item}{fg=color} Another one but lower interest: \setbeamercolor{itemize item}{fg=color} % all frames will have red bullets \begin{frame} \begin{itemize} \item First item. \item ...


0

\documentclass[final]{beamer} \mode<presentation>{\usetheme{Berlin}} \usepackage{multicol} \usepackage[orientation=landscape,size=a0,scale=1.4,debug,grid]{beamerposter} \newsavebox{\squaredblocktext} \setbeamertemplate{block begin}{ \par\vskip\medskipamount% \makebox[\dimexpr\textwidth-1.5ex\relax][l]{% ...


4

A simple way to do it without copying the code for the current slide is to use overlays coupled with TikZ. You could use one overlay to create a semitransparent rectangle to cover the current slide, and at the same time add the box for the additional text (the coordinates for the rectangle may need some tweaking depending on your particular layout). ...



Top 50 recent answers are included