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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- 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