public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Apostrophe rendering in pdf
Date: Tue, 16 Aug 2022 10:01:35 -0700	[thread overview]
Message-ID: <4BEB6DAA-4798-49C0-8BB6-050E5E3BE76F@gmail.com> (raw)
In-Reply-To: <YvvKZ3HMQEjjg8VO@localhost>

I've just pushed a change to the LaTeX writer so that this workaround won't be needed in the future.

> On Aug 16, 2022, at 9:48 AM, Bastien DUMONT <bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org> wrote:
> 
> The problem is that LaTeX interprets the ' character as a right single quote. As John said, to type a straight quote, you can use the command \textquotesingle.
> 
> If you want all straight quotes in the LaTeX source produced by Pandoc to be printed as such in the PDF output, you can write the following instructions in your preamble (via "header-includes" or in your template):
> 
> \catcode`\'=13
> \def'{\textquotesingle}
> 
> Then, by disabling the “smart” extension and backslash-escaping the single quotes that should printed as such (e.g. “it's the value \'value\'”), you should get the desired output.
> 
> Le Tuesday 16 August 2022 à 08:56:36AM, Claudio Di Vita a écrit :
>> I used &apos; for ' but with the all the possible combinations of smart
>> extensions (enabled/disabled on input and/or output format), an apostrophe is
>> rendered as a right single quote ’ (&rsquo;).
>> 
>> Maybe it depends on some LaTeX package I have included :(
>> 
>> Thanks,
>> 
>> Claudio 
>> 
>> Il giorno martedì 16 agosto 2022 alle 15:06:47 UTC+2 BP ha scritto:
>> 
>>    Then use HTML entities:
>> 
>>    -   ‘  `&lsquo;`
>>    -   ’  `&rsquo;`
>>    -   “  `&ldquo;`
>>    -   ”  `&rdquo;`
>>    -   «  `&laquo;`
>>    -   »  `&raquo;`
>>    -   ‹  `&lsaquo;`
>>    -   ›  `&rsaquo;`
>> 
>>    These will always work, except that you might have to experiment with the
>>    `+smart` and `-smart` extensions on the output format (some formats
>>    counterintuitively require `-smart` to get the curved characters!)
>> 
>>    For all the details see:
>> 
>>    <[1]https://en.m.wikipedia.org/wiki/Quotation_mark>
>> 
>> 
>>    Den tis 16 aug. 2022 12:38Claudio Di Vita <claudio...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
>> 
>>        Thanks for the suggestion, but it doesn't work (with or without the
>>        smart extension)
>> 
>>        Il giorno giovedì 28 luglio 2022 alle 09:59:28 UTC+2 BP ha scritto:
>> 
>>            A backslash before the apostrophe `\'` should give you a straight '
>>            and `&rsquo;` should give you a Unicode apostrophe/right single
>>            quotation mark. If you are using LaTeX to produce PDF `\'` should
>>            in effect give you a Unicode apostrophe, at least if you don't use
>>            `--to latex+smart` (I think; I'm not near a machine with LaTeX
>>            installed right now.)
>> 
>>            Den ons 27 juli 2022 22:50Claudio Di Vita <claudio...@gmail.com>
>>            skrev:
>> 
>>                When I convert my markdown document to pdf, I notice that when
>>                a string is within two apostrophes (the ' character), the
>>                apostrophe is rendered like a left single quote.
>> 
>>                Is there any way to change this behaviour ?
>> 
>>                Thanks a lot, cheers
>> 
>>                Claudio
>> 
>>                --
>>                You received this message because you are subscribed to the
>>                Google Groups "pandoc-discuss" group.
>>                To unsubscribe from this group and stop receiving emails from
>>                it, send an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>>                To view this discussion on the web visit [2]https://
>>                groups.google.com/d/msgid/pandoc-discuss/
>>                CAMBF16v%2B260F8GOnVNNHDWmwwhifzt3kfRgL87ThSzkdgYdpAQ%40mail.gmail.com
>>                .
>> 
>>        --
>>        You received this message because you are subscribed to the Google
>>        Groups "pandoc-discuss" group.
>>        To unsubscribe from this group and stop receiving emails from it, send
>>        an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>> 
>>        To view this discussion on the web visit [3]https://groups.google.com/d
>>        /msgid/pandoc-discuss/
>>        17361617-9944-4082-86c8-ac8a38d2c294n%40googlegroups.com.
>> 
>> --
>> You received this message because you are subscribed to the Google Groups
>> "pandoc-discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email
>> to [4]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>> To view this discussion on the web visit [5]https://groups.google.com/d/msgid/
>> pandoc-discuss/7885713e-5df3-4b6d-b19d-f1dc17514669n%40googlegroups.com.
>> 
>> References:
>> 
>> [1] https://en.m.wikipedia.org/wiki/Quotation_mark
>> [2] https://groups.google.com/d/msgid/pandoc-discuss/CAMBF16v%2B260F8GOnVNNHDWmwwhifzt3kfRgL87ThSzkdgYdpAQ%40mail.gmail.com?utm_medium=email&utm_source=footer
>> [3] https://groups.google.com/d/msgid/pandoc-discuss/17361617-9944-4082-86c8-ac8a38d2c294n%40googlegroups.com?utm_medium=email&utm_source=footer
>> [4] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>> [5] https://groups.google.com/d/msgid/pandoc-discuss/7885713e-5df3-4b6d-b19d-f1dc17514669n%40googlegroups.com?utm_medium=email&utm_source=footer
> 
> -- 
> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/YvvKZ3HMQEjjg8VO%40localhost.

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/4BEB6DAA-4798-49C0-8BB6-050E5E3BE76F%40gmail.com.


      reply	other threads:[~2022-08-16 17:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-27 20:49 Claudio Di Vita
     [not found] ` <CAMBF16v+260F8GOnVNNHDWmwwhifzt3kfRgL87ThSzkdgYdpAQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-07-28  7:59   ` BPJ
     [not found]     ` <CADAJKhDFiKANSFK20C0qMfFJ2-v6D6AXzAYM=Y5y8u_sFd8BAw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-08-16 10:37       ` Claudio Di Vita
     [not found]         ` <17361617-9944-4082-86c8-ac8a38d2c294n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-08-16 13:06           ` BPJ
     [not found]             ` <CADAJKhD0ZADeAk7r9NP_AVXcdt8Ay2QczmKnG+eofTWnRKVEJA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-08-16 15:56               ` Claudio Di Vita
     [not found]                 ` <7885713e-5df3-4b6d-b19d-f1dc17514669n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-08-16 16:44                   ` John MacFarlane
     [not found]                     ` <1CB38E73-2949-40B4-A5DF-77C16879D636-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2022-08-16 16:46                       ` John MacFarlane
2022-08-16 16:48                   ` Bastien DUMONT
2022-08-16 17:01                     ` John MacFarlane [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BEB6DAA-4798-49C0-8BB6-050E5E3BE76F@gmail.com \
    --to=fiddlosopher-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).