이 테이블 코딩에 대한 도움말

이 테이블 코딩에 대한 도움말

나는 다음 페이지로 코드를 작성하고 싶은 단어로 이 테이블을 가지고 있습니다. 한번 해봤는데 문장이 너무 길어서 이상해보였어요. 텍스트 길이만큼 길거나 약간 짧지만 중앙에 위치하지 않기를 바랍니다. 이미지를 첨부했는데 해결방법이 있나요?테이블에서 코드로 넘어가서 넘기기

나는 이 코드를 시도했다:

\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.2 mM EDTA pH[12]\\hline \ 끝{표 형식}

\end{document} % 테이블 형식이 끝나기 전에 나머지 줄을 추가할 수 있습니다.

관련 정보