Text Formattingbeamer | Automatic Indentation

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
latexhelp1
Posts: 141
Joined: Sun Jun 12, 2011 6:30 am

beamer | Automatic Indentation

Post by latexhelp1 »

I have a quotation that I'm showing in beamer. The author and such for the quote is long. I am wondering if there is a way to automatically format at it so it indents and the 2nd line of the quote would be indented to? That is, like an automatic word wrap.

In the following, I'm wondering whether the word multiple could be aligned with Author. Not because there is something special about the word multiple. But, in the .pdf, it is what appears on the 2nd line. And, I'm wondering whether it is possible to have it aligned with the first line text, Author. But to do this in a way that is automatic.

Here is the code. I pray that it is a minimum working example. I'm also attaching the compiled .pdf.

Code: Select all

\documentclass[professionalfont]{beamer}
\mode<presentation>


\begin{document}

\section{Section 1}
\subsection{}

\frame
{
\frametitle{Slide Title}
``Quotation here.''

\vspace{0.1cm}
\hspace{0.25cm}-- Author (2011), \textit{The name of the journal is so long that it occupies multiple lines in the beamer file}
}

\end{document}
Thank you very much for any help you can provide.
Last edited by latexhelp1 on Mon Feb 06, 2012 8:03 pm, edited 2 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

beamer | Automatic Indentation

Post by Stefan Kottwitz »

Hi,

you could use a tabbing or tabular environment. However, here it would be easy to simply use parbox, with top alignment (optional argument t), such as

Code: Select all

\hfill -- \parbox[t]{.9\textwidth}{Author (2011),
  \textit{The name of the journal is so long that it occupies
  multiple lines in the beamer file}}
slide.png
slide.png (8.13 KiB) Viewed 3748 times
Stefan
LaTeX.org admin
Post Reply