TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to make the left quote,

`

printed out with pdflatex exactly like the one above (it is also displayed like that when I typed on my Mac).

I tried with following ones:

\documentclass{article}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\begin{document}
not this one `

verbatim also does not work: \verb|`|, \verb|\`|

\texttt{`} is texttt, but also not correct

this one \`~is correct displayed

this one \`is not correct displayed again
\end{document}

Here is the output:

Enter image description here

The fourth line was printed out correctly. However, I cannot make the left quote close to the text after it. It will become the small quote above the character like the next line (ì). How do I remove the space?

share|improve this question
    
\def\leftquote{\`{}}? I mean you already found out which one worked... – Bakuriu Mar 12 at 12:39
up vote 5 down vote accepted

If I understand your objective correctly, you're looking to typeset the left-hand apostrophe as a standalone "grave" accent. As you've discovered,

\`{}

gets the job done. Alternatively, you could type \char18.

Additional Remarks:

  • If the T1 font encoding scheme is in use, one must type \char0 instead of \char18 in order to generate a standalone grave symbol.

  • If the upquote package is loaded,

    \verb+`+
    

    also generates a straight rather than curly left quote -- in verbatim mode.


enter image description here

\documentclass{article}
\usepackage{lmodern}
\begin{document}
\obeylines % just for this example
standalone grave accent: \`{}
\verb|\char18| in various font shapes
\qquad upright Roman: \char18
\qquad monospaced: \texttt{\char18}
\qquad italic: \textit{\char18}
\qquad sans-serif: \textsf{\char18}
\end{document}
share|improve this answer
    
worked like a charm! thank you – scmg Mar 12 at 10:07

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.