GeneralFloating a minipage in a letter

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
jgombos
Posts: 4
Joined: Tue Oct 07, 2008 9:52 pm

Floating a minipage in a letter

Post by jgombos »

I'm writing a letter, and I need to insert a large image. I have some specific text that must wrap around this image.

The wrapfig environment works as far as floating the image (because it's too large for the page that it would normally fall on, and it's moved to the next page as a result). It also appears that text wraps around the image, as I would expect. The problem is, that the text that wraps the image is not the particular text that I need to wrap it with.

As an attempt to control the text that wraps the image, I introduced a minipage so the image and the text would be contained together. The correct text is kept next to the image in this case, however, the image no longer floats, and runs off the page. So then I tried containing the minipage inside of another floating environment (a table), but tables are not permitted in the letter class.

I have a complete sample that I will post later (it's not with me right now) -- but in the meantime, are there any suggestions?
Last edited by jgombos on Thu Oct 09, 2008 8:52 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Floating a minipage in a letter

Post by localghost »

If you could provide a minimal working example (MWE), the problem would be much more clearer. With the code we could see wherre something is going wrong and correct that part.


Best regards and welcome to the board
Thorsten¹
jgombos
Posts: 4
Joined: Tue Oct 07, 2008 9:52 pm

Floating a minipage in a letter

Post by jgombos »

Code: Select all

\documentclass[12pt]{letter}

\usepackage[margin=2cm]{geometry}
\usepackage{graphicx}
\usepackage{wrapfig}

\signature{Kermit the Frog}

\address{Kermit the Frog\\
         123 sesame street\\
         New York, NY 12312}

\begin{document}

\begin{letter}{Cookie Monster\\
               345 sesame street\\
               New York, NY 12312}

\opening{Dear Cookie Monster,}

My notarized photo is below:

%\begin{table} %%Tables do not work in letter class%%

\begin{minipage}{7.5in} % Needed to bind the text with the photo, but prevents floating

  \begin{wrapfigure}{L}{12cm} % Note the L in caps to allow floating
    \begin{center}
      \rule{11.8cm}{22cm} %box that simulates a picture that is too high for the first page
    \end{center}
  \end{wrapfigure}

  I certify that I have seen the original document and this copy is a
  complete and accurate copy of the original.  Where the document
  contains a photograph, the photograph contained in the document
  certified bears a true likeness to the person requesting this
  certification.

\end{minipage}

%\end{table} %%Tables do not work in letter class%%

This is some text that should not be wrapped around the photo.

\closing{Sincerely,}
\end{letter}
\end{document}
Post Reply