LaTeX forum ⇒ Page LayoutCustom Cover Page Topic is solved

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

Custom Cover Page

Postby PulpFan » Sun Aug 11, 2019 1:42 pm

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

  1. % image for title page
  2. \usepackage{eso-pic}
  3. \usepackage[absolute,overlay]{textpos}
  4. \newcommand\CoverPage{%
  5. \put(0,0){%
  6. \parbox[b][\paperheight]{\paperwidth}{%
  7. \vfill
  8. \centering
  9. \includegraphics[width=\paperwidth,height=\paperheight,
  10. keepaspectratio]{images/CoverArt.png}%
  11. \vfill
  12. }}}
  13.  
  14. \newcommand*{\titlePowned}{\begin{titlepage}
  15. \AddToShipoutPicture*{\CoverPage}
  16.  
  17. \color{pink}
  18.  
  19. \begin{textblock*}{5cm}(14.35cm,0.5cm)
  20. \Large Vol. 0 Issue 0
  21. \end{textblock*}
  22.  
  23. \begin{textblock*}{8cm}(1.2cm,3.37cm)
  24. \raggedleft\huge \textit{Stories for Very Hungry Caterpillars\hspace{0.16cm}}
  25. \end{textblock*}
  26.  
  27. \begin{textblock*}{4cm}(0.70cm,23.7cm)
  28. \raggedright \large Published by\\ Very Good Stories
  29. \end{textblock*}
  30.  
  31. {\scshape\huge Copyright Infringing Prototype \par}
  32. \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?

PulpFan
Posts: 9
Joined: Thu Aug 08, 2019 8:01 pm

Postby PulpFan » Wed Aug 14, 2019 10:29 am

Solved this by adding

  1. \begin{pgfpicture}{0cm}{0cm}{1cm}{1cm}
  2. \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.


Return to “Page Layout”

Who is online

Users browsing this forum: No registered users and 3 guests