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 <return> for immediate help.
...
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=chapter \
--variable mainfont="DejaVu Sans" \
--variable monofont="DejaVu Sans Mono" \
--variable fontsize=11pt \
--variable geometry:"top=1in, bottom=2in, left=1in, right=1in" \
--variable geometry:a4paper \
--table-of-contents \
--number-sections \
-f markdown $< \
--pdf-engine=pdflatex \
-o $@
Thanks again,
LRP
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.
! Package pdftex.def Error: File `WritersglenLogo\T1\textunderscoreColor.png' n
ot found: using draft setting.
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
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 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 using \usepackage{titling} in the metadata, but it failed. Can some kind soul show me how?
Many thanks,
LRP
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.