Page Layout ⇒ Image on Part Page
Image on Part Page
How can I use an image on the same page as the part (\part{Test}) is?
lg
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Image on Part Page
Code: Select all
\documentclass[11pt]{report}
\usepackage[T1]{fontenc}
\usepackage{titlesec}
\usepackage{epigraph}
\setlength{\epigraphwidth}{\textwidth}
\titleformat{\part}[display]
{\normalfont\huge\filcenter\bfseries\thispagestyle{epigraph}}
{\partname\ \thepart}
{20pt}
{\Huge}
\titlespacing*{\part}{0pt}{0pt}{40pt}
\begin{document}
\epigraphhead[200]{\hfil\rule{6.4cm}{3.6cm}\hfil} % replace \rule command with the image
\part{Foo}
\end{document}
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Image on Part Page
And how can I assign the whole width of the page (= no margin) to the image?
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Image on Part Page
Code: Select all
\documentclass[11pt]{report}
\usepackage[T1]{fontenc}
\begin{document}
\tableofcontents
\part[Foo]{Foo\\[2ex]\makebox[0pt]{\rule{\paperwidth}{0.25\paperwidth}}}
\end{document}
Code: Select all
\includegraphics[width=\paperwidth]{filename}
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10