Skip to content
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

Single Quotes Converted to Curly Quotes in Inline Code #1364

Closed
jambonrose opened this issue Jun 22, 2014 · 0 comments
Closed

Single Quotes Converted to Curly Quotes in Inline Code #1364

jambonrose opened this issue Jun 22, 2014 · 0 comments

Comments

@jambonrose
Copy link

When converting Markdown to PDF via LaTeX, any single quote character in inline code is converted to a curly closing quote character.

Given a file text.md with the following:

Paragraph describing `method_name('/path/to/file1.txt', regexp=r"^[\w\/\-]+$")`.

The calls:

pandoc -f markdown_strict -o inlinequotes.tex --standalone text.md
pdflatex inlinequotes.tex

Result in:

Paragraph describing method_name(’/path/to/file1.txt’, regexp=r"ˆ[\w\/\-]+$").

The single quotes around the first argument have been converted to closing curly quotes. The double quotes around the second argument are unchanged, as are quotes in code blocks (thanks to upquote).

Adding --smart doesn't affect this, nor does switching the reader from markdown_strict to markdown. Furthermore, using pandoc to go directly to PDF via pandoc -f markdown -o inlinequotes.pdf --standalone text.md yields the same results.

The partial LaTeX output is:

Paragraph describing
\texttt{method\_name('/path/to/file1.txt', regexp=r"\^{}{[}\textbackslash{}w\textbackslash{}/\textbackslash{}-{]}+\$")}.

Is there a way to replace ' with \textquotesingle when text is output within \texttt?

@jgm jgm closed this as completed in 87ab016 Jun 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant