Navigation Menu

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

Curly Quotes on Markup Render for Xelatex. #889

Closed
thewatts opened this issue Jun 26, 2013 · 5 comments
Closed

Curly Quotes on Markup Render for Xelatex. #889

thewatts opened this issue Jun 26, 2013 · 5 comments

Comments

@thewatts
Copy link

On PDF output, code has curly quotes - creating syntax errors if the code is copied/pasted.

This issue was solved for pdflatex, but is currently still a problem for xelatex..

related: #638

@jgm
Copy link
Owner

jgm commented Jun 26, 2013

I can reproduce this on OSX without special fonts, with

echo "    'hi'" | pandoc  -o my.pdf --latex-engine=xelatex -Vmonofont='Andale Mono'

@jgm
Copy link
Owner

jgm commented Jun 26, 2013

@jgm
Copy link
Owner

jgm commented Jun 26, 2013

I've found that

    \setmonofont[Mapping=tex-ansi]{$monofont$}

will solve the straight-quote problem. But it's not a complete solution, because the character escaping in the LaTeX writer assumes the tex-text mapping.

jgm pushed a commit that referenced this issue Jul 4, 2013
This ensures that straight quotes appear as straight, rather than
being treated as curly.  See #889.
@jgm
Copy link
Owner

jgm commented Jul 4, 2013

I believe this bug is fixed by commits 3f1937f and 9d9390a. Closing, but please test.

@jgm jgm closed this as completed Jul 4, 2013
@thewatts
Copy link
Author

thewatts commented Jul 4, 2013

Hey @jgm !! I apologize for not responding sooner - I thought I had!
You were right about setting the monofont manually, works like a charm.

I don't have pandoc installed from source tho - I installed it via the pandoc website.

Working on getting it installed - will verify for ya!

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

2 participants