# “! LaTeX Error: There's no line here to end.” with the \boxput* function

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

The error comes from the \newline which you have immediately at the start of the minipage 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.
• And if you cannot remove that newline, because your whole file is one big hack: adding a whitespace ~ before the newline should work as well – lucidbrot Oct 4 '18 at 19:43