this post was submitted on 09 Aug 2023
4 points (75.0% liked)

LaTeX

48 readers
1 users here now

A community for the LaTeX typesetting language.

founded 1 year ago
MODERATORS
 

I was wondering if anyone here knew how to create a "curly" apostrophe in LaTeX without having to type out the unicode character for it. I know that the csquotes package is an option, but this only appears to allow making curly single and double quote pairs. I don't want quotes. I want a curly, single apostrophe.

Any help would be greatly appreciated.

you are viewing a single comment's thread
view the rest of the comments
[–] asterisk 3 points 1 year ago (1 children)

Isn’t that what you get if you use the ’ character for apostrophes? For example:

\documentclass{article}
\begin{document}
My apostrophe's curly. Or is it?
\end{document}

[–] nomadjoanne 2 points 1 year ago (2 children)

It isn't, but I figured it out maybe. The apostrophe is curly when compiling with pdflatex, but not xelatex. I've been a fan of the latter because I write in several languages and I like unicode-by-default. I wonder why that's the case though.

[–] asterisk 2 points 1 year ago (1 children)

Did you try my minimal example? I don't use xelatex, but I've just tried running it on my example code and the output is the same as with pdflatex.

[–] nomadjoanne 1 points 1 year ago (1 children)

Yup. It worked perfectly with pdflatex but not with xelatex. I confirmed this with other files. I'll just stick with pdflatex for now

[–] asterisk 1 points 1 year ago (1 children)

That's interesting. I wonder why we're getting different results.

Different versions of xetex, perhaps? I'm using

XeTeX, Version 3.14159265-2.6-0.999992 (TeX Live 2020/Debian) (preloaded format=xelatex)

A little out of date, as I haven't got around to updating my Debian yet.

[–] nomadjoanne 1 points 1 year ago* (last edited 1 year ago)

XeTeX 3.141592653-2.6-0.999995 (TeX Live 2023/Arch Linux)

Mine a bit newer. That said, newer sometimes means buggier, the downside of being on a rolling release. I have a Debian server though. I'll install texlive and try it there maybe.

[–] [email protected] 1 points 1 year ago

Have you tried setting the +tlig opentype feature in your font definitions?