用于在大花括号右侧生成枚举列表的代码

用于在大花括号右侧生成枚举列表的代码

哪个代码可以编程实现这个文本排序?

在此处输入图片描述

太感谢了

答案1

您可以使用cases表格。加载amsmath包。

\begin{align*}
\text{Formation (F)}%
\begin{cases}
    \begin{tabular}{p{8cm}} % adjust the width
        I. Assist \\
        II. Assist \\
        III. Assist word or phrase very long word or phrase very long word or phrase very long word or phrase very long word or phrase very long word or phrase very long word or phrase very long 
    \end{tabular}
\end{cases}
\end{align*}

在此处输入图片描述

答案2

我将使用该包的功能enumitem在大花括号的右侧创建一个紧凑的枚举列表。

在此处输入图片描述

\documentclass{article}
\usepackage{amsmath,enumitem}
\begin{document}
\setcounter{section}{1} % just for this example
\setcounter{subsection}{7}
\subsubsection{Work breakdown in stucture}
\[ 
\text{Formation (F)}=\left\{
\begin{tabular}{p{0.7\textwidth}}  % choose width suitably
\raggedright
\begin{enumerate}[nosep, leftmargin=1.75em, label=\Roman*.]
\item Assist to seminars about numerical methods and turbulent flows
\item Assist to seminars about C++ programming
\item Assist to lectures about mathematical modeling of combustion and resolution techniques 
\end{enumerate}
\end{tabular}
\right.
\]
\end{document}

附录:如果要消除大花括号的垂直“悬垂”,可以按以下步骤操作:

在此处输入图片描述

\documentclass[border=1pt,preview]{standalone}
\usepackage{amsmath,array}
\begin{document}
\setcounter{section}{1} % just for this example
\setcounter{subsection}{7}

\subsubsection{Work breakdown in stucture}
\[ 
\setlength\tabcolsep{3pt} % default: 6pt
\text{Formation (F)}=\left\{
\begin{tabular}{@{\,} r >{\raggedright\arraybackslash} p{0.7\textwidth}}
I. & Assist to seminars about numerical methods and turbulent flows\\
II. & Assist to seminars about C++ programming\\
III. & Assist to lectures about mathematical modeling of combustion and resolution techniques \\
\end{tabular}
\right.
\]
\end{document}

答案3

这是一个可能的解决方案,它可以自动填充行,但可以center通过可选参数适应较小的宽度(以便在环境中使用)。

\documentclass{article}

\usepackage{showframe}% just for the example

\newlength{\bdlen}
\newcounter{breakdown}
\newcommand{\breakdown}[3][\columnwidth]{%
  \settowidth{\bdlen}{#2 $\left\lbrace\rule{0pt}{6\baselineskip}\right.$}%
  \par\noindent
  #2\hfil$\left\lbrace\parbox{\dimexpr(#1-\bdlen)}{%
    \setcounter{breakdown}{0}%
    \renewcommand\item{%
      \par\medskip\stepcounter{breakdown}\Roman{breakdown}.\enspace
    }%
    #3\par
    \smallskip
  }\right.\kern-\nulldelimiterspace${\parfillskip=0pt\par}%
}

\begin{document}
\section{Word breakdown structure}

\breakdown{Formation (F)}{
  \item Assist to seminars about numerical methods and turbulent flows
  \item Assist to seminars about C++ programming
  \item Assist to lectures about mathematical modelling
        of combustion and resolution techniques
}

\begin{center}
\breakdown[.9\textwidth]{Formation (F)}{
  \item Assist to seminars about numerical methods and turbulent flows
  \item Assist to seminars about C++ programming
  \item Assist to lectures about mathematical modelling
        of combustion and resolution techniques
}
\end{center}

\end{document}

在此处输入图片描述

相关内容