我有以下跨越兩種情況的等式,並且在我的兩列文件中收到“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}