<div dir="ltr"><div><div><div><div class="gmail_quote">On Sat, Feb 22, 2014 at 4:41 PM, Nasser M. Abbasi <span dir="ltr"></span>wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

Here is the small example:<br>
<br>
\documentclass{article}<br>
%\usepackage[demo]{graphicx}<br>
\usepackage{graphicx}<br>
\usepackage{capt-of}<br>
<br>
\begin{document}<br>
<br>
\begin{figure}[htbp]<br>
 %<br>
 \begin{minipage}{0.4\linewidth}<br>
  some text that should show up<br>
  to the left side of the following image<br>
 \end{minipage}<br>
%%<br>
 \begin{minipage}{0.5\linewidth}<br>
  \centering<br>
  \includegraphics[width=\textwidth]{foo.png}<br>
  \captionof{figure}{result of the above}<br>
 \end{minipage}<br>
 %<br>
\end{figure}<br>
\end{document}<br>
<br>
</blockquote></div><br>Two html divs can be placed side by side using css "float:right" and "float:left".  Also think about margins, padding, and text-align.  So to begin replace the div.minipage entry in<br>
</div>"minipage.css" with something like:<br>div.minipage{width: 45%; float: left; margin: 1ex 1em 1ex 0;}<br>div.minipage:last-child{clear: none; float: right; margin: 1ex 0 1ex 1em;}<br><br></div>Also in the source I think you want \linewidth instead of \textwidth in the width spec for \includegraphics.<br>
<br><div class="gmail_extra">      -- Bill<br></div><div class="gmail_extra"><br>-- <br><div dir="ltr">William F Hammond<br>Email: <a href="mailto:gellmu@gmail.com" target="_blank">gellmu@gmail.com</a><br><a href="https://www.facebook.com/william.f.hammond" target="_blank">https://www.facebook.com/william.f.hammond</a><br>
<a href="http://www.albany.edu/~hammond/" target="_blank">http://www.albany.edu/~hammond/</a><br><br><br></div>
</div></div></div>