
Tenho alguns problemas com o espaçamento antes e depois tabular
das caixas. Quando minha tabela tem apenas uma linha, está tudo bem.
\documentclass{article}
\usepackage{setspace}
\begin{document}
\doublespacing
Some text.
\begin{tabular}{|l|}
\hline
Some text.\\
\hline
\end{tabular}
Some text.
\end{document}
Mas quando adiciono uma nova linha, o espaçamento antes e depois da tabela desaparece!
\begin{tabular}{|l|}
\hline
Some text.\\ \hline
Some text.\\
\hline
\end{tabular}
O que devo fazer para corrigir isso?
Responder1
Se você não gosta flushleft
de or center
, você pode usar \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}