From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31746 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Terence Eden Newsgroups: gmane.text.pandoc Subject: Bug with fonts in subdirectory? Date: Sun, 13 Nov 2022 05:55:34 -0800 (PST) Message-ID: <62aceeb4-46d0-4079-9c5b-1be3dd5e2bben@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_4458_558025662.1668347734611" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2787"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDHOHBPUZIBBBWHOYONQMGQEGGLJY3Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Nov 13 14:55:40 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f63.google.com ([209.85.161.63]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ouDSV-0000WK-OE for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 13 Nov 2022 14:55:39 +0100 Original-Received: by mail-oo1-f63.google.com with SMTP id k13-20020a4adfad000000b0049f0c8d234bsf2885571ook.11 for ; Sun, 13 Nov 2022 05:55:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=ppeoaww5wR0Q2AUbKIH2q1L+7yZgChHcV6quPPI2n90=; b=MzwNf2r2GYbEGHZ9xMqhhqk5fo/2ujhG7IDWdui2VcWoofXiSUKjydDXUkmQ8dC1Qo g6p04p43d57xZbDH/Mb5uszn2BU3G/Q7CWcVBJ7wSYcwktbu1UtgH48HPealWglcI6Sr +3a4uhsOilPVG56L0ZinCM7dPyh0shGbGYo3F8MrjCjWgy9CRW7zt2EszsWdzrR+zi+L EfxVsojlGIOr3lAS5VDbIhq7GKU7bOgHIg2QxUGwefxamR5cCxlUNY1icv48Ksvfadoh 4II9VpxzJXF4yvwXSATxv+9ee28193yOVAg0F1ZgkpC4ConGk5mNnK8LRNX8sfnQoI/k ug9A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=ppeoaww5wR0Q2AUbKIH2q1L+7yZgChHcV6quPPI2n90=; b=T1gDjApYHxDY1Hg2Guctb/Yg3I232VqxmZa2MCyah14Sx8Ly0MkiTrHPbbbgPn1636 sChdWfPgpDG2nkrcXmbd5P1Jf7W6DFctxYJaLU3siMrUDo0JLpBRSAdtzC9GHilf19Vz 8X65nsC7UEZq/MnKbsSy35/CvsAyHhIlK/ycJzaQvhcDCFNJWjETYkFQ9VENa8atT+Z5 X6XnIx/6+yhS4DkavO/BGxFB/bTj1U1EryFvwnkk803LZtCMdOf5WMJkWiSqTmfa9cQz ScZe7X3kgGkpnNaHfyvTniXnAOhvlFsltqL90Yh+xOxgHPWLLrUOhmZ6jQcoZLSynJeM itgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-sender:mime-version:subject:message-id:to:from:date :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=ppeoaww5wR0Q2AUbKIH2q1L+7yZgChHcV6quPPI2n90=; b=IB4meElKaXbeN3gTpCnQB1T87gwWybMp+fX3uPtKj+Qirmhq+b6WBTrNV5r1VFkxRZ U0Tw82is1UzfSt/n+j2mgOQAmJRHsy5TkLN+JMBTxT9QgWFdwYq4LtqHuCZ8Wk1H7r0O 30bHrHqrjRVF+x+SMSf6Ei8iJZZGJvJAeqC/MrH7XbUuWrAX5p4lvw6yGes9M8UL+NXw 5OLD10ZiA8nMlqm8lQOj/HwAW8YMGh8S5vMjZ8LANYn4nA8YsXBahYBILhksmt7FP641 BVWseNzLW3KC1kF2eElMYNw7rO1xkJc584s9XZPBtEQ1rczvFPrUweG/s+V/TI4AwlZt Wvsg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ANoB5pm9FF6hDKyoSTs/boVsh6JtsAKkyqjIMf5+dWY1z9eGH5ILikc8 0Wv0+L519puUVabrwFpAd6I= X-Google-Smtp-Source: AA0mqf5xvlEp3IOqza4Q8h1NBBMNijdiKkoz4793v4wJetrOJFEiXHAvgeFJpEddbXFZjMTuKP7b0A== X-Received: by 2002:aca:b6c5:0:b0:35a:d208:fd86 with SMTP id g188-20020acab6c5000000b0035ad208fd86mr3822818oif.108.1668347738579; Sun, 13 Nov 2022 05:55:38 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6870:3a2a:b0:13a:e471:20c5 with SMTP id du42-20020a0568703a2a00b0013ae47120c5ls2980633oab.1.-pod-prod-gmail; Sun, 13 Nov 2022 05:55:35 -0800 (PST) X-Received: by 2002:a05:6870:598:b0:13b:a02f:659e with SMTP id m24-20020a056870059800b0013ba02f659emr4852263oap.43.1668347735412; Sun, 13 Nov 2022 05:55:35 -0800 (PST) X-Original-Sender: terence.eden-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:31746 Archived-At: ------=_Part_4458_558025662.1668347734611 Content-Type: multipart/alternative; boundary="----=_Part_4459_280941483.1668347734611" ------=_Part_4459_280941483.1668347734611 Content-Type: text/plain; charset="UTF-8" I am trying to convert a .md file to a .pdf using a specific TTF font. Pandoc doesn't work unless the .ttf is in the same directory as the .md file. Is that normal? This works: pandoc in.md --pdf-engine=xelatex -V mainfont="font.ttf" -o test.pdf I get a PDF in my specific font. But this fails: pandoc in.md --pdf-engine=xelatex -V mainfont="fonts/fontname/font.ttf" -o test.pdf It gives the error: Error producing PDF. ! Missing number, treated as zero. f l.19 \fi I know Pandoc can read the directory, because if I try to use a .ttf which doesn't exist, I get the error "! Package fontspec Error: The font "fonts/foo/bar" cannot be found." Is this a bug, or me not understanding how to use Pandoc properly (a distinct possibility!) Thanks pandoc 2.19.2 Compiled with pandoc-types 1.22.2.1, texmath 0.12.5.2, skylighting 0.13, citeproc 0.8.0.1, ipynb 0.2, hslua 2.2.1 Scripting engine: Lua 5.4 Ubuntu: 22.04 -- 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/62aceeb4-46d0-4079-9c5b-1be3dd5e2bben%40googlegroups.com. ------=_Part_4459_280941483.1668347734611 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I am trying to convert a .md file to a .pdf using a specific TTF font.=
Pandoc doesn't work unless the .ttf is in the same directory as = the .md file.  Is that normal?

This works= :
pandoc in.md --pdf-engine=3Dxelatex -V mainfont=3D"font.ttf" -o= test.pdf

I get a PDF in my specific font.

But this fails:
pandoc in.md --pdf-engine=3Dxel= atex -V mainfont=3D"fonts/fontname/font.ttf" -o test.pdf

It gives the error:

Error producing PDF.! Missing number, treated as zero.
<to be read again>
  =                  f
l.19 \fi=

I know Pandoc can read the directory, because if = I try to use a .ttf which doesn't exist, I get the error "! Package fontspe= c Error: The font "fonts/foo/bar" cannot be found."

Is this a bug, or me not understanding how to use Pandoc properly (a dist= inct possibility!)

Thanks

pandoc 2.19.2
Compiled with pandoc-types 1.22.2.1, texmath 0.12.5.= 2, skylighting 0.13,
citeproc 0.8.0.1, ipynb 0.2, hslua 2.2.1
Scripti= ng engine: Lua 5.4
Ubuntu: 22.04

--
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/62aceeb4-46d0-4079-9c5b-1be3dd5e2bben%40googlegroups.= com.
------=_Part_4459_280941483.1668347734611-- ------=_Part_4458_558025662.1668347734611--