4
"Curly" apostrophe (lemmy.world)
submitted 1 year ago by nomadjoanne@lemmy.world to c/latex@lemmy.ca

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.

top 8 comments
sorted by: hot top controversial new old
[-] asterisk@lemmy.world 3 points 1 year ago

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@lemmy.world 2 points 1 year ago

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@lemmy.world 2 points 1 year ago

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@lemmy.world 1 points 1 year ago

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@lemmy.world 1 points 1 year ago

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@lemmy.world 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.

[-] quat@lemmy.sdfeu.org 1 points 1 year ago

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

[-] asterisk@lemmy.world 1 points 1 year ago

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}
this post was submitted on 09 Aug 2023
4 points (75.0% liked)

LaTeX

4 readers
1 users here now

A community for the LaTeX typesetting language.

founded 1 year ago
MODERATORS