幫助對該表進行編碼

幫助對該表進行編碼

我在word中有這張表格,我想對其進行編碼以使其位於背面。我嘗試了一個,但句子太長而且看起來很奇怪。我希望它與文本一樣長,或者稍微短一些,但不居中。我已附上圖片,有什麼解決方法嗎?表格到背面的程式碼

我嘗試了這段程式碼:

\begin{table}
\begin{tabularx}{430pt}{|c|X|}
\hline
\textbf{Paragraph \#} & \textbf{Description:} \\
\hline
1 & \pbox{20cm}{\emph{Rhetorical questions/Introduction} \\ 
    Why get someone who only \emph{pretends} to be a doctor when you 
    could get a real one? \\ \emph{Relate to audience} \\ Some more sentence
    here.} \\ 

\end{tabularx}
\end{table}

但效果並不好。

答案1

像這樣的東西嗎?

在此輸入影像描述

觀察使用\par指令在給定列中強制換行。另請注意,X列類型允許自動換行。

\documentclass{article}
\usepackage{tabularx}
\begin{document}
\begin{table}
\setlength\extrarowheight{2pt} % for a more open "look"
\begin{tabularx}{\textwidth}{|c|X|}
\hline
\textbf{Paragraph \#} & \textbf{Description} \\
\hline
1 & \emph{Rhetorical questions\slash Introduction} \par
    Why get someone who only \emph{pretends} to be a doctor when you 
    could get a real one? \par 
    \emph{Relate to audience} \par 
    Some more sentences here. \\ 
\hline
\end{tabularx}
\end{table}
\end{document}

答案2

\documentclass[12pt]{文章} \begin{document} \begin{tabular}{p{6cm}|p{6cm}}\hline 溶液與方案\\hline 鹼性裂解劑&25mM NAOH 0.2 mM EDTA pH[12] \\hline \結束{表格}

\end{document} % 您可以在結束表格之前新增剩餘行

相關內容