如何在双列乳胶中的括号方程中拟合很长的线

Far*_*our 3 latex equation

我有一张双栏纸,我想用以下代码将长文本放入括号方程中:

\begin{equation}
\small
M =\begin{cases*}
    1, & some text is in here some text is in here some text is in here some text is in here some text is in here some text is in here \\
    0, & otherwise\\
    \end{cases*}
\end{equation}
Run Code Online (Sandbox Code Playgroud)

案例一的文本越过该列。我想在列宽的多行中适合案例一的所有文本。

sam*_*ter 6

您可以\parbox在文本周围添加合适的宽度:

\documentclass[twocolumn]{article}

\usepackage{mathtools}
\usepackage{lipsum}

\begin{document}

\lipsum[2]

{
\small
\begin{equation}
M =\begin{cases*}
    1, & \parbox[t]{5.5cm}{some text is in here some text is in here some text is in here some text is in here some text is in here some text is in here} \\
    0, & otherwise\\
    \end{cases*}
\end{equation}}

\lipsum[2]


\end{document}
Run Code Online (Sandbox Code Playgroud)

在此处输入图片说明

(请注意,最好在equation环境之外进行字体大小更改)