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-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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@gmail.com> 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@googlegroups.com.
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-/JYPxA39Uh5TLH3MbocFFw@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.