From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31747 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.text.pandoc Subject: Re: Bug with fonts in subdirectory? Date: Sun, 13 Nov 2022 16:32:21 +0100 Message-ID: <87zgcuhnl8.fsf@fastmail.fm> References: <62aceeb4-46d0-4079-9c5b-1be3dd5e2bben@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6781"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.3; emacs 28.1.91 Cc: Terence Eden To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCS7B5O6XUOBBWM6YSNQMGQEOJSJKGY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Nov 13 16:38:07 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pl1-f189.google.com ([209.85.214.189]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ouF3e-0001Vi-AJ for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 13 Nov 2022 16:38:06 +0100 Original-Received: by mail-pl1-f189.google.com with SMTP id c1-20020a170902d48100b0018723580343sf7113805plg.15 for ; Sun, 13 Nov 2022 07:38:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1668353884; cv=pass; d=google.com; s=arc-20160816; b=NT0A28kIr7f5jQ+Z+803CtHz2lI4N+2I3pl+vaz80wRX0kA7D6tqKzogjjI6sZrk4q lC6ZGTdnYV+m2xZolfh401kLMLfVJv9bdSKGT1OkOigzT6/oRYZsXgXrPNW+LGanmvVZ v2D0cHMfAqUEDbUO9CzKugbF8MXSCKE5QhlXlUDB8kj4789RIl9VBZFEkFIrCq4sI4nX rWFpohrm/fdjk6nkNQtzcWZ8J/lJ59SP7fzLXXz6KXj0I6KcbciAL7g2TbxyEYxoPxhU 6DTS0WsJBJBM1Wi6l2Jzua+h6VaunvX3QV0/0UbuZ8qMpDfNcwiE2pGM0g2pdplkUVfw aysg== 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:mime-version:message-id :in-reply-to:date:subject:cc:to:from:user-agent:references :feedback-id:sender:dkim-signature; bh=vXSDvXHAQ+BWIxD6/dWICRr9mfyvUdx54iR4is1/YEI=; b=nS0MluuNmk0qWSS0039PaNNiqoIyR0Tf1WVOfwQ20C1NnDmka0+KHbD0VuOqEpe2ZJ e0S2lxfGMfikYa+X9QFvLa2Uj1U4vmmcX8xww7nqeQ4Jrc4jt6mxx6G2ToU6CJkccR4f gxJAtjKqHKYiSIjNTCNJg00yKGhdCX0HsJ/qOXVVfqYNi7auMRtOrfKHVBk2c8YyGUzJ uikWPMccY3hrez8fhhgGDucmhZ8DAp5LNe5RGB5A6WWwp8VvO+xa9Hr78+P1ZrxCk29t xEYo30FF7qxzDK2l8UTCAUAd+5JB7Z4F+s+EtzBfxyF/PzWQRYPsiGHhC9PaZ1fUWPbT /eMw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@fastmail.fm header.s=fm1 header.b=GZJBGQi7; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=pyd08J0A; spf=pass (google.com: domain of joostkremers-97jfqw80gc6171pxa8y+qA@public.gmane.org designates 66.111.4.27 as permitted sender) smtp.mailfrom=joostkremers-97jfqw80gc6171pxa8y+qA@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fastmail.fm 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:mime-version :message-id:in-reply-to:date:subject:cc:to:from:user-agent :references:feedback-id:sender:from:to:cc:subject:date:message-id :reply-to; bh=vXSDvXHAQ+BWIxD6/dWICRr9mfyvUdx54iR4is1/YEI=; b=sVRuseZzQTd5huuiuNDcjYO/EE62Vcf8KxzAulXCC+f2vVbBoDs6VE42Iuz+t3JWDB eHXWItqXSfIJR822LHBHPuu8NltrqF+aGp/MC0CC64OFO/B6ndjrXahx2BO+EEOljJe+ DG7AhmFVHoyEvlkJUxddejrJZsxlgTsn+HGdCqmxbScFDPVlciAhabwiED/70xMDhgnt DRNlHu5x693tVE3+1m76gyF890tgTY4OVWyMGiWNnSwe9QTZ1HnCa6Y0m3TmgZLImRZ6 iYFPueuqhdLdQzpmpycHU3sbYt2swQOAgDMbBaGUTIXn1J8TZFv9lDjWB4ya2W9Ex 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:mime-version :message-id:in-reply-to:date:subject:cc:to:from:user-agent :references:feedback-id:x-gm-message-state:sender:from:to:cc:subject :date:message-id:reply-to; bh=vXSDvXHAQ+BWIxD6/dWICRr9mfyvUdx54iR4is1/YEI=; b=3f9c8JIXZXwFlHB7s4B8gSMy/xOPPByQEs75VYdiuztbvA/2ghK2jvm0M6P4zVlakE +JFnmPwQtxTypTYVSdxiv5l6/HlQYk67jmzHb/IdaSkl5fp76e3nzKIuEOHOIr0ii/dj GzYMN83UlimOiD1GmE+ga5GLs3FekMZ+9XbBSn262CsvLITNPl2LvUMWdyQv44TbveJk Kiu9YSyW0SWL794T92cBIdqHDZvveL4VoC+klboMYpPKQM64o5+CwiuYVpZmzna00Zws rNgKrlA/NVHVhkTGad+b Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ANoB5pm/BRRt6MkgMTcX49rd/MN3TOJrSAUGiDhoTI2xfu9lb9zR+B+p U7+0ktrxoR5QVHYs5XcnL9E= X-Google-Smtp-Source: AA0mqf5HDF6gAHneoldumBKKMn55BGnaFjJ2VpN+M+aFY9Pgm0fnRtp0LtYREZ8A0T0TrdNmSKqXqQ== X-Received: by 2002:a63:e748:0:b0:46e:bfec:d611 with SMTP id j8-20020a63e748000000b0046ebfecd611mr8767679pgk.281.1668353884704; Sun, 13 Nov 2022 07:38:04 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:902:8545:b0:186:af8a:6095 with SMTP id d5-20020a170902854500b00186af8a6095ls6301121plo.4.-pod-prod-gmail; Sun, 13 Nov 2022 07:38:01 -0800 (PST) X-Received: by 2002:a17:902:b78b:b0:188:7dca:6f4a with SMTP id e11-20020a170902b78b00b001887dca6f4amr10546041pls.60.1668353880920; Sun, 13 Nov 2022 07:38:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668353880; cv=none; d=google.com; s=arc-20160816; b=D//JIM1/5vbHheXrMvbQT6+3PKG8/+Od0aVich8dA9KtgpkJvbpBy9AFMM5i63H2Ov FGc3aR1urIIj761NYWJOyGRg+pXmxgzWLXYfnrndhVRyiZyLfbteEOK7YE+fVZMfsM7W jRj01/kkGt3sjGYs5BV0CKFkEjCwP62OgOzk48OPtVtdRsS7xq6Vg3WskYX57/xdzB4O lV5r1az2iQlJMbqDq6pH5CPzZHZAofjBk0k6UfEuT8V6S2WbNATr/HVeY0lpCFReL74p g2KcxtFJpY5rNyMKsEXsvA9IOV2FXWWpr2XtmXG8Jx7VeaNJJhII0MfLdUIUkcyz6qnZ prtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:feedback-id:dkim-signature:dkim-signature; bh=VGhltmVkn4NAg5rS4EhH1py59rofmqDtvGx72SN3RzI=; b=iJZbpQE0uBrCF/WC+ITV8YF12A1fi2to/I5GfMbJKcIF/tMEzKw83SaHpK+UUz6FPO EiFfBD9npcYT4ugIg6sI/yr6qt6ZW3jHYmLpzLtiQyo+esjCMgqZym+ZgE4Pey/DBKEC oKwSWWlBDl133rqd1Zq7dj/hixXK24Sh9/cw2ws4aMeINaLy+DrhtXsRlAR4vYOKkgn+ wHFLSXhrXicgpwGdmS919CgYovN1FBsNJqAlw5tkMD5j20IdAUfTZeoayi5dBP5ySvep RXxWy8sYcuW4hdx6md2cab9zezPQ+YUmtgrF0zNEOKedg9eIFUOdnxaEbfebn03X6o/7 B/mw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@fastmail.fm header.s=fm1 header.b=GZJBGQi7; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=pyd08J0A; spf=pass (google.com: domain of joostkremers-97jfqw80gc6171pxa8y+qA@public.gmane.org designates 66.111.4.27 as permitted sender) smtp.mailfrom=joostkremers-97jfqw80gc6171pxa8y+qA@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fastmail.fm Original-Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com. [66.111.4.27]) by gmr-mx.google.com with ESMTPS id d4-20020a170903230400b00174ea015ef2si294026plh.5.2022.11.13.07.38.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Nov 2022 07:38:00 -0800 (PST) Received-SPF: pass (google.com: domain of joostkremers-97jfqw80gc6171pxa8y+qA@public.gmane.org designates 66.111.4.27 as permitted sender) client-ip=66.111.4.27; Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 192955C00DD; Sun, 13 Nov 2022 10:38:00 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 13 Nov 2022 10:38:00 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrgedtgdejlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpehffgfhvfevufffjgfkgggtsehttdertddtredtnecuhfhrohhmpeflohhoshht ucfmrhgvmhgvrhhsuceojhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghilhdrfhhmqe enucggtffrrghtthgvrhhnpefgiefhuddtteeljeehveekjedtffeuheffhffffeetieet feehtdektdeitdekffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehjohhoshhtkhhrvghmvghrshesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Feedback-ID: ie15541ac:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 13 Nov 2022 10:37:59 -0500 (EST) In-reply-to: <62aceeb4-46d0-4079-9c5b-1be3dd5e2bben-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: joostkremers-97jfqw80gc6171pxa8y+qA@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@fastmail.fm header.s=fm1 header.b=GZJBGQi7; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=pyd08J0A; spf=pass (google.com: domain of joostkremers-97jfqw80gc6171pxa8y+qA@public.gmane.org designates 66.111.4.27 as permitted sender) smtp.mailfrom=joostkremers-97jfqw80gc6171pxa8y+qA@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fastmail.fm 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:31747 Archived-At: On Sun, Nov 13 2022, Terence Eden wrote: > 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!) The mainfont variable is not a Pandoc option but something that's passed to the fontspec package used by XeLaTeX. It doesn't take a font file as value, but a font name. 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 manager and your system should install the font automatically, or open it in a application that will allow you to install it. 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. -- Joost Kremers Life has its moments