From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28771 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: Available default fonts in a factory pandoc/latex Docker image? Date: Wed, 7 Jul 2021 09:21:38 +0200 Message-ID: References: <8a071f76-add3-4917-aa67-6fd73402d3f6n@googlegroups.com> <1d9e9bc2-6820-4b57-9729-ef7c170cbd43n@googlegroups.com> <4ed25c3b-269a-4564-8eb5-42de0c7c0202n@googlegroups.com> <58a94bbf-36e1-415f-b928-bb0abcf4f9c6n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000019397d05c683649c" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28940"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBC5MSWDQMGQEVFDUZAA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jul 07 09:21:49 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ej1-f57.google.com ([209.85.218.57]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1m11sT-0007Ni-BT for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 07 Jul 2021 09:21:49 +0200 Original-Received: by mail-ej1-f57.google.com with SMTP id d2-20020a1709072722b02904c99c7e6ddfsf199482ejl.15 for ; Wed, 07 Jul 2021 00:21:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1625642509; cv=pass; d=google.com; s=arc-20160816; b=QnyVdW0th3gL/nxhItS+R2GOeVgtZO0hRW2UDnECA4hGpMPgvi32qTx1Hi0UHQekL+ NFzNqUqjQh0s9C+X3ngRtfDEJlcKX36sfESW+LqRmT9MHd8K0d3FMW9/6gxBLNU8cp7X 08MeLAbiV3j8ZnMOs2qKqm9onbcCzWDXmzXMuS7912SRLzaw0iTqRVNx/NYXaKbwO5Ao eVLmdeRR7Nm02JEoPP6pAbZbntFxJxrMQoaP4DlPgZYAoIKc0XnLyx8j9ElYbG4gogUy bgNsPjP6dmRcoW7mVpDwilIpxb2IgNwOmppMYIYVip4IRvhszBSBqYHZIj/49lO6k+k9 du7g== 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:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=wkbJFNd59/kHVV16k0tVsjrl6TT61gGXhgkrv4ToJss=; b=FO5SHO3HPOf7NPZtf58JqYIUUkUthRUQwWP2JVXMWpqJkSSzz0lkJ10kEGNXZjg7xo DbAgIcrFs1nlNCTrlJ7t8RlBmdZAooQhQqhuonc4H4LEPbcCDJhP5gRHw4mqfNacSpW1 COHPQyL+at6a1hXAowRH+NUK2LECRZNpBUckUb+ybXOJepf4X0ZgdlEzf1aMSz5iL4lH MtoBGb4Nunuy28CCiab+n/FxIMAmjWlJYkh6SOta1IXu0F/6gnB/w90RUU582x0ijYuV PI74VuI0M9imLknblpRAA6aZxY9HsSqg+Os/seTQ6Ix63Cf8UXKClhxhkdW3szZGEfHQ L5Tg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="QqD/Lfil"; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::234 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=wkbJFNd59/kHVV16k0tVsjrl6TT61gGXhgkrv4ToJss=; b=GEZVcxok7g4YdWUJgxVXq8xAkXlB/uc0nLZxjFeYr4BF9tagnfIrK/WuYHHXQ9iCEB BWVeUmS/RgetshjgEE3eir4N+BxFlKGn1UGl4cklzbA09E5a935UdpcGEAKQo9mJVy6l 1I8yREvLGAVbYaFKiksjeR69+78iQY9ht2nNrQF8P61jWTVtvKvUkY4pqzq5o5GwJ7ZV Df1pdKIYdg3zyZBqaW7Ulr8atwRQNEAjeXqdXkPvdkqB+AU4JudIZMZWGG0bFVUwx2lj WHV+9Fnw9LJsqQDMsxtLl7Ggim+LHIQP6R56QJFn/0GI2E77ehV0MZNq3hEd/xQtWJn2 nKMA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=wkbJFNd59/kHVV16k0tVsjrl6TT61gGXhgkrv4ToJss=; b=qG1yQJb8WjcwdHQm2XlmPzJj2jZbEqstRZZDIMCSxcgupkEdVLPRvHjzIFCpm+DmXE jNBfLxpCnBGMHWUHrgIgApymfzYDY0QAlUjUtTjyxYKIZg1GnG1p4GoY6Z5Al/2jG9PB ZhozeC9ykjdUhTC0Uvo7yV5sZAep2YpWZ+hBiXr8y9PtR1vjec/UHA1HWsZBiZHwmIgf VSifqrQE3zdgYbrD+9qrr5J6M2QCSLb+8SANSp4JVzKPSosUKP7YP94fJTm8/4jH+GCQ avX61cwRJxWIbexRvXfXVOagLWQLFCuQp5CV3UE7JQdUSryHTn3zP60TKquWKx9ppmLE 9X/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to: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=wkbJFNd59/kHVV16k0tVsjrl6TT61gGXhgkrv4ToJss=; b=oY7YlaKWmv3dMGFB2c1L6F38TAN/qs2Xkt7q3GnsrDw+yxaPMdQs7UdUzWKSAk9amo tjbXVkd4lEuNO9Ye+qhWUmSP0JsPaPaA0syQoNv4ia9aKJS/Q/raGROvPlxWQ1+L1VBQ +97VMcWpDr3YDY9tpZQIWlBUiHo1wRCnjG2fZf8Lpuh6fqlHaLa525J2JL4MvGZ6S5kb 1ZAXLO6GoJuqaVxiH489s3gYCt9G3luVhd6gA6iLj9poyHe74LdCE9j9aX8qyRn6DgZ8 BmoXn3nx3g27RMJACvl7DcUPtmNdf/fUkzdjiS9TyEmnbBoGEvfO8gO/pMjehD7Y7pVI /rXg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532SQaoHzgIlHow7e4pAnXswgGeHKxyCAlQnJJf33FCI9Pyfv7ga ILY6L1nGTVF14Tf+sRqBM/M= X-Google-Smtp-Source: ABdhPJxU+nj8YzHs7R3SgQ+K1AzVpXNvyh93co1zIdAvohh4TOiMdGgGtWkM/o6M9i9+7PNACF4SoA== X-Received: by 2002:a05:6402:1357:: with SMTP id y23mr26213923edw.244.1625642509094; Wed, 07 Jul 2021 00:21:49 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6402:26d2:: with SMTP id x18ls3886278edd.1.gmail; Wed, 07 Jul 2021 00:21:46 -0700 (PDT) X-Received: by 2002:a05:6402:358b:: with SMTP id y11mr2579163edc.43.1625642506513; Wed, 07 Jul 2021 00:21:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625642506; cv=none; d=google.com; s=arc-20160816; b=Q9Pb0UVdPseaezVU1b60n7AibX83wW7oyoOaXEERAOzAMld80LDiNidQ+psro4RsWt r8xzfPnd2TbbQu24yNfs8FknK33ODIgKXTTjiFHeKeO5xcmztbQsdEF9O26qYdjw7Zdf /5zIc2MEdBH6WHU1mEkQQxrUeiGvkWDo63lNJF3a2df+Hd8EV/qPqwnjMuqAhraHNRk0 jvVboaFDtm3/FFn5UOCGVEkwvehxwWQUG0/f71ymFrnKYcrIUNGsdCI50DrDvXwmVVMu 5PS8Ka7eSJsXjsWbZEOt90HzGeyo2CnUhwADCDrMB3U0GiEyKPw2InJuP91je25wFm8d fhLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=rduzkkcWxVdvotJkJ8qJ/G/0nv0J68vH3cCR3dgn+no=; b=DpavPfrVIb5Qti6A1y6n7b3TOIIEhmh4mMfnYK2WZY1A6k2ITIXzucsPGaprX+hFU3 SfDkbePVxgVGaCTdQbAnUOfdo5vjBJJjTDE+jZovxHfv2A54dmwTvCanjp3Lkc0aWccS 3FD2+/qFdgOimXW/G4eupeUbyoXsJdnW32nsjliYpg4SY/UBjRjdJLXVdN4o3WjdI9g9 9NwMM0tq/sH1FyLiuJtz+LRA5HhMgfsAwx/esXSmXyrnCyLeADoPCqSzg7EpxOkoAzc2 3ITfUEunUDNlJ1F4PnbPvevIZwsFd19/3sLd+ZLfxAN2ahWDC1DNm/HNMLCE+2elHPFb k1mQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="QqD/Lfil"; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::234 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com. [2a00:1450:4864:20::234]) by gmr-mx.google.com with ESMTPS id c16si630085edj.3.2021.07.07.00.21.46 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Jul 2021 00:21:46 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::234 as permitted sender) client-ip=2a00:1450:4864:20::234; Original-Received: by mail-lj1-x234.google.com with SMTP id q4so1406049ljp.13 for ; Wed, 07 Jul 2021 00:21:46 -0700 (PDT) X-Received: by 2002:a05:651c:111b:: with SMTP id d27mr17963452ljo.387.1625642505942; Wed, 07 Jul 2021 00:21:45 -0700 (PDT) In-Reply-To: X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="QqD/Lfil"; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::234 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE 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.io gmane.text.pandoc:28771 Archived-At: --00000000000019397d05c683649c Content-Type: text/plain; charset="UTF-8" Reading the relevant parts of the manual should clear things up: https://pandoc.org/MANUAL.html#option--defaults https://pandoc.org/MANUAL.html#default-files I always use XeLaTeX but I think that fontfamily should go in the metadata section of a defaults file: ``````yaml metadata: fontfamily: whatever fontfamilyoptions: - 'option=value' `````` Using XeLaTeX (`pdf-engine: xelatex` in a defaults file or `--pdf-engine=xelatex` on the command line) along with `mainfont: Helvetica` would probably solve your problem instantly provided the system in your docker image has this font installed (or you might install Noto Sans as a very good alternative if a free Helvetica OTF/TTF version isn't available). However XeLaTeX is considerably slower than pdfLaTeX which may matter if you are serving this live. Den tis 6 juli 2021 23:51Shakr Maker skrev: > Hi John, Pedro, > > Where (in what file) are you defining this yaml when you get your > Helvetica result? Are you adding this yaml to your .md file? Or some other > file? How are you calling it and with what arg? > --- > fontfamily: helvet > ... > > I've tried passing it in as *-d* (which it apparently isn't, based on > https://pandoc.org/MANUAL.html#default-files) > I've tried using *--metadata-file* (which it perhaps isn't and appears to > ignore https://pandoc.org/MANUAL.html#option--metadata-file) > I've tried passing it in as a sequential yaml file per ( > https://pandoc.org/MANUAL.html#extension-yaml_metadata_block) > And I earlier tried the straight argument without the yaml, *-V > fontfamily=helvet* > > None of them work. I still don't get Helvetica. > > Thanks for any help! > > > > On Thursday, July 1, 2021 at 11:56:24 AM UTC-4 John MacFarlane wrote: > >> >> I do get Helvetica font when I try this (pandoc test.md -o test.pdf). >> >> "Pedro P. Palazzo" writes: >> >> > OK, there's something weird going on with Pandoc (not the Docker >> image). I created a test file with the following in the front matter: >> > >> > --- >> > fontfamily: helvet >> > header-includes: >> > - \renewcommand\familydefault{\sfdefault} >> > --- >> > >> > If I run `pandoc -o myfile.pdf`, it does NOT use Helvetica. However, if >> I run `pandoc -o myfile.tex` and then `pdflatex myfile`, the document DOES >> come out in Helvetica. Not sure where to go from here, though. >> >> -- > 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/e14acfcd-b5da-42ef-9261-fc5a0ab0953bn%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 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/CADAJKhCyYv67UAEBG4fWr_MbETy3mQ1gCuyG57G%3D5OT9btUDpw%40mail.gmail.com. --00000000000019397d05c683649c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Reading the relevant parts of the manua= l should clear things up:

https://pandoc.org/MANUAL.html#= option--defaults


I always use XeLaTeX but I think that fontfamily should go in the metad= ata section of a defaults file:

``````yaml
metadata:
=C2=A0 fontfamily: whatever
=C2=A0 fontfamilyoptio= ns:
=C2=A0 =C2=A0 - 'option=3Dvalue'
``````

U= sing XeLaTeX (`pdf-engine: xelatex` in a defaults file or `--pdf-engine=3Dx= elatex` on the command line) along with `mainfont: Helvetica` would probabl= y solve your problem instantly provided the system in your docker image has= this font installed (or you might install Noto Sans as a very good alterna= tive if a free Helvetica OTF/TTF version isn't available). However XeLa= TeX is considerably slower than pdfLaTeX which may matter if you are servin= g this live.


Den tis 6 juli 2021 23:51Shak= r Maker <shakrmaker-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
Hi John, Pedro,
Where (in what file) are you defining this yaml when you get your Hel= vetica result? Are you adding this yaml to your .md file? Or some other fil= e? How are you calling it and with what arg?
---
fontfamily: helvet
...

I've tried using --metadata-file= (which it perhaps isn't and appears to ignore https://pandoc.org/MANUAL.html#option--metadata-file)
I've tr= ied passing it in as a sequential yaml file per (https://pandoc.org/MANUAL.html#extension-yaml_metadata_block)<= br>
And I earlier tried the straight argument without the yaml, <= b>-V fontfamily=3Dhelvet

None of them work. I = still don't get Helvetica.

Thanks for any help!

<= br>

On Thursday, July 1, 2021 at 11:56:24 AM UTC-4 John MacFarlane wrote:

I do get Helvetica font when I try this (pandoc test.md -o test.pdf).

"Pedro P. Palazzo" <pedro..= ..@gmail.com> writes:

> OK, there's something weird going on with Pandoc (not the Dock= er image). I created a test file with the following in the front matter:
>
> ---
> fontfamily: helvet
> header-includes:
> - \renewcommand\familydefault{\sfdefault}
> ---
>
> If I run `pandoc -o myfile.pdf`, it does NOT use Helvetica. Howeve= r, if I run `pandoc -o myfile.tex` and then `pdflatex myfile`, the document= DOES come out in Helvetica. Not sure where to go from here, though.

--
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 pandoc-discuss+unsubscribe-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/e14acfcd-b= 5da-42ef-9261-fc5a0ab0953bn%40googlegroups.com.

--
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 view this discussion on the web visit https://group= s.google.com/d/msgid/pandoc-discuss/CADAJKhCyYv67UAEBG4fWr_MbETy3mQ1gCuyG57= G%3D5OT9btUDpw%40mail.gmail.com.
--00000000000019397d05c683649c--