我怎样才能在乳胶中安装一个大柱子?

我怎样才能在乳胶中安装一个大柱子?
% Please add the following required packages to your document preamble:


% \usepackage[normalem]{ulem}


% \useunder{\uline}{\ul}{}


\begin{table}[]

\begin{tabular}{ll}


'Classes &
  Guidelines \\
Political Hate-speech &


  \begin{tabular}[c]{@{}l@{}}A   tweet or phrase belongs to the 

‘‘Political Hate-speech’’ class assuming it   holds anyone or more of the following condition: \hline Abuse:   If a tweet contains any hate word about a political individual, political party, government or if   it targets the followers of a specific political party. For example, “Ap ka baap nawaz bhagora chor   h” translated in English as {[}Your father Nawaz is a truant and thief{]}.Some other offensive terms can be “youthia”   and “patwari” targeting the supporters of specific political parties.\end{tabular} \\    
Neutral &
  A tweet or phrase belongs to the ‘‘Neutral” class if   it does not hold any of the characteristics described for the Political   Hate-speech class, for example, ‘‘Wsa hi acha lgta ha mujha nawaz sharef”   translated in English as {[}I just like nawaz sharef{]}. \\
Offensive &  
  A tweet or phrase that belongs to the ‘‘Political   Hate-speech’’ class will further be classified as “Offensive”. If the tweet contains abusive words or   symbols promotes hostility, ignites anger, or incites harm to an   individual Political entity or a group of people that belong to a political   party or that support a political profile. For example, “Bhounktey rahhooooo   nawaz chor” translated in English as {[}Keep on barking nawaz thief{]}. \\
Sarcasm/ low-offensive &  
  \begin{tabular}[c]{@{}l@{}}A tweet or phrase that belongs to the ‘‘Political   Hate-speech’’ class will further be classified as “Sarcasm/ low-offensive”. If the tweet mocks and   convery contempt against a political individual, political party and   supporter of a specific political profile yet doesn’t contain explicit hate words.\\    \\ For example,” Bilkul   thek kaha ap nay nawaz Shareef nay boht investment ki h hmare adliya pay”   translated in English as {[} You are right, Nawaz shareef has invested a lot on   our judiciary system{]}.\end{tabular}  
\end{tabular}  
\end{table} 

在乳胶中看起来像这样

答案1

使用tabularraymicrotype包,其中第二列使用X[j]允许自动换行和文本对齐的列类型:

在此处输入图片描述

\documentclass[12pt,a4paper]{report}
\usepackage[margin=2.5cm]{geometry}

\usepackage{microtype}
\usepackage{tabularray}
\UseTblrLibrary{booktabs} 
\usepackage{ragged2e} % for \RaggedRight macro

\begin{document}

\begin{table}[htbp]
\begin{tblr}{colspec={@{} l X[j] @{}},
             row{2-Z}={rowsep=3pt}
             } 
Classes & Guidelines \\
    \midrule
Political hate-speech
    & A tweet or phrase belongs to the ``political hate-speech'' class if it satisfies one or more of the following conditions. \\
    & Abuse: If a tweet contains any hate word about a political individual, political party, government or if it targets the followers of a specific political party. For example, ``Ap ka baap nawaz bhagora chor h'' translated in English as [Your father Nawaz is a truant and thief]. Some other offensive terms can be ``youthia'' and ``patwari'' targeting the supporters of specific political parties. \\
Neutral
    & A tweet or phrase belongs to the ``neutral'' class if it does not hold any of the characteristics described for the political hate-speech class, for example, ``Wsa hi acha lgta ha mujha nawaz sharef'' translated in English as [I just like nawaz sharef]. \\
Offensive
    & A tweet or phrase that belongs to the ``political hate-speech'' class will further be classified as ``offensive'' if the tweet contains abusive words or symbols promotes hostility, ignites anger, or incites harm to an individual Political entity or a group of people that belong to a political party or that support a political profile. For example, ``Bhounktey rahhooooo nawaz chor'' translated in English as [Keep on barking nawaz thief]. \\
Sarcasm\slash low-offensive
    & A tweet or phrase that belongs to the ``political hate-speech'' class will further be classified as ``sarcasm\slash low-offensive''. If the tweet mocks and conveys contempt against a political individual, political party and supporter of a specific political profile yet doesn't contain explicit hate words. \\
    & For example, ``Bilkul thek kaha ap nay nawaz Shareef nay boht investment ki h hmare adliya pay'' translated in English as [You are right, Nawaz shareef has invested a lot in our judiciary system].
\end{tblr}
\end{table}

\end{document}

在此处输入图片描述

答案2

l类型不允许自动换行。我建议您 (a) 摆脱嵌套tabular环境和 (b) 使用单一tabularx环境,并将X列类型用于第二列。

在此处输入图片描述

\documentclass[12pt,a4paper]{report}
\usepackage[margin=2.5cm]{geometry} % set page parameters as needed
\usepackage{tabularx} % for tabularx env. and 'X' col. type
\usepackage{booktabs} % for \midrule and \addlinespace macros
\usepackage{ragged2e} % for \RaggedRight macro
\newcolumntype{L}{>{\RaggedRight}X} % suspend full justification in L-type col.

\begin{document}

\begin{table}[htbp]
\begin{tabularx}{\textwidth}{@{} l L @{}} % occupy full width of text block
Classes & Guidelines \\
\midrule
Political hate-speech 
& A tweet or phrase belongs to the ``political hate-speech'' class if it satisfies one or more of the following conditions. \\
\addlinespace
& Abuse: If a tweet contains any hate word about a political individual, political party, government or if it targets the followers of a specific political party. For example, ``Ap ka baap nawaz bhagora chor h'' translated in English as [Your father Nawaz is a truant and thief]. Some other offensive terms can be ``youthia'' and ``patwari'' targeting the supporters of specific political parties. \\ 
\addlinespace
Neutral 
& A tweet or phrase belongs to the ``neutral'' class if it does not hold any of the characteristics described for the political hate-speech class, for example, ``Wsa hi acha lgta ha mujha nawaz sharef'' translated in English as [I just like nawaz sharef]. \\
\addlinespace
Offensive 
& A tweet or phrase that belongs to the ``political hate-speech'' class will further be classified as ``offensive'' if the tweet contains abusive words or symbols promotes hostility, ignites anger, or incites harm to an individual Political entity or a group of people that belong to a political party or that support a political profile. For example, ``Bhounktey rahhooooo nawaz chor'' translated in English as [Keep on barking nawaz thief]. \\
\addlinespace
Sarcasm\slash low-offensive 
& A tweet or phrase that belongs to the ``political hate-speech'' class will further be classified as ``sarcasm\slash low-offensive''. If the tweet mocks and conveys contempt against a political individual, political party and supporter of a specific political profile yet doesn't contain explicit hate words. \\ 
\addlinespace
& For example, ``Bilkul thek kaha ap nay nawaz Shareef nay boht investment ki h hmare adliya pay'' translated in English as [You are right, Nawaz shareef has invested a lot in our judiciary system]. 
\end{tabularx} 
\end{table} 
\end{document}

相关内容