Text FormattingModifications to Quote Environment

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
KWoodNC
Posts: 2
Joined: Fri Sep 14, 2012 8:09 pm

Modifications to Quote Environment

Post by KWoodNC »

I'm fairly new to LaTeX. I'm in the process of writing a Lab Report in LaTeX. I would like to include (and need to) a few direct quotes regarding different definitions, etc.

Currently, I'm using the code:

Code: Select all

Motion is defined as \begin{quote}a change in position of an object with respect to time\end{quote}
which is producing the obvious: (I can get the reference to the bibliography in there, so that's not an issue)
quote-current.png
quote-current.png (13.59 KiB) Viewed 2871 times
However, I would prefer my quote to look like:
quote-desired.png
quote-desired.png (8.54 KiB) Viewed 2871 times
I have searched Google and have not seen the exact thing that I am looking for, however, I may just be using the wrong terminology as I've been searching for "inline quotes in LaTeX".

Thank you for any advice/help.
Last edited by localghost on Sat Sep 15, 2012 9:29 am, edited 1 time 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.

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Modifications to Quote Environment

Post by cgnieder »

Hi KWoodNC,

Welcome to the LaTeX community!

You're looking for the amazing csquotes package:

Code: Select all

\documentclass{article}
\usepackage{csquotes}
\renewcommand*{\mkcitation}[1]{ [#1]}

\begin{document}
 
Motion is defined as \textquote[Dictionary, 2012]{a change in position of an
object with respect to time}

\end{document}
Regards
site moderator & package author
KWoodNC
Posts: 2
Joined: Fri Sep 14, 2012 8:09 pm

Re: Modifications to Quote Environment

Post by KWoodNC »

Thank you, cgnieder. I actually had the csquotes in my preamble but never managed to find the coding you gave me. It works wonderfully and is exactly what I need. You are a lifesaver!
Post Reply