From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/27308 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: Sun, 27 Dec 2020 12:12:57 -0500 Message-ID: <9de2e423-f1d1-436c-b50d-2bdfe75ab343@www.fastmail.com> References: <775d0e0f-927c-4dc4-aed0-dfc930f47b50n@googlegroups.com> <5d9f1292-2e7c-4555-8ddc-cfb2d114fc78@www.fastmail.com> <1f006dad-8595-4f94-b8c0-ac99c0c5ce49n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f26244ca9a284714832c03fc6f48f1d0 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13275"; 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+bncBCOZ3TURZAFBBL4BUP7QKGQED4QONXQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Dec 27 18:13:23 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qk1-f185.google.com ([209.85.222.185]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ktZbe-0003LW-R3 for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 27 Dec 2020 18:13:22 +0100 Original-Received: by mail-qk1-f185.google.com with SMTP id 189sf5976844qko.1 for ; Sun, 27 Dec 2020 09:13:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1609089201; cv=pass; d=google.com; s=arc-20160816; b=ZVSQGWhNqZlsHu8oZhKBfmg53rVL1cUHmtSducaPcHDBcAiCSwafZelpRugEu9TRbD m3QqEKCh1FzLcJuiBQL1Zlb/juEfrAObZfzjc1SyYYBoRgpfWfELoKdEcL6WjgxvkgC1 92R8rON+5KawzH9hZMwbsA4WUMeY6MAM0Q6/KHnQHQPFc3hU1RFJb4nzhTYaqVpj7pDp wTZUOsGcDTd23vVsYeyRW4wY0mpIu5B/xrkXZPBBJNfrNsLPNMyJG/6gX/3najkOJEZb sUjUAK1rQyHCmVs6uiwEgGTN1NRnHjvi5YrR1RHg0OoyTaiCJNagx+p9Q7HqmHBW+UKa OO1A== 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=+xUWgszZHlOuJxlPdsPPXnntc/vv+4LH+w8pDt2ifcQ=; b=ZDUJzdRd6EWPXuIJzkJnyAFjB2SdDcJQH3uaZsHywxp6oW23neg/bie6HM18ZkKRUv ayZwkYCVRnK8YLx8y2KitMjcfhpa+/w2tZNrHFasmB6VviRtxHLTIuDh52aUIJGkd9ii VaI9n+XJJc2fGhqBMj8XiT7c0KoO1BzLCJi+j2cd3D+k3LNJhq6t3yPjAxfLMze0OqlP N4lfaxtMnoy0mo4xuFIx2Ughg/f7zuX3NkVD833wyxrLRfnbz+QXiIz21TMMTc1x46Cj ZIz/L1DBPOuqfas8PWzPeumbIyGI6L7LBLrRQRSbj6sx3OckorCMF+59Zi/XmGIYDrCM dWWQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@writersglen.com header.s=fm1 header.b=gIjAFxsY; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=jM+WAaKF; spf=pass (google.com: domain of lloyd-l7gIAb2iU4jcM+WK4BI3xw@public.gmane.org designates 66.111.4.25 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=+xUWgszZHlOuJxlPdsPPXnntc/vv+4LH+w8pDt2ifcQ=; b=dSBxW50x/6+1dCqdi1hLLiay0T4rziR4MeItsdxJkkVVUifA0mhhptjw3u3mTKe/AC jdf6YXCzgtgYfI6SYtl36T85X7KPMKJZSjV+aDW1K0QZ1/RAxIhnpDEc8DZPNyl3T1Es UpnWDerb35WD4+j25vhQ5N/6EwV75sBu1F93GrsHGtcHci0v+rWhM7cidQPf5114ft6e 7J+lRpR73FCXrHREqGKNOUeaQE6fkoHzubzgVOMkKFiuSGft98NP1lJMRwulNEeiHHFn kqfPvSEQbTt9AxbjltKhzavK/IMur2/6CmK5C01Psk6AO/WeowakwvuVrVwkr3D3i1a6 F8cg== 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=+xUWgszZHlOuJxlPdsPPXnntc/vv+4LH+w8pDt2ifcQ=; b=HCU9WWB/hKXY7VvIzRoteRdHOp/2q3adqkrjGyGRey6uda6w7Nm95I3NtojZfEwAQI mpRL1B5Ka0tjYhka6MxbLF52CW+z/vEAEdmZWa6No/daXlBTY6VBQHt2JsHrrIid8y0s mUAAfFDR3ULX+vjhR1EFwxcOJzOw/0rBhsP3wByFixtdv6bxlaqvFmww6xvbJbRbRpap oXftbqRvR93R5sgVw/JMBdF2YSLfwt+7lghc/q4QaloQSYEhkv3T55vrq0tllHR/1hNn oNcFAJw8gN1UYkgQ+z6E4+sC+0vScswbU4l3oBW5ZnXcTm3CpgG+N2DSBpdKty8+sIv4 vy+A== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM5308UcHHL4zRz/cqX/lidzBMiIKdJ57SNaFs4ebMG1ek8JYIBTnq Vyee95pv4uHswFUuE3d/Qj8= X-Google-Smtp-Source: ABdhPJwWeBLJ7WeZ88/TrYHSNXpJn+PUHKQoHbTTvTsvJBSvbpUj8FUuJfZr7C7nmxluew2B9J/c9g== X-Received: by 2002:a37:a544:: with SMTP id o65mr42225000qke.238.1609089201830; Sun, 27 Dec 2020 09:13:21 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:620a:242:: with SMTP id q2ls27236569qkn.9.gmail; Sun, 27 Dec 2020 09:13:19 -0800 (PST) X-Received: by 2002:a37:8204:: with SMTP id e4mr37227440qkd.351.1609089199397; Sun, 27 Dec 2020 09:13:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609089199; cv=none; d=google.com; s=arc-20160816; b=N2BDSWy7Aiz7rtUa7jbv/fgni3+jmZ2+c9pGC6/1udxaClMnay1JqiW773ltEYxRzA 4qZ09AwLzq4TGEpm92ipxyfYgHijjP5ztPofPewISdTOfdBAzdQS4ztp/58qTnC+wiJ7 qmPFAChie1FMceaOVozXK/JAtf9XfdSdgGdIa2GZq5QA1DS1o/RRxAAElkVzggu9vQ/T WBvOjao6RUBJUVr5FliyIjXazWWGzPu4vwwQU3Ssy35Is20e+mFIALbuJeGYhY+gnuai X+ZYz3wZ8b7UIh33zyfa4sFgP7LXFj7qJdeLFGFlWJRCx0CNRCgL6YseV8vlNn/CAtQG rljw== 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=6IS55/H8VRf0+h1ly59lmGbc03wEGxHfjp+Nr4pEUWk=; b=g1qhERmcoHKHIZQoLnZdUSp1OZ+x789cgK5p6s9uA24XmMoX2zxhkOqWfOQcpYQY6O 7rRJ47mkuOd1E3HmefPujGFPDi+PlDiByNx6ILyy09PzSSTVh5beHDDARBXQP3dlo57B LlVMemzhEadhshR1oYLvkClZEr+1uazxBP0xtRkAlp4aAjkB5tDd3gbNBg36cYb3fvl4 YdZ27mSr/0r82Hz3/Zt/kFSBFAf4aQmIcL1i3+1aBc/eO/+MfqQ8QbeXtLMbwssZTX39 J4A3Tuo/y+BIk6bRlqjEo/srtyHU9nItoJczgiULXW9WXywY5BneOgK5hYAzaakCzz9w XUJQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@writersglen.com header.s=fm1 header.b=gIjAFxsY; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=jM+WAaKF; spf=pass (google.com: domain of lloyd-l7gIAb2iU4jcM+WK4BI3xw@public.gmane.org designates 66.111.4.25 as permitted sender) smtp.mailfrom=lloyd-l7gIAb2iU4jcM+WK4BI3xw@public.gmane.org Original-Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com. [66.111.4.25]) by gmr-mx.google.com with ESMTPS id z94si3532971qtc.0.2020.12.27.09.13.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 Dec 2020 09:13:18 -0800 (PST) Received-SPF: pass (google.com: domain of lloyd-l7gIAb2iU4jcM+WK4BI3xw@public.gmane.org designates 66.111.4.25 as permitted sender) client-ip=66.111.4.25; Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 84CB45C0079 for ; Sun, 27 Dec 2020 12:13:18 -0500 (EST) Original-Received: from imap22 ([10.202.2.72]) by compute1.internal (MEProxy); Sun, 27 Dec 2020 12:13:18 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvddujedguddtudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enogfuuhhsphgvtghtffhomhgrihhnucdlgeelmdenucfjughrpefofgggkfgjfhffhffv ufgtsegrtderreerredtnecuhfhrohhmpedfnfhlohihugcutfdruchprhgvnhhtihgtvg dfuceolhhlohihugesfihrihhtvghrshhglhgvnhdrtghomheqnecuggftrfgrthhtvghr nhepleevieegfefgheethefggfevjeeigeeivdevhfekkeduieeffeefheekgfehhfekne cuffhomhgrihhnpehuohgtrdhgrhdpghhoohhglhgvrdgtohhmnecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplhhlohihugesfihrihhtvghrsh hglhgvnhdrtghomh X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id 596DC62A005E; Sun, 27 Dec 2020 12:12:29 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: <1f006dad-8595-4f94-b8c0-ac99c0c5ce49n-/JYPxA39Uh5TLH3MbocFFw@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=gIjAFxsY; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=jM+WAaKF; spf=pass (google.com: domain of lloyd-l7gIAb2iU4jcM+WK4BI3xw@public.gmane.org designates 66.111.4.25 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:27308 Archived-At: --f26244ca9a284714832c03fc6f48f1d0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks, gnpan, This worked. But yes. I need more control over placement on page -- mainly = positioning from top of page and additional line spacing to title.. I'm exp= erimenting now with other methods suggested in this thread. I'll report findings. All the best, LRP On Sat, Dec 26, 2020, at 5:37 AM, gnpan wrote: > Another way, simpler but maybe less flexible is to add this to the YAML: > title: | > ![ ](WGLogo.png){width=3D1in} =20 > Your title here >=20 >=20 > On Thursday, 24 December 2020 at 21:35:19 UTC+2 the.so...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote= : >> I'm not a LaTeX expert, but I recently used this excerpted bit in a meta= data file, and it worked for me. Your mileage may vary. >>=20 >> ``` >> header-includes: | >> \usepackage{graphicx} >> \usepackage{titling} >> \pretitle{\begin{center} >> \includegraphics[height=3D1.25in]{source/full-logo.png}\Huge\vskip 5= em} >> \posttitle{\vfill \color{NavyBlue} \LARGE Long Title of Project >> \par \large PROJECT \par \normalsize Project Agreement No: = XXXX \par \end{center}} >> ``` >>=20 >>=20 >> On Friday, 25 December, 2020 at 12:05:33 am UTC+5:30 gnpan wrote: >>> Hmm, I don't use Makefile so can't be sure what goes wrong - I put all = the fontsize, mainfont, geometry, papersize, etc. in the YAML. Try somethin= g simple first: >>> Create a test.md file with the following content (or use the attachment= ): >>> --- >>> date: 24 December 2020 >>> header-includes:=20 >>> - \usepackage{wallpaper} >>> - \addtolength{\wpYoffset}{12cm}=20 >>> - \ThisCenterWallPaper{1}{WGLogo.png} >>> --- >>>=20 >>> # Your title >>>=20 >>> Your text.=20 >>>=20 >>> Then run this command: >>> pandoc --pdf-engine xelatex -o test.pdf test.md >>>=20 >>> That should work and you can take it on from there.=20 >>> On Thursday, 24 December 2020 at 19:54:28 UTC+2 LRP wrote: >>>> __ >>>> Oops. I forgot to delete two lines in my YAML file. >>>>=20 >>>> error message now reads: >>>>=20 >>>> Error producing PDF. >>>> ! LaTeX Error: Can be used only in preamble. >>>>=20 >>>> See the LaTeX manual or LaTeX Companion for explanation. >>>> Type H for immediate help. >>>> ... =20 >>>> =20 >>>> l.65 \usepackage >>>>=20 >>>> Here's YAML file: >>>>=20 >>>> --- >>>> ... >>>> date: December 23, 2020 >>>> header-includes: >>>> - \usepackage{wallpaper} >>>> - \ThisCenterWallPaper{1}{WGLogo.png} >>>> -- >>>>=20 >>>> 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=3D1= in, right=3D1in" \ >>>> --variable geometry:a4paper \ >>>> --table-of-contents \ >>>> --number-sections \ >>>> -f markdown $< \ >>>> --pdf-engine=3Dpdflatex \ >>>> -o $@ >>>>=20 >>>> Thanks again, >>>>=20 >>>> LRP >>>>=20 >>>>=20 >>>>=20 >>>>=20 >>>>=20 >>>> 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': repla= cing image with description >>>>> [WARNING] Could not fetch resource 'WritersglenLogo_Color.png': repla= cing image with description >>>>> Error producing PDF. >>>>> ! Package pdftex.def Error: File `WritersglenLogo\T1\textunderscoreCo= lor.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/C= TAN/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 th= e same folder as your txt file) and adjust the Y offset to a value that get= s the 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 metad= ata, 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 G= roups "pandoc-discuss" group. >>>>>> To unsubscribe from this group and stop receiving emails from it, se= nd an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>>>>> To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/775d0e0f-927c-4dc4-aed0-dfc930f47b50n%40googlegroups.= com = . >>>>>=20 >>>>>=20 >>>>> --=20 >>>>> You received this message because you are subscribed to the Google Gr= oups "pandoc-discuss" group. >>>>> To unsubscribe from this group and stop receiving emails from it, sen= d an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>>>> To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/5d9f1292-2e7c-4555-8ddc-cfb2d114fc78%40www.fastmail.co= m . >>>>=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/1f006dad-8595-4f94-b8c0-ac99c0c5ce49n%40googlegroups.com <= https://groups.google.com/d/msgid/pandoc-discuss/1f006dad-8595-4f94-b8c0-ac= 99c0c5ce49n%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/9de2e423-f1d1-436c-b50d-2bdfe75ab343%40www.fastmail.com. --f26244ca9a284714832c03fc6f48f1d0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks, gnpan,

This worked. But yes. I need more control over place= ment on page -- mainly positioning from top of page and additional line spa= cing to title.. I'm experimenting now with other methods suggested in this = thread.

I'll report findings.
All the best,

LRP
<= br>
On Sat, Dec 26, 2020, at 5:37 AM, gnpan wrote:
Another way, simpler but may= be less flexible is to add this to the YAML:
title: |
  ![ ](WGLogo.png){width=3D1in}  
 = ; Your title here


On Thursday, = 24 December 2020 at 21:35:19 UTC+2 the.so...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
I'm not = a LaTeX expert, but I recently used this excerpted bit in a metadata file, = and it worked for me.  Your mileage may vary.

=
```
header-includes: |
&nb= sp; \usepackage{graphicx}
  \usepackage{titling}
  \pretitle{\begin{center}
    \include= graphics[height=3D1.25in]{source/full-logo.png}\Huge\vskip 5em}
  \posttitle{\vfill \color{NavyBlue} \LARGE Long Title of Proj= ect
             \par \lar= ge PROJECT \par \normalsize Project Agreement No: XXXX \par \end{center}}
```


On Friday,= 25 December, 2020 at 12:05:33 am UTC+5:30 gnpan wrote:
Hmm, I don't u= se Makefile so can't be sure what goes wrong - I put all the fontsize, main= font, geometry, papersize, etc. in the YAML. Try something simple first:
Create a test.md file with the following content (or use the at= tachment):
---
date: 24 December 2020
<= /div>
header-includes: 
  - \usepackage{wallpap= er}
  - \addtolength{\wpYoffset}{12cm} 
  - \ThisCenterWallPaper{1}{WGLogo.png}
---
=

# Your title

Your text.&nb= sp;

Then run this command:
pandoc --pdf-engine xelatex -o test.pdf test.md

That should work and you can take it on from there. 
On Thurs= day, 24 December 2020 at 19:54:28 UTC+2 LRP wrote:

Oops. I forgot to delete two lines in my YAML  file.
=

error message now reads:

E= rror producing PDF.
! LaTeX Error: Can be used only in preamb= le.

See the LaTeX manual or LaTeX Companion fo= r explanation.
Type  H <return>  f= or immediate help.
...    &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  
       &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;    
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 \
&n= bsp;            = ;   --top-level-division=3Dchapter  \
 &n= bsp;            = ;  --variable mainfont=3D"DejaVu Sans" \
  &nb= sp;            = --variable monofont=3D"DejaVu Sans Mono" \
   = ;             -= -variable fontsize=3D11pt \
     &nb= sp;          --variable geomet= ry:"top=3D1in, bottom=3D2in, left=3D1in, right=3D1in" \
 = ;            &n= bsp;  --variable geometry:a4paper \
   &n= bsp;            --ta= ble-of-contents \
       &= nbsp;        --number-sections \
           &n= bsp;    -f markdown  $< \
  =             &nb= sp; --pdf-engine=3Dpdflatex \
     &= nbsp;          -o $@
=

Thanks again,

L= RP





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
[WARNING] Could not fetch resource 'WritersglenLogo_Color.png': replacing = image with description
Error producing PDF.
! P= ackage pdftex.def Error: File `WritersglenLogo\T1\textunderscoreColor.png' = n
ot found: using draft setting.

See the pdftex.def package documentation for explanation.
Ty= pe  H <return>  for immediate help.

Here's m YAML declaration:
---
...
date: December 23, 2020
header-includes:
   - \usepackage{wallpaper}
   - \ThisC= enterWallPaper{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, at 9:43 AM= , gnpan wrote:
Put the following in your YAML block:
header-includes: 
  - \usepackage= {wallpaper}
  - \addtolength{\wpYoffset}{12cm} 
=
  - \ThisCenterWallPaper{1}{logo.png}

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

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

Many thanks,

<= div>LRP


--
You r= eceived this message because you are subscribed to the Google Groups "pando= c-discuss" group.
To unsubscribe from this group and stop rec= eiving emails from it, send an email to pandoc-discus..= .@googlegroups.com.


--
You received this message because you are subscribed to the Google G= roups "pandoc-discuss" group.
To unsubscribe from this group = and stop receiving emails from it, send an email to pan= doc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.


--
You received this= message because you are subscribed to the Google Groups "pandoc-discuss" g= roup.
To unsubscribe from this group and stop receiving emai= ls from it, send an email to pandoc-discuss+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/9de2e423-f1d1-436c-b50d-2bdfe75ab343%40www.fastmail.co= m.
--f26244ca9a284714832c03fc6f48f1d0--