I would like to remove the headline and footline from a single frame define in my .sty with:  \newcommand{\frontcover}{    \beamer@MyStyle@covertrue    {       \usebackgroundtemplate{\pgfuseimage{frontcover}}       \setbeamertemplate{headline}{}       \setbeamertemplate{navigation symbols}{}       \frame{}     }  \beamer@cMyStyle@coverfalse  }   and called in my .tex with \frontcover. The problem is that the headline is removed but a blank space remains. How can I remove both headline and space ? I tried to add \vspace*{-2.65ex} but doesn't seem to change anything.  Thanks
120523
I'm using beamer and the theme Copenhagen. I would like to remove the navigation menu (the list of section mames shown at the top of each slide) from the first (first page) and from the summary slides.  How can I do that?
86874
I wrote my diploma in LaTeX using Lyx, but now I have big problem to fit the output to universities' standards.  I need to remove Part/Section... title from header, I found that using:   \pagestyle{empty}   does the job, but it also removes page numbers, and I spent more than an hour trying to fit them together, especially that in some pages I need no page numbers, while in others has to start from some number, so I'm using:  \setcounter{page}{3}   which also conflicts with the first command.  Any help will be highly appreciated, because I need to print it today, thank you in advance.
48942
I'd like to do this for some of my sections but not all. I'd also like to maintain the current spacing; for example, if the vspacing is 1cm from section title to body text (at 100% zoom), then I'd like it to be 1cm from the subtitle to body text.  Thanks.
30440
I am using the default theme, and use the following to customize the footline,  \useoutertheme{infolines} \setbeamertemplate{footline}{\hspace*{.5cm}\scriptsize{\insertshorttitle \hspace*{50pt} \hfill\insertframenumber\hspace*{.5cm}}\\ \vspace{9pt}}    I don't like it also appears on the title page. Is there a simple way not to show it on the first page?
39593
I want to have an image take up as much as possible of the content area in a beamer presentation, without overlapping the title, the sidebars, or the footers. How can I achieve this?  The code below gives an example of what goes wrong using \includegraphics and setting the width and height from \textwidth and \textheight -- if you try it, you'll see that the footer at the bottom is covered.  One can, of course, do something like height=0.9\textheight but that is annoying and not particularly robust if one changes themes... I'm looking for a more elegant solution.  \documentclass{beamer} \mode&lt;presentation&gt;{   \usetheme{Marburg} } \usepackage[utf8x]{inputenc}  \begin{document} \begin{frame}{Header}{Sub title}   \includegraphics[width=\textwidth,height=\textheight]{tmp.jpg} \end{frame} \end{document}
121792
How do I make the space under footnotes disappear? And to space over the footnote's bar?    Code:  \documentclass[12pt,french]{report} \usepackage{mathptmx} \usepackage{helvet} \usepackage{courier} \usepackage[T1]{fontenc} \usepackage[cp1250]{inputenc} \usepackage[a4paper]{geometry} \geometry{verbose,margin=1in,headheight=12pt,headsep=25pt} \usepackage{fancyhdr} \pagestyle{fancy} \setlength{\parskip}{\medskipamount} \setlength{\parindent}{0pt} \usepackage{babel} \makeatletter \addto\extrasfrench{%    \providecommand{\og}{\leavevmode\flqq~}%    \providecommand{\fg}{\ifdim\lastskip&gt;\z@\unskip\fi~\frqq}% } \makeatother \usepackage{latexsym} \usepackage{pifont} \usepackage{color} \usepackage{float} \usepackage{textcomp} \usepackage{graphicx} \usepackage{setspace} \usepackage[unicode=true,  bookmarks=true,bookmarksnumbered=true,bookmarksopen=false,  breaklinks=true,pdfborder={0 0 0},backref=false,colorlinks=false]  {hyperref} \hypersetup{pdftitle={tito},  pdfauthor={abc},  pdfkeywords={kiko}} \usepackage{lipsum}  \makeatletter \usepackage{multicol} \usepackage{fancyhdr} \usepackage{multirow} \usepackage{longtable} \setcounter{secnumdepth}{4} \setcounter{tocdepth}{4} \usepackage{array} \newcommand{\ts}{\textsuperscript} \renewcommand\theparagraph{\alph{paragraph}.} \renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%                                     {3.25ex \@plus1ex \@minus.2ex}%                                     {0.5ex \@plus .2ex}%                                     {\normalfont\normalsize\bfseries}} \renewcommand*\l@paragraph{\@dottedtocline{4}{10em}{2em}}  \def\thickhrulefill{\leavevmode \leaders \hrule height 1ex \hfill \kern \z@}  \def\@makechapterhead#1{% \vspace*{10\p@}% {\parindent \z@ {\reset@font \usefont{OT1}{phv}{m}{n} \LARGE Chapitre \thechapter\par\nobreak}% \par\nobreak \vspace*{30\p@} \interlinepenalty\@M \usefont{OT1}{ptm}{b}{n} {\raggedright \Huge #1}% \par\nobreak \vskip 20\p@ \hrule height 1pt \par\nobreak \vskip 45\p@ }}  \def\@makeschapterhead#1{% \vspace*{10\p@}% {\parindent \z@ {\raggedleft \reset@font \scshape \vphantom{\@chapapp{} \thechapter} \par\nobreak}% \par\nobreak \vspace*{30\p@} \interlinepenalty\@M \usefont{OT1}{ptm}{b}{n} {\raggedright \Huge #1}% \par\nobreak \par\nobreak \vskip 45\p@ }}  \lhead{\nouppercase\leftmark} \chead{} \rhead{} \lfoot{} \cfoot{\thepage} \rfoot{} \renewcommand{\footrulewidth}{0.4pt}  \pretolerance=10000 \hyphenpenalty=10000 \exhyphenpenalty=10000  \AtBeginDocument{   \def\labelitemi{\Pisymbol{psy}{183}}   \def\labelitemii{\(\rhd\)}   \def\labelitemiii{\(\rhd\)}   \def\labelitemiv{\(\ast\)} } \makeatother  \begin{document} \chapter{Chap} \lipsum[1]\footnote{\lipsum[1]} \lipsum[1-8] \end{document}
4829
I have a webpage with an elastic layout that changes its width if the browser window is resized.  In this layout there are headlines (h2) that will have a variable length (actually being headlines from blogposts that I don't have control over). Currently - if they are wider than the window - they are broken into two lines.  Is there an elegant, tested (cross-browser) solution - for example with jQuery - that shortens the innerHTML of that headline tag and adds "..." if the text would be too wide to fit into one line at the current screen/container width?
124185
I'm trying to create my first presentation with the beamer class. I saw that is possible to change the color (for example) of a part of text with overlays. I'm using {\alert{&lt;...&gt;}{text}} to highlight some constants inside a formula, and I noticed some issues:   To have the frame title in the index on the right (for the Goettingen theme) I have to insert a \section{...} with the same title. Is it correct? Because this section seems "useless" to me, since there is already the frame title (however, if this is the case, I'll stick with it). When I use {\alert{&lt;2-&gt;}{text}} it produce another slide inside the frame; this is fine, since it works in the presentation. However, this command creates another title in the index on the right, and this will be shown even in the presentation. Is there a way to have only one item per, let's say, frame in the index created by the theme?   This is my code:  \documentclass{beamer} \let\Tiny=\tiny  \usetheme{Goettingen}  \title{Title} \author{Me} \date{\today}  \begin{document} \begin{frame}     \titlepage \end{frame} \begin{frame}     \frametitle{First frame}     \section{First frame}     \begin{itemize}         \item Item 1         \[{\alpha = \alert&lt;2-&gt;{k_1}}\]         \item Item 2         \[{\alpha = \alert&lt;2-&gt;{k_2}}\]     \end{itemize} \end{frame} \begin{frame}     \frametitle{Second frame}     \section{Second frame}     \begin{itemize}         \item Item 1         \[{\alpha = \alert&lt;2-&gt;{k_1}}\]         \item Item 2         \[{\alpha = \alert&lt;2-&gt;{k_2}}\]     \end{itemize} \end{frame} \end{document}   Thanks to everyone!
76850
Beamer infolines themes, like CambridgeUS, insert the titles of the current section and subsection in the headline. These titles appear to be clickable (the screen pointer changes as if they were so) but nothing happens when one clicks them.   Is there a way to link the headline titles to the first frame of the corresponding section or subsection? Something like this already works on the theme footline: clicking on the presentation title takes you to the title page.   Edit: MWE  \documentclass{beamer} \usetheme{CambridgeUS}  \setbeamertemplate{navigation symbols}{} \title{Click on Headline} \author{A.~U.~Thor} \institute{X-University} \date{2015} \begin{document} \begin{frame}   \titlepage \end{frame} \begin{frame}[t]{Contents}   \tableofcontents[subsectionstyle=hide]  \end{frame} \section{Section 1} \begin{frame}{Section 1}   \centering \Large Section 1 \end{frame} \begin{frame}[t]{Section 1: Contents}   \tableofcontents[currentsection,hideothersubsections] \end{frame} \subsection{Subsection 1.1} \begin{frame}{Frame 1.1.1}   A frame of subsection 1.1 \end{frame} \begin{frame}{Frame 1.1.2}   Another frame of subsection 1.1 \end{frame}   \subsection{Subsection 1.2} \begin{frame}{Frame 1.2.1}   A frame of subsection 1.2 \end{frame} \begin{frame}{Frame 1.2.2}   Another of subsection 1.2 \end{frame} \section{Section 2} \begin{frame}{Section 2}   \centering \Large Section 2 \end{frame} \begin{frame}[t]{Section 2: Contents}   \tableofcontents[currentsection,hideothersubsections] \end{frame} \subsection{Subsection 2.1} \begin{frame}{Frame 2.1.1}   A frame of subsection 2.1 \end{frame} \end{document}
43204
When using the beamer \visible command inside a tabular environment, beamer adds an extra vertical space before the text. For example, in the following code, beamer adds an empty line before the word World in the second row. Can this be avoided?  \documentclass{beamer} \begin{document} \begin{frame}   \begin{tabular}{|p{1cm}|p{1cm}|}     \hline     1 &amp; Hello World \\     \hline     2 &amp; \visible&lt;2-&gt;{Hello World} \\     \hline   \end{tabular} \end{frame} \end{document}
67415
Here is a reduced example of my code.  I am attempting to restyle the background of the section in head/foot and subsection in head/foot in the CambridgeUS theme to a gradient background colour.  Right now the gradient background works if I were to specify say beamer@frametitleshade in my pgf declaration.  I can't find and can't guess the correct keywords to get this to affect the background of the section in head/foot nor the subsection in head/foot, I've tried things like sectioninheadfootshade and variants.    \documentclass[hyperref={pdftex}]{beamer} \useoutertheme{shadow} \definecolor {Burgandy}{HTML}{660033} \definecolor {Crimson}{HTML}{990033} \definecolor {Orange}{HTML}{ff9933}  \usetheme{CambridgeUS}  \colorlet{titleleft}{Burgandy} \colorlet{titlemiddle}{Crimson} \colorlet{titleright}{Orange}  \pgfdeclarehorizontalshading[titleleft,titlemiddle,titleright]       {beamer@frametitleshade}{\paperheight}{     color(0pt)=(titleleft);     color(0.6\paperwidth)=(titlemiddle);     color(\paperwidth)=(titleright)   }  \title[Short Title]{Long title} \subtitle{Sub title} \date{\today}  \begin{document}     \begin{titlepage}     \end{titlepage}      \begin{frame}{Slide 1}           Content     \end{frame} \end{document}
64712
I have:  \documentclass[a4paper,11pt]{report}   with no special customisation.  In one page, at the end of a section, I have a big figure with two paragraphs of text below it, and these two paragraphs are not enough to fill up the rest of the page.  When I use the \documentclass as above I get some extra white space at the end of the page, which is fine: the vertical spacing from the figure caption and between the two paragraphs is standard and correct.  But if I switch to:  \documentclass[a4paper,11pt,twoside]{report}   I get extra blank space between the figure caption and the 1st paragraph and also between the 1st and 2nd paragraph.  I want to use twoside to set the headings with fancyhdr. How can I get rid of these ugly white spaces?
112642
I created a simple latex beamer document shown below:  \documentclass{beamer}  \usepackage{default}  \begin{document}  \begin{frame}[allowframebreaks]\frametitle{Pages}     \begin{itemize}         \item First page\footnote{some text}     \end{itemize} \newpage     \begin{itemize}         \item next page     \end{itemize} \end{frame} \end{document}   It uses a frame with the attribute allowframebreaks.  There is a footnote on the first page, but it is printed on the last page of the frame sequence. I know that this is the specified target behaviour, but is it possible to change this? I would like to have the footnote on the same slide where it is supposed to be.  Thank You.
50115
I am wondering whether we can use the subsection part of the beamer infolines outer theme headline (the right half) to show the miniframe bullets of the current section. Assuming the section has three frames, the headline would look like this  First frame of the section:         Section Title @oo        Frame title    Next frame of the section:         Section Title o@o        Frame title    and so on.  I guess this can be done by hacking around \dohead, but I couldn't figure out how to tweak things. Any help will be greatly appreciated.
83994
I noticed an unexpected different line spacing of the titlepage what drives me crazy. The left page is the MWE, the right page without the \\ in front of Name.  \documentclass{scrartcl}  \begin{document}  \centering \Huge \textbf{UUUUUUUU UUUUUUUUU UUUUUUUUUUUUU UUUUUUUUUUUUU} \vspace{\baselineskip}\\ \textbf{UUUUUUUU UUUUUUUUU UUUUUUUUUUUUU UUUUUUUUUUUUU} {\rmfamily\Large \vspace{5\baselineskip}\\Name}  \end{document}     Any idea what causes this? Thanks alot!  Cheers, Stephan
87889
When compiling with the parameter label as in the MWE, allowframebreaks doesn't work. Why not?  Is there any difference between setting a frame title as a frame argument and by using \frametitle?  \documentclass{beamer} \usetheme{Warsaw} \usepackage{blindtext} \begin{document}  \begin{frame}[allowframebreaks,label=frame1]{Title} %\frametitle{Title} \framesubtitle{Sub-title} \blindtext Text........ Text........ Text........ Text........ Text........ Text........ Text........ Text........ Text........ Text........ Text........ Text........ Text........ Text........ Text........  Text........ Text........ Text........ Text........ Text........  \end{frame}  \end{document}
93791
I'm looking for an easy and robust way to strip all the comments from a listing. My approach (passing \@gobble to the commentstyle key) correctly removes all the one-line comments and block comments. However, the white space left behind by by block comments remains, creating useless gaps in my listing. See the screenshot below (the red rectangle is my emphasis). Any idea?    \documentclass{article}  \usepackage{xcolor} \usepackage[T1]{fontenc} \renewcommand{\ttdefault}{pcr} \usepackage{listings}  \makeatletter \lstset% {%   basicstyle   = \ttfamily,   morecomment  = [l]{//},   morecomment  = [s]{/*}{*/},   frame        = single,   commentstyle = \itshape\color[gray]{.5},   rulecolor    = \color{black},   breaklines, } \makeatother  \usepackage{filecontents} \begin{filecontents*}{sample.c} #include &lt;stdio.h&gt;  /*  block comment taking up white space */ main() {     float fahr, celsius;     float lower, upper, step;     lower   = 0;    /* lower limit of temperature scale */     upper   = 300;  /* upper limit */     step    = 20;   /* step size */     celsius = lower;     printf("\nCelsius\tFahr\n");     while (celsius &lt;= upper)        {         fahr = (9.0/5.0) * celsius+32.0;         printf("%3.0f\t%6.1f\n", celsius, fahr);         celsius = celsius + step;     } } \end{filecontents*}  \begin{document} \makeatletter \lstinputlisting[caption={with comments}]{sample.c} \lstinputlisting[caption={without comments},commentstyle={\@gobble}]{sample.c} \makeatother \end{document}