Document Classes ⇒ trouble removing indentation on beamer slides
trouble removing indentation on beamer slides
I am in the process of making a beamer presentation but everything seems to indent for some reason.
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.
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.
- Stefan Kottwitz
- Site Admin
- Posts: 10308
- Joined: Mon Mar 10, 2008 9:44 pm
Re: trouble removing indentation on beamer slides
Hi Cleopatra,
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
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
LaTeX.org admin
Re: trouble removing indentation on beamer slides
First Column and the first bullet point are indented with respect to the second two bullet points. I want all four of them to start on the left of the page. If I add a fourth bullet point, I get the first two bullet points and First Column indented with respect to the last two. Can I ask tex to not indent anything at all in the entire document? I'm really at wit's end here.
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.
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: 10308
- Joined: Mon Mar 10, 2008 9:44 pm
trouble removing indentation on beamer slides
Hi,
do you get the same behavior also with this minimal working example? I don't get the indentation described by you.
Stefan
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}
LaTeX.org admin
Re: trouble removing indentation on beamer slides
That works fine for me. But when I enter my stuff into that it indents again. But then I moved the point without any symbols to first and now everything works properly. I'm very confused but it at least seems to be resolved, even if the points aren't in the order I want. Is it something to do with having \mu and \sigma in my items?
- Stefan Kottwitz
- Site Admin
- Posts: 10308
- Joined: Mon Mar 10, 2008 9:44 pm
trouble removing indentation on beamer slides
Since the problem is caused by code you didn't show it could only be guessed.
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
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
LaTeX.org admin
Re: trouble removing indentation on beamer slides
Here it is:
\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.
\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: 10308
- Joined: Mon Mar 10, 2008 9:44 pm
trouble removing indentation on beamer slides
The code above shows several errors. Don't use \\ that much. It's rarely needed. Use empty lines to produce a paragraph break.
\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:
Stefan
\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}
LaTeX.org admin
Re: trouble removing indentation on beamer slides
Thanks!! I'm just learning tex, so you're a godsend.