我有一张双栏纸,我想用以下代码将长文本放入括号方程中:
\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)
案例一的文本越过该列。我想在列宽的多行中适合案例一的所有文本。
您可以\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环境之外进行字体大小更改)
| 归档时间: |
|
| 查看次数: |
1628 次 |
| 最近记录: |