New answers tagged

0

There is probably a better answer coming along the lines of \captionsetup{labelformat=empty}, but I don't know what circumstances that applies to. Here is a dirty answer \makeatletter \def\algocf@capseparator{}\makeatother \renewcommand\AlCapNameSty[1]{\unskip\strut\textnormal {#1}\unskip} The first line eliminates the : separator. The second line ...


2

How about a rounded rectangle? \documentclass{beamer} \mode<presentation> { \usetheme{default} % or try Darmstadt, Madrid, Warsaw, ... \usecolortheme{rose} % or try albatross, beaver, crane, ... \usefonttheme{default} % or try serif, structurebold, ... \setbeamertemplate{navigation symbols}{} \setbeamertemplate{caption}[numbered] } \...


2

Welcome! You can work with \uncover. As I do not have your images, I replaced them with some generic graphics that comes with most of the installations. \documentclass{beamer} \usepackage{subcaption} \begin{document} \begin{frame} \frametitle{Foo} Some sentence: \begin{itemize} \item<1,2,3> Text1 \item<2,3> Text2 \item&...


1

The beamer manual says on p. 194 Here is an illustration. \documentclass{beamer} \usepackage{lipsum} \usepackage{pgffor} % desired command to control the level of opacity \begin{document} \foreach \X in {0,10,...,100} {\setbeamercovered{transparent=\X} \begin{frame}[t] \frametitle{\texttt{\textbackslash setbeamercovered\{transparent=\X\}}} \pause \lipsum[...


1

Like this? \documentclass{beamer} \mode<presentation> { \usetheme{default} % or try Darmstadt, Madrid, Warsaw, ... \usecolortheme{rose} % or try albatross, beaver, crane, ... \usefonttheme{default} % or try serif, structurebold, ... \setbeamertemplate{navigation symbols}{} \setbeamertemplate{caption}[numbered] } \usepackage{collcell} %...


2

The baseline distance depends on the value active at the end of a paragraph. Because of your braces the baselineskip value is reset to early. If you remove them it works as expected: \documentclass[final,xcolor={dvipsnames}]{beamer} \usepackage[T1,T2A]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english,russian]{babel} \usepackage{lipsum} \title{Title}...


2

Here is a modified code which shows the colorbox, but not the subtitle. \documentclass[11pt]{article} \usepackage{xcolor} \usepackage[envcountsect]{beamerarticle} \usepackage{tcolorbox} \mode<article> { \setbeamertemplate{frame begin}{% \begin{tcolorbox}[ colback=red!20, colframe=red!60, arc=4mm, ...


1

The warning is actually more an information: It means that hyperref ignored the \\ when building the author entry for the pdf properties. You then get simply the two authors: You can get rid of the warning (and if you want replace the \\ with something else) with \texorpdfstring: \author{Author1 \texorpdfstring{\\}{and} Author2} which would give: (The ...


2

The reason why you only see one label you have the additional node far left of the left circle so that not everything fits on one page. So I decreased some distances. As for the arrows to the inequality signs, this is a job for tikzmark. \documentclass{beamer} \mode<presentation> { \usetheme{default} % or try Darmstadt, Madrid, Warsaw, ... \...


1

The amsmath environments like align do not work with \pause. But you do not need them here either, a simple array does the job. So all you need to do then is to add \pause wherever appropriate. (I also added fleqn because this looks IMHO cleaner.) \documentclass[12pt,fleqn]{beamer} \usepackage{xcolor} \usetheme{AnnArbor} \usecolortheme{beaver} \usepackage{...


5

The first column of the table contains repetitive stuff that might as well be placed in a sub-row header. Having 1 column less to deal with hugely beneficial as it lets you change the relative font size from \tiny to \scriptsize. I would also allow line breaks in the final five columns. And whatever else you do, don't wrap a longtable inside a table. \...


4

Welcome! You can use eqparbox for that. I added \eqmakebox[A][r]{\SI{}{\centi\meter}} and \eqmakebox[A][r]{\SI{100000}{\centi\meter}} where A is an id, i.e. all boxes tagged A will have the same width, and r is the alignment. You need to compile this twice to write the widths in the aux file, and use the maximum in the second run. \documentclass{...


1

I really like Schrodinger's cat's answer, but I found another solution simultaneously (for the first time!) that I am proud of, and hence I'll post mine here as well. I changed the way I was defining position, by using below left in relation to current page.north east. Code below. \documentclass{beamer} \mode<presentation> { \usetheme{default} ...


2

There are two problems. You rescale the table "from outside". This destroys the node location mechanism of tikz/tikzmark. In general, when you use something like \resizebox or \scalebox on a tikzpicture with remember picture, the remembered coordinate positions will be off. The only way this can conceivably work is to make the overlay picture part of the \...


1

OK, I figured out what the problem was. I had a lot of beamer .sty and .cls in my working folder, which probably were conflicting with the installed files from texlive-full. Once I deleted them, it is fine now.


1

Similar idea as at @Schrödinger's cat answer: where is needed multi line text in matrix's cells, is used \makecell command (which essential contain tabular environment) from the makecell package and math environments defined in amsmath packages (loaded by beamer. For proper work of ampersands in aligned math, for matrix is used ampersand replacement=\&...


2

One way is to use nicematrix. \documentclass{article} \usepackage{nicematrix} \usepackage{tikz} \begin{document} \[\begin{pNiceArray}[xdots/shorten=1.5ex]{CCCCCCC} 1 & \Cdots & c_{1r} & c_{1,r+1} &\Cdots & c_{1n} & d_1\\ \Vdots & & \Vdots & \Vdots & & \Vdots & \Vdots \\ 0 & \Cdots & 1 & c_{r,...


2

This is still LaTeX, so you can use a tabular to have two rows of variable width. \documentclass{beamer} \mode<presentation> { \setbeamertemplate{navigation symbols}{} \setbeamertemplate{caption}[numbered] } %%%%%%%%% \usepackage{tikz} \usetikzlibrary{fit,overlay-beamer-styles,tikzmark, matrix} \usepackage{mathtools} \begin{document} \section{...


2

As for your problems: You can use \hfill to center the tikzpicture. You forgot a to, should not use loop for an arrow going from A to B, and if you wish to place a node along a curved path, you need to put it before the target.1 To get the frame only on a certain overlay, you can use |[draw=green,thick,fill=white, rounded corners,alt=<2>{opacity=1}{...


2

You can achieve this effect using \setbeamercovered{transparent} or with \setbeamercovered{transparent=...} and a value of your choice. (0 = "totally transparent", 100 = "totally opaque") \documentclass{beamer} \setbeamercovered{transparent} \begin{document} \begin{frame} \begin{itemize} \item first item \pause \item second item \end{itemize} \end{frame} \...


1

You can achieve this by using the command \pause in an itemize or enumerate environment. This creates two (or more) PDF slides and when the next slide is viewed, the next line (in your case bullet point 2, then 3) appears normal and not greyed-out anymore. Example: \documentclass{beamer} \begin{document} \begin{frame} \begin{itemize} \item Line 1 \pause \...


2

There are several tools for that such as systeme, arrays and eqparbox. Here is a very brute force method using phantoms. \documentclass{beamer} \usepackage[fleqn]{mathtools} \begin{document} \begin{frame}[t] \frametitle{A system of equation} \[ \left\{\begin{aligned} x_1&=-c_{1,r+1}x_{r+1}-c_{1,r+2}x_{r+2}-\cdots-c_{1n}x_n\;, \\ x_2&=-c_{2,r+1}...


1

\documentclass{beamer} \usepackage{amsmath} \begin{document} \begin{frame} \frametitle{System of equations} \[ \left\{ \begin{aligned} a & = 1 \\ b & = 2 \\ c & = 3 \end{aligned} \right. \] \end{frame} \end{document} Note: now is time, that you provide in your question an MWE, which reproduce your problem or show where you ...


1

\documentclass{article} \usepackage{mathtools} \begin{document} \[ \begin{Bmatrix} \begin{pmatrix*}[r] 1\\ 0\\ -1 \end{pmatrix*},\begin{pmatrix*}[r] 1\\ 0\\ -1 \end{pmatrix*} \end{Bmatrix}. \] \end{document} Edit: Above solution works at any document class. For example, at beamer: \documentclass{beamer} \usepackage{mathtools} \begin{document} \begin{...


1

\documentclass{beamer} \usepackage{amsmath} \begin{document} \begin{frame} \[ \begin{pmatrix} 1 & 0 & \cdots{} & 0 & c_{1,r+1} & \cdots{} & c_{1n}\\ 0 & 1 & \cdots{} & 0 & c_{2,r+1} & \cdots{} & c_{2n}\\ \vdots{} & \vdots{} & & \vdots{} & \vdots{} & & \vdots{}\\ 0 & 0 & ...


2

This is one way to get something of that sort. \documentclass{beamer} \mode<presentation> { \setbeamertemplate{navigation symbols}{} \setbeamertemplate{caption}[numbered] } %%%%%%%%% \usepackage{tikz} \usetikzlibrary{fit,overlay-beamer-styles,tikzmark} \usepackage{skull} \begin{document} \section{Proofs} \begin{frame} \frametitle{...


3

Sure. Here is one way to do it. \documentclass{beamer} \usepackage{tikz} \begin{document} \begin{frame}[t] \frametitle{Some title} As you can see \only<.(1)>{\dots}% \pause \only<.(1)>{\begin{tikzpicture}[overlay,remember picture] \node[outer sep=0pt,inner sep=0pt] at (current page.center) {\includegraphics[width=\paperwidth,height=\paperheight]...


1

--- output: beamer_presentation: highlight: espresso --- # foo ```{r,eval=FALSE} g = ggplot(mtcars, aes(x=wt, y=mpg, color=cyl, size=cyl)) + geom_point() + theme(legend.position="none") ``` For more styles: `pandoc --list-highlight-styles`


2

You can just use beamer tools, see here. \documentclass{beamer} \mode<presentation> { \setbeamertemplate{navigation symbols}{} \setbeamertemplate{caption}[numbered] } %%%%%%%%% \usepackage{array} \usepackage{booktabs} \begin{document} \section{Proofs} %\resetcounteronoverlays{tcb@cnt@mydef} \begin{frame}[fragile] \setbeamercovered{...


2

Adding align=left to the first node I got \documentclass[10pt]{beamer} \usepackage{tikz} \newcommand{\minimalisticBoxred}[2]{ \begin{figure} \centering \begin{tikzpicture} \node(example-align)[red,rounded corners,draw,line width=1.5pt,inner sep=5ex,align=left](MBoxForm){#2}; \node[anchor=west,fill=white] at (MBoxForm.155) {#1}; \end{tikzpicture} \end{figure}...


2

This can be done using a dedicated page style. \documentclass{beamer} \usetheme{AnnArbor} \title{My Presentation} \author{Me} \makeatletter \def\ps@navigation@titlepage{% \setbeamertemplate{footline}{} \setbeamertemplate{headline}{} \setbeamertemplate{navigation symbols}{} \@nameuse{ps@navigation}} \addtobeamertemplate{title page}{\thispagestyle{...


2

This is very easy: add some local keys to the corresponding matrix element. This works, as described on p. 710 of pgfmanual v3.1.5, by adding |[<style>]| with some appropriate style to the matrix element. I just added |[alt=<7>{draw=red,thick,fill=red!20}{}]| to get \documentclass{beamer} \mode<presentation> { \setbeamertemplate{...


1

for manually break frame to slides serve command ``framebreak` after \framebreak command should be empty line command framebreak has sense to use, if you like to break a frame at point earlier where frame breaks automatically content of one slide had not to be bigger than text area of slide, otherwise the breaking mechanism doesn't work well some of your ...


3

When one looks at the corresponding part of the pgfmanual v3.1.5 in section 60.2 End-of-Lines and End-of-Row Characters in Matrices of Nodes, one finds that in the example the text width is set. It does mention This problem arises only when you use the text width option of nodes. but I would agree that it is not clear that it implies that one has to set ...


4

I am a big fan of one question per question, so this answer focuses on the last question because the answer is very simple.;-) The answer is visible on=<\the\numexpr-2+\pgfmatrixcurrentcolumn+2*\pgfmatrixcurrentrow\relax-> (where I added a -2 thanks for your comment!) or, in more detail, \documentclass{beamer} \mode<presentation> { \...


1

Actually, you can take advantage of the calc library and of the let operation to do this in one shot, without explicitely defining additional TeX counters. See below. \setbeamertemplate{title page}{ \begin{tikzpicture}[overlay,remember picture,every node/.style={inner sep=0pt}] \path (current page.south west) node [anchor=south west] {\rule{5cm}{4cm}}; % ...


1

If you open the beamer documentation, and search for [<+-| ale, the second hit gives you:


0

I was able to find a solution to the issue at least after I reread some parts of the pgfmanual. After the coorinates have been defined I can extract them to macros using something like this (the typeout is just for debugging here): \path (nw); \pgfgetlastxy{\myfoox}{\myfooy} \typeout{Last coordinate: \myfoox, \myfooy} \path (se); \pgfgetlastxy{\mybarx}{\...


4

You not define length `\tempdima˙, forgot on \begin{table} forgot put table in frame forgot to increase width of the multicolumn cell or use c column tape instead of p{\tempdima} Correcting aforementioned, your table is: \documentclass{beamer} \usepackage{booktabs} \newlength\tempdima \begin{document} \begin{frame} \begin{table} \setlength\tempdima{\...


2

Reducing the left margin in the \tcolorbox, some spacing adjustments, and a medium sized formula; is it better? \documentclass{beamer} \mode<presentation> { % \usetheme{default} % or try Darmstadt, Madrid, Warsaw, ... % \usecolortheme{default} % or try albatross, beaver, crane, ... % \usefonttheme{default} % or try serif, structurebold, ... \...


3

tcolorbox comes with a lot of beamer support, see section 13 Beamer Support of manual v4.30. In particle, there is a hide key, which can be used here. One then can specify what "hide" means with \tcbset{beamer hidden/.style={}} Here is an example. \documentclass{beamer} \mode<presentation> { % \usetheme{default} % or try Darmstadt, Madrid, ...


1

I'm getting the same result as both of you, which is \uncover<1-> doesn't work (but \uncover<2-> etc. work). So if you just start from 2 instead of 1, all the overlays happen correctly: \documentclass{beamer} \begin{document} \begin{frame}[t] \frametitle{My title} \framesubtitle{My subtitle} \begin{columns} \begin{column}{0.5\textwidth} ...


1

I just added \unvovers, \setbeamercovered{transparent} and replaced \stackrel by overset to obtain \documentclass{beamer} \mode<presentation> { % \usetheme{default} % or try Darmstadt, Madrid, Warsaw, ... % \usecolortheme{default} % or try albatross, beaver, crane, ... % \usefonttheme{default} % or try serif, structurebold, ... \...


0

You could use a \newsavebox,\savebox,\usebox sequence with the \savebox content created outside the frame. \documentclass{beamer} \usepackage{pgfmath} \newcommand\randmin{} \newcommand\randmax{} \newcommand\setrand[2]% {\def\randmin{#1}% \def\randmax{#2} } \newcommand\nextrand {\pgfmathparse{int(int((rnd*(\randmax-\randmin+1)+\randmin)))}% \...


1

If you want to locally change a single symbol of an itemize in beamer to a colored circle, you could use \item[\textbullet] .... For a global change of all itemize symbols fo a certain level, you can use \setbeamertemplate{itemize <level>}[<predefined symbol>]{<custom symbol>} With <level>: item --> first level subitem --> ...


2

The metropolis theme is a bit strange. Instead of in the background canvas, the colour is stored in normal text.bg: \documentclass{beamer} \usepackage{tikz} \usetheme{metropolis} \begin{document} \begin{frame} \begin{tikzpicture} \begin{pgfinterruptboundingbox} \fill[fill=normal text.bg] (0,-2) rectangle (10.5, 5); \end{pgfinterruptboundingbox} \end{...


3

If you add a footnote to the title of a slide, use also the optional parameter of \frametitle to define the title (without the footnote) used in toc and in notes page: \begin{frame} \frametitle[Title used in toc and in notes]% {Title used in frame\footnote{with a footnote}} \end{frame} To customize the note page In the following code, I defined the ...


1

You code was not compiling correctly so I stripped it from what I believe what not necessary to provide the required output, but it should work all the same in your original code. My proposal is based on Max's very nice answer to one of my previous questions, using TikZ. Using the technique proposed, you can easily show an image then add some overlayed ...


3

New attempt My first attempt directly patches the list environment. This new attempt patches beamercolorbox by updating the line width used by list environments. Note that beamercolorbox adds the value passed to sep option to \leftskip and \rightskip, but the line width is not updated. % put these lines in preamble \usepackage{xpatch} \makeatletter % ...


Top 50 recent answers are included