From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31750 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: Bug with fonts in subdirectory? Date: Sun, 13 Nov 2022 17:40:05 +0000 Message-ID: References: <62aceeb4-46d0-4079-9c5b-1be3dd5e2bben@googlegroups.com> <87zgcuhnl8.fsf@fastmail.fm> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2625"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRB7WXYSNQMGQEU2IPEFQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Nov 13 18:40:18 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wm1-f64.google.com ([209.85.128.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ouGxt-0000UG-SC for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 13 Nov 2022 18:40:17 +0100 Original-Received: by mail-wm1-f64.google.com with SMTP id c5-20020a1c3505000000b003c56da8e894sf7708695wma.0 for ; Sun, 13 Nov 2022 09:40:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1668361217; cv=pass; d=google.com; s=arc-20160816; b=F6UAfLQRqLQT0qZF5V5NZWZvR6wGIVHnXoClDOukHl7kHq6tc9+GEaVramw5YSRFvO LHmeUGQLYXL1VR7XpvxtzT/EjDdIBMGU/pksXv9rGkoGAfUtteiiVn+RJn694KmbotLj KoA+eM4X/SZPc6UKIZHqELt+tks6QstUecXwekgtXrRSppvBbZ9rM8DAVFB+U1eC4aoP m3MH9lKPbYH6CPufBILrdNiFr7Z7RpEEP91jpGiWQefoM8WOsR6bnYSZXhxlPwqo8GLC utbiNPdYnP6u6DclTVRqvxxHnIGOJetnVxR6ZMI8mzCW0ouYRtxuiFMF7JMpVdV+OTFs ETeA== 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:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:dkim-signature; bh=P4Opo7C5DRCMzrvWYRPt+CgK88FJ1xO62lXM/BvxQ54=; b=E8v8J3ch4CR1aeQYQ/7c6Jh5W1vDKuA6wonTTG5pas3pd+48GKRS6OjRmuvEC0O4lq hq+NOsjxqxTPG971uOsoGzMKgQzyNPy7UE5bhZQEQIjEo4hWLPnmo6n8tqCx/B4VCDog tPA50cRpU4xVO2/j/952FEm5iZra+ra/G+5xWD/REqRlLM9AhTkUZ9iEJ88UYbnjX8Ga 1zUcO6IihKPc2ZVGsuLswILvuMqGzJIZ4xtzQPJq1QbXFRdj1KWcFPl9GLU0KcrZqGRl edbQNZsOA+SL17sDNj8bswG9BDm21tySLTdAwz/UWHb8A37g8H4Ycoxx+vBKql3zYio/ YiyQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=RDm6S98t; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net 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-authentication-results:x-original-sender:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=P4Opo7C5DRCMzrvWYRPt+CgK88FJ1xO62lXM/BvxQ54=; b=cEfj5AZbWZs3hVAPA4kZVLMkhdmXpfkiaqDSORNaoveWzaDUCE505GC8Up6omFVEQx bALVFmPrapXx5WsO0Cos49WXYrVJXKKJ8ltM9oElCLvms7jfbjNzgHPaeyzJQaD9zBBU jvyncb2pYvrT39eCEFAJct3rW2xe2eYoGo/5ZhxDzlL/m0sx6KRmc5B/ZOnBkHkAeITq woKfRk1l8yXmFyS7ytN5jamzyLyoo0Ef66rsKc2DZILDSsA/GSY/XhHUYIyQE2cspfBU N5oDOnaHXuqSNLoYdni0WT9FYx+VopX2FxexHuO/FiO7u 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-authentication-results:x-original-sender:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=P4Opo7C5DRCMzrvWYRPt+CgK88FJ1xO62lXM/BvxQ54=; b=6qRSvCuYmv6b0yf+uF67PAQbNBE8sUEC4TS1aBYE1fOWAXBrchi6k5Wh7h4DrXNlnA Rr31oqBHPLRdiKGjheCIWw7/+9C/YK7/ilSmTlw7G0kBsiVu83kkXNdd2Kx4KhIYoUrd 1HP5qZV70RTPO+40LlRbZElYLt7tBwHQn4wsQGgL1zSnQ0SnhAO5pV1hy0mIhc6KecO4 l2Fe9xorGz2r7h59M1AeSq8ADlRQWg3CNQwkotCaEf77mb7dGQ60CrYBaRFJSRFejQv2 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ANoB5pmlw+KKWO/tz6vmo79d4RRo7SR+A+3UrRpCyHZumZ9junOHYwwz Q2dphLiST4KTo8f7ot2FnJ4= X-Google-Smtp-Source: AA0mqf7IT1YuaFvxKBBywcsg741yF351/7aK7MS59tTE3Y8d769xVdXCsA5Du10pFl7MSF5g+yqD4w== X-Received: by 2002:adf:d84d:0:b0:22f:f92d:1236 with SMTP id k13-20020adfd84d000000b0022ff92d1236mr5624602wrl.187.1668361217299; Sun, 13 Nov 2022 09:40:17 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6000:605:b0:236:8fa4:71d1 with SMTP id bn5-20020a056000060500b002368fa471d1ls12432450wrb.1.-pod-prod-gmail; Sun, 13 Nov 2022 09:40:13 -0800 (PST) X-Received: by 2002:adf:ec83:0:b0:236:86f2:b3fa with SMTP id z3-20020adfec83000000b0023686f2b3famr5707729wrn.457.1668361213274; Sun, 13 Nov 2022 09:40:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668361213; cv=none; d=google.com; s=arc-20160816; b=RSI6C8Bw9ZIavFwlpS47atTG0XLkquWj6fqlA50WXl6WvNQoxrMMo8VSAK6j2D2xKe q7M6awn32y6B8RlNtZ7a8Ivmy1wFfMMTp0Yv0qnz03znLnmg4aG0OxX0jifZ5fFPd/Ci Vczh/6cRuNxMYYTrEiowXT46kiTR+A6VrQJXkJQGZoHLVoy4sD6e1cI8AT5JH1Oi5qZR Q3MITZJlC/uDEVBlJ6u632xa+atdZ3Bj4YNtB8j46xJFC6Rk2EpwkSyDTn26m6+XwWcW 1OgPaBcD9Fmd95GIHOMSiHR6FteGOUwnn/cBezs1oirUH1CTS2jAB2Q1Waj2mTruwRZ0 bu/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=kOsDri5KWcX2XcXBJ8+e1QZ3Lwy6FR4P622P7C6X9gc=; b=r3aSmeKU4rU3IVfzAMsvcstffAWzMiqHILnG2pTB6jqto4dDxVCmPw2Tg3whG3K0zw xkh5aE3rFyjdqLEW3qJPmVOoxnWEQCfhOECkV54dJ89U76mCcWDd9k02/BRBsUjP9bV2 03/Ad9ZzlgaIaezG2wmE1nPwlTFMINZAUal1lQ/CLmdguckgy8c8fk54gSaqHSLUIu/V I9UzCxou9BACYS36dpKl/MhrAvBdWP0++x/ub0AhiPIPsIj1krb3sqAKOM7VaDTZgvaj 7QkYW3oaMvSCIk++VHi3PXdyu8uUOjXbifYDnNy8maNwMPQZjkdng7uKsEZTLjlWQe50 yx2Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=RDm6S98t; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Original-Received: from mout01.posteo.de (mout01.posteo.de. [185.67.36.65]) by gmr-mx.google.com with ESMTPS id bq2-20020a5d5a02000000b002367b2e748esi219324wrb.5.2022.11.13.09.40.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Nov 2022 09:40:13 -0800 (PST) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) client-ip=185.67.36.65; Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id D3FB3240026 for ; Sun, 13 Nov 2022 18:40:12 +0100 (CET) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N9KTS322Sz9rxP for ; Sun, 13 Nov 2022 18:40:12 +0100 (CET) Content-Disposition: inline In-Reply-To: X-Original-Sender: bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=RDm6S98t; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net 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:31750 Archived-At: See the manual of fontspec p.=C2=A010-11. You will probably have to write t= he relevant code in your template file or in your YAML header via header-in= cludes. Le Sunday 13 November 2022 =C3=A0 08:14:04AM, Terence Eden a =C3=A9crit : > Thank you, that's helpful. I can use the fonts which are installed. But, > weirdly, I can use a TTF which is *not* installed as long as the file is = in the > same directory as the input file. >=20 > I'll go look through the XeLaTeX documentation. Thanks once again. >=20 > On Sunday, 13 November 2022 at 15:38:04 UTC Joost wrote: >=20 >=20 > On Sun, Nov 13 2022, Terence Eden wrote: > > I am trying to convert a .md file to a .pdf using a specific TTF fo= nt. > > 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 tes= t.pdf > > > > I get a PDF in my specific font. > > > > But this fails: > > pandoc in.md --pdf-engine=3Dxelatex -V mainfont=3D"fonts/fontname/f= ont.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 .tt= f > 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!) >=20 > The mainfont variable is not a Pandoc option but something that's pas= sed to > the > fontspec package used by XeLaTeX. It doesn't take a font file as valu= e, but > a > font name. >=20 > For it to work, you need to make sure that XeLaTeX can find the font.= As > far as > I know, this means that the font must be installed on your system. If > that's OK > for you, you can simply double-click the ttf file in your file manage= r and > your > system should install the font automatically, or open it in a applica= tion > that > will allow you to install it. >=20 > If you do not wish to install the font, you'll need to figure out if > XeLaTeX can > be taught to use fonts from fonts file that aren't installed. I don't= know > if > that's possible. >=20 >=20 > -- > Joost Kremers > Life has its moments >=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= email > to [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit [2]https://groups.google.com/d/m= sgid/ > pandoc-discuss/cd84e8c7-0bc4-4828-a090-12e7c679cf1fn%40googlegroups.com. >=20 > References: >=20 > [1] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [2] https://groups.google.com/d/msgid/pandoc-discuss/cd84e8c7-0bc4-4828-a= 090-12e7c679cf1fn%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter --=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/Y3Er9er4oAJpbjFm%40localhost.