Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
add comment

1 Answer

up vote 12 down vote accepted

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.