Skip to main content
Share Your Experience: Take the 2024 Developer Survey
38 votes
Accepted

How to style blockquote?

(2021/06/22: I updated this answer in response to @moewe's very helpful comment, that some settings in the lipsum package changed since I posted this answer back in 2016. The update below consists of ...
Mico's user avatar
  • 511k
20 votes

How to style blockquote?

Since this is the first result I got when I Googled "latex block quote", I thought I'd mention the csquotes package I found via this Overleaf article. Seems to do about the same thing, just not the ...
ahogen's user avatar
  • 313
18 votes
Accepted

How can I replicate the style of the quotes in Knuth's "The Art of Computer Programming"?

Well if you literally want to replicate what Knuth did, you could use the same macros. The macros he used/uses for The Art of Computer Programming (TAOCP) are available as taocpmac.tex, and the ...
ShreevatsaR's user avatar
  • 45.7k
10 votes

How to typeset a quotation in LaTeX that looks like one on TeX.SX?

\documentclass{article} \makeatletter \renewenvironment{quote}{% \vskip 10\p@ \parindent\z@ \d@ublerule \list{}{\rightmargin\leftmargin}% \item\relax }{% \endlist \d@ublerule } \def\d@...
Ruben's user avatar
  • 13.4k
10 votes

Indentation of footnotes

You do not need to use package footmisc to get your wished result. You can simple redefine the footnote with the following code: \renewcommand{\@makefntext}[1]{% \setlength{\parindent}{0pt}% \...
Mensch's user avatar
  • 65.5k
9 votes

Quote environment with reference at the end right

In my opinion, the simplest variant I found to achieve this \begin{quote} The only way to make the deadline—the only way to go fast—is to keep the code as clean as possible at all times. \begin{...
San Droid's user avatar
  • 191
9 votes
Accepted

Enclose a custom quote environment in quotes from csquotes

Here's a solution you maybe have to adjust according to your fonts (the \hspace). \documentclass{beamer} \usepackage[style=british]{csquotes} \def\signed #1{{\leavevmode\unskip\nobreak\hfil\...
TeXnician's user avatar
  • 33.7k
8 votes

Block quote with big quotation marks

I know that this is old, but I may as well share my simple attempt. Note: requires \usepackage{xcolor} The command itself: \newcommand{\quotebox}[1]{\begin{center}\fcolorbox{white}{blue!15!gray!15}{...
Josh Pritsker's user avatar
8 votes
Accepted

Quotations in math mode using \enquote command from csquotes package

LaTeX issues one error and two warnings: ! Double superscript. <recently read> ^ l.13 Quote by hand: $``a^2+b^2=c^2' '$ ? LaTeX Warning: Command \...
egreg's user avatar
  • 1.1m
7 votes

Block quote with big quotation marks

Had I known about this question, I would not have written cfr-dquote. However, I didn't, so I did. Here's a lightly modified version of my package for public consumption or rejection. The package ...
cfr's user avatar
  • 203k
7 votes

How to style blockquote?

You can do that with the etoolbox package: \documentclass[12pt]{book} \usepackage{setspace} \usepackage{lipsum} \usepackage{etoolbox} \AtBeginEnvironment{quote}{\singlespace\vspace{-\topsep}\small} \...
Bernard's user avatar
  • 272k
6 votes

how to left justify text in quote environment with the rest of the text in justified format

The patch you need is the following: \AtBeginEnvironment{quote}{\raggedright} so that each time a quote environment starts, the text is typeset ragged right. MWE: \documentclass{article} \...
karlkoeller's user avatar
6 votes
Accepted

Discretionary and historical ligatures with ConTeXt

Use Featuresets. To use it in a quotation, just add the features in the font style. \setupbodyfont[libertine] \definefontfeature [hist] [hlig=yes] \definefontfeature [rare] [dlig=yes] \...
Henri Menke's user avatar
6 votes

How to fix spanish quotation symbols?

Don't use " to write quotes, that it is the wrong input. " is in a number of languages (and also in spanish) an active character, a command, that is used as a shorthand for other commands. ...
Ulrike Fischer's user avatar
6 votes
Accepted

Box around the code?

The solution is around page 17 of the manual. \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{listings} \begin{document} \begin{lstlisting}[frame=single] ...
Rmano's user avatar
  • 41.6k
6 votes
Accepted

Quote with left indent only

The definition of quote in the standard classes is, in full \newenvironment{quote} {\list{}{\rightmargin\leftmargin}% \item\relax} {\endlist} so you just ...
David Carlisle's user avatar
5 votes
Accepted

How to change indentation/margins of quote environment in Beamer

Use changepage's adjustwidth environment to adjust the margins around your quote: \documentclass{beamer} \let\Tiny\tiny% http://tex.stackexchange.com/a/94159/5764 \usepackage{changepage} \usetheme{...
Werner's user avatar
  • 605k
5 votes
Accepted

KOMA-Script and quote environments in footnotes

With the current pre-release of KOMA-Script 3.22 your example produces: The list of known bugs of release 3.21 (in German) has an entry: Listen und davon abgeleitete Umgebungen innerhalb von ...
Schweinebacke's user avatar
5 votes
Accepted

Parentheses around cite with \blockcquote

The csquotes package provides \SetCiteCommand, allowing you to set which cite command is used in all the cquote commands and environments (the default being \cite). Putting \SetCiteCommand{\citep} in ...
fko's user avatar
  • 76
5 votes

Quote inline with italics

This solution is simply the adaptation to the english option of the babel package of this solution written by Ulrike Fischer. \documentclass{scrartcl} \usepackage[utf8]{inputenc} \usepackage[...
ebosi's user avatar
  • 11.7k
5 votes

Block quote with big quotation marks

I had some issues getting the other solutions here to work with a particularly troublesome set of packages, so I rewrote a solution around the adjustbox package. \newlength\shadeDepth \newcommand{\...
Taylor Raine's user avatar
5 votes
Accepted

what's wrong with my (smaller) quote environment?

The tokens \smaller\em are added before quote starts a new paragraph, so the new baseline skip is applied also the not yet ended paragraph. Do, instead, \appto\quote{\smaller\em} that will execute \...
egreg's user avatar
  • 1.1m
5 votes
Accepted

csquotes -- How to customize/change blockquote features -- indentation, fontsize, linewidth

I believe this covers your requirements. I commented it so that hopefully it's easy to follow. \makeatletter %Take the original environment definition and change the leftmargin to 1cm \...
whatisit's user avatar
  • 1,870
4 votes
Accepted

Quote and Parallel

Here's a solution that uses a minipage environment for the quotation. This has the drawback that minipages cannot break across pages, which might be too limiting. Simple version with minipage \...
Alan Munn's user avatar
  • 219k
4 votes
Accepted

How to accumulate quotes and post them all at the end of the book?

Saving text for later usage can be done with a token register: \documentclass{article} % for simplicity \makeatletter \newtoks\save@quotes \newcommand{\quoteatend}[1]{% \@bsphack % this should be ...
egreg's user avatar
  • 1.1m
4 votes
Accepted

Place a quote half over margin

You can use the wrapfigure environment (from wrapfig package). This environment creates a box making the main text wrap around it. You can specify the width of this box and its position (left, or ...
ebosi's user avatar
  • 11.7k
4 votes

What is the best way to ensure correct indentation when a quotation begins with a quotation?

You can throw away any pending item label before the quotation. If you need quotation also to work as first thing in a real \item you might want to check what list you are in, but this works here. \...
David Carlisle's user avatar
4 votes

how to left justify text in quote environment with the rest of the text in justified format

Use the quoting environment, which is easily customisable: \documentclass{book} \usepackage[utf8]{inputenc}% \usepackage[T1]{fontenc} % \usepackage{erewhon} % \usepackage{quoting} % \usepackage{...
Bernard's user avatar
  • 272k
4 votes

How to quote a text including a footnote from the original text, APA-style

Questions about particular styles aren't really on topic here, but the more general problem of how to quote something with its footnote attached seems like a good question. And TeX has exactly the ...
Alan Munn's user avatar
  • 219k
4 votes
Accepted

Remove only right indent when using displayquote and csquotes

I think csquotes just uses the standard quote environment internally as the basis for this. So you can just redefine that to remove the right indent: \renewenvironment{quote} {\list{}{}% \item\relax}...
Paul Stanley's user avatar
  • 18.2k

Only top scored, non community-wiki answers of a minimum length are eligible