TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to insert a quote into a document, have it aligned to the right, italic, with some extra indentation from the right margin, this is what i've managed so far:


\hfill\textit{This is a very boring,}

\hfill\textit{text without any substance} {\vspace{0.5em}}

\hfill\textit{A future book}

\hfill\textit{Ann Onymous}



This is what it looks like (note -- flush to the right margin):


But what I want it to look like is like this (note -- inset from the right margin):


share|improve this question
Welcome to TeX.sx! – egreg Feb 20 '13 at 11:30
up vote 3 down vote accepted

You should, first of all, define an environment (or command) for this, so you can change the formatting in all epigraphs with a single change to the definition.

Your aim can be achieved with a tabular; specify right alignment, no padding on the left and a 2em padding on the right, so the tabular argument should be

@{} r @{\hspace{2em}}

Here's the definition.

   \begin{tabular}{@{}r@{\hspace{2em}}}} % 2em from the right margin

Then your epigraph can be typeset with

This is a very boring,\\
text without any substance\\[1.5ex]
A future book\\
Ann Onymous

However, you should look at the epigraph package that has many features for this kind of things.

share|improve this answer

Besides using a tabular environment, you could use, e.g., the epigraph package or my quoting package:

  • The \epigraph command provides a cleaner syntax for the case at hand (specify the quoted text in the first argument, the source in the second argument), but it seems there's no easy way to add indentation to a right-aligned quote.

  • The quoting environment is normally used for quotes within the running text (so you have to manually separate quote text and source [EDIT: or define a myquote environment that takes the source as additional argument]), but it allows to specify additional indentation.







\epigraph{This is a very boring text without any substance.}{A future book\\Ann Onymous}


\begin{myquoting}{A future book\\Ann Onymous}
This is a very boring text without any substance.



enter image description here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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