I'm using the csquotes
package with the modifications recommended by this answer, to detect quotation marks in my text (pasted from Microsoft Word) and make them look good in the output.
Is there any way to have it also detect single quotes, so that they are oriented the correct way and not treated as apostrophes, without messing up the existing apostrophes? (I don't want to have to manually find all of the quote-within-quotes and replace '
with `
.)
\documentclass{article}
\usepackage{csquotes}
\usepackage[american]{babel}
\DeclareQuoteStyle[american]{english}% verified
{\textquotedblleft}
[\textquotedblleft]
{\textquotedblright}
[0.05em]
{\textquoteleft}
{\textquoteright}
\MakeOuterQuote{"}
\begin{document}
I say: "These quotes look nice, but 'if I quote someone else within a quote like this,'
or 'like this,' they don't."
\end{document}
'
character an active quote incsquotes
like you did for"
since it is a reserved character (see §10.3 of the documentation). Since your text is coming from MSWord, if you use a UTF8 encoding, you can use Word's smart quotes facility to make the quotes into the correct characters and then just use them directly.\usepackage[utf8]{inputenc}
. On the Word side, I remember it just automatically converting quotation marks to the "smart" ones whether you liked it or not. Isn't that still true?\usepackage[utf8]{inputenc}
in your input file (and save it as UTF8 in your editor). Or save it as UTF8 and use XeLaTeX or LuaLaTeX. See Preparing a text for conversation to LaTeX: How to convert "ejective stops" in TIPA? for an answer like that. But the idea is that you go back to your Word document source and change all the quotes to 'smart' quotes and then paste the fixed text directly into your LaTeX source.