TransWikia.com

Add a vertical image in the chapter page

TeX - LaTeX Asked by Learning from masters on April 9, 2021

I would like to insert an image across all vertical space in the chapter page. Something like in this figure (the red line indicate the limit of the page. The black line would be where I’d insert the image):
enter image description here

Now I’m using the following code to make the title of the chapter:

    documentclass{book}

usepackage[includehead,paperwidth=155mm, paperheight=235mm,left=17mm,right=23mm,top=7mm,bottom=23mm,headheight=9mm]{geometry}
special{papersize=155mm,235mm}
usepackage{times}
usepackage{titlesec} %title chapters
usepackage[dvipsnames]{xcolor}
usepackage{graphicx}

newcommand{chapnumfont}{%     % define font for chapter number
    usefont{T1}{pnc}{b}{n}%      % choose New Chancery, bold, normal shape
    fontsize{150}{100}%          % font size 100pt, baselineskip 100pt
    selectfont%                  % activate font
}
colorlet{chapnumcol}{NavyBlue!75}  % color for chapter number
    
titleformat{chapter}[display]
    {filleftbfseries}
    {filleftchapnumfontrotatebox{60}{textcolor{chapnumcol}{thechapter}}}
    {-15pt}
    {Huge}
    
begin{document}
    
chapter{My chapter name}
vspace{6cm}
begin{quotation}
    raggedleft
    em % optional -- to switch to emphasis (italics) mode
    "My quotation."
    
    medskip
    raggedleft
    made by this guy
end{quotation}

clearpage
end{document}

but I do not know how to do that image. I though in doing a minipage, but minipage only starts after the "chapter title". I saw this answer, which is similar to my purpose Add Image to chapter title page, but the code they show is only compatible with XeLaTeX, which I’m not using. Can anyone give me a hint on how to do that?

Also, is there any option to limit how much to the left border the title name can go?

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP