我有以下涵盖两种情况的方程,并且在我的双列文档中收到“Overfull \hbox”警告:
\documentclass[conference, 10pt]{IEEEtran}
\IEEEoverridecommandlockouts
%% Packages:
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{url}
\usepackage[cmex10]{amsmath}
\interdisplaylinepenalty=1000
\usepackage{mleftright}
\mleftright
\usepackage{amsthm}
\usepackage{booktabs}
\begin{document}
\begin{equation*}
\mathbf{1}(x \geq 0) \mathbf{1}(-w \leq y - x \leq 0) =
\begin{cases}
\mathbf{1}(0 \leq x \leq w + y), & \text{if $-w \leq y \leq 0$}, \\
\mathbf{1}(y \leq x \leq w + y), & \text{if $ y \geq 0$}.
\end{cases}
\end{equation*}
\end{document}
可以进行哪些修改来消除警告而不牺牲方程的清晰度?任何帮助或建议都将不胜感激。谢谢!
答案1
我猜不出这是什么意思,但也许你需要分成更多行
\documentclass[conference, 10pt]{IEEEtran}
\IEEEoverridecommandlockouts
%% Packages:
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{url}
\usepackage[cmex10]{amsmath}
\interdisplaylinepenalty=1000
\usepackage{mleftright}
\mleftright
\usepackage{amsthm}
\usepackage{booktabs}
\begin{document}
\noindent X\dotfill X
\noindent X\dotfill X
\begin{multline*}
\mathbf{1}(x \geq 0)
\mathbf{1}(-w \leq y - x \leq 0)
\\{} =
\begin{cases}
\mathbf{1}(0 \leq x \leq w + y), & \text{if $-w \leq y \leq 0$}, \\
\mathbf{1}(y \leq x \leq w + y), & \text{if $ y \geq 0$}.
\end{cases}
\end{multline*}
\noindent X\dotfill X
\noindent X\dotfill X
\end{document}