Theses, Books, Title pagesFigures in margin

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Post Reply
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Figures in margin

Post by templateuser »

Is there a way to get your figures in the margin?
I am trying to put figures there which works fine until I try to give them captions and labels. I am using \captionof but it only gives my figures even numbers 2, 4 ,6 etc. If I put figures in the text body I still get the regular numbering...

grublat

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Vel
Site Moderator
Posts: 463
Joined: Fri Jun 29, 2012 1:20 am

Figures in margin

Post by Vel »

I can confirm that the following code shows this problem:

Code: Select all

\marginpar{
\includegraphics[width=\linewidth]{gfx/example_1.jpg}
\captionof{figure}{test}
}
I don't have a solution for you at the moment. My offhand guess would be an odd interaction with another package.
Founder and administrator of LaTeXTemplates.com and LaTeXTypesetting.com
Post Reply