3

Problem

Given the beamer class.

Can I remove indention globally?

\setlength{\parindent}{0em} didn't work out.

Example

Here's a minimal example:

\documentclass{beamer}
\begin{document}
\begin{frame}
\visible<1->{
Some formula:
$$a^2+b^2=c^2$$}
\visible<2->{
More formulas:
$$z=a+ib=re^{i\phi}$$
Some text.}
\end{frame}
\end{document}
  • 1
    bemaer doesn't indent text by default. Can you provide a simple document showing this indentation you want to suppress? – Gonzalo Medina Sep 4 '15 at 2:16
  • @GonzaloMedina: Oh so it might be hidden a some template I loaded. Unfortunately, it will be hard to track back where. Is it possible to set it manually? – C-Star-W-Star Sep 4 '15 at 2:24
  • It depends on what the settings in that template are. Can you provide a link to the template? – Gonzalo Medina Sep 4 '15 at 2:25
  • I got a miniexample. I'll add it to the question now. – C-Star-W-Star Sep 4 '15 at 2:30
4

Beware of superfluous empty spaces (a line break in the code tantamount to a blank space); I commented out those spaces below:

\documentclass{beamer}
\begin{document}
\begin{frame}
\visible<1->{%
Some formula:
\[a^2+b^2=c^2\]
}%
\visible<2->{%
More formulas:
\[z=a+ib=re^{i\phi}\]
Some text.}
\end{frame}
\end{document}

enter image description here

By the way, don't use $$...$$ in LaTeX documents; use \[...\] instead; see Why is \[ ... \] preferable to $$ ... $$?.

|improve this answer|||||
  • When exactly do I need to take care of these? If it ends with { or }? – C-Star-W-Star Sep 4 '15 at 2:39
  • 1
    In your case, following the open brace for an argument or right after the closing brace of an argument. – Gonzalo Medina Sep 4 '15 at 2:41
  • And what about the lines in between? – C-Star-W-Star Sep 4 '15 at 2:44
  • @Freeze_S Which lines in between? Do you mean one or more blank lines in the code? In that case, there's no problem since in text mode they tantamount to \par (ending a paragraph.) – Gonzalo Medina Sep 4 '15 at 2:48
  • 1
    @Freeze_S perhaps this can be useful: tex.stackexchange.com/q/7453/3954. – Gonzalo Medina Sep 4 '15 at 3:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.