Page LayoutCustom Cover Page

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
PulpFan
Posts: 9
Joined: Thu Aug 08, 2019 8:01 pm

Custom Cover Page

Post by PulpFan »

I am not using \maketitle, I am using the following code:

Code: Select all

% image for title page
\usepackage{eso-pic}
\usepackage[absolute,overlay]{textpos}
\newcommand\CoverPage{%
\put(0,0){%
\parbox[b][\paperheight]{\paperwidth}{%
\vfill
\centering
\includegraphics[width=\paperwidth,height=\paperheight,
keepaspectratio]{images/CoverArt.png}%
\vfill
}}}

\newcommand*{\titlePowned}{\begin{titlepage}
\AddToShipoutPicture*{\CoverPage}

\color{pink}

\begin{textblock*}{5cm}(14.35cm,0.5cm)
\Large Vol. 0 Issue 0
\end{textblock*}

\begin{textblock*}{8cm}(1.2cm,3.37cm)
\raggedleft\huge \textit{Stories for Very Hungry Caterpillars\hspace{0.16cm}}
\end{textblock*}

\begin{textblock*}{4cm}(0.70cm,23.7cm)
\raggedright \large Published by\\ Very Good Stories
\end{textblock*}

{\scshape\huge Copyright Infringing Prototype \par}
\end{titlepage}}
As I currently do not have license to use the image and have the paragraph at the very end, it works.

However if I comment out the note to myself that it is not licensed, as I will do when it is licensed, LaTeX does not seem to see textblock as content for the page with the CoverArt.png and as a result the title page with the CoverArt.png is not typeset and the textblock declarations are typeset on top of the next page, resulting in the content that is suppose to be the second page being the first page.

I'm sure there is a simple solution to this?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
PulpFan
Posts: 9
Joined: Thu Aug 08, 2019 8:01 pm

Custom Cover Page

Post by PulpFan »

Solved this by adding

Code: Select all

\begin{pgfpicture}{0cm}{0cm}{1cm}{1cm}
\end{pgfpicture}
So there's a transparent box on the page and it doesn't need text to use the \AddToShipoutPicture*{} and the manually placed textblock areas.
Post Reply