From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/27304 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Lloyd R. prentice" Newsgroups: gmane.text.pandoc Subject: Re: PDF - How center image on title page Date: Thu, 24 Dec 2020 12:54:02 -0500 Message-ID: References: <775d0e0f-927c-4dc4-aed0-dfc930f47b50n@googlegroups.com> <5d9f1292-2e7c-4555-8ddc-cfb2d114fc78@www.fastmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=5690e3b70c634797a7ec1577bfa85649 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20455"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.3.1-61-gb52c239-fm-20201210.001-gb52c2396 To: "'Karl Weber' via pandoc-discuss" Original-X-From: pandoc-discuss+bncBCOZ3TURZAFBBUFLSP7QKGQE4JME6WQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Dec 24 18:54:29 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f191.google.com ([209.85.167.191]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ksUom-0005Bx-6c for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 24 Dec 2020 18:54:28 +0100 Original-Received: by mail-oi1-f191.google.com with SMTP id g20sf1265740oib.18 for ; Thu, 24 Dec 2020 09:54:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1608832467; cv=pass; d=google.com; s=arc-20160816; b=Evd6RBHMigoUCUlrp+5ad1cq6MwhYu45i4QY55RiSfwtSi9iv1M8PQk2diYuAchbl1 2Xg8P/GEMO415S8nDejyDQ/unF4jZFbtSiwJ6YTHE16NNlskUtCsdj3nJbU7uT4sv1po CbW5x0481S4oQAWLXNBUYAClEDOIHvP6y/mWWTsJURn13AY4+KGbjiu+wDE2KpYq/qio 0UThuNC0YSowoXICra6H3IRFgAQPko4U78jGxgeOUTTMm3rnw5lwo3Hvhk+vK8WXUGML ilalFcXnfObNnUC9EgcSoBapG3+FqDIDol6nbYScwSL2uFS1Awpuyhsthp7ahbihMcDW 7JYg== 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:subject:to:from:date :references:in-reply-to:message-id:mime-version:user-agent:sender :dkim-signature; bh=fz7yDDkJReIkuUO16SiKA/JUOrCCj0GaSAmwkHX3KEQ=; b=euJzks4jaQruLsZej7+fXoWqKrC+MObHiCR7f+Wt/dD4po1MPJvePRaWIM7w+2ViCs Ru03HVMlg+71Pw0hF9XvDNad6OVmXO46MvAePwsXJv5GLZW+XTKi+EXbSyfiGhWTrFsw ZIC7teVYa+UbaLpqguOYfNQ5gQ6+EUaKQ0ckSppOGUBwMq6D8eIf2AmWWzNrc3akox6H zvbj7Om2syXK+3ESdyFYpQKlytLznoXi0pCWRpH/kMyyGQMxSNPfnH/qYWrBgVeStoEs ppQuNeC8REJC80iXczDI0vEloOimZfMClKEfWaB+VNaCcJ3EmJ351uSj7w7T/JylQZc/ DFtA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@writersglen.com header.s=fm1 header.b=vcN2+8Tf; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=RTYOp7M5; spf=pass (google.com: domain of lloyd-l7gIAb2iU4jcM+WK4BI3xw@public.gmane.org designates 66.111.4.27 as permitted sender) smtp.mailfrom=lloyd-l7gIAb2iU4jcM+WK4BI3xw@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:user-agent:mime-version:message-id:in-reply-to:references :date:from:to:subject: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=fz7yDDkJReIkuUO16SiKA/JUOrCCj0GaSAmwkHX3KEQ=; b=VBkeK87+GRmIRQsVkhsKOA7buS4mEyNXcEBKlikAGKwDUeyZvY4BOhb5cctfLaQrBO IAfGOaEc6nOAUyRTzjcqp7DxCnCDggcJb2OHMo/54ufMYLI/Z+9av68vRdF3TsUPitzf u4qIbXPo0pTl+RGaIXEVuBXSx7qYT8HmeQPNPiNOHQpWmhuEhu9amWQ82LAnVVt0QUva Su9Zh83Yk6SzHphTYQWITCCUEJ8WgYxlIBr/ViZwEp6R8LcbwWT9beReoO/Ez0OuzJIZ 29k7dE2P8Zbe9bFKJni6xtcm8t22zQXUlHRmQY1yBDqkMtxCtP/NUimIUemF+ncJQGQm EiEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:user-agent:mime-version:message-id :in-reply-to:references:date:from:to:subject: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=fz7yDDkJReIkuUO16SiKA/JUOrCCj0GaSAmwkHX3KEQ=; b=W6Oz7bMkrRIKjxRAeImEYxGNvhWp5RRVN6PXTsUI4Rn+e/4IVhpmfLqtzDWyliOmiV OonRVXa+ZkZQhhRf9TcNyuECrvF4W3Slb2E0tgdhqyP42CE3BI74csXeMfggfGOOFI25 qtShicJmBHOO6ma2ERdMmnoqX9Qi9iLl9nDcnpNCSg9lcdOF5Nmh8swPfZy2T7FWTd+1 26eLhx48YMfk+PQUNzj0cxqhqnBOVs3qKyv7uFU4Nb0/aXBxWg7H0DLoqZAZJrjWArL2 akKG84qF+tN0RfRX0kzyr1wjH+jThNFsNQK0h826WbhbcmDm7hfsCL0RNeZ4hrIApV1b z1UA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530AZdnUiRfAB/9Zz+6QWHETNdOo2wgIr2LjBUJLQoLqWlNJvHPZ srqKBlXpP0YiKbHvDV6brbs= X-Google-Smtp-Source: ABdhPJzc/nNTf+XDrh5jKtXJ3ZOKkEudXne6Zr13G9diXU7AuNjX8iFhQEBM8fcwi7YcqW+YJGvunw== X-Received: by 2002:aca:aac7:: with SMTP id t190mr3541218oie.104.1608832467195; Thu, 24 Dec 2020 09:54:27 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:a843:: with SMTP id r64ls12320097oie.2.gmail; Thu, 24 Dec 2020 09:54:24 -0800 (PST) X-Received: by 2002:aca:4355:: with SMTP id q82mr3506968oia.132.1608832464566; Thu, 24 Dec 2020 09:54:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608832464; cv=none; d=google.com; s=arc-20160816; b=Z/e3PDe/QkMduJRUxQdTGdfZJMs+lGmT3yorVaJ8T3qY+CNgp0bxvkUjAo82lnKisd np8CaKTtuUQIcP89ZRTn0EDJe3LuwcP9hXavs3LCSBfShOWBM+blWZAkKDhn5eWzJDRw Y7z6hcA31HeYdi08Y04UimOkUf8wOZ2vzTz7OXkVUrKsWE77fte7UiqooSeeTw6VXqK+ pt8LRxLEjlwcyXb45EQChPg5qbF8PjgDJCXrDWa+y4vlrggrHIaB/9lp6bB5OCJSSj8H pXgKPIFP1rUOVdclV65z8TBdq9nncwfcdFjNG2Xu9Nao4jjuLZqnah4/CDi0UNivcW1d CFyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:to:from:date:references:in-reply-to:message-id:mime-version :user-agent:dkim-signature:dkim-signature; bh=BMFGI569QEIdvkx24ZjRe+MwyE9bc9Pp6UXxbD7Uo2E=; b=DcYvroA/2aQ7gkyucQ6lH8kLOEUvys5yA4M/acdJKqVlcBqx1llGh2BSWDhjSQgsVr Wvb/6MnQkhUiyDX/9Wq0hcLI/cyMhUgOUVtACZ1+GFJcoHlFBhGuJ6rAQ45HvYX3S3Ly nqtTUYiLjsg1S5X8McK4O1buhqM0e6w94D8z4kppwkmJC2PLCRn/msFKPsxC4qa9hoHS lQUMjHwpY4Gs6U1Oyn/WqDC0Uy1yaoPuaqpecscphBa3ItDNwZfcH782BCnmJgB7srIW kgUvh7crahFvJjuipO0SSCsibTo7OF4G1+XURn4cbbVRJFILhivyZWno3Sis0LUaF972 m+CA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@writersglen.com header.s=fm1 header.b=vcN2+8Tf; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=RTYOp7M5; spf=pass (google.com: domain of lloyd-l7gIAb2iU4jcM+WK4BI3xw@public.gmane.org designates 66.111.4.27 as permitted sender) smtp.mailfrom=lloyd-l7gIAb2iU4jcM+WK4BI3xw@public.gmane.org Original-Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com. [66.111.4.27]) by gmr-mx.google.com with ESMTPS id c18si1672934oib.5.2020.12.24.09.54.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Dec 2020 09:54:24 -0800 (PST) Received-SPF: pass (google.com: domain of lloyd-l7gIAb2iU4jcM+WK4BI3xw@public.gmane.org designates 66.111.4.27 as permitted sender) client-ip=66.111.4.27; Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id CAB6F5C007C for ; Thu, 24 Dec 2020 12:54:23 -0500 (EST) Original-Received: from imap22 ([10.202.2.72]) by compute1.internal (MEProxy); Thu, 24 Dec 2020 12:54:23 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvddtledguddtkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enogfuuhhsphgvtghtffhomhgrihhnucdlgeelmdenucfjughrpefofgggkfgjfhffhffv ufgtsegrtderreerredtnecuhfhrohhmpedfnfhlohihugcutfdruchprhgvnhhtihgtvg dfuceolhhlohihugesfihrihhtvghrshhglhgvnhdrtghomheqnecuggftrfgrthhtvghr nhepleevieegfefgheethefggfevjeeigeeivdevhfekkeduieeffeefheekgfehhfekne cuffhomhgrihhnpehuohgtrdhgrhdpghhoohhglhgvrdgtohhmnecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplhhlohihugesfihrihhtvghrsh hglhgvnhdrtghomh X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id ECECC62A005F; Thu, 24 Dec 2020 12:53:39 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: <5d9f1292-2e7c-4555-8ddc-cfb2d114fc78-jFIJ+Wc5/Vo7lZ9V/NTDHw@public.gmane.org> X-Original-Sender: lloyd-l7gIAb2iU4jcM+WK4BI3xw@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@writersglen.com header.s=fm1 header.b=vcN2+8Tf; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=RTYOp7M5; spf=pass (google.com: domain of lloyd-l7gIAb2iU4jcM+WK4BI3xw@public.gmane.org designates 66.111.4.27 as permitted sender) smtp.mailfrom=lloyd-l7gIAb2iU4jcM+WK4BI3xw@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:27304 Archived-At: --5690e3b70c634797a7ec1577bfa85649 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Oops. I forgot to delete two lines in my YAML file. error message now reads: Error producing PDF. ! LaTeX Error: Can be used only in preamble. See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ... =20 =20 l.65 \usepackage Here's YAML file: --- ... date: December 23, 2020 header-includes: - \usepackage{wallpaper} - \ThisCenterWallPaper{1}{WGLogo.png} -- Here's -how I call pandoc in Makefile: pandoc \ --top-level-division=3Dchapter \ --variable mainfont=3D"DejaVu Sans" \ --variable monofont=3D"DejaVu Sans Mono" \ --variable fontsize=3D11pt \ --variable geometry:"top=3D1in, bottom=3D2in, left=3D1in, r= ight=3D1in" \ --variable geometry:a4paper \ --table-of-contents \ --number-sections \ -f markdown $< \ --pdf-engine=3Dpdflatex \ -o $@ Thanks again, LRP On Thu, Dec 24, 2020, at 12:33 PM, Lloyd R. prentice wrote: > Thanks. But I get this feedback: >=20 > [WARNING] Could not fetch resource 'WritersglenLogo_Color.png': replacing= image with description > [WARNING] Could not fetch resource 'WritersglenLogo_Color.png': replacing= image with description > Error producing PDF. > ! Package pdftex.def Error: File `WritersglenLogo\T1\textunderscoreColor.= png' n > ot found: using draft setting. >=20 > See the pdftex.def package documentation for explanation. > Type H for immediate help. >=20 > Here's m YAML declaration: > --- > ... > date: December 23, 2020 > header-includes: > - \usepackage{wallpaper} > - \ThisCenterWallPaper{1}{WGLogo.png} > --- >=20 > And here's my source directory: >=20 > -rw-r--r-- 1 lloyd lloyd 25516 Aug 1 00:31 WGLogo.png > -rw-r--r-- 1 lloyd lloyd 871 Dec 24 12:23 Writersglen.md >=20 > LRP >=20 > On Thu, Dec 24, 2020, at 9:43 AM, gnpan wrote: >> You could use the wallpaper package (https://ftp.cc.uoc.gr/mirrors/CTAN/= macros/latex/contrib/wallpaper/wallpapermanual.pdf). >> Put the following in your YAML block: >> header-includes:=20 >> - \usepackage{wallpaper} >> - \addtolength{\wpYoffset}{12cm}=20 >> - \ThisCenterWallPaper{1}{logo.png} >>=20 >> Change logo.png to whatever you logo is called (make sure it's in the sa= me folder as your txt file) and adjust the Y offset to a value that gets th= e logo in the required position. You can also change the scale factor {1}.= =20 >> On Wednesday, 23 December 2020 at 23:38:58 UTC+2 LRP wrote: >>> I'd like to center a logo before the title on my PDF title page. >>>=20 >>> I found a recipe on the web using \usepackage{titling} in the metadata,= but it failed. Can some kind soul show me how? >>>=20 >>> Many thanks, >>>=20 >>> LRP >>=20 >> --=20 >> You received this message because you are subscribed to the Google Group= s "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit https://groups.google.com/d/msg= id/pandoc-discuss/775d0e0f-927c-4dc4-aed0-dfc930f47b50n%40googlegroups.com = . >=20 >=20 > --=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 pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/5d9f1292-2e7c-4555-8ddc-cfb2d114fc78%40www.fastmail.com . --=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/d9f5d384-fab0-4651-9ece-9b1fdca9efeb%40www.fastmail.com. --5690e3b70c634797a7ec1577bfa85649 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Oops. I forgo= t to delete two lines in my YAML  file.

e= rror message now reads:

Error producing PDF.
! LaTeX Error: Can be used only in preamble.
See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
...            = ;            &n= bsp;            = ;        
  = ;            &n= bsp;            = ;            &n= bsp;         
l.= 65 \usepackage

Here's YAML file:

---
...
date: December 23, 2020=
header-includes:
   - \usepackage{wa= llpaper}
   - \ThisCenterWallPaper{1}{WGLogo.png}
--

Here's -how I call pandoc in M= akefile:
       pandoc \
           &= nbsp;    --top-level-division=3Dchapter  \
            &= nbsp;   --variable mainfont=3D"DejaVu Sans" \
 = ;            &n= bsp;  --variable monofont=3D"DejaVu Sans Mono" \
 &= nbsp;           &nbs= p;  --variable fontsize=3D11pt \
    = ;            --varia= ble geometry:"top=3D1in, bottom=3D2in, left=3D1in, right=3D1in" \
=
           &nbs= p;    --variable geometry:a4paper \
 &nbs= p;            &= nbsp; --table-of-contents \
     &nb= sp;          --number-sections= \
         &nbs= p;      -f markdown  $< \
&n= bsp;            = ;   --pdf-engine=3Dpdflatex \
   &nb= sp;            -o $@=

Thanks again,

LR= P





On Thu, Dec 24, 2020, at 12:33 PM, Lloyd R. prentice wrote:=
Thanks. But I= get this feedback:

[WARNING] Could not fetch = resource 'WritersglenLogo_Color.png': replacing image with description
<= /div>
[WARNING] Could not fetch resource 'WritersglenLogo_Color.png': r= eplacing image with description
Error producing PDF.
! Package pdftex.def Error: File `WritersglenLogo\T1\textunderscoreCo= lor.png' n
ot found: using draft setting.

<= /div>
See the pdftex.def package documentation for explanation.
Type  H <return>  for immediate help.
=
Here's m YAML declaration:
---
.= ..
date: December 23, 2020
header-includes:
=
   - \usepackage{wallpaper}
  = - \ThisCenterWallPaper{1}{WGLogo.png}
---

=
And here's my source directory:

-rw= -r--r-- 1 lloyd lloyd 25516 Aug  1 00:31 WGLogo.png
-rw-= r--r-- 1 lloyd lloyd   871 Dec 24 12:23 Writersglen.md
<= div>
LRP

On Thu, Dec 24, 2020, a= t 9:43 AM, gnpan wrote:
Put the following in your YAML block:
=
header-includes: 
  - \usepackage{w= allpaper}
  - \addtolength{\wpYoffset}{12cm} 
  - \ThisCenterWallPaper{1}{logo.png}

Change logo.png to whatever you logo is called (make sure it's in the= same folder as your txt file) and adjust the Y offset to a value that gets= the logo in the required position. You can also change the scale factor {1= }. 
On Wednesday, 23 December 2020 at 23:38:58= UTC+2 LRP wrote:
I'd like to center a logo before the title on my = PDF title page.

I found a recipe on the web us= ing \usepackage{titling} in the metadata, but it failed. Can some kind soul= show me how?

Many thanks,

<= /div>
LRP


--
You received this message because you are subscribed to the Google Groups = "pandoc-discuss" group.
To unsubscribe from this group and st= op receiving emails from it, send an email to pandoc-discuss+unsubscribe@googlegroups.c= om.

=

--
You received this message because you are s= ubscribed to the Google Groups "pandoc-discuss" group.
To un= subscribe from this group and stop receiving emails from it, send an email = to pandoc-di= scuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
=

--
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/d9f5d384-fab0-4651-9ece-9b1fdca9efeb%40www.fastmail.co= m.
--5690e3b70c634797a7ec1577bfa85649--