Document Classes ⇒ trouble removing indentation on beamer slides
trouble removing indentation on beamer slides
Here is the code for a slide that is having a problem:
\section{Title}
\begin{frame}
\frametitle{Title}
\begin{columns}
\begin{column}[l]{.45\textwidth}
First Column \\
\begin{itemize}
\item one \\
\item two \\
\item three
\end{itemize}
\end{column}
\begin{column}[r]{.45\textwidth}
Second Column \\
\begin{itemize}
\item one \\
\item two \\
\item three
\end{itemize}
\end{column}
\end{columns}
\end{frame}
First Column, Second Column, and one in both columns wind up indented. How do I stop this? I don't want anything indented.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Re: trouble removing indentation on beamer slides
welcome to the board!
Your code is not compilable, that allows testing only if a reader extends it to a complete document. Even then we don't know your packages and settings and used beamer themes. I made your code compilable for me and tested it, I could not see for example that "First Column" is indented, it begins at the left margin.
Is "First Column" indented in relation to other text of your document? Or do you just want to change the margins like the left one?
Or do you want just the item label bullets to be aligned to the left of the column title?
Stefan
Re: trouble removing indentation on beamer slides
Here is what I am using:
\documentclass[11pt]{beamer}
\usepackage{amsmath,amssymb}
\usepackage{graphicx,times,cite}
\usetheme{Szeged}
I've tried changing the theme and it doesn't help. I've also tried removing all of the packages but graphicx and that didn't help either.
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
trouble removing indentation on beamer slides
do you get the same behavior also with this minimal working example? I don't get the indentation described by you.
Code: Select all
\documentclass[11pt]{beamer}
\usepackage{amsmath,amssymb}
\usepackage{graphicx,times,cite}
\usetheme{Szeged}
\begin{document}
\section{Title}
\begin{frame}
\frametitle{Title}
\begin{columns}
\begin{column}[l]{.45\textwidth}
First Column \\
\begin{itemize}
\item one \\
\item two \\
\item three
\end{itemize}
\end{column}
\begin{column}[r]{.45\textwidth}
Second Column \\
\begin{itemize}
\item one \\
\item two \\
\item three
\end{itemize}
\end{column}
\end{columns}
\end{frame}
\end{document}
Re: trouble removing indentation on beamer slides
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
trouble removing indentation on beamer slides
If you want to have an explanation post a compilable minimal working example.
Once a problem can be reproduced it's usually not hard to fix.
Stefan
Re: trouble removing indentation on beamer slides
\documentclass[11pt]{beamer}
\usepackage{amsmath,amssymb}
\usepackage{graphicx}
\usepackage{times,cite}
\usetheme{Szeged}
\section{Univariate vs Multivariate}
\begin{frame}
\frametitle{Univariate vs Multivariate Normal Distribution}
\begin{columns}
\begin{column}[l]{.45\textwidth}
Univariate \\ \\
$\frac{1}{\sqrt{2 \pi \sigma^{2}}} e^{\frac{(x - \mu)^{2}}{2 \sigma^{2}}}$ \\
\begin{itemize}
\item intervals
\item $\mu$ \mbox{ is a scalar} \\
\item \Sigma \mbox{ is a scalar} \\
\end{itemize}
\end{column}
\begin{column}[r]{.45\textwidth}
Multivariate \\ \\
$\frac{1}{(2\pi)^{p/2}\ |\Sigma|^{1/2}} e^{-\frac{1}{2}(x-\mu)^{T}\Sigma^{-1}(x-\mu)}$ \\
\begin{itemize}
\item ellipsoids
\item $\mu$ \mbox{ is a vector} \\
\item \Sigma \mbox{ is a matrix} \\
\end{itemize}
\end{column}
\end{columns}
\end{frame}
\end{document}
I've tried commenting out packages and switching the style already. The above code is working but when I move the first items in the lists to last, where I originally wanted them, everything goes haywire.
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
trouble removing indentation on beamer slides
\Sigma has to be written in math mode: $\Sigma$. Such errors can cause other problems. \mbox is not necessary here. Here is the corrected code:
Code: Select all
\documentclass[11pt]{beamer}
\usepackage{amsmath,amssymb}
\usepackage{graphicx}
\usepackage{times,cite}
\usetheme{Szeged}
\begin{document}
\section{Univariate vs Multivariate}
\begin{frame}
\frametitle{Univariate vs Multivariate Normal Distribution}
\begin{columns}
\begin{column}[l]{.45\textwidth}
Univariate
$\frac{1}{\sqrt{2 \pi \sigma^{2}}} e^{\frac{(x - \mu)^{2}}{2 \sigma^{2}}}$
\begin{itemize}
\item $\mu$ is a scalar
\item $\Sigma$ is a scalar
\item intervals
\end{itemize}
\end{column}
\begin{column}[r]{.45\textwidth}
Multivariate
$\frac{1}{(2\pi)^{p/2}\ |\Sigma|^{1/2}} e^{-\frac{1}{2}(x-\mu)^{T}\Sigma^{-1}(x-\mu)}$
\begin{itemize}
\item $\mu$ is a vector
\item $\Sigma$ is a matrix
\item ellipsoids
\end{itemize}
\end{column}
\end{columns}
\end{frame}
\end{document}