I am trying to put some boxes on the second with the paquage
\usepackage{fancybox}
My code looks like that
\documentclass{article}
\usepackage{fancybox,color}
\begin{document}
\boxput*(-0.4,1.1){
\textbf{MathBox : }Akaike information criterion }{
\colorbox{blue}{
\ovalbox{
\begin{minipage}{0.9\textwidth}
\newline
Text
$eqation$
Text
\footnote{\textit{Everitt (1998), The Cambridge Dictionary of Statistics }}
\end{minipage}
}}}
\end{document}
I use this type of boxing three time, and it made me an error on two of them at the end of the boxing.
I do not have any \\
in the boxes or next before.
The strangest is that the code finish to compile and the box appear in the pdf. I compile with pdflatex in TexMaker (on ubuntu)
I really do not know what is the problem.
Thank you
Best Answer
The error comes from the
\newline
which you have immediately at the start of theminipage
You can not end the current line and start a new line until you have started the paragraph, hence the error. Simply deleting the\newline
makes the error go.