I'm trying to draw a callout that has a nice big i
on the left side, and then a bunch of text filling most of the body. The following code almost works:
\documentclass[a4paper,oneside]{article}
\usepackage{xcolor}
\definecolor{Info}{rgb}{0.9,0.5,0.0}
\usepackage{tikz}
\usepackage{anyfontsize}
\usepackage{environ}
\NewEnviron{Note}%
{
\begin{center}
\begin{tikzpicture}
\node[rectangle, rounded corners=15pt, inner sep=15pt, fill=Info](box){%
\begin{minipage}{0.9\textwidth}
\color{white}
\mbox{\fontsize{40}{40}\selectfont$i$}
\hfill
\begin{minipage}{0.95\textwidth}
\bfseries\BODY
\end{minipage}
\end{minipage}};
\end{tikzpicture}
\end{center}
}
\begin{document}
\begin{Note}
This is a test. This is a test.
This is a test. This is a test.
This is a test. This is a test.
This is a test. This is a test.
This is a test.
\end{Note}
\end{document}
But it renders like this:
I'm not sure what TeX is actually aligning that against. What's going on?
If anything, the position of the i
actually looks OK; it's the body text that seems to somehow be in the wrong place. I can't figure out what's moving it.
So how do I fix this? I'll accept having the i
fixed to the top or having it vertically centered, just so long as the body text ends up in the right place.