0

In a LaTeX book, I want an icon figure placed outside the regular text margin and an actual figure within text width. I need no caption or figure number for icon figure.

I have seen \marginpar commands and minipage inside the figure environment but both do not solve my issue.

How should I do that?

  • Welcome to TeX.SX! :) What have you tried with \marginpar and minipage so far? If you put together a minimal (non-)working example (MWE), it will probably be a bit easier for us to help you out. – Adam Liter Jun 26 '15 at 4:11
2

You can use the marginnote package to put a note into the margin for a floating figure. For example:

enter image description here

\documentclass{book}
\usepackage{lipsum,graphicx}
\usepackage{marginnote}

\begin{document}

\lipsum[1]

\begin{figure}
\marginnote{\includegraphics[width=\marginparwidth]{prerequis.png}}%
  \includegraphics[width=\textwidth]{example-image-a}
\caption{Caption of actual figure}
\label{labelActualFigure}
\end{figure}

\lipsum[2-3]

\begin{figure}
\marginnote{\includegraphics[width=\marginparwidth]{prerequis.png}}%
  \includegraphics[width=\textwidth]{example-image-b}
\caption{Caption of actual figure B}
\label{labelActualFigureB}
\end{figure}

\end{document}
| improve this answer | |
1

With \marginpar, I tried

\marginpar{\includegraphics]{iconFigure}}
\begin{figure}
\centering
\includegraphics[width=\textwidth]{actualFigure}
\caption{Caption of actual figure}
\label{labelActualFigure}
\end{figure}

Result: Actual figure is above the icon figure, although icon figure is outside the text margin (something which I want).

With minipage, I tried

\begin{figure}
\centering
\begin{minipage}{0.1\textwidth}
\centering
\includegraphics[scale=0.3]{iconFigure}
\caption{}
\end{minipage}\hfill
\begin{minipage}{0.9\textwidth}
\centering
\includegraphics[scale=0.5]{actualFigure}
\caption{Caption of actual figure}
\end{minipage}
\end{figure}

Result: Two figures are side by side, within the text margin, with their respective captions and numbers (Fig.1 and Fig. 2).

| improve this answer | |
  • This isn't really an answer; you should edit your question to include this information. – dgoodmaniii Jun 26 '15 at 9:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.