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.

I use french quotation marks (<< and >>) in many documents. Is there any way I can define in the style file to replace all french quotation marks by english ones?

Furthermore I'd like to have english quotation marks no matter if I type <<hello>> or "hello". Is this possible?

EDIT: I read about the package csquotes but did not manage to replace my french marks because it seems like only single characters are allowed.

\documentclass[a4paper]{article}
\usepackage{polyglossia}
\setdefaultlanguage[]{english}

\setsansfont[Ligatures=TeX,Mapping=tex-text]{Open Sans}
\setmainfont[Ligatures=TeX,Mapping=tex-text]{Open Sans}
\setmonofont[]{Consolas}

\usepackage[autostyle=true,english=british]{csquotes}
\MakeOuterQuote{"}
\MakeAutoQuote{<}{>}

\begin{document}


"An example using normal quotes"

< Example >

<<Second Example using french quotes>>

``Should look like this''

\end{document}

enter image description here

If I make < and >as my AutoQuote Delimiters, the original Quotation Marks are treated like nested quotations. Any suggestions to work around this?

share|improve this question
    
I added some information to your title, so you may get another answer. To increase the chance please add a minimal working example (MWE). –  Tobi Nov 11 '13 at 14:51
add comment

1 Answer

up vote 6 down vote accepted

With \MakeOuterQuote (and \MakeInnerQuote) you can define a single character such as " that is use for opening and closing quotes. With \MakeAutoQuote you must define two distinct characters, such as > and < for opening and closing. In the latter case csquotes can find the quotation level itself.

Here’s an example how to use \MakeAutoQuote. By default the output quotation marks ar set language depend, but that can be changed by options.

\documentclass[english]{article}

\usepackage{babel}

\usepackage{csquotes}
    \MakeOuterQuote{"}
    \MakeAutoQuote{>}{<}

\begin{document}
>Test automatic outer and >inner< quotes<

"Test manual outer quotes"
\end{document}

result

It is impossible to use >> or << as a delimiter since it must be a single character. So you may use the search and replace feature of your editor to change this …

share|improve this answer
    
Hmm... In that case I will replace it manually using the replace function. Thanks anyway –  Kathiieee Nov 11 '13 at 13:59
    
It could be possible to do something with active characters, but as far as I can see that would require a manual implementation and is out of csquotes’ scope. –  Tobi Nov 11 '13 at 14:44
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.