Page LayoutImage Next to Chapter Heading

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
Compaq
Posts: 6
Joined: Tue Feb 05, 2013 7:23 pm

Image Next to Chapter Heading

Post by Compaq »

Hi folks!

I am working on a paper on microscopy techniques, and I would to have an example image next to the chapter heading. I see there is room for it, but I am not able to come up with a code that puts my image where I'd like. I thought about maybe some minipages, but I'm not sure. Some input would be much appreciated. A small example follows at the end of the post. The output of that example is the attachment (the page continues on, naturally, but I included only the part of interest).

I appreciate any help I can get. Also, if my suggested page-layout is very ugly, please let me know, and maybe you have a better option :)

Code: Select all

\documentclass{report}

\usepackage{graphicx}

\begin{document}

\chapter{Light Microscope}
blabla

\section{Optical Enhancement Techniques}

blabla

\end{document}
Attachments
example.png
example.png (34.6 KiB) Viewed 3185 times
Last edited by cgnieder on Thu Jan 16, 2014 8:26 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

mas
Posts: 226
Joined: Thu Dec 04, 2008 4:39 am

Image Next to Chapter Heading

Post by mas »

You can get all sorts of layouts for the chapter headings with the package titlesec. The following MWE should give you an idea to proceed.

Code: Select all

\documentclass{report}

\usepackage{graphicx}
\usepackage[explicit,raggedright]{titlesec}

\titleformat{\chapter}[block]
{}
{\includegraphics[width=\textwidth,height=1in]{example-image-a}\\}
{0pt}
{\large\chaptertitlename\ \thechapter\\%
                 \LARGE\bfseries\filright#1}[]

\begin{document}

\chapter{Light Microscope}
blabla

\section{Optical Enhancement Techniques}

blabla

\end{document}

OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim
Post Reply