需要帮助编辑景观输出

需要帮助编辑景观输出

我对如何改进以下方面感到困惑:

\documentclass[12pt]{article}
\usepackage{multirow}
\usepackage{multicol}
\usepackage[dvipsnames,svgnames,table]{xcolor}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{lscape}
\usepackage[paperheight=13in,paperwidth=8.5in,top=1in,left=1.5in,right=1in,bottom=1in]{geometry}

\begin{document}
\begin{landscape}
\begin{table}[htbp]
\begin{tabular}{|l|p{2cm}|c|c|}
\hline
    \multicolumn{1}{|c|}{\textbf{Proponents}} & \textbf{Study} & \textbf{Date Completed/Published} & \textbf{Collaborationg Agency} \\
\hline
Berlita Y. Disca&\multicolumn{1}{c|}{\multirow{2}[2]{*}{Programs on Drug and Substance Abuse Prevention and Law Enforcement in Two Cities in Region 12: An Empirical Study}}&   \multirow{2}[2]{*}{August 2017}&
\multirow{2}[2]{*}{DOST-PCHRD REGION 12}\\
Edgar Mabad     &           &           &\\
\hline      
Leonida, Rene E. & \multicolumn{1}{c|}{\multirow{5}[2]{*}{Secure Weakly Connected Domination in the Join of Graphs}} & \multirow{5}[2]{*}{ March  2015} & \multirow{5}[2]{*}{HIKARI Ltd.}\\
    Dela Cruz, Rendon A.        &       &       &  \\
    Aujero, Emmylou M.          &       &       &  \\
    Deleverio, Marchelle A. &       &       &  \\
    Bodegas, Nimfa L.           &       &       &  \\
 \hline
\end{tabular}
\end{table}
\end{landscape}
\end{document}

编译后我得到了

在此处输入图片描述

我不知道如何编辑它。请帮忙。

答案1

我建议使用以下示例:

\documentclass[12pt]{article}
\usepackage[paperheight=13in,paperwidth=8.5in,top=1in,left=1.5in,right=1in,bottom=1in]{geometry}
\usepackage{lscape}
\usepackage{makecell}
\usepackage{tabularx}
\usepackage{booktabs}


\begin{document}
\begin{landscape}
\begin{table}[htbp]
\begin{tabularx}{\linewidth}{lXcc}
Proponents & \textbf{Study} & \textbf{Date Completed/Published} & \textbf{Collaborationg Agency} \\
\midrule
\makecell[tl]{Berlita Y. Disca \\ Edgar Mabad}  & Programs on Drug and Substance Abuse Prevention and Law Enforcement in Two Cities in Region 12: An Empirical Study & August 2017 & DOST-PCRD Region12\\ 
\midrule 
\makecell[tl]{Leonida, Rene E. \\ Dela Cruz, Rendon A. \\ Aujero, Emmylou M. \\ Deleverio, Marchelle A. \\ Bodegas, Nimfa L.}& Secure Weakly Connected Domination in the Join of Graphs &  March  2015 &HIKARI Ltd.\\
\end{tabularx}
\end{table}
\end{landscape}
\end{document}

我已使用该包tabularx将其灵活宽度的列用作X表格的第二列。表格本身的宽度与当前行宽相同。列X的宽度现在是行宽-宽度(列 1)-宽度(列 3)-宽度(列 4),其中的长行会自动断开。

为了实现第一列的格式化,我使用了makecell包来在单元格内引入换行符\\

最后,我使用了包booktabs及其命令\midrule。此外,我还删除了表格中的所有垂直线,因为大多数情况下,它们对于理解表格来说并不是必需的

在此处输入图片描述

相关内容