Thank you in advance and support that provides this website for the tex users. I am a new member of the tex society almost a year now and I can say that most of my answers related to my problems have been answered previously here. Your work is really impressing taken in consideration that people are sharing knowledge for free.  Recently I came across with a problem that I think it is a bug of the system. I was trying to create a beamer presentation and by using \usepackage{subcaption} and \begin{subfigure} environment. While I was trying to use the \label and \ref points to my subfigure(s) I noticed that only the first \label was operating correctly as 1a. Unfortunately the rest are coming up as ??. I assume this is because the \ref points are located before the \label, but in this case all of them should not be operating correctly all should fail.  I was not able to find an answer relative to my question no matter how much I searched for. Maybe it is a bug of the system. I was just hopping that you could provide more information and maybe a solution to overcome this problem.  More information and the testing code can be found here: .  \documentclass[xcolor=pdftex,dvipsnames,table]{beamer} \usepackage[english]{babel} \usepackage{hyperref} \usepackage{cleveref} \usepackage{caption} \usepackage{subcaption}  \mode&lt;presentation&gt; \setbeamertemplate{caption}[numbered]  \begin{document} \begin{frame}  \begin{columns}[t]  \begin{column}[T]{5cm}  \begin{itemize}  \item&lt;+-| alert@+&gt; 1~\autoref{1}  \item&lt;+-| alert@+&gt; 2~\autoref{2} etc  \end{itemize}  \end{column}  \begin{column}[T]{5cm}  \begin{figure}  \only&lt;1&gt;{\begin{subfigure}[b]{1.0\linewidth}           \caption{sub caption 1}           \label{1}           \includegraphics[width=7.0cm,height=5cm]{fig 1}           \end{subfigure} }  \only&lt;2&gt;{\begin{subfigure}[b]{1.0\linewidth}           \caption{sub caption 2}           \label{2}           \includegraphics[width=5.5cm,height=5cm]{fig 2}           \end{subfigure} } \caption{main}  \protect\label{3}  \end{figure}  \end{column}  \end{columns}  \end{frame} \end{document}
123833
I have tried several approaches to solve my problem but unfortunately none successful yet. I can not find documentation mentioning how to solve this particular case. My problem is that I am using a subfigure in beamer and I am trying to create multiple \ref points before the \label appear in the same figure. When compiling the .tex document only one reference point appears and the rest are appearing as ??. Is there any possible solution to my problem?  EDIT: The code I'm using  \documentclass[xcolor=pdftex,dvipsnames,table]{beamer} \usepackage[english]{babel} \usepackage{hyperref} \usepackage{cleveref} \usepackage{caption} \usepackage{subcaption}  \mode&lt;presentation&gt; \setbeamertemplate{caption}[numbered]  \begin{document} \begin{frame}  \begin{columns}[t]  \begin{column}[T]{5cm}  \begin{itemize}  \item&lt;+-| alert@+&gt; 1~\autoref{1}  \item&lt;+-| alert@+&gt; 2~\autoref{2} etc  \end{itemize}  \end{column}  \begin{column}[T]{5cm}  \begin{figure}  \only&lt;1&gt;{\begin{subfigure}[b]{1.0\linewidth}           \caption{sub caption 1}           \label{1}           \includegraphics[width=7.0cm,height=5cm]{fig 1}           \end{subfigure} }  \only&lt;2&gt;{\begin{subfigure}[b]{1.0\linewidth}           \caption{sub caption 2}           \label{2}           \includegraphics[width=5.5cm,height=5cm]{fig 2}           \end{subfigure} } \caption{main}  \protect\label{3}  \end{figure}  \end{column}  \end{columns}  \end{frame} \end{document}
67255
I make a translation of a 600 pages Book with the beamer class in Latex, so I have lots of Subsections and SubSubsections. I want to show all subsections of the current Section in the sidebar along with all the subsubsections of the CURRENT subsection. I came across a hint and made   \setbeamertemplate{subsubsection in sidebar shaded} {\vspace*{-\baselineskip}}   But that just hides all subsubsections but the current one. The best solution would be something like  \setbeamertemplate{subsubsection in sidebar shaded}[subsubsectionstyle=show/shaded/hide]   or any other way i can change the subsubsectionstyle. The best idea I had was   \setbeamertemplate{subsubsection in sidebar shaded} {\tableofcontents[subsubsectionstyle=show/shaded/hide]}   But that just creates over 3000 errors and didn't solved my problem . Is there anybody who has an idea to solve this Problem ?  Here is a MWE to show what i mean:      \documentclass[9pt]{beamer}  \usetheme[hideothersubsections]{Goettingen}  \begin{document}  \section{Section 1} \begin{frame} \frametitle{Section 1} \end{frame}  \subsection{Subsection 1.1} \subsubsection{SubSubsection1.1.1} \begin{frame} bla \end{frame} \subsubsection{SubSubsection 1.1.2} \begin{frame} bla \end{frame}  \subsection{Subsection 1.2} \subsubsection{SubSubsection1.2.1} \begin{frame} bla \end{frame} \subsubsection{SubSubsection 1.2.2} \begin{frame} bla \end{frame}  \section{Section 2} \begin{frame} \frametitle{Section 2} \end{frame}  \subsection{Subsection 2.1} \subsubsection{SubSubsection2.1.1} \begin{frame} bla \end{frame} \subsubsection{SubSubsection 2.1.2} \begin{frame} bla \end{frame}  \subsection{Subsection 2.2} \subsubsection{SubSubsection2.2.1} \begin{frame} bla \end{frame} \subsubsection{SubSubsection 2.2.2} \begin{frame} bla \end{frame} \end{document}   And one page of the output is:   As you can see, with the option [hideothersubsections] in  \usetheme[hideothersubsections]{Goettingen} subsections outside the current section are not shown in the sidebar. I want the same effect for the subsubsections with regard to subsections. So Subsubsection1.2.1 and SubSubsection1.2.2 should not be seen in the sidebar, because im in subsection 1.1  Therefore it should looks like this:   And when my slides move on and the subsections changes (from subec 1.1 to subsec 1.2), then the displayed subsubsection shall also change. It then should looks like this:   Of course the space between subsec 1.1 and subsec 1.2 should disappear.
81009
I want to make a cover page as the attached figure. The problem is that the beamer has, by default, the macros predefined: \author{} \title{} ', ... and their location is fixed by default. Could you help me?  Here is my code:  \title[Short Paper Title]   {presentation}  \subtitle {About some things}  \author   { Author}   \institute  { Department of Computer Science\\ University of Somewhere }  \date  {\today}
48088
The famous [&lt;+-&gt;] overlay specification is not working as expected in this very simple MWE right-to-left beamer presentation.  MWE    \documentclass[12pt]{beamer}  \usepackage{polyglossia} \setmainlanguage[numerals=mashriq,abjadjimnotail=true]{arabic} % Polyglossia package for more options \setotherlanguages{english} \newfontfamily\arabicfont[Script=Arabic,Mapping=arabicdigits,Ligatures=TeX]{Simplified Arabic} \setsansfont[Script=Arabic,Mapping=arabicdigits,Ligatures=TeX]{Simplified Arabic} % Bold sans used for sections \newfontfamily\englishfont{Arial}  \setbeamertemplate{frametitle}[default][right] \usetheme{Frankfurt}  \setbeamercovered{transparent} \title{مثال توضيحي}  \begin{document} \begin{frame}   \titlepage% \end{frame}  \section{مقدمة} \begin{frame}   \frametitle{الشريحة الاولى}    \begin{enumerate}[&lt;+-&gt;]     \raggedleft%   \item هنا النقطة الاولى   \item الثانية حيث اكتب ١، ٢، ٣، ٤، ٥   \item الثالثة والاخيرة   \end{enumerate} \end{frame}   \end{document}   Output      In the first overlay, the first item is active and the second one is inactive so far which is good, but the third item text and bullet alike should be inactive as the second one. In this case only the bullet is inactive while the text is not.  By the second overlay, the second item becomes active as expected.  Finally, by the third overlay, the third item bullet and not the text is becoming active, the text has already been active right from the beginning. So could you please help me fix this abnormal behavior?
90520
I am trying to to put an lstlisting environment in the left column, but I'm getting errors. Are lstlisting and the columns environment in beamer incompatible? Or is it something else?  \documentclass{beamer}  \usepackage{remreset} \usepackage{comment} % end and begin comment \usepackage{dtklogos} % for \BibTeX  \usepackage{listings} % display code on slides; don't forget [fragile] option after \begin{frame} \usepackage{bera} % pause in listing \usepackage{color} \definecolor{lightgrey}{rgb}{0.92,0.92,0.92} % defining color for listing \definecolor{darkgreen}{rgb}{0,0.6,0} % defining color for listing  \usepackage{graphicx} % importing figure  \usepackage{verbatim} % writing code   \makeatletter \@removefromreset{subsection}{section} % creates navigation circles for every slide not section \makeatother \setcounter{subsection}{1} % creates navigation circles for every slide not section  \usetheme{Frankfurt}  \lstset{language=[LaTeX]TeX, basicstyle=\small\ttfamily, texcsstyle=*\bf\color{blue}, numbers=left, breaklines=true, keywordstyle=\color{darkgreen}, commentstyle=\color{red}, otherkeywords={$}, frame=leftline, tabsize=2, backgroundcolor=\color{lightgrey}, escapeinside=|| }  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{document} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  \begin{frame} \begin{columns}  \begin{column}{5cm} \begin{lstlisting}[float=*] \pause \end{lstlisting} \end{column}  \begin{column}{5cm} text \end{column}  \end{columns}  \end{frame}  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \end{document} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
31684
According to section 3.10 of the beamer manual, the t option top-aligns either every frame (when used as a class option) or a single frame (when used as optional argument of a frame environment). According to section 12.7, t can also be used to top-align the columns of a columns environment (a multi-column area within a frame). However, I didn't succeed to combine the two tasks, i.e. to top-align columns within a top-aligned frame. Did I miss something? How can the correct alignment be achieved?  Note: For columns, there's also a T option that (quoting section 12.7) should be tried "[i]f strange things seem to happen in conjunction with the t option". Adding T to the second column comes close to the desired result, but doesn't achieve it (the second column is positioned somewhat higher than the first column).  \documentclass{beamer}  \begin{document}  \begin{frame}[t]{Frame title}   \begin{columns}[t]     \begin{column}{0.5\textwidth}       \begin{itemize}       \item First column, first item       \item First column, second item       \end{itemize}     \end{column}     \begin{column}{0.5\textwidth}% Alternative A doesn't work %     \begin{column}[T]{0.5\textwidth}% Alternative B comes close       \begin{itemize}       \item Second column, first item       \end{itemize}     \end{column}   \end{columns} \end{frame}  \end{document}   EDIT: Thanks to Stefan for posting a workaround solution. I'm still interested in why such a workaround is necessary resp. why top-aligned columns work within centered frames by default. Is this a bug in beamer?
52293
I'm trying to create a theorem style using Beamer with Madrid theme, but I can't figure out how to not have it in boxes. Everything I try just simply ends up automatically inside boxes. Also, I don't want a line break between the title and the text.  Any ideas?  Thanks a lot.
16891
Problem  I want to explain C# programming language step by step using overlay in beamer.cls. But it does NOT works as shown in the following figure.  How to solve this problem?    Code Snippet  \documentclass[dvipsnames,cmyk]{beamer}  \usepackage{listings}  \begin{document}  \defverbatim[colored]\Lst{% \begin{lstlisting}[language={[Sharp]C}] using System; public delegate void Foo(object o); \uncover&lt;1&gt;{public class Foo} \uncover&lt;2&gt;{\{} \uncover&lt;3&gt;{public static void Main()} \end{lstlisting}}  \begin{frame}{MyListing} \Lst \end{frame}  \end{document}
61699
I am currently preparing my beamer presentation for my PhD defense.  I took the example at the url  to get a black board style presentation.  This template includes a short script which uses a random-generator to randomly scatter dust-trails on the black background to mimic chalk traces (see MWE below).  The thing is that parallel to that, I am also using overlays to uncover my slide layout by layout. The script is executed each time I am using a layout command which slows down the compilation quite substantially. I am not so familiar with control statements in latex, so here is my question:  How can-I modify this script for the background to be refreshed only when the slide is over, and not after each layout command?  Remarks:  1) I am using the Augie font, but I didn't included it in the MWE so that it can be compiled more easily  2) In case, it should make a difference I am also using the \begin{textblock*} \end{textblock*} environment from the textpos package to position text on the slide.  Here is my MWE:   \documentclass[10pt,mathserif]{beamer}  \usepackage[francais,english]{babel} \usepackage[utf8] {inputenc} %for ISOlatin1 (8859-1) sources \usepackage[T1] {fontenc}      %for polices DC 8bits   %%%Fancy fonts %\usepackage{emerald} %\usepackage{eulervm} %%%  %%Extra packages \usepackage{amsmath} \usepackage{amsfonts} \usepackage{tikz} \usetikzlibrary{arrows,shapes} \usepackage[absolute,overlay]{textpos}    %set text colors for different objects \setbeamercolor{frametitle}{fg=white} \setbeamercolor{structure}{fg=white} \setbeamercolor{normal text}{fg=white} \setbeamercolor{alerted text}{fg=white} \setbeamercolor{example text}{fg=white}   %%Black background \setbeamercolor{background canvas}{bg=black}    %%%%%%%%%%%%%%%%%%%%%% %%%%%Script: Random Dust Trails%%%%%%%%%%%%%%% \pgfmathsetseed{\number\pdfrandomseed} % seed for random generator \setbeamertemplate{background}{     \begin{tikzpicture}         \useasboundingbox (0,0) rectangle (\the\paperwidth, \the\paperheight);        \foreach \i in {1,...,30} {             \pgfmathsetmacro{\x}{random(0,10000)/5000-1}%             \pgfmathsetmacro{\y}{random(0,10000)/10000-0.1}%             \pgfmathsetmacro{\r}{random(0,10000)/1000-5}%             \rotatebox{\r}{                 \pgftext[at=\pgfpoint{\x\paperwidth}{\y\paperheight}, left, base]{\includegraphics[width=\textwidth]{paintstroke.png}}             }         };      \end{tikzpicture} } %%%%%%%%%%%%%%%%%%%%%%  %%No navigation bar \setbeamertemplate{navigation symbols}{}  \begin{document}      \begin{frame}          \begin{itemize}             \item&lt;1-&gt; bla slide 1             \item&lt;2-&gt; blu slide 1             \item&lt;3-&gt; blub slide 1         \end{itemize}      \end{frame}  %%I want the background to be refreshed with the Dust Trails script only at the end of the frame          \begin{frame}          \begin{itemize}             \item&lt;1-&gt; bla slide 2             \item&lt;2-&gt; blu slide 2             \item&lt;3-&gt; blub slide 2         \end{itemize}      \end{frame}  \end{document}   This is my first post, so please be kind if I did something illegal on the formatting of the message ;-).  Thanks in advance,  Yannick
32802
My .tex file:  \documentclass[a4paper,twoside,portrait,12pt,openright,final,pdflatex]{report} \usepackage[bindingoffset=8mm]{geometry} \usepackage[T1]{fontenc} \usepackage{arabtex} \usepackage{utf8} \usepackage{graphicx} \usepackage{float}  \usepackage{caption} \captionsetup{font=small,labelfont=bf} \setcounter{secnumdepth}{3} \usepackage{fixltx2e}  \usepackage{paralist}  \usepackage{hyperref} \hypersetup{pdftex,linktocpage=true,bookmarks=true,colorlinks=true,citecolor=blue,filecolor=black,linkcolor=blue,urlcolor=black,pdfauthor={Ayman Elmasry},pdftitle={Algorithmic Form Generation: A Thermal Building Envelope Design Approach}} \usepackage[all]{hypcap} \usepackage{lipsum}  \begin{document}  \lipsum[1-20]  \end{document}   I compile with pdflatex, and I get this error:  (/usr/local/texlive/2011/texmf-dist/tex/latex/caption/caption.sty (/usr/local/texlive/2011/texmf-dist/tex/latex/caption/caption3.sty Runaway argument? {\caption@CheckCommand \@makecaption {\long \def \@makecaption ##1##2\ETC. ! Paragraph ended before \@gobble was complete. &lt;to be read again&gt;                     \par  l.901         \unskip\kern-2\captionindent\par   When I comment out:  %\usepackage{caption} %\captionsetup{font=small,labelfont=bf}   ... I get an output PDF file with no problems.
43449
Recently, I asked  question, about how to let bullets appear in a frame in a Latex Beamer document.  How would I do this with pictures? Say that I want a slide which contains one graph in the upper half and after clicking another graph appears in the lower half. The answer to my previous question does not help in this case, because there is no itemize/enumerate environment. Any help is appreciated!
109735
I want to put three figures inside a multi-figure with a single caption. If you imagine a 2x2 table, I want to place the three figures in three of the table cells, and the caption in the remaining cell.   Each subfigure should have its own label, and small captions (like (a), (b), and (c), to number the figures inside the panel). Then inside the caption for the whole figure, I want to reference the subfigures, but without using the figure number (that is, just (a) instead of Fig.3(a)), but outside the panel, I'll reference the subfigures as Fig.3(a), etc.  For example,  \begin{figure} \centering     \begin{subfigure}{.4\textwidth}         \centering         \includegraphics[width=\linewidth]{fig_a.pdf}         \caption{}\label{fig:fig_a}     \end{subfigure} %     \begin{subfigure}{.4\textwidth}         \centering         \includegraphics[width=\linewidth]{fig_b.pdf}         \caption{}\label{fig:fig_b}     \end{subfigure} %     \begin{subfigure}{\textwidth}         \centering         \includegraphics[width=\linewidth]{fig_c.pdf}         \caption{}\label{fig:fig_c}     \end{subfigure} \caption{Some general caption of all the figures. In (\subref{fig:fig_a}) you can see a green square....} \end{figure}   But this puts two figures ((a) and (b)) side by side on the first row, then (c) alone on the second row, and the caption appears below. The second row has much space unused. The following is a picture of what I expect to get:    How can I do this?
52749
The solution outlined for each of the following two posts appears to conflict with the hyperref package.         Here is a MWE.  The desired output for the example is  1. Outer 2.1. This is line 2.1, in block 2.  2.2. Inner again 3. Outer again 4. Let’s end here   This output is indeed produced by the LaTeX source below, but if I uncomment the \usepackage{hyperref} line in the header, LaTeX gives me an error just after the \skipitem command, as described in the inline comment below:  \documentclass{article}  % \usepackage{hyperref} % if we uncomment the above line, we get an error as described below  \usepackage{enumitem}  \newlist{steps}{enumerate}{9} \setlist[steps]{itemindent=0pt} \setlist[steps,1]{label=\arabic*.,ref=\arabic*} \setlist[steps,2]{label=\arabic{stepsi}.\arabic*.,ref=\arabic{stepsi}.\arabic*}  \makeatletter \newcommand{\skipitem}{\refstepcounter{\@enumctr}} \makeatother  \begin{document} \begin{steps} \item Outer   \skipitem   % If we uncomment the \usepackage{hyperref} line in the header,   % we get the following error after the \skipitem above   %    % ./tmp.tex:20: Missing number, treated as zero.   % &lt;to be read again&gt;    %   \c@0.0ptxcii    % l.20   \skipitem   % \item[] \label{blockA}   \label{blockA}\item[]   \begin{steps}   \item\label{lineB} This is line~\ref{lineB}, in block~\ref{blockA}.   \item Inner again   \end{steps} \item Outer again \item Let's end here \end{steps}  \end{document}   Can someone help me work around this conflict, so I can use hyperref with this use of enumitems and refstepcounter?  Thanks.  (Note: smaller working examples are possible, but they give different error messages.  I'm hoping to get the current example working.)
108933
I want to have a List of Figures in my Beamer presentation.  I spent some time searching the web for a solution and only found desperate people telling others that it's not possible, i.e.  or .  I also made some experiments on my own, i.e. "abuse" tocloft to do the job. However, even \usepackage{tocloft} causes pdflatex to fail with ! LaTeX Error: \l@section undefined. (and lying to tocloft by defining the command as empty beforehand doesn't to any good either).  I can't really see why it should be that difficult to make a List of Figures in beamer, since \tableofcontents works flawlessly.   I'm not afraid of doing some coding on my own, but I'm not deep enough into TeX to really understand the magic behind the "List of Figures", "Table of Contents" and alike.  Is anyone out there having suggestions or links that might help me figure this out?  \documentclass{beamer}  % uncomment the following line % to get the error message % `! LaTeX Error: \l@section undefined.`  %\usepackage{tocloft}   % uncomment the following lines INSTEAD % to lie to tocloft % and get the next error message  %\makeatletter %\newcommand\l@section{} %\makeatother %\usepackage{tocloft}  \begin{document}  \begin{frame}{A frame} \begin{figure} \mbox{A} \caption{An 'A'} \end{figure} \end{frame}  \begin{frame}{List of Figures} \listoffigures \end{frame}  \end{document}   EDIT: Solution  Starting from Marco Daniels answer to my question, I modified his code to reflect my needs. Here is what I came up with. Please feel free to comment, improve and reuse this.  \RequirePackage{ifthen}  \makeatletter  \AtEndDocument{%   \clearpage   \beamer@tempcount=\c@page\advance\beamer@tempcount by -1%   \if@filesw   \newwrite\tf@lof   \immediate\openout\tf@lof\jobname.lof\relax   \newwrite\tf@lot   \immediate\openout\tf@lot\jobname.lot\relax   \fi }  \long\def\beamer@makecaption#1#2#3#4{%   \def\insertcaptionname{\csname#1name\endcsname}%   \def\insertcaptionnumber{\csname the#1\endcsname}%   \edef\insertframenumber{\theframenumber}%   \ifthenelse{\equal{#3}{\empty}}{%       \def\insertlistcaption{#2}%   }{%     \def\insertlistcaption{#3}%   }   \def\insertsource{#4}%   \def\insertcaption{#2}%   \ifthenelse{\equal{#1}{figure}}{%       \addtocontents{lof}{\protect\listoffigureformat{\insertcaptionnumber}{\insertlistcaption}{\insertframenumber}{\insertsource}}{}{}%   }{}   \ifthenelse{\equal{#1}{table}}{%       \addtocontents{lot}{\protect\listoftableformat{\insertcaptionnumber}{\insertlistcaption}{\insertframenumber}}{}{}%   }{}   \nobreak\vskip\abovecaptionskip\nobreak   \sbox\@tempboxa{\usebeamertemplate**{caption}}%   \ifdim \wd\@tempboxa &gt;\hsize   \usebeamertemplate**{caption}\par   \else   \global \@minipagefalse   \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%   \fi   \nobreak\vskip\belowcaptionskip\nobreak% }  \def\listoffigureformat#1#2#3#4{%   \makebox[2ex][r]{#1}%   \hspace{1ex}%   {\usebeamercolor[fg]{bibliography entry author} #2}%   \ifthenelse{\equal{#4}{\empty}}{}{ -- #4}%   \dotfill%   \makebox[2ex][r]{#3}\par% } \def\listoffigures{%   \setlength{\leftskip}{3ex}   \setlength{\parindent}{-3ex}   \@starttoc{lof}% } \def\listoftableformat#1#2#3{\makebox[2ex][r]{#1}\hspace{1ex}#2\dotfill\makebox[2ex][r]{#3}\par} \def\listoftables{%   \setlength{\leftskip}{3ex}   \setlength{\parindent}{-3ex}   \@starttoc{lot}% }  \long\def\@caption#1[#2]#3{   \par\nobreak   \begingroup     \@parboxrestore     \if@minipage       \@setminipage     \fi     \beamer@makecaption{#1}{\ignorespaces #3}{\ignorespaces #3}{\ignorespaces #2}\par\nobreak     \endgroup}  \makeatother
71079
I am trying to generate pseudocode in both presentation slides and handout using Beamer.  I can use the listings package in the slides by adding [fragile] to the frame environment.  However, how can I use the lstlistings environment when in article mode?  Below is a minimal example.   File: slides.tex   \documentclass{beamer} \input{mwe-body.tex}   File: notes.tex  \documentclass{article} \usepackage{beamerarticle} \input{mwe-body.tex}   File: mwe-body.tex  \usepackage{listings} \begin{document}  \begin{frame}[fragile] \frametitle{Frame 1} test 1 \begin{lstlisting}     int sum = 0; \end{lstlisting} \end{frame}  \mode&lt;article&gt;{ test 2  \begin{lstlisting}     int sum = 1; \end{lstlisting} } \end{document}   pdflatex slides.tex works to generate the presentation.   pdflatex notes.tex has the following error:   Runaway argument? ! Paragraph ended before \lst@next was complete. &lt;to be read again&gt;                \par l.18 }   Any solutions?
15262
So I am trying to insert a functioning tikz image into a beamer project and it keeps giving me an error.  \documentclass{beamer} \usetheme{Warsaw} \usepackage{tikz} \usetikzlibrary{shapes,trees,positioning} \begin{document} \begin{frame}{Examples} \begin{center} \begin{tikzpicture}[level/.style={sibling distance=60mm/#1},minimum size=20pt,scale=.8, every node/.style={transform shape}] % If you want to scale the picture insert ``scale= (something), every node/.style={transform shape}'' Ex:[level/.style={sibling  distance=60mm/#1},minimum size=20pt,scale=.8, every node/.style={transform shape}] would  scale to 80% of original size \node [circle,draw] (z){\textbf{$u$}}   child {node [circle,draw,fill=black,text=white] (a) {\textbf{$v$}}     child {node [circle,draw,fill=black,text=white] (c) {}}     child {node [circle,draw] (d) {}     }   }   child {node [circle,draw,fill=black,text=white] (b) {\textbf{$w$}}     child {node [circle,draw,fill=black,text=white] (e) {}}      child {node [circle,draw] (f) {}}   }; \end{tikzpicture} \end{center} \end{frame} \end{document}   The error I keep getting is:   ./SDN Presentation.tex:61: Illegal parameter number in definition of \iterate. &lt;to be read again&gt;                     1 l.61 \end{frame}   If I delete the /#1 at the beginning of the picture I get an image though not the one I am looking for.  Not sure how to fix this issue since the code works for the amsart document class.
23876
I never used beamer in LaTeX, could anyone suggest how can i get the output using beamer, it will helpful for to proceed my project?