15

In what follows:

\documentclass[fontsize=11pt]{book}
\usepackage{microtype}
\usepackage{times}
\usepackage{csquotes}
\usepackage[frenchb]{babel}
\frenchbsetup{IndentFirst=false}
\begin{document}
text in French \foreignblockquote{english}[][.]{quotation in English} text in French text \blockquote[][.]{quotation in French}
\end{document}

I would like to have the quotation in English italicized. It is obviously possible to use \renewcommand{\mkblockquote}[4]{\emph{#1}#2#4#3} but it will affect all the block-like quotations. I had a quick look in the csquotes.sty file but it is too complicated for me. I also had a look at the conditional statements available in the package but none are language-related.

15

In both \mktextquote and \mkblockquote, add

\iflanguage{english}{\itshape}{}

at the appropriate position. (\iflanguage is a babel conditional.)

\documentclass[fontsize=11pt]{book}

\usepackage[frenchb]{babel}

\usepackage{csquotes}

\renewcommand{\mktextquote}[6]{%
  #1%
  \iflanguage{english}{\itshape}{}% ADDED
  #2#4#3#6#5%
}
\renewcommand{\mkblockquote}[4]{%
  \iflanguage{english}{\itshape}{}% ADDED
  #1#2#4#3%
}

\begin{document}

text in French
\foreignblockquote{english}[][.]{quotation in English}
text in French
\blockquote[][.]{quotation in French}
text in French
\foreignblockquote{english}[][.]{quotation \\in \\English}
text in French
\blockquote[][.]{quotation \\in \\French}
text in French

\end{document}

enter image description here

2
  • 1
    Could you please also add an example how to make all uses of \foreignlanguage italicized? – Mathieu B. Mar 18 '15 at 15:04
  • Just realized that the quotes of the quotation in English are wrong. Can probably be fixed easily. – pluton Jun 25 '15 at 14:43

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.