如何创建两列定义式表格

如何创建两列定义式表格

我如何制作类似的东西:

    **Definition** Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor 
                   quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatemquia 
                   voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni doloreseos 
                   qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum 
                   quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi 

 **Definition #2** Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor 
                   quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatemquia

答案1

在此处输入图片描述

\documentclass[border=3pt]{standalone}
%\usepackage{array}
\usepackage{booktabs,lipsum,tabularx}
\setlength{\tabcolsep}{4pt} % Default value: 6pt
\begin{document}
    \begin{tabularx}{\textwidth}{rX}\toprule
        **Signal**          &\lipsum[1] \\
        **Discrimination**  &\lipsum[7] \\
        \bottomrule
    \end{tabularx}
\end{document}

答案2

您可以使用\enumitem以下包或可选参数\item

\documentclass{article}
\usepackage{lipsum}
\usepackage{enumitem}

\begin{document}
    
        \begin{enumerate}[start=1,label={**Definition** \#\arabic*:}]
            \item \lipsum[1]
            \item \lipsum[1]
        \end{enumerate}
    %or
        \begin{enumerate}
            \item[**Definition**] \lipsum[1]
            \item[**Definition** \#2] \lipsum[1]
        \end{enumerate}
\end{document} 

在此处输入图片描述

相关内容