Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I can draw the following type of Notes-Box:

enter image description here

Can someone please suggest me how to draw this type of Notes-Box:

enter image description here

The second one is different from the first one in 2 ways:

  • We can add text below the picture (In the first one, picture occupies the left frame completely)

  • The second box does not cover the entire space. We can write text on Left side as well.

Thanks.

share|improve this question
add comment

1 Answer

up vote 5 down vote accepted

You can use a minipage inside a \fcolorbox; the wrapfigure environment from the wrapfig package can be used to let the text wrap around the box; inside the minipage, the positioning for the image and the title can be achieved using, for example, \parboxes. In the following example I defined a new environment mybox with the help of the environ package; the mandatory argument is used for the title of the box:

\documentclass{article}
\usepackage[verbose]{wrapfig}
\usepackage{bclogo}
\usepackage{environ}
\usepackage{lipsum}

\NewEnviron{mybox}[1]
  {\wrapfigure{r}{.5\textwidth}
  \setlength\fboxrule{1.5pt}
  \fcolorbox{blue!70}{white}{%
  \begin{minipage}{\dimexpr\linewidth-2\fboxsep-2\fboxrule\relax}
  \parbox[t][1cm][t]{1cm}{\bccrayon}%
  \parbox[t][1cm][t]{\dimexpr\linewidth-1cm\relax}{\bfseries#1}
  \BODY
  \end{minipage}}%
\endwrapfigure}

\begin{document}

\begin{mybox}{The Title}
  \lipsum[2]
\end{mybox}
\lipsum[1-3]
\end{document}

enter image description here

Since the environment uses the wrapfig package, the idiosyncrasies of wrapfig apply here too (refer to the package documentation for details).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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