-1

I am creating a worksheet in TeX and would like to separate the questions using boxes. The attached file shows the box I have created to house the questions. I was wondering if anyone could write a code to describe a text box like this, as my skills aren't so advanced. The 'Q' should be centered as shown in the diagram and should only be slightly larger than the example text (which I've set at 12pt). enter image description here

The color of the shapes and text-box should be as they are in the diagram (dark grey). Since the problem is quite elaborate, I really would appreciate some help as I am struggling to code this myself.

wrb98
  • 876
  • Two questions:does the external box have width equal to \textwidth? Will the text in the box have to break across pages, or is just a title box? – Bernard Oct 30 '16 at 16:34
  • Yes \textwidth would look better on the page. It's really just a box for a short question so it wouldn't break across a page. – wrb98 Oct 30 '16 at 16:38
  • Please always provide a minimal example showing what you've got or at least giving people something to work with. We don't know whether your document is LaTeX, plain, ConTeXt or what. And it really isn't fair to ask this and then, after getting an answer, demand that the gear be movable with the text still wrapping around it! If that is really now required for an answer, you should make it very clear in the question so that people know not to try to offer help in LaTeX. (The requirement makes this extremely difficult, perhaps impossible, in LaTeX.) – cfr Oct 30 '16 at 23:01

1 Answers1

3

The bclogo package might be a good starting point:

\documentclass{book}
\usepackage{lipsum}
\usepackage[tikz]{bclogo} 

\begin{document}

\begin{bclogo}[logo=\bcoutil,marge=8]{Mon titre}%
\lipsum[2]
\end{bclogo}

\end{document}

enter image description here