I have a text that uses degree marks ('or'') instead of proper quotation marks (e.g.,“,”).
How can I modify the text so that proper quotation marks display? I tried using the csquotes package (\usepackage[style=british]{csquotes}
) but it had no effect on the text, unless there is some other magic to using this package (such as defining degree marks, but I didn't see anything in the documentation, v.5.1b)
I know that ` should be used instead of the degree(') mark, but the text didn't come that way. I can't do a find and replace because the same degree mark is used for beginning and ending quotes. And there are double quotes (”) as well. Hundreds of them.
Other than some SED or AWK artistry, is there an easy way to do this?
(The reason why I mention SED artistry is that I once indexed a large file going from specific to general instead of vice-versa. On a 400 page book SED made the necessary changes almost instantly.)
"\(*\)"
and replace with“\0”
. I also would suggest using UTF8 input encoding, and typesetting directly the right quotes.'
mark (aka apostrophe) is that it is primarily used for contractions and possessive cases, and so any automatic approach at trying to convert two such marks into proper LaTeX single quotes is not possible.'
or"
isnt necessarily going to be correct, which is why different characters are used in TeX. If you can assume'
or"
are paired then you could, but at least for'
, this seems like a bad assumption.