On 04/26/2011 05:33 AM, Steve Litt wrote:
Hi all,
I have an entire 110,000 word book in which single quotes don't pair up, but
instead both the opening and closing single quote look exactly like the
character on the key of my keyboard. How can I get LyX to automatically pair
the quotes up like it does with doublequotes?
If you type:
`this is a quote'
then LyX is meant to output the two quotes as is, and then LaTeX should
take care of the rest. That seems to work here, anyway.
I suppose I could manually replace all leading single quotes with grave
symbols (lower case tilde), but I'm hoping there's a more automatic way to do
it. Maybe there's a package somewhere?
As Jurgen said, there is, but it may be easier for you just to convert
to what I illustrated above. A simple script should do the trick. The
regex you want will involve a look-behind assertion, something like:
s/(?<=\s)'/`/g;
should do the trick.
Richard