From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29976 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Eugenio_L=C3=B3pez_Cortegano?= Newsgroups: gmane.text.pandoc Subject: Re: Xelatex report missing libraries, or fails at using fonts Date: Fri, 14 Jan 2022 19:38:27 +0000 Message-ID: References: <253c9e22-d112-46d7-94cf-dee1dc7e697fn@googlegroups.com> <87y23ivj4i.fsf@zeitkraut.de> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000014c95005d58ff343" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13703"; mail-complaints-to="usenet@ciao.gmane.io" Cc: pandoc-discuss To: BPJ Original-X-From: pandoc-discuss+bncBDG4LMWX7EHBBP5CQ6HQMGQENX7CFVI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jan 14 20:38:42 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qv1-f61.google.com ([209.85.219.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1n8SPJ-0003P3-J2 for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 14 Jan 2022 20:38:41 +0100 Original-Received: by mail-qv1-f61.google.com with SMTP id kc15-20020a056214410f00b004152196c16esf9398252qvb.1 for ; Fri, 14 Jan 2022 11:38:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1642189120; cv=pass; d=google.com; s=arc-20160816; b=DhPvc024NjZyT2R30BH0UBKmGUHoZP/qQ5wUWe0qz3/Q27nb/Re4wKK+/Zf2tkb21v 17Zltoaif3a4T5zCk27UP46n28nQO135rJn/XhMV9e5RVL20JHo/ZkMKSIE0Og/whSG8 f9w3C6Xu3P86dhNQ4coPeB7xLAhFxlS90mbJxSW2HyXa2t60JTCHJCpdebsF80M5CAzj M3ayZIbR3X8l1RoRqEO2q6AzHkSk+I+g24aUWFXZ/fZeLp9ramwLD1EKzkdapX+PNysp XZrR7TJ7k7/dXBFT/YKfZNhG7QzK8YgeeseAXrWOfp5tmIxg/OpFf/dIHJLlVfgoi4MO /l4A== 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:cc:to:subject:message-id :date:from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=iEFsmndWIMjTs0Vd/ND1Uj9THwmCIZ+gQUU+h/P0WCQ=; b=Luh2kiWTbrIIU4ugeg/DZ9KspTwmWZXn/uumLEJraNIJ59nY5rjn8ffWHxiWfcQWyO loByazF2zh6oe19EEeoJX1Ayq4FrRSDHRvitQv4CWXC8wHJCxTr+yFwjjdS9DuuQAklz UkKNzKx5/OGQHNkTri571wI6oPuiPKQOemnd2PUi4pn21wJNxG8jDCRXZY8/qwsoq2rh MnxzgXDluraaK81tXVOLzefqfJozPiamq3cIGm74CJNw76oFC/ZomcoKGMB3mMulQymt N2Bdhuq//BcwUCP3yGUl6MnwRfGJME8QtlmPDxc8CghAYm6ShXEjFK36boHDQePEbBTP OL5g== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="h8IFK/Zz"; spf=pass (google.com: domain of elcortegano-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::f29 as permitted sender) smtp.mailfrom=elcortegano-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=20210112; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to:cc: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=iEFsmndWIMjTs0Vd/ND1Uj9THwmCIZ+gQUU+h/P0WCQ=; b=X5gH2J9zVpGv83Mt8++KkQSKyUYRtgIapjto2n70AdMNqVha5CFS36262Atzz4S09+ gP2/RkaXPz6vTSfgos/MuoHROOIRBn2/iaRnJTu+zfY4Yd82Qa24hNoskl6vB/fbrsTl CjkwWfehdRzV+bz5VHCeLYKXU9/ZSG+M9UVw94HCZFJI1eCDEM0F/oHxSVNWVWmxGnBM GwrBL3zek+7gg8sgdQGta9S73fhh6mfj3qLMI7x7GNcOtEZJc3s70O+e5YTnhXxWDwUh 62/T8DERDkxNFnlZnSEml071e6bNp9j7Wthf+bgWAzN2VGUZ4Tt/lnlmtE76OL+w0AaP Wa5Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc: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=iEFsmndWIMjTs0Vd/ND1Uj9THwmCIZ+gQUU+h/P0WCQ=; b=bPALsW+NgG5aY882UTobcnjp9XV4K2Ko84u7LK1i1FlapjmC5feeLyt/uvhsQHkChU N0GVjMvi6Gjn/yEScHy699BvKbmziEyZG27buCB/lKdK+RV+ma5XmjJHquVj89A3zXp0 5t/8ABQ/Cr3UtJ494cd3wc1v/4f3WCvVgJgRIkYyGRKBGoXtgWByaACP44AinTFUeBc6 s3wl7td4jY9Sg/SYDMvS+PeVgat/fStLeq+cG5aDT4S/9lzhmsACjlOpiqxjCZjmK5Ie 6+XyvtP10VBgkJoYm9GyZD89iUOBNmtdUXheAG8jtiC2FqJm1x5CDLYODeOqK/upKmHQ 8XHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to:cc: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=iEFsmndWIMjTs0Vd/ND1Uj9THwmCIZ+gQUU+h/P0WCQ=; b=tvrzenoH5k7ttRaqU7MEKBOntFib6wcsyBHjpoohEL7uQvk1OYO5NWkFsDgkjA5wdO VK1/PzYH2ys0UadSDGBeBwYsarvaB/3mw668R8l0eR2p1vqlAMtIxZ6nPICsCqEqy6zM C7hZKER262GvYWZrZNEBErsrNAywiKW876dRgzp7DAYyB/+UgxCyYw88xq151Br0P6Ve d9EohwLwRytCDornudJFsy4ah+26bWctXjzQHM9CorZDQOTM6Wck+wVvOUwm5SMHLmk8 JG9p70Fml0PnyxXBWNEQCfHu0SKXRuNyLqbx4WidiLm8qC84cOsqq7FxOKCElAo8Yy+Y H9bg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533zvS6kobwr9u18CiviOAgbiF06jP9vYHJ411B2kBWNvgkf2yVP hF3J4x1GNFjLhJa5QmOh9rI= X-Google-Smtp-Source: ABdhPJycEBO4JPTFn32tu/7LgO3LP9faEjHRy9ZT8EZ/ce71tPlQSLI0od+pIltsx4SvE2nKqZyE+g== X-Received: by 2002:a05:620a:e13:: with SMTP id y19mr7528845qkm.112.1642189120533; Fri, 14 Jan 2022 11:38:40 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a0c:8e0a:: with SMTP id v10ls3339749qvb.4.gmail; Fri, 14 Jan 2022 11:38:39 -0800 (PST) X-Received: by 2002:ad4:5bea:: with SMTP id k10mr9623252qvc.62.1642189119041; Fri, 14 Jan 2022 11:38:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642189119; cv=none; d=google.com; s=arc-20160816; b=AOsL05fRA9ffIe3FFwDi4tjWaoCWuelvTPHNeWlSgJ5PlYfCentTSh63lNg21O1+DE vKlZXfnJl+qUace7pd7deso9uClL4XelICXsZidcRjhLmdTTgBwWeR5CI37zq+QCVdbm RKtnci3/DVuf4s1+pzOgkn0NU8gGv7hV5YwSwpE2YzK/BCsku+ZC+hXQqt90t2kAan5D 0CB6aFJ2dUOY7438FhwC8MqxEpaDt6xvYr1FD34Sy0UzOCS9FwUQbyldOXaiBYM5Leqg XET8CfURQbbxJbEPYSbB64Ka7cdw62k9pddFL31ZtCr6OyeGG4uOQBuL1gvLRmkDV8Ey 5hJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=5mksXyJ3G/g9A7/KkS4IrRoSZdjmHCIRR8lbGItI/Bk=; b=AQlvUcFRryHS9Nrg6JafzprGHqiGeJN2xmCTkIBSBn8aczFNs/TV4PjYErQTRttSNs OAcTvJ2WzljlE6iUoNarH1TWwp64q4bMB66dnMM5h8ZLMjVORdaZLS2tynWTN8gdO6r8 Zy5FcNNroCOztfc/H6fmMaiD5XmYwMlZRrFK0aRIVOH7l4WY33pGTO7Xa6Am4dFFjFow qKTKgKAxp8P33eJjy0KhxaKciiAOs5mHeulxtu9SWad2S85m1B0T4z2U6RMU7GhJWvuI T+KMX8j4rgb0tDtOJQyBFFLHVBGlTZ4RICTaoq4W0k++DpvcQQ0y1ksXJ/hOs3rN6Fe4 q7Zw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="h8IFK/Zz"; spf=pass (google.com: domain of elcortegano-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::f29 as permitted sender) smtp.mailfrom=elcortegano-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-qv1-xf29.google.com (mail-qv1-xf29.google.com. [2607:f8b0:4864:20::f29]) by gmr-mx.google.com with ESMTPS id j14si1105983qko.4.2022.01.14.11.38.39 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 14 Jan 2022 11:38:39 -0800 (PST) Received-SPF: pass (google.com: domain of elcortegano-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::f29 as permitted sender) client-ip=2607:f8b0:4864:20::f29; Original-Received: by mail-qv1-xf29.google.com with SMTP id a8so11108667qvx.2 for ; Fri, 14 Jan 2022 11:38:39 -0800 (PST) X-Received: by 2002:a05:6214:19e9:: with SMTP id q9mr9579089qvc.45.1642189118817; Fri, 14 Jan 2022 11:38:38 -0800 (PST) In-Reply-To: X-Original-Sender: elcortegano-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="h8IFK/Zz"; spf=pass (google.com: domain of elcortegano-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::f29 as permitted sender) smtp.mailfrom=elcortegano-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:29976 Archived-At: --00000000000014c95005d58ff343 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=C3=B3pez Cortegano 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 wrote: > >> >> >> Den fre 14 jan. 2022 09:04Albert Krewinkel >> skrev: >> >>> Hi Eugenio, >>> >>> If it worked before but stopped working, then that's probably due to th= e >>> 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. Fo= r >>> 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%40zeitk= raut.de >>> . >>> >> --=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/CAGjgynaW43_MqU4Dna7%3D0krg8a%3DzBPDHT-eBNZdo6FZGt%3DMr_A%40= mail.gmail.com. --00000000000014c95005d58ff343 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Following the previous mail, it was indeed a problem = of a lack of missing packages. The final docker image using alpine just wor= ks perfectly following Albert's advice:

<=
code>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 ima=
ge :D

Thanks for your help,
=
Eugenio

On Fri, 14 Jan 2022 at 13:27, Euge= nio L=C3=B3pez Cortegano <elcor= tegano-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Thanks for the suggestions!

Just tried a "brute force" approach using the ubu= ntu: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).
<= div>
Will try to get a lighter version with alpine and post i= t.

Eugenio


On Fri, 14 Jan 2022 at 11:= 52, BPJ <melroch@= gmail.com> wrote:


Den fre 14 jan. 2022 09:04Albert Krewinkel = <alber= t+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> skrev:
Hi Eugenio,

If it worked before but stopped working, then that's probably due to th= e
changes mentioned here:
https://groups.goo= gle.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.=C2=A0 F= or
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 \
=C2=A0 enumitem \
=C2=A0 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=C2=A0 e836 388d c0b2 1f63 1124

--
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@googlegroups.= com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-disc= uss/87y23ivj4i.fsf%40zeitkraut.de.

--
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://g= roups.google.com/d/msgid/pandoc-discuss/CAGjgynaW43_MqU4Dna7%3D0krg8a%3DzBP= DHT-eBNZdo6FZGt%3DMr_A%40mail.gmail.com.
--00000000000014c95005d58ff343--