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.

  • asterisk@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    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.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      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
        link
        fedilink
        English
        arrow-up
        2
        ·
        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.worldOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          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
            link
            fedilink
            English
            arrow-up
            1
            ·
            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.worldOP
              link
              fedilink
              English
              arrow-up
              1
              ·
              edit-2
              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.