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 am using longtable package to create tables as the number of rows are large and doesn't fit in a single page. This works fine for me. I now need a particular column not to have top and bottom border lines..

Example table which fits my requirement

 _________________       ___________    
|SlNum |Name      |Phone| Hobby     |
 -----------------       -----------
|   1  |Pitbull   | NA  | Raps a lot|
 ------------------      -----------
share|improve this question
1  
You can use \cline or \cmidrule if using booktabs. Welcome. –  Harish Kumar Mar 22 '13 at 7:26
    
* Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. –  mafp Mar 27 '13 at 23:25

1 Answer 1

up vote 3 down vote accepted
\documentclass{article}
\usepackage{longtable}
\def\MyLine{\cline{1-2}\cline{4-4}}
\begin{document}

\begin{longtable}{| l | l | c | l |}\MyLine
SlNum & Name   & Phone & Hobby     \\\MyLine
   1  & Pitbull& NA    & Raps a lot\\\MyLine
\end{longtable}

\end{document}

enter image description here

However, a good looking table is something different ...

share|improve this answer
    
Thanks! It worked for me. Yeah I know this is not a good looking table :) –  Wonderkid Mar 22 '13 at 9:18

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.