I am trying to make a sort of a "template" for a captioned image on right, and a little bit of text on the left - I use minipage and wrapfig for this. In this case, the text is not much, however, Latex uses by default the text as reference for positioning - which overlaps images; here is the problem illustrated:
And here is the code used:
Code: Select all
\documentclass[letterpaper]{article}
\usepackage{wrapfig}
\usepackage{graphicx}
\usepackage{color}
\begin{document}
\section[Image 1]{Image 1}
\begin{minipage}{\textwidth}
\begin{wrapfigure}{r}{0.3\textwidth}
\vspace{-20pt}
\centering
\includegraphics[width=1.4189in,height=1.2709in]{picture.jpg}
\vspace{-20pt}
\caption{\textit{Picture one. }}
\label{fig:pic1}
\vspace{-10pt}
\end{wrapfigure}
\textsf{Some text:} Some text.. (\textcolor{red}{some text})
\end{minipage} \newline
\vfill
\section[Image 2]{Image 2}
\begin{minipage}{\textwidth}
\begin{wrapfigure}{r}{0.3\textwidth}
\vspace{-20pt}
\centering
\includegraphics[width=1.4189in,height=1.2709in]{picture.jpg}
\vspace{-20pt}
\caption{\textit{Picture two. }}
\label{fig:pic1}
\vspace{-10pt}
\end{wrapfigure}
\textsf{Some text:} Some text.. (\textcolor{red}{some text})
\end{minipage}
\vfill
\end{document}
Any ideas how to solve this?
Thanks....