この表のコーディングに関するヘルプ

この表のコーディングに関するヘルプ

Word に表があり、これを Overleaf にコード化したいと考えています。 1 つ試してみましたが、文が長すぎて見た目がおかしくなりました。 テキストと同じ長さか、それより少し短く、中央揃えにしたくないです。 画像を添付しましたが、何か解決策はありますか?表からコードへ、次のページへ

このコードを試してみました:

\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]{article} \begin{document} \begin{tabular}{p{6cm}|p{6cm}}\hline 溶液とプロトコル\\hline アルカリ溶解剤と25mM NAOH 0.2mM EDTA pH[12]\\hline \end{tabular}

\end{document} % 残りの行は表の終わりの前に追加できます

関連情報