
상자 앞뒤 간격에 문제가 있습니다 tabular
. 내 테이블에 행이 하나만 있으면 모든 것이 정상입니다.
\documentclass{article}
\usepackage{setspace}
\begin{document}
\doublespacing
Some text.
\begin{tabular}{|l|}
\hline
Some text.\\
\hline
\end{tabular}
Some text.
\end{document}
하지만 새 행을 추가하면 테이블 앞뒤 간격이 사라집니다!
\begin{tabular}{|l|}
\hline
Some text.\\ \hline
Some text.\\
\hline
\end{tabular}
이 문제를 해결하려면 어떻게 해야 합니까?
답변1
flushleft
또는 가 마음에 들지 않으면 다음을 center
사용할 수 있습니다 \vspace
.
\documentclass{article}
\usepackage{setspace}
\begin{document}
\doublespacing
\noindent I think the best solution is with \texttt{flushleft} (or \texttt{center}) environment:
\begin{flushleft}
\begin{tabular}{|l|}
\hline
Some text.\\
\hline
Some text.\\
\hline
\end{tabular}
\end{flushleft}
Some text.
\noindent However, you could use \textbackslash\texttt{vspace*} and set any spacing you want:\vspace*{.1\baselineskip}
\noindent
\begin{tabular}{|l|}
\hline
Some text.\\
\hline
Some text.\\
\hline
\end{tabular}\vspace*{.2\baselineskip}
\noindent Some text.
\end{document}