From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28774 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Shakr Maker Newsgroups: gmane.text.pandoc Subject: Re: Available default fonts in a factory pandoc/latex Docker image? Date: Wed, 7 Jul 2021 14:16:41 -0700 (PDT) Message-ID: <05b006e2-3858-4537-b7ac-2763bd9190adn@googlegroups.com> 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/mixed; boundary="----=_Part_74_1527302347.1625692601888" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8226"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCGOVHFQQIKBBOVTTCDQMGQE5LVLUXI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jul 07 23:16:46 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f192.google.com ([209.85.167.192]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1m1EuS-0001x7-Vq for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 07 Jul 2021 23:16:45 +0200 Original-Received: by mail-oi1-f192.google.com with SMTP id a204-20020acab1d50000b0290239d39cfa6csf2904521oif.20 for ; Wed, 07 Jul 2021 14:16:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=qZTja3ZaVXS2cS9iuZe6NOaagcDTHkeRqK+xdSLy+kQ=; b=RzwUXxy2OdMQBQECHCO/Jd7pHd3Hv15pQcvqcuHy57SgqNI6yJGXDmUP2EZGyV2Pu/ mpcJlabesUkXDQzYO7sZoPcPjdkK8ogzLWtIxZs04oCix08MhoVzLokEloxT43Y0/rtC gygk46voBOrT/qs5kDsCmoKUMLnJW9alkNQyA1atJsNmcN0tqoaxUYmLhmZ8z3TcRI2h bb+WswJ8fOmIegdlIy2p79L9C+8wX6DgS5GGnEZYXMYFJJKeMKNBuLBHp5zne5PxKKWV XfuwtnaeO1+AsrorFiRLgm6Y3aeB69Sof+lD9xqMcP1ng2+Tr3lpZve+ato8Vui0doOD OlVg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=qZTja3ZaVXS2cS9iuZe6NOaagcDTHkeRqK+xdSLy+kQ=; b=XN9htuyFBTJ7YeUvczuqJt8ghUpsGnJzs36/QOMpFPfT4GqQpij/BkWreixhEH7L26 1i33ceP/K/Q8n8UHVzm68avSnmYp8un9wNgHAeGbM03ZBXAYzn0GDXN3BTHwcAPFrLaV wezVJYNxop/1VN8mteSkuHaMlVzIlc/TsNuymK201jfx+WKtnesHp/9EL57cfMkpvFBi NrEpvV8RFG2AP7y4Hu2ysC5K1F2DzBVV16pq+PVnozBSYNv+xPQB/az9UD0hqaKWGKvp NGpLB/d3qU4k/NUFBKcYCD+frkuAA5J5JMLrGrGoNIY/VGBDMEr/Axn5eIDNfBtoxscI k7Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=qZTja3ZaVXS2cS9iuZe6NOaagcDTHkeRqK+xdSLy+kQ=; b=YPQD/H5TNFl1m2F/GmopKjfFuUq2TAlWnYbQD3yJ5CEpmujbrlMdeK7DEztviGXx+p nBoQfF8El9PjR9fbi6n+l2MKGMrTtXngCXVArqKHz+XcyUec7NDZok4PG85PCyCh6xB7 TGtLg7yKPaKS//xt/xEXbJVQDAWsLfnorTROQlVz6n8jglWs3UAtYp+g/syCamXraLy7 QMD62T/vP5tW59ngf7CboKX24q8q40o8zmJ5rxmLV17IM+sRN1c5+GsJDaBfwwClIs05 uQ+W6nJZuN5QSF/S3SYnTBVbXnhXLovbHQ09Uhu81nV0AQVQG9S+d/lDk2HzNzpXt8TH ISeA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM5300z4Mc/7A4iSl8djY4NaObyuyOvoNv7EMZhcDbFPiaPioIVOZ1 tWO8789jhpYSIpQhzEijv9w= X-Google-Smtp-Source: ABdhPJzr8WirhYqcVtuOlwtpjA9+3+nkRQtKiT8lIXkuRMzdfxmwb8SDMobELPGsJbnzTrNzFz1Oqw== X-Received: by 2002:a9d:1ec:: with SMTP id e99mr15817554ote.89.1625692603998; Wed, 07 Jul 2021 14:16:43 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:5f05:: with SMTP id t5ls98787oib.3.gmail; Wed, 07 Jul 2021 14:16:42 -0700 (PDT) X-Received: by 2002:aca:3446:: with SMTP id b67mr20135731oia.120.1625692602494; Wed, 07 Jul 2021 14:16:42 -0700 (PDT) In-Reply-To: X-Original-Sender: shakrmaker-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org 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:28774 Archived-At: ------=_Part_74_1527302347.1625692601888 Content-Type: multipart/alternative; boundary="----=_Part_75_21854170.1625692601888" ------=_Part_75_21854170.1625692601888 Content-Type: text/plain; charset="UTF-8" Hi BP, Thanks for the advice, but yes, I've spent days and days reading, and trying and experimenting with all of the listed options and arguments. It's astonishing something so simple as setting a font family could take such a massive amount of time. Regarding use of -d https://pandoc.org/MANUAL.html#default-files says: *"Here is a sample defaults file demonstrating all of the fields that may be used:"* [code block] fontfamily is not included ^ in that code block above, of valid metadata or defaults values. If you or anyone has *a working local version* using pdflatex, I'd love to see: 1. Your *exact* pandoc command used 2. Your *exact* yaml file if one is use 3. The argument you are using to call that yaml Thanks! On Wednesday, July 7, 2021 at 3:21:50 AM UTC-4 BP wrote: > 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-discus...-/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/05b006e2-3858-4537-b7ac-2763bd9190adn%40googlegroups.com. ------=_Part_75_21854170.1625692601888 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi BP,

Thanks for the advice, but yes, I've s= pent days and days reading, and trying and experimenting with all of the li= sted options and arguments. It's astonishing something so simple as setting= a font family could take such a massive amount of time. Regarding use of -= d

https://pandoc.org/MANUAL.html#default-files= says:
"Here is a sample defaults file demonstrating al= l of the fields that may be used:"
[code block]

fontfamily is not included ^ in that code block above, of valid met= adata or defaults values.

If you or anyone has = a working local version using pdflatex, I'd love to see:

=
1. Your exact pandoc command used
2. Your <= i>exact yaml file if one is use
3. The argument you are using= to call that yaml

Thanks!



On Wednesday, July 7, 2021 at 3:21:50 AM UTC-4 BP wrote:
Reading the relevant parts of the manual should clear thing= s up:

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


<= div dir=3D"auto">I always use XeLaTeX but I think that fontfamily should go= in the metadata section of a defaults file:

``````yaml
metadata:
=C2=A0 fontfamily: whatever
=C2=A0 font= familyoptions:
=C2=A0 =C2=A0 - 'option=3Dvalue&#= 39;
``````

Using XeLaTeX (`pdf-engine: xelatex` in a defaults file or `--pdf= -engine=3Dxelatex` on the command line) along with `mainfont: Helvetica` wo= uld probably solve your problem instantly provided the system in your docke= r image has this font installed (or you might install Noto Sans as a very g= ood alternative if a free Helvetica OTF/TTF version isn't available). H= owever XeLaTeX is considerably slower than pdfLaTeX which may matter if you= are serving this live.


Den tis 6 juli 2021 23:51Shakr Maker <shakr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
<= div class=3D"gmail_quote">
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#def= ault-files)
I've tried using --metadata-file (whic= h it perhaps isn't and appears to ignore https= ://pandoc.org/MANUAL.html#option--metadata-file)
I've tried pass= ing 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-discus= ...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-dis= cuss/e14acfcd-b5da-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://groups.google.com/d= /msgid/pandoc-discuss/05b006e2-3858-4537-b7ac-2763bd9190adn%40googlegroups.= com.
------=_Part_75_21854170.1625692601888-- ------=_Part_74_1527302347.1625692601888--