7

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}
10

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

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

\begin{document}

\newcolumntype{K}{>{\scshape}r}

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

\bottomrule

\endlastfoot

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

\midrule

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

\end{longtable}

\end{document}

As a free bonus, you get much nicer (and more correct) spacing of the rows.

EDIT: I have cleaned up the code by loading array and define a new K-column to get rid of all \textsc{} in the first column. Also @{} remove unnecessary space to the left in column 1 and to the right in column 2.

Also, I invite you to read section 2 of the booktab manual, and reconsider the use of vertical lines. enter image description here

1
  • 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. – Cost Aug 8 '12 at 18:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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