我正在嘗試用 paquage 在第二個盒子上放一些盒子
\usepackage{fancybox}
我的程式碼看起來像這樣
\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}
這種拳法我用了三次,其中兩次在拳擊結束時出現了錯誤。我\\
之前的盒子裡或旁邊都沒有。最奇怪的是程式碼編譯完成並且該框出現在pdf中。我在 TexMaker 中使用 pdflatex 進行編譯(在 ubuntu 上)
我真的不知道是什麼問題。
謝謝
答案1
該錯誤來自\newline
您在開始該minipage
段落之前您無法結束當前行並開始新行,因此出現錯誤。只需刪除即可\newline
使錯誤消失。