From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28734 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Shakrmaker Newsgroups: gmane.text.pandoc Subject: Re: Available default fonts in a factory pandoc/latex Docker image? Date: Wed, 30 Jun 2021 16:34:10 -0700 (PDT) Message-ID: <58a94bbf-36e1-415f-b928-bb0abcf4f9c6n@googlegroups.com> References: <8a071f76-add3-4917-aa67-6fd73402d3f6n@googlegroups.com> <1d9e9bc2-6820-4b57-9729-ef7c170cbd43n@googlegroups.com> <4ed25c3b-269a-4564-8eb5-42de0c7c0202n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_172_698218181.1625096050892" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29818"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCPITV4J2QFBB4766ODAMGQEBGKRZHQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jul 01 01:34:15 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f58.google.com ([209.85.210.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lyjig-0007ZI-QM for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 01 Jul 2021 01:34:14 +0200 Original-Received: by mail-ot1-f58.google.com with SMTP id m26-20020a0568301e7ab0290465faca518fsf2703138otr.18 for ; Wed, 30 Jun 2021 16:34:14 -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=Sl6hnLaGJrI3iQCkZIx+VNLphoCcH26JXrSR3JrM17M=; b=XtGxiM6uEvLZbrg1jj5r3Asn9q6nr57MUApbaVCG59wA11QnrW81sPmZKW07AVaIzy BdsFBNXBqriJmf9+DiOhav++aIfd5ZnwNl0w4/gxG69RA8vxaNwWajJfZr+fQSgntXrT tz9wGtfYaXzlbQRq1bjqJV08a548R9vu7MJkYep7X6jPZDE3AT7odtE6sbH0SQmtLRpM 2oqE56BCUNhiQGUW63HzIG2CYSYfxb5vS6puJtqEJu4aloXDOCX2fMa5DI3CErRH730G 14qGqFj6hmB+iIkfpv0q3MbYRtZ5GefqMBeij7n7gcyNY365n5ipfifxL+fm1NiI9Gcs fkUA== 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=Sl6hnLaGJrI3iQCkZIx+VNLphoCcH26JXrSR3JrM17M=; b=MgqJG5Nm5HBMHchEWXDmbIIs87vUM9JoSQmmODrgF6wXUWtjLStwu242p95ShJs9hB YZDsU2AAInvxGqby2lP4+cZvUZKsj64DpbZ+/4+2w7iZt8tynBoKr+bGDuNFKu8T2xgL ksTlAirKAaE5AyMp77N072agpEpy9I2kBUrNEEp2WSZdsy+Y4qgnsmwc5DBI0fmEGrgC WWzCLYkJGKkCn3XqDYWSAs0r58sJsqLHgFCz9AUjap5VF99sdYouNLvxg6czkIMP/03B lsasYpumzp+hmqwES9fdoPu+DLpQtKQNt/qN1lDtKdMcekIEi6YLUjAs3Iu40rkWWpGw bpdQ== 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=Sl6hnLaGJrI3iQCkZIx+VNLphoCcH26JXrSR3JrM17M=; b=KgZlOg2V2nG/qSoPEU8GPJoKDdObmByUePWuFmIEMOTZPSEl6hrV6etG9fI37B8Y21 hSpp3btYKXcNG84wWJRSPXjL5PTW0C8w70HK/YHOgjH2JERrdn4UZgtYjdOMXC6xDyOo eil7Nx6xRsUITYKqQgHCQSecwOvoR8WQEfCHX2G8lb45RucEOLui2yMtSTuu/ZoY/VGX /ZA/AtL1VvWIY4Jt/cY5zgcSUMNH+m1shlmviueU0Oo59ASIuuDXy9pPuOUXeQrr6C1a /o4y8meA2PFp0Hc/9HQdogZbCyP+A0Y9SDcwIPgyCmYaNBAr+fbYdAtuH7M03BfxTQDT oFeA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531WWUY0HFtMeCiQrvyudOxiztHoJfjZinNClwlIad/WmMuxKfDl NprTL4SM6664sx7c1ucQ8pg= X-Google-Smtp-Source: ABdhPJwuRAWsZLuzusXne83oAEnCQ1Qc7GXrV4FBxHzaQ2wUiZ2T+jMNgazMRMMV7wfHXpHx+55rjQ== X-Received: by 2002:a9d:1d23:: with SMTP id m32mr3496305otm.16.1625096053280; Wed, 30 Jun 2021 16:34:13 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:4116:: with SMTP id w22ls1358848ott.9.gmail; Wed, 30 Jun 2021 16:34:11 -0700 (PDT) X-Received: by 2002:a05:6830:60b:: with SMTP id w11mr8058607oti.117.1625096051577; Wed, 30 Jun 2021 16:34:11 -0700 (PDT) In-Reply-To: <4ed25c3b-269a-4564-8eb5-42de0c7c0202n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: tojonmz-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:28734 Archived-At: ------=_Part_172_698218181.1625096050892 Content-Type: multipart/alternative; boundary="----=_Part_173_1344013963.1625096050892" ------=_Part_173_1344013963.1625096050892 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ok, well I built a custom docker image based on: pandoc/latex:2.14.0.3 Then I did this in my custom Docker container, hoping I'd get at least some= =20 fonts installed. It appears to install quite a few, and exited normally. tlmgr install collection-fontsrecommended Then in my custom Docker container CLI, I do this, I look for Helvetica,=20 and get this: /opt/texlive/texmf-local # tlmgr search --all "fonts" | grep helv helvetic - URW "Base 35" font pack for LaTeX helvetic: texmf-dist/fonts/afm/adobe/helvetic/phvb8a.afm texmf-dist/fonts/afm/adobe/helvetic/phvb8an.afm texmf-dist/fonts/afm/adobe/helvetic/phvbo8a.afm texmf-dist/fonts/afm/adobe/helvetic/phvbo8an.afm texmf-dist/fonts/afm/adobe/helvetic/phvr8a.afm ...etc I've pushed this custom Docker image to my repo on Docker Hub=20 , and my= =20 GitHub Action in another repo loads my custom Docker image, and calls=20 convert_via_pandoc with this arg -V fontfamily=3Dhelvet While it runs my custom Docker image, and converts the PDF, I still don't= =20 get Helvetica, I still get Latin Modern in the PDF. What am I doing wrong? *Note:* I can tell that "helvet" is the desired spelling. Since if I=20 misspell it intentionally, or feed that -V fontamily argument some bogus=20 font family name, the conversion will fail on the missing '.sty'. Is there something I still have to configure in my custom Docker container= =20 image to use that installed Helvetica font? Or should that tlmgr install=20 collection-fontsrecommended have been sufficient? Thanks On Wednesday, June 30, 2021 at 3:10:32 PM UTC-4 Shakrmaker wrote: > Thanks Pedro for confirming. I guess I will look at building a custom=20 > docker image with a basic sans serif font installed, and use and maintain= =20 > that image going forward. > > On Wednesday, June 30, 2021 at 7:07:24 AM UTC-4 pedro....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote= : > >> This is the normal behavior. Latin Modern comes packaged in LaTeX itself= .=20 >> If you need a different font, you can customize your own docker image ba= sed=20 >> on the pandoc/latex image and install the appropriate package (installin= g=20 >> packages at runtime has not worked for me), or use --pdf-engine=3Dxelate= x and=20 >> map your fonts directory as a volume onto the docker container. In the= =20 >> latter case, you can no longer use the `uses:` syntax in GitHub Actions,= =20 >> but have to declare it with `run:`. >> >> Em quarta-feira, 30 de junho de 2021 =C3=A0s 05:11:25 UTC+1, Shakrmaker= =20 >> escreveu: >> >>> Well, when I tried Elham my GitHub action run failed on the font, and= =20 >>> when I check these in the factory local docker/latex 2.14.0.3 image, I = seem=20 >>> to be coming up empty: >>> >>> # ls /usr/share/fonts >>> ls: /usr/share/fonts: No such file or directory >>> # ls /usr/local/share/fonts >>> ls: /usr/local/share/fonts: No such file or directory >>> # ls ~./fonts >>> ls: ~./fonts: No such file or directory >>> # fc-list >>> # >>> >>> The interesting thing to a newbie like me - is where is pandoc getting= =20 >>> its default *Latin Modern* from the docker/latex image? Since the docs= =20 >>> say for this latex variable: >>> >>> https://pandoc.org/MANUAL.html#variables-for-latex > *Fonts:* >>> *"fontfamily* font package for use with pdflatex: The default is Latin= =20 >>> Modern ." >>> >>> On Tuesday, June 29, 2021 at 11:50:21 PM UTC-4 Shakrmaker wrote: >>> >>>> Well, if I'm doing this correctly... when I spin up the 2.14.0.3=20 >>>> docker/latex image and poke around, in: >>>> /usr/share/fontconfig/conf.avail/ >>>> >>>> I see in: 40-nonlatin.conf: >>>> >>>> =20 >>>> =20 >>>> Arshia >>>> sans-serif >>>> =20 >>>> =20 >>>> Elham >>>> sans-serif >>>> =20 >>>> >>>> ...and a continued long list of sans serif ^ font family entries. >>>> >>>> Does this mean they're available as a GitHub Action arg with -V=20 >>>> fontfamily=3DElham, etc? I will try that out next. =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 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/58a94bbf-36e1-415f-b928-bb0abcf4f9c6n%40googlegroups.com. ------=_Part_173_1344013963.1625096050892 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ok, well I built a custom docker image based on:
pandoc/latex:2.14.0.3

Then I did this in m= y custom Docker container, hoping I'd get at least some fonts installed. It= appears to install quite a few, and exited normally.
tlmgr install collection-fontsrecommended

Then in m= y custom Docker container CLI, I do this, I look for Helvetica, and get thi= s:
/opt/texlive/texmf-local # = tlmgr search --all "fonts" | grep helv
helvetic - URW "Base 35" font pac= k for LaTeX
helvetic:
    texmf-dist/fonts/afm/adobe/h= elvetic/phvb8a.afm
    texmf-dist/fonts/afm/adobe/helveti= c/phvb8an.afm
    texmf-dist/fonts/afm/adobe/helvetic/phv= bo8a.afm
    texmf-dist/fonts/afm/adobe/helvetic/phvbo8an= .afm
    texmf-dist/fonts/afm/adobe/helvetic/phvr8a.afm
    ...etc

I've pushe= d this custom Docker image to my repo on Docker Hub, and my GitHub A= ction in another repo loads my custom Docker image, and calls convert_via_pandoc with this arg
 -V fontfamily=3Dhelve= t

While it runs my custom Docker image,= and converts the PDF, I still don't get Helvetica, I still get Latin Moder= n in the PDF. What am I doing wrong?

Note: I can tell that "h= elvet" is the desired spelling. Since if I misspell it intentionally, or fe= ed that -V fontamily argument some bogus font family name, the conversion w= ill fail on the missing '.sty'.

Is there somet= hing I still have to configure in my custom Docker container image to use t= hat installed Helvetica font? Or should that tlmgr ins= tall collection-fontsrecommended have been sufficient?

Thanks

On Wednesday, June 30, 2021 at 3:10:32 PM= UTC-4 Shakrmaker wrote:
Thanks Pedro for confirming. I guess I will look at building a= custom docker image with a basic sans serif font installed, and use and ma= intain that image going forward.

On Wednesday, June 30, 2021 at 7:07:24 AM UT= C-4 pedro....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrot= e:
This is the normal = behavior. Latin Modern comes packaged in LaTeX itself. If you need a differ= ent font, you can customize your own docker image based on the pandoc/latex= image and install the appropriate package (installing packages at runtime = has not worked for me), or use --pdf-engine=3Dxelatex and map your fonts di= rectory as a volume onto the docker container. In the latter case, you can = no longer use the `uses:` syntax in GitHub Actions, but have to declare it = with `run:`.

Em quarta-feira, 30 de junho de 2021 =C3=A0s 05:11:25 UTC+1, Sha= krmaker escreveu:
Well= , when I tried Elham my GitHub action run failed on the font, and when I ch= eck these in the factory local docker/latex 2.14.0.3 image, I seem to be co= ming up empty:

# ls /usr/sha= re/fonts
ls: /usr/share/fonts: No such file or directory
# ls /usr/lo= cal/share/fonts
ls: /usr/local/share/fonts: No such file or directory# ls ~./fonts
ls: ~./fonts: No such file or directory
# fc-lis= t
#


The interesting thing to a newbie like me - is = where is pandoc getting its default Latin Modern from the docker/lat= ex image? Since the docs say for this latex variable:

ht= tps://pandoc.org/MANUAL.html#variables-for-latex > Fonts:
= "fontfamily font package for use with pdflatex: The def= ault is Latin Modern."
On Tues= day, June 29, 2021 at 11:50:21 PM UTC-4 Shakrmaker wrote:
Well, if I'm doing this correctly..= . when I spin up the 2.14.0.3 docker/latex image and poke around, in:
/usr/share/fontconfig/conf.avail/

I see in: 40-nonlatin.co= nf:

<!--=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2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2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0
= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 <family>Arshia</family>
=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 &l= t;default><family>sans-serif</family></default>
=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 </alias>=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0
= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <alias>
=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 <family>Elham</family>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <default>&l= t;family>sans-serif</family></default>
=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 </alias>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0
=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0
...and a continued long list of sans serif ^ font family entri= es.

Does this mean they're available as a GitHub Action arg with= -V fontfamily=3DElham, etc?= I will try that out next.=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0

--
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/58a94bbf-36e1-415f-b928-bb0abcf4f9c6n%40googlegroups.= com.
------=_Part_173_1344013963.1625096050892-- ------=_Part_172_698218181.1625096050892--