Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I would like my vertical line to be slightly detached from the horizontal lines. I am using

\usepackage{longtable}.

\footnotesize

\begin{longtable}{r | p{10cm}}

\caption{My caption 1\label{1}}\\

\hline

\endfirsthead

\caption[]{(continued)}\\

\endhead

\hline

\endlastfoot

\textsc{Newspaper Name}&\emph{Daily Triplicate}\\

\textsc{Availability}&text\\

\textsc{founded}&date\\

\textsc{Circulation}&number\\

\textsc{Coverage}&text\\

\textsc{Frequency}&text\\

\hline

\textsc{Newspaper Name}&\emph{Eureka Times-Standard}\\

\textsc{Availability}&text\\

\textsc{founded}&1997date\\

\textsc{Circulation}&number\\

\textsc{Coverage}&text\\

\textsc{Frequency}&text\\

\end{longtable}
share|improve this question

1 Answer 1

up vote 9 down vote accepted

You may use booktabs and its toprule, midrule and bottomrule.

\documentclass{article}
\usepackage{booktabs,longtable}

\begin{document}

\footnotesize
\begin{longtable}{r | p{10cm}}
\caption{My caption 1\label{1}}\\
\toprule
\endfirsthead
\caption[]{(continued)}\\
\endhead

\bottomrule

\endlastfoot

\textsc{Newspaper Name}&\emph{Daily Triplicate}\\
\textsc{Availability}&text\\
\textsc{founded}&date\\
\textsc{Circulation}&number\\
\textsc{Coverage}&text\\
\textsc{Frequency}&text\\

\midrule

\textsc{Newspaper Name}&\emph{Eureka Times-Standard}\\
\textsc{Availability}&text\\
\textsc{founded}&1997date\\
\textsc{Circulation}&number\\
\textsc{Coverage}&text\\
\textsc{Frequency}&text\\

\end{longtable}

\end{document}

As a free bonus, you get much nicer (and more correct) spacing of the rows. Also, I invite you to read section 2 of the booktab manual, and reconsider the use of vertical lines.

Longtable with booktabs

share|improve this answer
1  
Thank you for your help. After all, I did reconsider the use of vertical lines and I don't need this anymore. Also, I am now using the top, mid and bottom lines as you suggested. –  Costanza Aug 8 '12 at 18:10

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.