From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31225 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: Apostrophe rendering in pdf Date: Tue, 16 Aug 2022 16:48:39 +0000 Message-ID: References: <17361617-9944-4082-86c8-ac8a38d2c294n@googlegroups.com> <7885713e-5df3-4b6d-b19d-f1dc17514669n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36238"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRB2MU56LQMGQEJYQF7VQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Aug 16 18:48:46 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wm1-f55.google.com ([209.85.128.55]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oNzkC-0009Db-SW for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 16 Aug 2022 18:48:44 +0200 Original-Received: by mail-wm1-f55.google.com with SMTP id r10-20020a1c440a000000b003a538a648a9sf5135229wma.5 for ; Tue, 16 Aug 2022 09:48:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1660668524; cv=pass; d=google.com; s=arc-20160816; b=0SOlRgtOA6LMmCAU2Nb6o32LfFG1NR1//wi7y8JqKEfNrKd3VxfqqpTJp10GTAR8fI IeiJuvXeuE2NGNTgldWnRdYRcCsUjJmjjJ6PDZZTZboseKlyArzjIYX+TtwCpEgrMY5c EcLnmfd8tqjoPWVvh9JfavuvqzBmOwTv6lX9QXlh0PRUUQ5jeGdCsDRpyixIcVi40D3B wmT0TDDP8KB48i+CSA5NnfsnTPum5oygSGN32FF+6ozQ5VKTFcN+lN7oDJCiGEr3k0gR aakr3NdkZvb5nAgV7mM9PtJ/ldzbJ0zNaYC1Sa2PhTVvHJ0xAbd16HIZ+erDOYKxjtUA CK9w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:dkim-signature; bh=5EeacKXjoc65y8HFzf0VI4m8lsXNrYu/cTatEevGiIQ=; b=dyTHLir98gZHNn7Qp5fvr3qJ2LfDeP1/4PPnAJqUYsHYr1IDxdTCu9M262zc9qc2MG e8rw7v5jXQeoU3/jg9zuM7h/VnQ+qGTK6V4FzUueOzr/3Ij91JNS1hoR8fmVpYvP5Z7R mo+cGj/KkVVoFvFF6A+hsvkGbLmL2a8gXqmFeBx8Ak+jy5dRaMGzhNlpZwZSv3NYOXV2 ZFevAzi5/XqRMYbkjgI20BQBzYQIqoJ9jBOgzHaEPnhhrW6+0xz6TELF65ODTO0EdyVS RmCZJRrF8clyztnKnqhZMT8eY3CtwCoerljza9QeL2KHPzF78Okox4zetLHoByjnSZI6 kGdg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=KJZyIj7b; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:from:to:cc; bh=5EeacKXjoc65y8HFzf0VI4m8lsXNrYu/cTatEevGiIQ=; b=FbeCpdUiD42D/6yWHKYHAz87djOrBqU67lNY57J4uo+uxZhS8gRkq4o3bWa0M4pMbb MQaXJsTfaniXYPwDScbuy4RLatDkn0iF6uKsrZmGZ40/xbXZEYE6LzUmQM6dEqGiJPEs wiYniq45CJqDPi/mxKnDpP9FnQxJyW9Sosk9PvH077Wktj2unL2cJxe2Jj7XydU76R2T u7Va05l9K52Bk1fvoePITbBR+0Mp98bBqua+BXmphR/p4uCAOaIp4sgxCBmfNuHiE2Y/ I6ofNb78R8JPjQyZpZL7nJwHdKWMb8NfxGDhe++a5oHM526dk5gDV6X8Ja51tWCPwZn+ 7Syg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:x-gm-message-state :sender:from:to:cc; bh=5EeacKXjoc65y8HFzf0VI4m8lsXNrYu/cTatEevGiIQ=; b=6JRJiH5b2XjoOUxxnRC810tNYx7t9V+gQjizehdNFYezqogeqtWzSqcFxK7rCWNSnB x8tWkUr7MBXMFQkybpI6mQxGDd8Vs2E3BV6iZUKXMTrohs8yT+1gSHhhyaLDDnkX7vny rpV2aHGQrEv4+iHzUqZ257CC3vohrWt5cP+XnbMnjNLU0mSdThh/bgYYapMRVkrpTO2R XlZfzlsf8mza12alV5715/Vv1RMl9GRe+UoeqmYWmj0788IipXjSDAMk3hr68j7vPoVX 5FgX1ecqx/wiZcxF7Y1+FWytjGqHBvAw8 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACgBeo2RQkR/x1llBzKw3EUPXBrDpq1BCX73yxAH4Hv/MYsKy30kt3hK W9K/oJJ0ORw3G1PkF+2lstw= X-Google-Smtp-Source: AA6agR71zbrLVpH6NoDc6ba7cbwL+Y06/gyZrc5x1ejZeYW3UzSGNZiy0ABFUvQCMquctM7UJWtKdg== X-Received: by 2002:a05:600c:4e0f:b0:3a5:e065:9b50 with SMTP id b15-20020a05600c4e0f00b003a5e0659b50mr9914164wmq.35.1660668524318; Tue, 16 Aug 2022 09:48:44 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:600c:3b8e:b0:3a6:47b:13c7 with SMTP id n14-20020a05600c3b8e00b003a6047b13c7ls147306wms.0.-pod-canary-gmail; Tue, 16 Aug 2022 09:48:40 -0700 (PDT) X-Received: by 2002:a05:600c:3508:b0:3a6:10a9:8115 with SMTP id h8-20020a05600c350800b003a610a98115mr254350wmq.164.1660668520632; Tue, 16 Aug 2022 09:48:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660668520; cv=none; d=google.com; s=arc-20160816; b=yPnUaD3qrbcuQ5Ux7/hty6XUeVA8YZzUMXWVZfxj4n+V0kpSllv+weNBRrvrWe0QA/ AYVay8xv9iX3HOm8I06IygPhL6Rn3IjKN4rgfBw1LEYSvjpgBdNv97ERdUnQpxjryJoi T9T8mBW6vbKzK+DxLXjiW6WXFzEft6oMtKt9+e+GUY61KJRvX54XNRe7h5Ooy584rfS0 qLu3aKHLIu8AUuszN7Q5TQ+b4nFG6lzo0Fv7d6odyGzbRRFQih7yhRc3+AgS1KzWL5ed PJPNWL3Z/c65O2tlpCzm/4IF4mTUXhxM7KJ/xXApFjz19i+xrUKW2LAzmZzgK2Q2Kiui MqLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=aY5GxQzThrJWaWoSBzqA30yncAj8G9C+8vJ1r6OYLdw=; b=L0Re3WSeEEMCKwnTTdcI7qOCtphTbW0XiTHW9XIHL2lespGJuIzuQo0dxybauafsxL 1lqkV+d9UuiprwYkmMNXDoceXymCPYEWasWjesIpXPJH/QJu6mrMeGkoLIicujOqdbh6 VJ2GDabSQ4TchQO/5mJq3vjzXlqaAYZkLJ2SyxoBQpZ6ChX3tQviAdb4ivbU/g9AcS2z QR/8Sm4Qt4cS3T1K3hrvqghOXuWizSlXwtjGefbt3+6LmBATHFVnBQ7XuSxw9zDahZ6b ioKZjYJG3EWw8dYgBuzK8OWg0vc/mUj+4bB0QcfavM5L1Mia6Rs7x0UazXRxo2L95qQQ 5J+Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=KJZyIj7b; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Original-Received: from mout02.posteo.de (mout02.posteo.de. [185.67.36.66]) by gmr-mx.google.com with ESMTPS id u3-20020a7bc043000000b003a5502a892esi781385wmc.2.2022.08.16.09.48.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Aug 2022 09:48:40 -0700 (PDT) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) client-ip=185.67.36.66; Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 452B5240103 for ; Tue, 16 Aug 2022 18:48:40 +0200 (CEST) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4M6cY36Klkz9rxQ for ; Tue, 16 Aug 2022 18:48:39 +0200 (CEST) Content-Disposition: inline In-Reply-To: <7885713e-5df3-4b6d-b19d-f1dc17514669n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=KJZyIj7b; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:31225 Archived-At: The problem is that LaTeX interprets the ' character as a right single quot= e. As John said, to type a straight quote, you can use the command \textquo= tesingle. If you want all straight quotes in the LaTeX source produced by Pandoc to b= e printed as such in the PDF output, you can write the following instructio= ns in your preamble (via "header-includes" or in your template): \catcode`\'=3D13 \def'{\textquotesingle} Then, by disabling the =E2=80=9Csmart=E2=80=9D extension and backslash-esca= ping the single quotes that should printed as such (e.g. =E2=80=9Cit's the = value \'value\'=E2=80=9D), you should get the desired output. Le Tuesday 16 August 2022 =C3=A0 08:56:36AM, Claudio Di Vita a =C3=A9crit : > I used ' for ' but with the all the possible combinations of smart > extensions (enabled/disabled on input and/or output format), an apostroph= e is > rendered as a right single quote =E2=80=99 (’). >=20 > Maybe it depends on some LaTeX package I have included :( >=20 > Thanks, >=20 > Claudio=20 >=20 > Il giorno marted=C3=AC 16 agosto 2022 alle 15:06:47 UTC+2 BP ha scritto: >=20 > Then use HTML entities: >=20 > -=C2=A0 =C2=A0=E2=80=98=C2=A0 `‘` > -=C2=A0 =C2=A0=E2=80=99=C2=A0 `’` > -=C2=A0 =C2=A0=E2=80=9C=C2=A0 `“` > -=C2=A0 =C2=A0=E2=80=9D=C2=A0 `”` > -=C2=A0 =C2=A0=C2=AB=C2=A0 `«` > -=C2=A0 =C2=A0=C2=BB=C2=A0 `»` > -=C2=A0 =C2=A0=E2=80=B9=C2=A0 `‹` > -=C2=A0 =C2=A0=E2=80=BA=C2=A0 `›` >=20 > 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!) >=20 > For all the details see: >=20 > <[1]https://en.m.wikipedia.org/wiki/Quotation_mark> >=20 >=20 > Den tis 16 aug. 2022 12:38Claudio Di Vita skre= v: >=20 > Thanks for the suggestion, but it doesn't work (with or without t= he > smart extension) >=20 > Il giorno gioved=C3=AC 28 luglio 2022 alle 09:59:28 UTC+2 BP ha s= critto: >=20 > A backslash before the apostrophe `\'` should give you a stra= ight ' > and `’` should give you a Unicode apostrophe/right sing= le > quotation mark. If you are using LaTeX to produce PDF `\'` sh= ould > 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 LaTe= X > installed right now.) >=20 > Den ons 27 juli 2022 22:50Claudio Di Vita > skrev: >=20 > 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. >=20 > Is there any way to change this behaviour ? >=20 > Thanks a lot, cheers >=20 > Claudio >=20 > -- > You received this message because you are subscribed to t= he > 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%40m= ail.gmail.com > . >=20 > -- > You received this message because you are subscribed to the Googl= e > 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 >=20 > To view this discussion on the web visit [3]https://groups.google= .com/d > /msgid/pandoc-discuss/ > 17361617-9944-4082-86c8-ac8a38d2c294n%40googlegroups.com. >=20 > -- > 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/m= sgid/ > pandoc-discuss/7885713e-5df3-4b6d-b19d-f1dc17514669n%40googlegroups.com. >=20 > References: >=20 > [1] https://en.m.wikipedia.org/wiki/Quotation_mark > [2] https://groups.google.com/d/msgid/pandoc-discuss/CAMBF16v%2B260F8GOnV= NNHDWmwwhifzt3kfRgL87ThSzkdgYdpAQ%40mail.gmail.com?utm_medium=3Demail&utm_s= ource=3Dfooter > [3] https://groups.google.com/d/msgid/pandoc-discuss/17361617-9944-4082-8= 6c8-ac8a38d2c294n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter > [4] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [5] https://groups.google.com/d/msgid/pandoc-discuss/7885713e-5df3-4b6d-b= 19d-f1dc17514669n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter --=20 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 e= mail 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.