Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.)

share|improve this question
    
Welcome to TeX.SX! You mean that the outer glyphs are straigth quotes? –  egreg Apr 22 at 16:38
    
Thank you! I mean that the inside ones like it's or he'll, are straight. –  Joe Wallis Apr 22 at 16:40
    
In addition to the duplicate, see also tex.stackexchange.com/a/63348/9077 –  Sverre Apr 22 at 16:42
1  
@Sverre I tried that and my TeX said that I can't use the package. \usepackage{fontspec} \setmainfont{Linux Libertine O}Fatal fontspec error: "cannot-use-pdftex" –  Joe Wallis Apr 22 at 16:42
    
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 at 16:44

2 Answers 2

up vote 9 down vote accepted

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}
share|improve this answer
    
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 at 0:36
    
@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 at 0: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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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