46

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, that I want has the Unicode value of 39, so is in the standard ASCII implementation. "U+0027 ' apostrophe (HTML: & #39; & apos;) typewriter apostrophe."

(Sorry for my poor TeX knowledge, this is my second day using it, so my terminology/knowledge is limited.)

  • Welcome to TeX.SX! You mean that the outer glyphs are straigth quotes? – egreg Apr 22 '14 at 16:38
  • In addition to the duplicate, see also tex.stackexchange.com/a/63348/9077 – Sverre Apr 22 '14 at 16:42
  • 1
    With fontspec you need to compile with XeTeX or LuaTeX, not pdftex. If you don't want to do that, try the upquote package mentioned in tex.stackexchange.com/a/63348/9077. – Sverre Apr 22 '14 at 16:44
  • @JoeWallis I'm not sure that the inside ones are straight. – Manuel Apr 22 '14 at 16:46
  • @JoeWallis Another two. By the way, which kind of quote would you expect in “the soldiers’ rifles”. – Manuel Apr 22 '14 at 17:07
50

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}
  • 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 0:36
  • 6
    @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 0:40
  • 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 6 '16 at 20:03
23

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

  • 3
    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 2:35
  • 3
    This seems to font dependent. If I use revtex with \usepackage{times} it does not work. – lovespeed Sep 1 '15 at 16:48
  • 2
    @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 9 '16 at 6:44

protected by Community Apr 9 '16 at 7:09

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.