-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backticks are not displayed when using pdfLaTeX. #4
Comments
Hmm, the backtick doesn't seem to have made it to the Type1 fonts. I will try to take a look at this some time next week. As a work around you could try using XelaTeX (if possible), the package will use the original OpenType font in that case. Minimal example to reproduce (with \documentclass{standalone}
\usepackage[default]{sourcecodepro}
\usepackage{textcomp}
\begin{document}
backtick: >\textasciigrave<
\end{document} Thanks for reporting! |
Any news on this? |
Seems to be still unresolved. \documentclass{standalone}
\usepackage{listings}
\usepackage{sourcecodepro}
\lstset{
basicstyle=\ttfamily, % SourceCode Pro
literate={`}{{\char0}}1 % backtick is \char0 in T1, \char18 otherwise
}
\begin{document}
\texttt{backtick in text: \char0{}a\char0{}} |\,\,
\begin{lstlisting}
backtick in listing: `a`
\end{lstlisting}
\end{document} |
Yes, the issue is still unresolved. I will take another look at it if/when I have time (may take a while), until then PRs are welcome! |
As an alternative workaround, the snippet should work for getting backticks to work in verbatim or lstlisting environments, and for This seems to work in any order such that \usepackage{sourcecodepro}
\usepackage{upquote}
\def\textasciigrave{\char0} |
When I render some code with the listings environment, the backtick is not displayed:
The resulting PDF has no backtick in it.
The LaTeX error message I get is:
I included the package without any options:
and modified the listing environment:
See the original issue here.
The text was updated successfully, but these errors were encountered: