Tag Info

Hot answers tagged

6

The bounty has already been awarded, but here's the beamer way: beamer uses six horizontal lengths: \beamer@leftsidebar and \beamer@rightsidebar store the (horizontal) sizes of the side bars. \beamer@leftmargin and \beamer@rightmargin store the distance between sidebar and text. The macros \Gm@lmargin and \Gm@rmargin store the distance from the edge of ...


5

For the usage of listings you have to use the fragile option for the frame: \documentclass{beamer} \usepackage{listings} \begin{document} \begin{frame}[fragile] \begin{lstlisting} Hello world \end{lstlisting} \end{frame} \end{document} Further information can be at found ...


4

A simple solution is change the \hoffset: \documentclass{beamer} \usetheme{Berkeley} \begin{document} \section{foo} \begin{frame}[t] Text \end{frame} \hoffset=-.8in % no left margin \begin{frame}[plain,t] Text \end{frame} \hoffset=0in % restore left margin \begin{frame}[t] Text \end{frame} \end{document} Edit Determine automatically ...


4

If you just want to move the tableofcontents into the main text area you need to re-set the following three templates: \setbeamertemplate{section in toc}{\inserttocsection} \setbeamertemplate{subsection in toc}{\inserttocsubsection} \setbeamertemplate{subsubsection in toc}{\inserttocsubsubsection} However, since the Bergen theme is designed specifically ...


3

The template has a fixed length for that rule, which doesn't automatically adjust with the paper size. After changing the paper width and height issue \usepackage{etoolbox} \makeatletter \patchcmd{\beamer@@tmpl@headline}{wd=47in}{wd=71in}{}{} \makeatother to change the built in length of 47in to 71in, or whatever size you want. Full latex file: ...


3

\documentclass{beamer} \usepackage{tikz} \usepackage{graphicx} \begin{document} {\usebackgroundtemplate{% \begin{tikzpicture}[remember picture, overlay]% \node at (current page.center) {\includegraphics[width=.1\paperwidth,height=.1\paperheight,keepaspectratio]{tiger}};% \end{tikzpicture}} \begin{frame} \end{frame}} ...


3

\documentclass{beamer} \usepackage[T1]{fontenc} \usefonttheme[onlymath]{serif} \renewcommand\sfdefault{cmbr} \begin{document} \begin{frame} Some text, $x^2 + y^2 = r^2$ \end{frame} \end{document}


2

I was with the same problem. But I figured it out you could use the "\bullet" command and change its color: \begin{itemize} \item[\textcolor{green}{$\bullet$}] Pro: \item[\textcolor{red}{$\bullet$}] Con: \item[\textcolor{blue}{$\bullet$}] Neutral: \end{itemize} Result: If you want to create a new command with this \textcolor{blue}{$\bullet$} it ...


2

Probably this is what you want. \documentclass[12pt]{beamer} \usetheme{Berkeley} \usepackage{graphicx} \usepackage{booktabs} \usepackage[english]{babel} \logo{\includegraphics[height=1cm]{example-image-a}} \title[XXXX]{XXXXX} \author{Maryam} \institute[AI] {AI Lab \\ % Your institution for the title page \medskip \textit{xx@xx.com} % Your email address } ...


2

adjustbox package has a min size option which saves some typing: \documentclass{beamer} \usepackage{tikz,adjustbox} \begin{document} \usebackgroundtemplate{% \tikz[overlay,remember picture]% \node[at=(current page.center)]{% \adjustbox{min size={\paperwidth}{\paperheight}}% {\includegraphics{PM5644.jpg}}};} ...


1

You can use the package tcolorbox which provides several keys for customization of margins, padding and so on. Here are few examples: \documentclass{beamer} \usepackage{lmodern} \usepackage[most]{tcolorbox} \tcbset{beamer,colback=blue!20!white,colframe=blue!75!black} \begin{document} \begin{frame}{Some boxes} \begin{tcolorbox}[title=Title] block text ...


1

Have a look at section 8.2.4 of the beamer manual which says: Inside this template, the following inserts are useful: \insertslidenavigationsymbol Inserts the slide navigation symbols, that is, the slide symbols (a rectangle) together with arrows to the left and right that are hyperlinked. \insertframenavigationsymbol Inserts the frame ...


1

I have no idea if this is the correct way to do it (I don't know how to write in Chinese), but it appears to work for me. Note that I'm on Ubuntu with TeX Live 2014 and am using LyX 2.1.1. Before trying this, first make sure you can export LyX's Chinese manuals as a test that you have all of the prerequisites. Open doc/zh_CN/Intro.lyx and ...


1

Without MWE, I can only bet your table of contents is created with the command \tableofcontents If so, putting those two lines in your preamble should do the trick \setbeamercolor{section in toc}{fg=gray} \setbeamercolor{subsection in toc}{fg=red} You can of course change "gray" and "red" to any color you like. The commands are pretty clear for ...



Only top voted, non community-wiki answers of a minimum length are eligible