New answers tagged

1

A quik'n'derty template can be generated in TeXstudio for example, utilizing the built-in wizards. Prerequisites Install TeXstudio Familiarize with TeXstudio Start up TeXstudio Actions After Start goto Menu -> Wizards -> Quick beamer presentation Select the theme you like the most. Select all the packages you need. Add title and author. Check for ...


2

This is simply to show how to reformat the equation with as little effort as possible. Copy the line to be broken. Use \right. or \left. to balance an otherwise unmatched \left or \right. Use \hphantom to preserve spacing, and \vphantom to preserve the \left ... \right size. Note, the additional \qquad is to compensate for the missing = and \{. \...


0

Beamer has its own mechanism to control colours, so the following motto applies \setbeamercolor{bibliography entry author}{fg=black} Same works for bibliography entry title, bibliography entry location, bibliography entry note and bibliography item.


3

For fun, here is a solution in ConTeXt. The solution relies on my wrapper around the drops module by Peter Rolf. The drops module uses imagemagic to draw the shadow (which looks more realistic than the tikz-style shadows) \usemodule[dropshadow] \setupexternalfigures[location={local,global,default}] \definedropshadow [polaroid] [flatdark] [...


3

You can use breqn package for this: \documentclass{article} \usepackage{amsthm,amsmath,breqn,lipsum} \usepackage[showframe,margin=5cm]{geometry} \begin{document} \lipsum[1-2] \begin{frame}[shrink=0, t]{The \textbf{\textit{DP}} Algorithm} \begin{center} \begin{minipage}{.9\textwidth} \begin{proof} \begin{enumerate} ...


2

You need to place the algorithm inside a frame. Even then the content is too much to fit on a regular slide. As such, I've placed it inside a box - using an [H] float specifier - and resized it to fit within the frame height. \documentclass[dvipsnames,svgnames]{beamer} \usepackage[ruled,vlined,linesnumbered]{algorithm2e} \begin{document} \begin{frame}[...


5

You have several errors, I fixed the most important ones. All the \def should better be \newcommand. Don't load geometry, it doesn't make sense, as beamer already loads it with its own options Don't load xcolor, rather pass the options to the class as shown Don't load graphicx Don't load url, it's already coming with hyperref Since you need a frame, it ...


1

frametitle has nothing to do with the titlepage, thats what you get as "headline" on slides when you use \frametitle{...}. To modify the font of the titlepage, you have to adjust the components, such as author or date separately. \documentclass[a4paper]{beamer} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[francais]{babel} % This here ...


0

Would it be sufficient to hide the subsection bar for all slides with subsection number = 0? \documentclass{beamer} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usetheme{Ilmenau} \makeatletter \setbeamertemplate{headline}{% \begin{beamercolorbox}[colsep=1.5pt]{upper separation line head} \end{beamercolorbox} \begin{beamercolorbox}{...


2

I'll complete samcarter's answer with a couple modifications I added: I moved the code to a function, and I darkened the shadow. Function: \tikzset{ text shadow/.code args={[#1]#2at#3(#4,#5)#6}{ \pgfkeysalso{/tikz/.cd,#1} \foreach \x in {0,10,...,40}{% \node[#1, xshift=\x*-0.001cm, yshift=\x*0.001cm] at (#4,#5){% ...


4

Internally, beamer replaces certain fonts. Apparently the you don't have the replacement font in a place where XeLaTeX can find it, so it doesn't appear. To suppress this replacement, you can either load the beamer class with the professionalfont option, or add \usefonttheme{professionalfonts} to your preamble. (Note the difference!) See section 18.1 of the ...


1

The error on adding this line: \section*{References} The section is created automatically by the bibliography


5

A quick hack would be to write the title a second time, a bit offset and in a darker colour. The following example uses a mixture of the background colour and black \color{black!20!green-abs} and is a bit darker than the shadow shown in your example, but this can be adjusted to fir your needs. \setbeamertemplate{frametitle}{ \begin{beamercolorbox}[wd=\...


-1

\begin{columns}[T] fixes it! Thanks!


1

An alternative to pgfpages could be pdfpages. In this case, you create the beamer presentation, an later on include it as an external file inside the handout document which could be something like: \documentclass[a4paper, landscape]{article} \usepackage[vmargin={2cm,1.5cm}]{geometry} \usepackage{pdfpages} \begin{document} \includepdf[pages=1-8,nup=2x2,...


1

Give the frame containing your textblock a label that is not used as part of your \includeonlyframes list: \documentclass{beamer} \includeonlyframes{current} \usepackage[absolute,overlay]{textpos} \begin{document} \begin{frame}[label=current] Slide 1 \end{frame} \begin{frame}[label=notcurrent] Slide 2 \begin{textblock*}{5cm}(9cm,2.5cm) % {block ...


0

Here's one possible solution (depending on your specific needs you might need to adjust some lengths and fonts); a new command \titlegraphicii was defined for inclusion of the second logo; it's used in the same way as the standard \titlegraphic check here


0

The following will add a pagenumber at the bottom \documentclass[handout]{beamer} \usepackage{pgfpages} \pgfpagesuselayout{4 on 1}[a4paper,border shrink=5mm, landscape] \setbeamertemplate{headline}{\scriptsize{\vspace*{0.3cm}\hspace*{0.3cm}\insertframenumber}} \expandafter\def\expandafter\insertshorttitle\expandafter{% \insertshorttitle\hfill% \...


5

I would recommend using biber (the default) instead of bibtex as the back end for using biblatex. With the standard author-year style, there are two main citation commands: \textcite{} produces Author yyyy \parencite{} produces (Author yyyy) To get the comma between the name and the year, you need: \renewcommand*{\nameyeardelim}{\addcomma\addspace} ...


0

You can adjust the width of the footline elements by defining your own footline as the following. By default, all three boxes have a width of wd=.33333\paperwidth, just play around width the numbers until they fit your needs. \documentclass[compress, 12]{beamer} \usetheme{CambridgeUS} \makeatletter \setbeamertemplate{footline}{% \leavevmode% \hbox{%...


2

You can use the \includesvglayer command from mycommands.sty (a package I've written to group common utilities of this kind). It calls the Python script inkscape2scenes.py (see branch dev) that calls inkscape to export the combinations of layers defined within the SVG to separate PDF + text overlayed using the picture environment within LaTeX (usual PDF+...


2

You can use the following code somewhere between \documentclass{beamer} and \begin{document}: \usepackage{etoolbox} \makeatletter \beamer@compresstrue \patchcmd{\insertnavigation}{\hskip-1.875ex plus-1fill}{}{}{} \apptocmd{\partentry}{\beamer@xpos=0\relax}{}{} \def\sectionentry#1#2#3#4#5{% section number, section title, page \ifnum#5=\c@part% \hbox{\def\...


1

To gain control over the spacing, you can use the \columns environment provides by beamer: \documentclass[xcolor={dvipsnames,svgnames}]{beamer} \usetheme{CambridgeUS} \usecolortheme{spruce} \usepackage[english,greek]{babel} \usepackage{ucs} \usepackage[utf8x]{inputenc} %\usepackage{kerkis} \usepackage{booktabs} \usepackage{tikz} \usepackage{booktabs,...


3

You can used the \Aboxed command, from empheq, which can bow a single equation. I adapted the code to define a \Ashaded and a Acolorboxed command, which use shadecolour, bgcolour and rulecolour parameters, to be defined with \colorlet. \documentclass[x11names]{beamer} \usepackage{empheq} \makeatletter \colorlet{shadecolour}{Thistle3!50} \newcommand\...


2

Here is a cheating way with an \rlap, requiring manual estimation of box width, which will work for any number of alignment tabs in the equation: \documentclass{beamer} \usepackage{amsmath} \begin{document} \begin{frame} \frametitle {MWE: Align two set of equations} \begin{align*} \sigma^2&=(a+b)^2-(a+c)^2 \\ &=(a^2+b^2-2ab)-(a^2+...


2

Your table is a good example of why using \resizebox to attempt to make it fit inside the text block may cause more problems than it solves. I suggest you use a tabularx environment to let LaTeX insert line breaks. It's still necessary to switch to a smaller font size; below, I suggest using \scriptsize, for a 30% linear reduction of the font size. I also ...


8

amsmath provides \intertext{} for this kind of purpose. For example, \documentclass{beamer} \usepackage{amsmath} \begin{document} \begin{frame} \frametitle {MWE: Align two set of equations} \begin{align*} \sigma^2&=(a+b)^2-(a+c)^2 \\ &=(a^2+b^2-2ab)-(a^2+c^2-2ac)\\ \intertext{Cancel out common terms, then} \sigma^2&...


1

Like this? \documentclass[xcolor=dvipsnames]{beamer} \usetheme{Antibes} \usecolortheme{dolphin} \usefonttheme{professionalfonts} \useoutertheme{infolines} \useinnertheme{circles} \usepackage{tikz} \usetikzlibrary{calc} \usepackage{etoolbox} \makeatletter \newcount\beamer@subsectionstartframe \beamer@subsectionstartframe=1 \apptocmd{\beamer@subsection}{\...


2

Another option is to use the \alt command. This displays either a default text or an alternate text, depending on the overlay specifications (see section 9.2 of the beamer documentation). \documentclass{beamer} \begin{document} \begin{frame}{main title}{subtitle} \begin{itemize}[<+->] \item foo \item bar \alt<.>{baz}{BAZ} \item ...


3

\documentclass{beamer} \begin{document} \begin{frame}{main title}{subtitle} \begin{itemize}[<+->] \item foo \item bar \only<.>{baz}\only<+->{BAZ} \item foobar \end{itemize} \end{frame} \end{document} <.> the current slide <+-> the next and following slide and without itemize \begin{frame}{main title}{subtitle} ...


2

\strut is the command you are looking for: \documentclass[17pt,t]{beamer} \usepackage{tikz} \usetikzlibrary{positioning} \setbeamertemplate{frametitle}{ \vskip1cm \tikz[remember picture,overlay]{ \node(a)[fill=black,rectangle,minimum width=.25cm,minimum height=1cm,anchor=north west]at(current page.north west){}; \node(b)[anchor=...


0

Here the answer to my question: Answer. Simply use PdfLaTeX+Bib(la)tex+PdfLaTeX(x2)+View Pdf in the quick compilation settings of TexMaker


4

Try the following TikZ preset: \tikzset{ A/.style = {decoration={markings, mark= at position 0.5 arrow[ultra thick]{stealth}; above] {#1};} }, postaction={decorate}}, } And than use it as: \begin{tikzpicture} \draw[A=$b$] (0,0) -- + (3,0); \end{tikzpicture} For ...


1

Pass the [fragile] option to the 'frame' environment: \begin{frame}[fragile] ... % \end{frame} must be on a single line! \end{frame} In your case, this is necessary because of the use of a tex parameter (#1) inside the style definition of the tikzpicture. TeX'nically speaking: To provide for the parameter syntax in style definitions, TikZ needs to ...


0

First, as already said, remember picture needs to be used in n1 and t1 too, but this can be done globally with: \tikzstyle{every picture}+=[remember picture] Moreover, the picture with the arrow needs to be part of a paragraph, as said in answer to Tikzpicture with overlay takes up space. Here's an example with various correct and incorrect solutions: \...


0

Use \begin{itemize}[<+->] for overlays. Math is no problem: \documentclass{beamer} \usepackage{beamerthemesplit} % new \usepackage{amsmath} \begin{document} \begin{frame}[allowframebreaks]{What is an Ordinary differential equation?} \begin{itemize}[<+->] \item Firstly what is a Differential equation? An differential equation is an equation ...


4

Edit: I am grateful to samcarter who pointed out that the information that I provided below is also available in the beamer user guide "18.2.1 Choosing a Font Size for Normal Text". I was able to find that in the source code of the beamer.cls file, there are relevant lines: \def\beamer@size{{size11.clo}} \DeclareOptionBeamer{8pt}{\def\beamer@size{{size8....


5

I think you're making this more complicated than it needs be. Instead of the textblocks, you can use columns, adding the poisson_distribution in the first, and the flowchart in the second. To make the equation come up the same time as the same time as the corresponding part of the chart, simply add it as a label to that node. \documentclass{beamer} \...


3

Copy the TikZ code... Paste them under the original one... place... \action between them... and leave the last copy untouched... but in each copy inserted before... either start changing color to be invisible or if possible delete the codes corresponding to the generations... \documentclass{beamer} \usepackage{tikz} \begin{document} \begin{frame}[...


2

Change the package loading order. Note that graphicx is already loaded by beamer. On the other hand, loading lmodern is not needed, unless you're on MiKTeX and don't have a working installation of the CM-Super fonts. \documentclass{beamer} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{mathtools} \usepackage{bm} \...


4

Yes. Consider the option [<+->] for itemize, enumerate, and description: \begin{itemize}[<+->] \item first \item second \item third \end{itemize} See Section 12 of the Beamer manual for details.


2

Without a proper MWE, this is the best help I can offer: invoking professionalfonts produces no such error. \documentclass{beamer} \usefonttheme{professionalfonts} \usepackage{graphicx} \usepackage{booktabs} \usepackage{bm} \usepackage{mathtools} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \begin{document} Test. \end{document}...


4

The problem here is your interpretation of the macros involved with the algorithmic construction. The \State macro doesn't take an argument. So, use \State <state content> and not \State{<state content>} In a similar way, you think \Function takes three arguments, the last of which is the body of the function. This is not true, as the start ...


1

The simplest method is probably to place the nodes below right and below left of the .south anchor of the upper node to centre the upper block relative to the lower ones. To centre the upper block relative to the frame, it is probably easiest to draw the lower blocks first and then centre the upper block relative to the current bounding box. I've also ...


0

None of the answers worked for me, I had the same problem. I tried this one in the preamble and it does the job requested: \captionsetup{labelformat=empty,labelsep=none}


1

I am just answering to show the flexibility of the accepted solution. All credit goes to samcarter. By changing minor stuff in the if/else and moving content from the header to the footer, I obtained the following nMWE outcome: The nMWE: \documentclass{beamer} \beamertemplatenavigationsymbolsempty \usetheme{rochester} \usecolortheme{beaver} \...


3

With \newlength\imageheight \settoheight\imageheight{\includegraphics[width=0.11\paperwidth]{logo.png}} you can get the height of your logo, then you just have to shift the content of the sidebar by this length: \vspace*{\imageheight} \documentclass{beamer} \usepackage{tikz,graphicx} \title{Title} \author{My name} \institute{My institute} \...


1

As I noted inmy comments, cause of your problem is to wude table. You can sxhring it on two ways: use smaller font reduce the size of space between table columns. It seem that use of \setlength\tabcolsep{3pt} will give satisfactory result: \documentclass[xcolor=table]{beamer} %\usetheme{Frankfurt} %\usecolortheme{crane} \begin{document} \begin{frame}[t]{...


0

If you do the break manually, you have much more control: \documentclass{beamer} \usepackage{beamerthemesplit} \title[History and application of ODE]{A history of Ordinary differential equations and their applications within Biology, Physics and the economy} \author{Tarran Dutton} \date{\today} \begin{document} \begin{frame}[plain] \...


1

This problem has something to do with different colour models. There was a question somewhere on this side which explains it in detail, but unfortunately I can not find it right now. In short: a workaround is to use a colour defined in RGB for the mixing. \documentclass[xcolor=dvipsnames]{beamer} \usetheme{Frankfurt} \beamertemplatenavigationsymbolsempty ...



Top 50 recent answers are included