Graphics, Figures & TablesImage spanning over two boxes

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
User avatar
jvm
Posts: 9
Joined: Thu Jul 15, 2010 3:22 pm

Image spanning over two boxes

Post by jvm »

Dear all

I'm writing in LaTeX and I really like the ease of it and the possibilities around styles. Now I'm using fncychap for my chapter headings in the Bjornstrup style. However I would like to add the logo of my university on the left side of the box.

Bjornstrup makes two color boxes for the chapter number and one for the chapter title. Is there a way to hover the image above these two boxes (or let is span in the boxes?

Thanks in advance.

Code: Select all

\documentclass[a4paper,fleqn,reqno]{book}
\usepackage[Bjornstrup]{texstuff/fncychap}
\begin{document}
\chapter{Test}
Just some text
\end{document}
In fncychap.sty the code for the chapter style is:

Code: Select all

\renewcommand{\DOTI}[1]{%
    \nointerlineskip\raggedright%
    \fboxsep=\myhi%
    \vskip-1ex%
    \colorbox[gray]{.85}{\parbox[t]{\mylen}{\CTV\FmTi{#1}}}\par\nobreak%
    \vskip 40\p@%
  }
I have not failed. I’ve just found 10,000 ways that won’t work - Thomas A. Edison

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

jvm
Posts: 9
Joined: Thu Jul 15, 2010 3:22 pm

Re: Image spanning over two boxes

Post by jvm »

Offcourse, when you ask after a day of searching you find the solution just after asking it on a forum.

Solved with \raisebox
I have not failed. I’ve just found 10,000 ways that won’t work - Thomas A. Edison
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Image spanning over two boxes

Post by localghost »

jvm wrote:[…] Solved with \raisebox
Well, good for you. And I'm sure that others are also interested in this solution. So, please post a complete example that shows exactly what you did to get the desired result. And please mark the topic accordingly as written in Section 3 of the Board Rules.


Thorsten
Post Reply