LaTeX forum ⇒ Text Formattingcsquotes package question

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
totti
Posts: 8
Joined: Thu Jul 23, 2009 2:53 pm

csquotes package question

Postby totti » Thu Jul 23, 2009 3:02 pm

Hi there!

This is my first post in this forum, so I hope it is in the right subforum.

I have a question regarding the csquotes package and the blockquote command. When csquotes detects that a blockquote is more than 3 lines (I use the default as of now) it starts to set a block and everything works perfectly fine BUT if the quote is set as a block there are no quotation-marks anymore. How can I change this? Do I need to redefine the quote environment (I am using scrbook of Koma script) or is there any way to let csquotes know that I want quotation-marks even if the is set as a block.

Take care!
totti

Recommended reading 2021:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics
phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

csquotes package question

Postby phi » Thu Jul 23, 2009 7:50 pm

As suggested by section 7.8 of the manual, you may redefine the quoteblock environment:
\renewenvironment{quoteblock}{\openautoquote}{\closeautoquote}

totti
Posts: 8
Joined: Thu Jul 23, 2009 2:53 pm

csquotes package question

Postby totti » Mon Jul 27, 2009 4:10 pm

Thank you phi! It works perfectly fine now.

totti
Posts: 8
Joined: Thu Jul 23, 2009 2:53 pm

Re: csquotes package question

Postby totti » Wed Jul 29, 2009 6:41 pm

Hi there!
Sorry but I have another question on this. As mentioned before the quoting marks work perfectly fine.

Now the second thing I want to do is change the size of the quoted block, to 11pt (regular text is 12pt) or \small if that is easier to handle.
Any help would be greatly appreciated.

Best,
totti

phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

csquotes package question

Postby phi » Wed Jul 29, 2009 7:10 pm

Here is an excerpt from the excellent csquotes tutorial (doc/latex/csquotes/tutorial.tex):
% The most frequent complaint about the traditional 'quote' and 'quotation'
% environments is that they do not adjust the font size of the quoted text. It
% is very common to set block quotations slightly smaller than the surrounding
% text. This problem is easily remedied:
%
%    \newenvironment{smallquote}
%      {\begin{quote}\small}
%      {\end{quote}}
%
% Because of the way environments are implemented in LaTeX, it is better to
% avoid nesting \begin and \end when including an environment in the definition
% of another one. Another problem with this definition is that \small will
% effectively hard-code the font size. It is advisable to use the \smaller
% command from the relsize package. \smaller will decrease the font size by one
% step (from \normalsize to \small or from \footnotesize to \scriptsize) so
% that this environment will also work as expected when used in a footnote.
%
% Hence our final definition is written as follows:

\newenvironment*{smallquote}
  {\quote\smaller}
  {\endquote}

% Now we instruct csquotes to use the new environment:

\SetBlockEnvironment{smallquote}

totti
Posts: 8
Joined: Thu Jul 23, 2009 2:53 pm

csquotes package question

Postby totti » Wed Jul 29, 2009 7:21 pm

phi, thanks for the fast reply. This forum and its members are incredible and of great help. I've not seen the tutorial so far but will promise to read it carefully before asking any additional question again ;) Hopefully I won't have any, though.


Return to “Text Formatting”

Who is online

Users browsing this forum: No registered users and 5 guests