我正在努力让文本在方框方程内换行。任何人能给我提供任何帮助我都会非常感激!
\usepackage[utf8]{inputenc}
\usepackage{setspace}
\usepackage{mathrsfs}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{multirow}
\usepackage{eurosym}
\usepackage{amstext}
\usepackage{hyperref}
\usepackage{grffile} %Stops the file name of figures appearing
\usepackage{color}
\usepackage{mathabx}
\usepackage{float}
\usepackage{pdfpages}
\DeclareRobustCommand{\officialeuro}{%
\ifmmode\expandafter\text\fi
{\fontencoding{U}\fontfamily{eurosym}\selectfont e}}
\usepackage{pifont}
\usepackage{multirow}
\usepackage[dvipsnames]{xcolor}
\begin{document}
\begin{equation*}
\begin{aligned}
\boxed{H_0 : There\ is\ no\ association\ between\ the\ number\ of\ seasons\ a\ club\ has\ previously\ played\ in\ the\ top \ division\ and\ survival}
\end{aligned}
\end{equation*}
\begin{equation*}
\begin{aligned}
\boxed{H_1 : There\ is\ an\ association\ between\ the\ number\ of\ seasons\ a\ club\ has\ previously\ played\ in\ the\ top\ division\ and\ survival}
\end{aligned}
\end{equation*}
\end{document}
答案1
有很多方法可以获取一个简单的盒子,例如framed
包装和环境。(对于更精美的东西,请查看tcolorbox
或。)我根本不会为此mdframed
使用。equation*
\documentclass{article}
\usepackage{framed}
\begin{document}
\begin{framed}
\noindent $H_0$: There is no association between the number of seasons a club has previously played in the top division and survival
\end{framed}
\begin{framed}
\noindent $H_1$: There is an association between the number of seasons a club has previously played in the top division and survival
\end{framed}
\end{document}