From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/16802 Path: news.gmane.org!.POSTED!not-for-mail From: Scot Mcphee Newsgroups: gmane.text.pandoc Subject: Re: Ancient Greek in output PDF Date: Wed, 25 Jan 2017 18:41:18 +1000 Message-ID: References: <45028ac1-86cf-40ee-b3b8-7560eb9dce47@googlegroups.com> <91f1b15e-860d-8b35-1451-aca9fdf4ec45@web.de> <67ea3fe7-0d6b-4ad2-8010-d69295cba0b8@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_4B2F2736-10D6-4631-B8FB-DF6A62470F92" X-Trace: blaine.gmane.org 1485333686 15484 195.159.176.226 (25 Jan 2017 08:41:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 25 Jan 2017 08:41:26 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDTP7RMHTQFRBNGJUHCAKGQEVQOPPYI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jan 25 09:41:20 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-yw0-f191.google.com ([209.85.161.191]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWJ8p-0003Nv-6J for gtp-pandoc-discuss@m.gmane.org; Wed, 25 Jan 2017 09:41:19 +0100 Original-Received: by mail-yw0-f191.google.com with SMTP id l16sf14236243ywb.0 for ; Wed, 25 Jan 2017 00:41:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:mime-version:subject:date:references:to:in-reply-to :message-id:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:x-spam-checked-in-group :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=NVIYluK7mBk9qJDbF53Cbcn6zDEHa3egPx5F/8apduM=; b=ngcKalKl3hqslFN+zR7E+7znBGYeUP/HNf7vBzuh+v4UF1YbLrER913cG2QeIkjBJB PUbO++t2eRa7npJ/mfmyEtAPj82Ax7qJZFUaTiyTfcYSxMzQn6+5Tn/152KMXucrdcDQ 9qIeSGSafqfeiSCC3Cf/V4t38D813ZPN8dw3cisoyWDDWC5nk8vt9LWZ0eJAqBLqawfX 6FX6ynz9SasEfZ1bjnn8OlK8vIa2JXykNO456Xtvbvr6ZuDmop+GjKch+OQGkkCsia8s Aiw5znkPN0mwmsqbN9r4h/4pGoftFuy4PlWWxa16jMD9S0LxyoF70ZNn+bi3r/zMb62h 5CLg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:date:references:to:in-reply-to:message-id :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=NVIYluK7mBk9qJDbF53Cbcn6zDEHa3egPx5F/8apduM=; b=EDPuCjUsaS9XZbdMTD3Zy5Z/4eNbTU9x/Cbou8+C+AsCuuESagYWPIpxNHwC4wot9w JyW/VMyNHIVPfiL5bb3j1ZjKP8x9cT4HJ4PdUCGOffPEgQmBU6+5A9jVdUg9+amr0XgO 4vqNhFy7eXbpGFGKXgUugmoB9FAdoB25nbNL3q3MDDE22ysNcVAdf6yo8xPkMVsGQxVQ KFxnU3TJLjYacWnarxbuBvEMkJ1eB3ln4oqvlkp1DKo+LycOaa2terk/UL0351Pj7/S3 Bu53aUdevf9dGxEVoQ6cNbFb8R8lJS2gLUWYf3G7X2HxyYkSPRJtoYJ5Y78/fuTWuLTO EEnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:mime-version:subject:date:references :to:in-reply-to:message-id:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=NVIYluK7mBk9qJDbF53Cbcn6zDEHa3egPx5F/8apduM=; b=U0eB7Xh5PXYGi4SSbxzhROH2A4wDBkbdjr/rV4/lWT43VRLl10tOsNEJBoMi1Jdujs bJz9ibVnS+WfREgo8NWXx3hYBD6INEeI4RUtmdIdlL2+mV95uIAT2zNd3za91TME8VOt PyCLXyL0xzk9dB9vg8wuF5zXOKeKm5q4Pk79bcLNW6q86uDyBQwSCzxk0UPKictDPYH8 E0X/+zb8ldbCCB0dRLqbnfOVggpbTxTJrjR9YLs0hjRdYfxSxXZu51YESadyOEUVEI7T wIn6MsSrJOITdVZTcz9PYIBdfZfxu2fEUIU/hbCDndE2WEHf8yGVLIkek/VPIDTmaDhZ Zgww== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AIkVDXLT+/ZVm0WDAvsGzOIo5sOdMLTeA1qDI0aXUjzAKc+wUldu9BHRssdiv1++tdasTg== X-Received: by 10.157.41.149 with SMTP id n21mr3221277otb.4.1485333684396; Wed, 25 Jan 2017 00:41:24 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.157.31.6 with SMTP id x6ls17135892otd.46.gmail; Wed, 25 Jan 2017 00:41:24 -0800 (PST) X-Received: by 10.129.67.15 with SMTP id q15mr11882506ywa.51.1485333683996; Wed, 25 Jan 2017 00:41:23 -0800 (PST) Original-Received: from mail-pf0-x229.google.com (mail-pf0-x229.google.com. [2607:f8b0:400e:c00::229]) by gmr-mx.google.com with ESMTPS id h130si5378679pfe.1.2017.01.25.00.41.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Jan 2017 00:41:23 -0800 (PST) Received-SPF: pass (google.com: domain of scot.mcphee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:400e:c00::229 as permitted sender) client-ip=2607:f8b0:400e:c00::229; Original-Received: by mail-pf0-x229.google.com with SMTP id e4so56748803pfg.1 for ; Wed, 25 Jan 2017 00:41:23 -0800 (PST) X-Received: by 10.99.107.130 with SMTP id g124mr46325543pgc.108.1485333683333; Wed, 25 Jan 2017 00:41:23 -0800 (PST) Original-Received: from [192.168.111.19] (c110-23-100-43.kelvn4.qld.optusnet.com.au. [110.23.100.43]) by smtp.gmail.com with ESMTPSA id t87sm50306927pfe.59.2017.01.25.00.41.20 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Jan 2017 00:41:21 -0800 (PST) In-Reply-To: <67ea3fe7-0d6b-4ad2-8010-d69295cba0b8-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Mailer: Apple Mail (2.3259) X-Original-Sender: scot.mcphee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com; spf=pass (google.com: domain of scot.mcphee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:400e:c00::229 as permitted sender) smtp.mailfrom=scot.mcphee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com 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.org gmane.text.pandoc:16802 Archived-At: --Apple-Mail=_4B2F2736-10D6-4631-B8FB-DF6A62470F92 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 I specify Times New Roman as my font (on a Mac) and get Classical Attic wit= hout any discernible problems as yet with xelatex: /usr/local/bin/pandoc -f markdown -t latex -V geometry:margin=3D4cm -V font= size=3D12pt -V papersize=3Da4paper -V documentclass=3Dmemoir -V classoption= =3Doneside -V classoption=3Darticle -V mainfont=3D'Times New Roman=E2=80=99= --smart --standalone --latex-engine=3Dxelatex Scot -- Scot Mcphee Computer Programmer, Classics PhD. p +61 412 957414 e scot.mcphee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org w http://autonomous.org/ t @scotartt > On 25 Jan 2017, at 04:53 , John Muccigrosso wrote: >=20 > On Tuesday, January 24, 2017 at 12:35:08 PM UTC-5, ousia wrote: > On 01/19/2017 05:08 PM, John Muccigrosso wrote:=20 > > I was helping a friend use pandoc to go from markdown to PDF on a Mac.= =20 > > His problem was that the default PDF output couldn't handle the Greek= =20 > > characters.=20 > > [...]=20 > > I'm concluding that the default PDF output font (Latin Modern Roman?)= =20 > > doesn't have these characters, whereas Baskerville (among others) does.= =20 >=20 > Sorry for my delayed reply, John.=20 >=20 > The Latin Modern typeface only contains Latin glyphs.=20 >=20 > > Is this right? Is there another way to solve this within the default se= tup?=20 >=20 > https://cm-unicode.sf.net contains Computer = Modern fonts in OpenType=20 > format. The following should work:=20 >=20 > \setmainfont{CMU Serif}=20 >=20 > Even defining a fallaback font for Greek characters should be easy with= =20 > fontspec. But I haven=E2=80=99t used LaTeX for years and I don=E2=80=99t = remember how to=20 > do it.=20 > =20 > Thanks. I found them here: http://cm-unicode.sourceforge.net=20 >=20 > It looks like the CMU Serif is (nearly) identical to Latin Modern Roman. >=20 > I have a default.latex that sets my own fonts, but I think I'll modify it= to be sensitive to main font being set in the YAML. >=20 >=20 >=20 > --=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 pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . > To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/67ea3fe7-0d6b-4ad2-8010-d69295cba0b8%40googlegroups.com . > For more options, visit https://groups.google.com/d/optout . --=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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/C4FF6753-B16A-4D66-9DD7-6CFD65886EDA%40gmail.com. For more options, visit https://groups.google.com/d/optout. --Apple-Mail=_4B2F2736-10D6-4631-B8FB-DF6A62470F92 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8 I specify Times Ne= w Roman as my font (on a Mac) and get Classical Attic without any discernib= le problems as yet with xelatex:

=
/usr/local/bin/pandoc= -f markdown -t latex -V geometry:margin=3D4cm -V fontsize=3D12pt -V p= apersize=3Da4paper -V documentclass=3Dmemoir -V classoption=3Doneside -V cl= assoption=3Darticle -V mainfont=3D'Times New Roman=E2=80=99  --sm= art --standalone --latex-engine=3Dxelatex

Scot


--
Scot Mcphee
Computer Program= mer, Classics PhD.
p +61 412 957414
scot.mcphee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.orgw http://autonom= ous.org/
t @scotartt

On= 25 Jan 2017, at 04:53 , John Muccigrosso <jmuccigr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

On Tues= day, January 24, 2017 at 12:35:08 PM UTC-5, ousia wrote:
On 01/19/2017 05:08 PM, John Muccigrosso wrote:
> I was helping a friend use pandoc to go from markdown t= o PDF on a Mac.
> His problem was that the default PDF output couldn't ha= ndle the Greek
> characters.
> [...]
> I'm concluding that the default PDF output font (Latin = Modern Roman?)
> doesn't have these characters, whereas Baskerville (amo= ng others) does.

Sorry for my delayed reply, John.

The Latin Modern typeface only contains Latin glyphs.

> Is this right? Is there another way to solve this withi= n the default setup?

ht= tps://cm-unicode.sf.net contains Computer Modern fonts in OpenType
format. The following should work:

    \setmainfont{CMU Serif}

Even defining a fallaback font for Greek characters should b= e easy with
fontspec. But I haven=E2=80=99t used LaTeX for years and I d= on=E2=80=99t remember how to
do it.
 
Tha= nks. I found them here: http://cm-unicode.sourceforge.net 

It looks like the CMU Serif is (nearly) id= entical to Latin Modern Roman.

I have a default.latex that sets my own fonts, but I think I'= ll modify it to be sensitive to main font being set in the YAML.


=

--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://group= s.google.com/d/msgid/pandoc-discuss/67ea3fe7-0d6b-4ad2-8010-d69295cba0b8%40= googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/p= andoc-discuss/C4FF6753-B16A-4D66-9DD7-6CFD65886EDA%40gmail.com.
For more options, visit http= s://groups.google.com/d/optout.
--Apple-Mail=_4B2F2736-10D6-4631-B8FB-DF6A62470F92--