I would like to create a new environment which will behave similar to quote, but with quotes added. I tried something like this:


But that produces space beetween quotes and text which I don't want.

Unwanted space beetween quotes and text


I'd be tempted to look at the csquotes package to do what you want. However, for the matter in hand I suspect you are using input such as

  He who plants a garden plants happiness.

which means there is a space added at the end of the line. Try


or add a % to kill the end of the line in your source:

  He who plants a garden plants happiness.%
  • There's also a space at the beginning. I tried \xspace but that didn't work, \ignorespaces did, though. – Andrew Stacey Feb 24 '11 at 9:01
  • @Andrew Stacey: I was about to write about the space at the beginning as well. @Joseph Wright: Could you add the \ignorespaces to your answer. That makes it possible to use the desired input \begin{newquote} He who plants a garden plants happiness \end{newquote} – ipavlic Feb 24 '11 at 9:03
  • @Andrew: Oh yes, so there is. @ipavlic: done – Joseph Wright Feb 24 '11 at 9:12
  • @Joseph: For your last piece of code you'd also need a % after \begin{newquote}, wouldn't you? – Hendrik Vogt Feb 24 '11 at 9:14
  • @Hendrik: Hmm, yes. I'll sort that. – Joseph Wright Feb 24 '11 at 9:21

Perhaps this is overkill. Some time ago I was looking for something simular. I wrote a small script that was able to show small quotes to introduce a chapter in a book I am writing. The code:

      \node[text width=12cm,anchor=center] (Q) at (0,0) {\Large\textit{#1}};
      \node[gray,anchor=north east] (Ql) at (Q.north west) {\Huge\textbf{``}};
      \node[gray,anchor=north west] (Qr) at (Q.south east) {\Huge\textbf{''}};
      \node[black!80,anchor=north east] (Qa) at (Qr.north west) {\small - #2};

You will need the to use tikz package. As an example:

\chapterquote{To be, or not to be}{William Shakespeare}

This produces something like:

enter image description here

Feel free to experiment with this custom command. You can for instance modify the color and size.

  • Thanks, that seems very nice. I am very happy with TikZ in general. – ipavlic Feb 24 '11 at 9:54

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.