public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: "Eugenio López Cortegano" <elcortegano-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: BPJ <melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Xelatex report missing libraries, or fails at using fonts
Date: Fri, 14 Jan 2022 19:38:27 +0000	[thread overview]
Message-ID: <CAGjgynaW43_MqU4Dna7=0krg8a=zBPDHT-eBNZdo6FZGt=Mr_A@mail.gmail.com> (raw)
In-Reply-To: <CAGjgynYsn=NVM_1kvxTVSp0T5KJxQiTW94y6Z9aTYUPXppy4Xg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 3313 bytes --]

Following the previous mail, it was indeed a problem of a lack of missing
packages. The final docker image using alpine just works perfectly
following Albert's advice:

FROM pandoc/latex

RUN apk add --no-cache ttf-hack

RUN tlmgr update --self && tlmgr install \
  enumitem \
  tcolorbox \
  ragged2e \
  xifthen \
  sourcesanspro \
  environ \
  fontawesome \
  everysel \
  geometry \
  trimspaces

And it's only a ~200 MB image :D

Thanks for your help,

Eugenio


On Fri, 14 Jan 2022 at 13:27, Eugenio López Cortegano <elcortegano@gmail.com>
wrote:

> Thanks for the suggestions!
>
> Just tried a "brute force" approach using the ubuntu:20.04 docker image
> (as in my own system), and installing texlive-full. It works without a
> problem (although the image is >4 GB in size).
>
> Will try to get a lighter version with alpine and post it.
>
> Eugenio
>
>
> On Fri, 14 Jan 2022 at 11:52, BPJ <melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
>>
>>
>> Den fre 14 jan. 2022 09:04Albert Krewinkel <albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
>> skrev:
>>
>>> Hi Eugenio,
>>>
>>> If it worked before but stopped working, then that's probably due to the
>>> changes mentioned here:
>>> https://groups.google.com/g/pandoc-discuss/c/aj4mrQc5nuQ/m/bh_ALPp8AgAJ
>>> We reduced the number of packages that ship with that image.
>>>
>>> The recommended solution is to build your own Docker image locally.  For
>>> that you'll need a file `Dockerfile` with the following content:
>>>
>>> ``` dockerfile
>>> FROM pandoc/latex:2.17-alpine
>>>
>>> # Install fonts via the Alpine package manager.
>>> # Here we install 'Hack', a monotype font with support for many
>>> # unicode chars.
>>> RUN apk add --no-cache ttf-hack
>>>
>>> # Install additional LaTeX packages. List all the one you need.
>>> RUN tlmgr update --self && tlmgr install \
>>>   enumitem \
>>>   tcolorbox
>>> ```
>>>
>>
>> That's a nice font. Noto Sans Mono (which is different from and has more
>> glyphs than Noto Mono also has extensive LGC coverage.
>>
>>
>>> Then run something like `docker build --tag myimage .` to build the
>>> image and use it instead of pandoc/latex.
>>>
>>> Let us know if the other issues persist when using the above method.
>>>
>>> Cheers,
>>> Albert
>>>
>>> --
>>> Albert Krewinkel
>>> GPG: 8eed e3e2 e8c5 6f18 81fe  e836 388d c0b2 1f63 1124
>>>
>>> --
>>> 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/87y23ivj4i.fsf%40zeitkraut.de
>>> .
>>>
>>

-- 
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/CAGjgynaW43_MqU4Dna7%3D0krg8a%3DzBPDHT-eBNZdo6FZGt%3DMr_A%40mail.gmail.com.

[-- Attachment #2: Type: text/html, Size: 5414 bytes --]

  parent reply	other threads:[~2022-01-14 19:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-13 22:32 Eugenio López Cortegano
     [not found] ` <253c9e22-d112-46d7-94cf-dee1dc7e697fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-01-14  8:03   ` Albert Krewinkel
     [not found]     ` <87y23ivj4i.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2022-01-14 11:52       ` BPJ
     [not found]         ` <CADAJKhAsgjcLopjrdx0Zx2K4snc1dRLNorVAkAUJLzTWm4Jhfw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-01-14 13:27           ` Eugenio López Cortegano
     [not found]             ` <CAGjgynYsn=NVM_1kvxTVSp0T5KJxQiTW94y6Z9aTYUPXppy4Xg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-01-14 19:38               ` Eugenio López Cortegano [this message]
     [not found]                 ` <CAGjgynaW43_MqU4Dna7=0krg8a=zBPDHT-eBNZdo6FZGt=Mr_A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-01-15 13:40                   ` Albert Krewinkel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGjgynaW43_MqU4Dna7=0krg8a=zBPDHT-eBNZdo6FZGt=Mr_A@mail.gmail.com' \
    --to=elcortegano-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).