935 reputation
412
bio website
location
age
visits member for 2 years, 2 months
seen yesterday

Dec
21
accepted Automatic apostrophes for quotation marks
Dec
21
comment Automatic apostrophes for quotation marks
Do you still want to know my version of fontspec nevertheless?
Dec
21
comment Automatic apostrophes for quotation marks
Your latest edit did the trick! :-D
Dec
21
comment Automatic apostrophes for quotation marks
I use exactly the same file with \usepackage{fontspec} on top. Then I compile with XeLaTeX. My distribution is TeX Live. Can I send my document somehow?
Dec
21
comment Automatic apostrophes for quotation marks
It only happens if I use XeLaTeX and load fontspec.
Dec
21
comment Automatic apostrophes for quotation marks
@egreg, it works perfectly in LaTeX. However, some complications arise when I load fontspec and compile using XeLaTeX. Then ALL apostrophes become opening apostrophes.
Dec
21
revised Automatic apostrophes for quotation marks
added 121 characters in body
Dec
21
comment Automatic apostrophes for quotation marks
Didn't think about it. :-) However, it is perhaps good that you people considered it, so that this example can be useful for a greater number of people. :-)
Dec
21
comment Automatic apostrophes for quotation marks
I very much doubt that case is going to appear anyway. :-)
Dec
21
awarded  Nice Question
Dec
21
comment Automatic apostrophes for quotation marks
I was wondering: Would \MakeOuterQuote work on apostrophes if the apostrophe was made into an inactive character? In that case, how do you do that?
Dec
21
comment Automatic apostrophes for quotation marks
I'm afraid the authors of my XML document most likely aren't going to do that.
Dec
21
comment Automatic apostrophes for quotation marks
Well, if XSLT supports that, I guess it could be encoded into that. But about how to do that I have no idea.
Dec
21
comment Automatic apostrophes for quotation marks
@Mico, I'm using XSLT to convert an XML document to XeLaTeX, then naturally, I compile it using the latter. Did that answer your question? :-)
Dec
21
comment Automatic apostrophes for quotation marks
\MakeOuterQuote from csquotes would be the perfect solution if it in fact supported apostrophes.
Dec
21
comment Automatic apostrophes for quotation marks
The problem is that my document is an XML document that I haven't written myself, and I kinda cannot control how it is encoded. It just uses the apostrophe for everything.
Dec
21
comment Automatic apostrophes for quotation marks
What do you mean by "regular expressions"?
Dec
21
revised Automatic apostrophes for quotation marks
added 10 characters in body
Dec
21
asked Automatic apostrophes for quotation marks
Dec
20
accepted TeX command with argument BEFORE the command