76

Is there a small package free way of implementing something like this in pdflatex and LaTeX?

I wish for the outcome of

\documentclass{article}
\begin{document}
    `It's a nice day!'
\end{document}

To be

ʻIt's a nice day!ʼ

I know that due to there being a single apostrophe inside the quote can mess up stuff, so I'm more then happy to use a function or macro, like \apos, to insert it.

I know that the apostrophe I want has the Unicode value of 39, so is in the standard ASCII implementation. "U+0027 ' apostrophe (HTML: ' ') typewriter apostrophe."

Peilonrayz
  • 1,136

2 Answers2

85

It's a rather unusual convention, but if you want it then:

enter image description here

\documentclass{article}
\usepackage{textcomp}
\begin{document}
    `It\textquotesingle s a nice day!'
\end{document}
David Carlisle
  • 757,742
  • 2
    Is that actually the proper character to use for an apostrophe? So should I always be writing it\textquotesingle s if I want to be technically correct? – David Z Apr 23 '14 at 00:36
  • 14
    @DavidZ no it's horrible:-) The normal usage is to use ' but the OP asked for a straight quote and if that's what he wants, this is the latex markup to get it. – David Carlisle Apr 23 '14 at 00:40
  • 1
    Apostrophe, open-single-quote, close-single-quote, are all different characters, but ascii over loaded apostrophe onto close-single-quote (I think). I Think that unicode has added separate characters. I don't know about latex. – ctrl-alt-delor Apr 06 '16 at 20:03
  • If it's unusual, is it a "convention?" – PartialOrder Sep 18 '21 at 14:02
40

David's answer is preferable, but here's another option if you don't want to load any package to take care of it.

\documentclass{article}
\begin{document}
`It\textsc{\char13}s a nice day!'
\end{document}

enter image description here

Sverre
  • 20,729
  • 6
    Perfect! It took reading through so many pages of COMPLICATED answers to find this simple solution. Now I can define a new command for the rare times I want this:

    \newcommand*\vtick{\textsc{\char13}}

    and then just place \vtick in my document where I want it to appear.

    – Travis Bemrose Mar 13 '15 at 02:35
  • 4
    This seems to font dependent. If I use revtex with \usepackage{times} it does not work. – lovespeed Sep 01 '15 at 16:48
  • 5
    @TravisBemrose - Note that the method depends on both the font encoding -- it works for the basic OT1 encoding, but not for T1 -- and the font family; as shown above, it works for Computer Modern, but it may not work with any other font families. This is probably why Sverre wrote, "David's answer is preferable." :-) – Mico Apr 09 '16 at 06:44