Advantage
If you use biblatex
or multiple languages with babel
or polyglossia
, you can benefit from the integrated commands of csquotes
. There are commands to quote in languages other than the main language so that the quoted text is typeset in accordance with the rules of the language. There are also commands to make formal quotes, both in the main language and in other languages, that gets the proper quotation marks from csquotes
and a reference via biblatex
.
If you use these commands rather than manually setting quotation marks, it may be easier to be consistent with quotations and hyphenation. Also, it can help you to be consistent with block quotes because csquotes
has commands to make block quotes out of quotations that are longer than a certain threshold.
Here is an example of just a few of the available commands. You can read about the other commands in the manual.
\documentclass{article}
\usepackage{biblatex}
\usepackage{csquotes}
\usepackage[UKenglish,USenglish]{babel}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@book{nnt,
author = {N.N.},
title = {Title},
year = {2011}
}
\end{filecontents*}
\addbibresource{\jobname.bib}
\begin{document}
\hyphenquote{UKenglish}{quote with UK English hyphenation}
\textcquote[1]{nnt}{formal quote}
\hyphentextcquote{UKenglish}[1]{nnt}{formal quote with UK English hyphenation}
\hyphenblockcquote{UKenglish}[1]{nnt}{A long formal quote with UK English hyphenation which happens to be longer than three lines and, thus, is typeset as a block quote. This text is just to make it long enough. This text is just to make it long enough. This text is just to make it long enough.}
\printbibliography
\end{document}
Easier input of csquotes macros
If you find it bothering to write the macros of csquotes
you can use a snippet manager for the ones that you use often. For example, in my setup I write enq
and press Tab which expands enq
to enquote{}
and places the cursor between the braces. See Replace the `$$ ... $$` macro with the `\[ ... \]` macros? - Prefer the way LaTeX lays it out, but `$` are faster to write for a more elaborate example of snippet managers.
If you use AUCTeX, it can be configured so that " expands to csquotes
macros by inserting the following into your .emacs:
;; " expands into csquotes macros
(setq LaTeX-csquotes-close-quote "}"
LaTeX-csquotes-open-quote "\\enquote{")
Note that for this to work in conjunction with babel
, babel
must be loaded after csquotes
.
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
\renewenvironment*{displayquote}
{\begingroup\setlength{\leftmargini}{1cm}\csq@getcargs{\csq@bdquote{}{}}}
{\csq@edquote\endgroup}
\makeatother
%Hooks
%Use single spacing, set 10pt font, and begin beginning quotes
%%%Curly quotes version
%\renewcommand{\mkbegdispquote}
%{\singlespacing\fontsize{10pt}{10pt}\selectfont\setquotestyle{quote}\textooquote}%
%%%German guillemets version
\renewcommand{\mkbegdispquote}
{\singlespacing\fontsize{10pt}{10pt}\selectfont\textooquote}%
%%%German guillemets version plus italics
%\renewcommand{\mkbegdispquote}
%{\singlespacing\fontsize{10pt}{10pt}\selectfont\itshape\textooquote}%
\renewcommand{\mkenddispquote}{\textcoquote}
I could not find any way to change the indent size... so I searched csquotes
for the displayquote
definition. I copied that and threw it between \makeatletter...\makeatother
(because it contains the @
character. Then, I put \begingroup
and \endgroup
, so that the \leftmargini
dimension change would only apply within displayquote
environments.
Next, I renewed the two hook commands that are applicable to displayquote
: \mkbegdispquote
and \mkenddispquote
. Basically, you just put whatever changes you need here. In this case, you wanted single space, font size of 10pt, quote style (if needed, see version 2), and quotes. Then, you put the beginning quotes and the ending quotes.
Here is a complete version from your example:
\documentclass{article}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage{parskip}
\usepackage{setspace}
\onehalfspacing
\usepackage[autostyle,german=guillemets]{csquotes}
\makeatletter
%Take the original environment definition and change the leftmargin to 1cm
\renewenvironment*{displayquote}
{\begingroup\setlength{\leftmargini}{1cm}\csq@getcargs{\csq@bdquote{}{}}}
{\csq@edquote\endgroup}
\makeatother
%Hooks
%Use single spacing, set 10pt font, and beginning quotes
\renewcommand{\mkbegdispquote}
{\singlespacing\fontsize{10pt}{10pt}\selectfont\textooquote}
%End displayquote environment with ending quotes
\renewcommand{\mkenddispquote}{\textcoquote}
\usepackage{geometry}
\geometry{lmargin=25mm,rmargin=25mm,}
\begin{document}
Here comes a blockquotation Here comes a blockquotation Here comes a blockquotation Here comes a blockquotation Here comes a blockquotation Here comes a blockquotation Here comes a blockquotation:
\begin{displayquote}
Dies ist ein Zitat das nichts sagt. Und wenn sie noch nicht gestorben sind dann denken sie daran für immer zu sein. Dies ist ein Zitat das nichts sagt. Und wenn sie noch nicht gestorben sind dann denken sie daran für immer zu sein. Dies ist ein Zitat das nichts sagt. Und wenn sie noch nicht gestorben sind dann denken sie daran für immer zu sein.
\end{displayquote}
Here comes a blockquotation Here comes a blockquotation Here comes a blockquotation Here comes a blockquotation Here comes a blockquotation Here comes a blockquotation Here comes a blockquotation:
\end{document}
And, if you want to change the quotes to be “
and ”
, you can change the quote style:
\documentclass{article}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage{parskip}
\usepackage{setspace}
\onehalfspacing
\usepackage[autostyle,german=guillemets]{csquotes}
\makeatletter
%Take the original environment definition and change the leftmargin to 1cm
\renewenvironment*{displayquote}
{\begingroup\setlength{\leftmargini}{1cm}\csq@getcargs{\csq@bdquote{}{}}}
{\csq@edquote\endgroup}
\makeatother
%Hooks
%Use single spacing, set 10pt font, set quote style curly quotes, and beginning quotes
\renewcommand{\mkbegdispquote}
{\singlespacing\fontsize{10pt}{10pt}\selectfont\setquotestyle{quote}\textooquote}
%End displayquote environment with ending quotes
\renewcommand{\mkenddispquote}{\textcoquote}
\usepackage{geometry}
\geometry{lmargin=25mm,rmargin=25mm,}
\begin{document}
Here comes a blockquotation Here comes a blockquotation Here comes a blockquotation Here comes a blockquotation Here comes a blockquotation Here comes a blockquotation Here comes a blockquotation:
\begin{displayquote}
Dies ist ein Zitat das nichts sagt. Und wenn sie noch nicht gestorben sind dann denken sie daran für immer zu sein. Dies ist ein Zitat das nichts sagt. Und wenn sie noch nicht gestorben sind dann denken sie daran für immer zu sein. Dies ist ein Zitat das nichts sagt. Und wenn sie noch nicht gestorben sind dann denken sie daran für immer zu sein.
\end{displayquote}
Here comes a blockquotation Here comes a blockquotation Here comes a blockquotation Here comes a blockquotation Here comes a blockquotation Here comes a blockquotation Here comes a blockquotation:
\end{document}
And version with italics (and German-style quotes):
\documentclass{article}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage{parskip}
\usepackage{setspace}
\onehalfspacing
\usepackage[autostyle,german=guillemets]{csquotes}
\makeatletter
%Take the original environment definition and change the leftmargin to 1cm
\renewenvironment*{displayquote}
{\begingroup\setlength{\leftmargini}{1cm}\csq@getcargs{\csq@bdquote{}{}}}
{\csq@edquote\endgroup}
\makeatother
%Hooks
%Use single spacing, set 10pt font, set italics, and beginning quotes
\renewcommand{\mkbegdispquote}
{\singlespacing\fontsize{10pt}{10pt}\selectfont\itshape\textooquote}%\setquotestyle{quote}
%End displayquote environment with ending quotes
\renewcommand{\mkenddispquote}{\textcoquote}
\usepackage{geometry}
\geometry{lmargin=25mm,rmargin=25mm,}
\begin{document}
Here comes a blockquotation Here comes a blockquotation Here comes a blockquotation Here comes a blockquotation Here comes a blockquotation Here comes a blockquotation Here comes a blockquotation:
\begin{displayquote}
Dies ist ein Zitat das nichts sagt. Und wenn sie noch nicht gestorben sind dann denken sie daran für immer zu sein. Dies ist ein Zitat das nichts sagt. Und wenn sie noch nicht gestorben sind dann denken sie daran für immer zu sein. Dies ist ein Zitat das nichts sagt. Und wenn sie noch nicht gestorben sind dann denken sie daran für immer zu sein.
\end{displayquote}
Here comes a blockquotation Here comes a blockquotation Here comes a blockquotation Here comes a blockquotation Here comes a blockquotation Here comes a blockquotation Here comes a blockquotation:
\end{document}
Best Answer
I don't know arabic, so I don't even know what the correct quotes are in this case.
But what I can tell you is that the command
\DeclareQuoteOption
can be used only in a configuration filecsquotes.cfg
. This file can contain new options which can then be used at loading time by thecsquotes
package. In fact it is loaded bycsquotes
before processing its options.So you have to create a file with that name in your document directory with the following contents
At this point your MWE can be reduced to:
and this is its output:
The output of
\enquote
seems to be the one you are expecting.If you want, you can add
in your document and use
"
..."
for your quotes.MWE:
The output is the same as above.