Vertical lines are being broken up (disrupted) by the horizontal booktabs linesLaTeX tables / vertical...

How to prevent "they're falling in love" trope

Why do I get two different answers for this counting problem?

How is it possible to have an ability score that is less than 3?

Is it canonical bit space?

Do I have a twin with permutated remainders?

Why does Arabsat 6A need a Falcon Heavy to launch

Did Shadowfax go to Valinor?

Can a rocket refuel on Mars from water?

Is the Joker left-handed?

Has there ever been an airliner design involving reducing generator load by installing solar panels?

Can I ask the recruiters in my resume to put the reason why I am rejected?

Infinite Abelian subgroup of infinite non Abelian group example

What is going on with Captain Marvel's blood colour?

If human space travel is limited by the G force vulnerability, is there a way to counter G forces?

Why is it a bad idea to hire a hitman to eliminate most corrupt politicians?

How can saying a song's name be a copyright violation?

In Romance of the Three Kingdoms why do people still use bamboo sticks when paper had already been invented?

What to put in ESTA if staying in US for a few days before going on to Canada

How can I make my BBEG immortal short of making them a Lich or Vampire?

How to draw the figure with four pentagons?

Today is the Center

Fully-Firstable Anagram Sets

Is it legal for company to use my work email to pretend I still work there?

What is a clear way to write a bar that has an extra beat?



Vertical lines are being broken up (disrupted) by the horizontal booktabs lines


LaTeX tables / vertical alignment / spacingColumns in tables produced using booktabsSpecific horizontal space with vertical linesTable follows on another pageVertical space between horizontal linesbooktabs and tiny horizontal spaceVertical table lines are discontinuous with booktabstabu package - gaps in vertical linesWhat options are there to globally format tables also allowing local overrides?Thickness control on vertical and horizontal linesSpecific horizontal space with vertical linesAlgorithm / algorithmicx horizontal lines in booktabs styleDiscontinuous vertical dash lines in tabularx, booktabs environmentProblem with setting up vertical lines in booktabs tables













13















My vertical lines are being broken up (disrupted) by horizontal booktabs lines. How can I fix this?



It's well and good to say use hline but I also need a cmidrule that spans only the second two columns which have no hline equivalent to my knowledge. Also hline is ugly because it doesn't automatically leave any vertical space between the line and the preceding/following lines of text.



Table



documentclass[a4paper,12pt]{article}
date{}
usepackage{a4wide}
usepackage{booktabs} %for top, middle and bottomline
usepackage{multirow} %multi column and row spanning
usepackage{amsmath}
usepackage{multirow}
usepackage{tabularx}
usepackage{multicol}
usepackage{blindtext}


begin{document}

begin{multicols}{2}

subsection*{Results}

resizebox{columnwidth}{!}{%
begin{tabular}{@{} l | c | c @{}}
toprule
Characteristic & multicolumn{2}{c}{Result}\
cmidrule{2-3}
& Seaweed isolate & Coral isolate \
midrule
Cell shape & Rod & Rod\
Gram stain & $-$ & $-$\
Oxidase & $+$ & $-$\
Catalase & $+$ & $-$\
MSA & Growth & No growth\
Anaerobic & Growth (weak) & No growth\
Motility & & \
Indole production & & \
Hugh & Leifsons & & \
bottomrule
end{tabular}
}

blindtext

{noindent
begin{tabularx}{columnwidth}
{ | l | >{raggedrightarraybackslash} X | >{centeringarraybackslash} X | }
Leave this column alone. & Left justify and adjust this column. &
Centre and adjust this column. \
end{tabularx}
}

end{multicols}

end{document}









share|improve this question




















  • 2





    BTW, please consider editing your answer down to a minimal example: most of the packages you load are not needed.

    – Joseph Wright
    May 12 '11 at 19:02






  • 11





    (As you know about booktabs, I'm left wondering why you want vertical lines. The booktabs manual is pretty clear on why they are not a good thing in formal tables.)

    – Joseph Wright
    May 12 '11 at 19:05






  • 3





    @ptrcao: Please read the booktabs manual on this. As you should not have vertical rules in formal tables, they are not supported by booktabs. (I suspect the implementation would also be awkward, to say the least.)

    – Joseph Wright
    May 12 '11 at 19:14






  • 3





    Thanks, yeah, I know it is discouraged; rest assured, I've read the manual and I know the comment by the package author you refer to. The reason I'm using vertical rules is more because it is a publication convention.

    – ptrcao
    May 12 '11 at 19:23








  • 5





    I appreciate the advice and I know where it is coming from. I try to avoid it where I can. If anyone knows how to implement unbroken vertical lies with booktabs or otherwise to equivalent effect, I'd still be interested.

    – ptrcao
    May 12 '11 at 19:31
















13















My vertical lines are being broken up (disrupted) by horizontal booktabs lines. How can I fix this?



It's well and good to say use hline but I also need a cmidrule that spans only the second two columns which have no hline equivalent to my knowledge. Also hline is ugly because it doesn't automatically leave any vertical space between the line and the preceding/following lines of text.



Table



documentclass[a4paper,12pt]{article}
date{}
usepackage{a4wide}
usepackage{booktabs} %for top, middle and bottomline
usepackage{multirow} %multi column and row spanning
usepackage{amsmath}
usepackage{multirow}
usepackage{tabularx}
usepackage{multicol}
usepackage{blindtext}


begin{document}

begin{multicols}{2}

subsection*{Results}

resizebox{columnwidth}{!}{%
begin{tabular}{@{} l | c | c @{}}
toprule
Characteristic & multicolumn{2}{c}{Result}\
cmidrule{2-3}
& Seaweed isolate & Coral isolate \
midrule
Cell shape & Rod & Rod\
Gram stain & $-$ & $-$\
Oxidase & $+$ & $-$\
Catalase & $+$ & $-$\
MSA & Growth & No growth\
Anaerobic & Growth (weak) & No growth\
Motility & & \
Indole production & & \
Hugh & Leifsons & & \
bottomrule
end{tabular}
}

blindtext

{noindent
begin{tabularx}{columnwidth}
{ | l | >{raggedrightarraybackslash} X | >{centeringarraybackslash} X | }
Leave this column alone. & Left justify and adjust this column. &
Centre and adjust this column. \
end{tabularx}
}

end{multicols}

end{document}









share|improve this question




















  • 2





    BTW, please consider editing your answer down to a minimal example: most of the packages you load are not needed.

    – Joseph Wright
    May 12 '11 at 19:02






  • 11





    (As you know about booktabs, I'm left wondering why you want vertical lines. The booktabs manual is pretty clear on why they are not a good thing in formal tables.)

    – Joseph Wright
    May 12 '11 at 19:05






  • 3





    @ptrcao: Please read the booktabs manual on this. As you should not have vertical rules in formal tables, they are not supported by booktabs. (I suspect the implementation would also be awkward, to say the least.)

    – Joseph Wright
    May 12 '11 at 19:14






  • 3





    Thanks, yeah, I know it is discouraged; rest assured, I've read the manual and I know the comment by the package author you refer to. The reason I'm using vertical rules is more because it is a publication convention.

    – ptrcao
    May 12 '11 at 19:23








  • 5





    I appreciate the advice and I know where it is coming from. I try to avoid it where I can. If anyone knows how to implement unbroken vertical lies with booktabs or otherwise to equivalent effect, I'd still be interested.

    – ptrcao
    May 12 '11 at 19:31














13












13








13


9






My vertical lines are being broken up (disrupted) by horizontal booktabs lines. How can I fix this?



It's well and good to say use hline but I also need a cmidrule that spans only the second two columns which have no hline equivalent to my knowledge. Also hline is ugly because it doesn't automatically leave any vertical space between the line and the preceding/following lines of text.



Table



documentclass[a4paper,12pt]{article}
date{}
usepackage{a4wide}
usepackage{booktabs} %for top, middle and bottomline
usepackage{multirow} %multi column and row spanning
usepackage{amsmath}
usepackage{multirow}
usepackage{tabularx}
usepackage{multicol}
usepackage{blindtext}


begin{document}

begin{multicols}{2}

subsection*{Results}

resizebox{columnwidth}{!}{%
begin{tabular}{@{} l | c | c @{}}
toprule
Characteristic & multicolumn{2}{c}{Result}\
cmidrule{2-3}
& Seaweed isolate & Coral isolate \
midrule
Cell shape & Rod & Rod\
Gram stain & $-$ & $-$\
Oxidase & $+$ & $-$\
Catalase & $+$ & $-$\
MSA & Growth & No growth\
Anaerobic & Growth (weak) & No growth\
Motility & & \
Indole production & & \
Hugh & Leifsons & & \
bottomrule
end{tabular}
}

blindtext

{noindent
begin{tabularx}{columnwidth}
{ | l | >{raggedrightarraybackslash} X | >{centeringarraybackslash} X | }
Leave this column alone. & Left justify and adjust this column. &
Centre and adjust this column. \
end{tabularx}
}

end{multicols}

end{document}









share|improve this question
















My vertical lines are being broken up (disrupted) by horizontal booktabs lines. How can I fix this?



It's well and good to say use hline but I also need a cmidrule that spans only the second two columns which have no hline equivalent to my knowledge. Also hline is ugly because it doesn't automatically leave any vertical space between the line and the preceding/following lines of text.



Table



documentclass[a4paper,12pt]{article}
date{}
usepackage{a4wide}
usepackage{booktabs} %for top, middle and bottomline
usepackage{multirow} %multi column and row spanning
usepackage{amsmath}
usepackage{multirow}
usepackage{tabularx}
usepackage{multicol}
usepackage{blindtext}


begin{document}

begin{multicols}{2}

subsection*{Results}

resizebox{columnwidth}{!}{%
begin{tabular}{@{} l | c | c @{}}
toprule
Characteristic & multicolumn{2}{c}{Result}\
cmidrule{2-3}
& Seaweed isolate & Coral isolate \
midrule
Cell shape & Rod & Rod\
Gram stain & $-$ & $-$\
Oxidase & $+$ & $-$\
Catalase & $+$ & $-$\
MSA & Growth & No growth\
Anaerobic & Growth (weak) & No growth\
Motility & & \
Indole production & & \
Hugh & Leifsons & & \
bottomrule
end{tabular}
}

blindtext

{noindent
begin{tabularx}{columnwidth}
{ | l | >{raggedrightarraybackslash} X | >{centeringarraybackslash} X | }
Leave this column alone. & Left justify and adjust this column. &
Centre and adjust this column. \
end{tabularx}
}

end{multicols}

end{document}






tables rules booktabs






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 13 '17 at 6:47









David Carlisle

497k4111441891




497k4111441891










asked May 12 '11 at 18:53









ptrcaoptrcao

3,113154479




3,113154479








  • 2





    BTW, please consider editing your answer down to a minimal example: most of the packages you load are not needed.

    – Joseph Wright
    May 12 '11 at 19:02






  • 11





    (As you know about booktabs, I'm left wondering why you want vertical lines. The booktabs manual is pretty clear on why they are not a good thing in formal tables.)

    – Joseph Wright
    May 12 '11 at 19:05






  • 3





    @ptrcao: Please read the booktabs manual on this. As you should not have vertical rules in formal tables, they are not supported by booktabs. (I suspect the implementation would also be awkward, to say the least.)

    – Joseph Wright
    May 12 '11 at 19:14






  • 3





    Thanks, yeah, I know it is discouraged; rest assured, I've read the manual and I know the comment by the package author you refer to. The reason I'm using vertical rules is more because it is a publication convention.

    – ptrcao
    May 12 '11 at 19:23








  • 5





    I appreciate the advice and I know where it is coming from. I try to avoid it where I can. If anyone knows how to implement unbroken vertical lies with booktabs or otherwise to equivalent effect, I'd still be interested.

    – ptrcao
    May 12 '11 at 19:31














  • 2





    BTW, please consider editing your answer down to a minimal example: most of the packages you load are not needed.

    – Joseph Wright
    May 12 '11 at 19:02






  • 11





    (As you know about booktabs, I'm left wondering why you want vertical lines. The booktabs manual is pretty clear on why they are not a good thing in formal tables.)

    – Joseph Wright
    May 12 '11 at 19:05






  • 3





    @ptrcao: Please read the booktabs manual on this. As you should not have vertical rules in formal tables, they are not supported by booktabs. (I suspect the implementation would also be awkward, to say the least.)

    – Joseph Wright
    May 12 '11 at 19:14






  • 3





    Thanks, yeah, I know it is discouraged; rest assured, I've read the manual and I know the comment by the package author you refer to. The reason I'm using vertical rules is more because it is a publication convention.

    – ptrcao
    May 12 '11 at 19:23








  • 5





    I appreciate the advice and I know where it is coming from. I try to avoid it where I can. If anyone knows how to implement unbroken vertical lies with booktabs or otherwise to equivalent effect, I'd still be interested.

    – ptrcao
    May 12 '11 at 19:31








2




2





BTW, please consider editing your answer down to a minimal example: most of the packages you load are not needed.

– Joseph Wright
May 12 '11 at 19:02





BTW, please consider editing your answer down to a minimal example: most of the packages you load are not needed.

– Joseph Wright
May 12 '11 at 19:02




11




11





(As you know about booktabs, I'm left wondering why you want vertical lines. The booktabs manual is pretty clear on why they are not a good thing in formal tables.)

– Joseph Wright
May 12 '11 at 19:05





(As you know about booktabs, I'm left wondering why you want vertical lines. The booktabs manual is pretty clear on why they are not a good thing in formal tables.)

– Joseph Wright
May 12 '11 at 19:05




3




3





@ptrcao: Please read the booktabs manual on this. As you should not have vertical rules in formal tables, they are not supported by booktabs. (I suspect the implementation would also be awkward, to say the least.)

– Joseph Wright
May 12 '11 at 19:14





@ptrcao: Please read the booktabs manual on this. As you should not have vertical rules in formal tables, they are not supported by booktabs. (I suspect the implementation would also be awkward, to say the least.)

– Joseph Wright
May 12 '11 at 19:14




3




3





Thanks, yeah, I know it is discouraged; rest assured, I've read the manual and I know the comment by the package author you refer to. The reason I'm using vertical rules is more because it is a publication convention.

– ptrcao
May 12 '11 at 19:23







Thanks, yeah, I know it is discouraged; rest assured, I've read the manual and I know the comment by the package author you refer to. The reason I'm using vertical rules is more because it is a publication convention.

– ptrcao
May 12 '11 at 19:23






5




5





I appreciate the advice and I know where it is coming from. I try to avoid it where I can. If anyone knows how to implement unbroken vertical lies with booktabs or otherwise to equivalent effect, I'd still be interested.

– ptrcao
May 12 '11 at 19:31





I appreciate the advice and I know where it is coming from. I try to avoid it where I can. If anyone knows how to implement unbroken vertical lies with booktabs or otherwise to equivalent effect, I'd still be interested.

– ptrcao
May 12 '11 at 19:31










2 Answers
2






active

oldest

votes


















24














You can use the extrarowheight command from the array package to stretch all the rows. Otherwise you can define your own "strut" command to enlarge a single row. The code below is based on array's strut box. If you are using vertical lines, then us it on the sides also.



EDIT: There is also the bigstrut package



I have also include an example how to do it properly with booktabs



documentclass{article}
usepackage{array}
%setlength{extrarowheight}{1pt}
usepackage{booktabs} %for top, middle and bottomline
usepackage{bigstrut}
setlengthbigstrutjot{3pt}

makeatletter
newlengthmylena
newlengthmylenb
newcommandmystrut[1][2]{%
setlengthmylena{#1ht@arstrutbox}%
setlengthmylenb{#1dp@arstrutbox}%
rule[mylenb]{0pt}{mylena}}
makeatother

begin{document}
noindent With mystrutpar
bigskip
begin{tabular}{|l|c|c|}
hline
mystrut & multicolumn{2}{c|}{Result}\
cline{2-3}
mystrut
Characteristic & Seaweed isolate & Coral isolate \
hline
mystrut
Cell shape & Rod & Rod\
Gram stain & $-$ & $-$\
Oxidase & $+$ & $-$\
Catalase & $+$ & $-$\
MSA & Growth & No growth\
Anaerobic & Growth (weak) & No growth\
Motility & & \
Indole production & & \
Hugh & Leifsons & & \
hline
end{tabular}

bigskip
noindent With bigstrutpar
bigskip
begin{tabular}{|l|c|c|}
hline
bigstrut & multicolumn{2}{c|}{Result}\
cline{2-3}
bigstrut
Characteristic & Seaweed isolate & Coral isolate \
hline
bigstrut[t]
Cell shape & Rod & Rod\
Gram stain & $-$ & $-$\
Oxidase & $+$ & $-$\
Catalase & $+$ & $-$\
MSA & Growth & No growth\
Anaerobic & Growth (weak) & No growth\
Motility & & \
Indole production & & \
bigstrut[b]
Hugh & Leifsons & & \
hline
end{tabular}

bigskip
noindent With booktabspar
bigskip
begin{tabular}{@{}lcc@{}}
toprule
& multicolumn{2}{c@{}}{Result}\
cmidrule(l){2-3}
Characteristic & Seaweed isolate & Coral isolate \
cmidrule( r){1-1}
cmidrule(lr){2-2}
cmidrule(l ){3-3}
Cell shape & Rod & Rod\
Gram stain & $-$ & $-$\
Oxidase & $+$ & $-$\
Catalase & $+$ & $-$\
MSA & Growth & No growth\
Anaerobic & Growth (weak) & No growth\
Motility & & \
Indole production & & \
Hugh & Leifsons & & \
bottomrule
end{tabular}
end{document}


The output is



enter image description here






share|improve this answer


























  • Comprehensive and to the point. Thanks Danie. :)

    – ptrcao
    May 13 '11 at 9:56



















0














To avoid broken lines "use cline{i-j} instead of hline"






share|improve this answer








New contributor




Dubacharla Gyaneshwar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "85"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f18092%2fvertical-lines-are-being-broken-up-disrupted-by-the-horizontal-booktabs-lines%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    24














    You can use the extrarowheight command from the array package to stretch all the rows. Otherwise you can define your own "strut" command to enlarge a single row. The code below is based on array's strut box. If you are using vertical lines, then us it on the sides also.



    EDIT: There is also the bigstrut package



    I have also include an example how to do it properly with booktabs



    documentclass{article}
    usepackage{array}
    %setlength{extrarowheight}{1pt}
    usepackage{booktabs} %for top, middle and bottomline
    usepackage{bigstrut}
    setlengthbigstrutjot{3pt}

    makeatletter
    newlengthmylena
    newlengthmylenb
    newcommandmystrut[1][2]{%
    setlengthmylena{#1ht@arstrutbox}%
    setlengthmylenb{#1dp@arstrutbox}%
    rule[mylenb]{0pt}{mylena}}
    makeatother

    begin{document}
    noindent With mystrutpar
    bigskip
    begin{tabular}{|l|c|c|}
    hline
    mystrut & multicolumn{2}{c|}{Result}\
    cline{2-3}
    mystrut
    Characteristic & Seaweed isolate & Coral isolate \
    hline
    mystrut
    Cell shape & Rod & Rod\
    Gram stain & $-$ & $-$\
    Oxidase & $+$ & $-$\
    Catalase & $+$ & $-$\
    MSA & Growth & No growth\
    Anaerobic & Growth (weak) & No growth\
    Motility & & \
    Indole production & & \
    Hugh & Leifsons & & \
    hline
    end{tabular}

    bigskip
    noindent With bigstrutpar
    bigskip
    begin{tabular}{|l|c|c|}
    hline
    bigstrut & multicolumn{2}{c|}{Result}\
    cline{2-3}
    bigstrut
    Characteristic & Seaweed isolate & Coral isolate \
    hline
    bigstrut[t]
    Cell shape & Rod & Rod\
    Gram stain & $-$ & $-$\
    Oxidase & $+$ & $-$\
    Catalase & $+$ & $-$\
    MSA & Growth & No growth\
    Anaerobic & Growth (weak) & No growth\
    Motility & & \
    Indole production & & \
    bigstrut[b]
    Hugh & Leifsons & & \
    hline
    end{tabular}

    bigskip
    noindent With booktabspar
    bigskip
    begin{tabular}{@{}lcc@{}}
    toprule
    & multicolumn{2}{c@{}}{Result}\
    cmidrule(l){2-3}
    Characteristic & Seaweed isolate & Coral isolate \
    cmidrule( r){1-1}
    cmidrule(lr){2-2}
    cmidrule(l ){3-3}
    Cell shape & Rod & Rod\
    Gram stain & $-$ & $-$\
    Oxidase & $+$ & $-$\
    Catalase & $+$ & $-$\
    MSA & Growth & No growth\
    Anaerobic & Growth (weak) & No growth\
    Motility & & \
    Indole production & & \
    Hugh & Leifsons & & \
    bottomrule
    end{tabular}
    end{document}


    The output is



    enter image description here






    share|improve this answer


























    • Comprehensive and to the point. Thanks Danie. :)

      – ptrcao
      May 13 '11 at 9:56
















    24














    You can use the extrarowheight command from the array package to stretch all the rows. Otherwise you can define your own "strut" command to enlarge a single row. The code below is based on array's strut box. If you are using vertical lines, then us it on the sides also.



    EDIT: There is also the bigstrut package



    I have also include an example how to do it properly with booktabs



    documentclass{article}
    usepackage{array}
    %setlength{extrarowheight}{1pt}
    usepackage{booktabs} %for top, middle and bottomline
    usepackage{bigstrut}
    setlengthbigstrutjot{3pt}

    makeatletter
    newlengthmylena
    newlengthmylenb
    newcommandmystrut[1][2]{%
    setlengthmylena{#1ht@arstrutbox}%
    setlengthmylenb{#1dp@arstrutbox}%
    rule[mylenb]{0pt}{mylena}}
    makeatother

    begin{document}
    noindent With mystrutpar
    bigskip
    begin{tabular}{|l|c|c|}
    hline
    mystrut & multicolumn{2}{c|}{Result}\
    cline{2-3}
    mystrut
    Characteristic & Seaweed isolate & Coral isolate \
    hline
    mystrut
    Cell shape & Rod & Rod\
    Gram stain & $-$ & $-$\
    Oxidase & $+$ & $-$\
    Catalase & $+$ & $-$\
    MSA & Growth & No growth\
    Anaerobic & Growth (weak) & No growth\
    Motility & & \
    Indole production & & \
    Hugh & Leifsons & & \
    hline
    end{tabular}

    bigskip
    noindent With bigstrutpar
    bigskip
    begin{tabular}{|l|c|c|}
    hline
    bigstrut & multicolumn{2}{c|}{Result}\
    cline{2-3}
    bigstrut
    Characteristic & Seaweed isolate & Coral isolate \
    hline
    bigstrut[t]
    Cell shape & Rod & Rod\
    Gram stain & $-$ & $-$\
    Oxidase & $+$ & $-$\
    Catalase & $+$ & $-$\
    MSA & Growth & No growth\
    Anaerobic & Growth (weak) & No growth\
    Motility & & \
    Indole production & & \
    bigstrut[b]
    Hugh & Leifsons & & \
    hline
    end{tabular}

    bigskip
    noindent With booktabspar
    bigskip
    begin{tabular}{@{}lcc@{}}
    toprule
    & multicolumn{2}{c@{}}{Result}\
    cmidrule(l){2-3}
    Characteristic & Seaweed isolate & Coral isolate \
    cmidrule( r){1-1}
    cmidrule(lr){2-2}
    cmidrule(l ){3-3}
    Cell shape & Rod & Rod\
    Gram stain & $-$ & $-$\
    Oxidase & $+$ & $-$\
    Catalase & $+$ & $-$\
    MSA & Growth & No growth\
    Anaerobic & Growth (weak) & No growth\
    Motility & & \
    Indole production & & \
    Hugh & Leifsons & & \
    bottomrule
    end{tabular}
    end{document}


    The output is



    enter image description here






    share|improve this answer


























    • Comprehensive and to the point. Thanks Danie. :)

      – ptrcao
      May 13 '11 at 9:56














    24












    24








    24







    You can use the extrarowheight command from the array package to stretch all the rows. Otherwise you can define your own "strut" command to enlarge a single row. The code below is based on array's strut box. If you are using vertical lines, then us it on the sides also.



    EDIT: There is also the bigstrut package



    I have also include an example how to do it properly with booktabs



    documentclass{article}
    usepackage{array}
    %setlength{extrarowheight}{1pt}
    usepackage{booktabs} %for top, middle and bottomline
    usepackage{bigstrut}
    setlengthbigstrutjot{3pt}

    makeatletter
    newlengthmylena
    newlengthmylenb
    newcommandmystrut[1][2]{%
    setlengthmylena{#1ht@arstrutbox}%
    setlengthmylenb{#1dp@arstrutbox}%
    rule[mylenb]{0pt}{mylena}}
    makeatother

    begin{document}
    noindent With mystrutpar
    bigskip
    begin{tabular}{|l|c|c|}
    hline
    mystrut & multicolumn{2}{c|}{Result}\
    cline{2-3}
    mystrut
    Characteristic & Seaweed isolate & Coral isolate \
    hline
    mystrut
    Cell shape & Rod & Rod\
    Gram stain & $-$ & $-$\
    Oxidase & $+$ & $-$\
    Catalase & $+$ & $-$\
    MSA & Growth & No growth\
    Anaerobic & Growth (weak) & No growth\
    Motility & & \
    Indole production & & \
    Hugh & Leifsons & & \
    hline
    end{tabular}

    bigskip
    noindent With bigstrutpar
    bigskip
    begin{tabular}{|l|c|c|}
    hline
    bigstrut & multicolumn{2}{c|}{Result}\
    cline{2-3}
    bigstrut
    Characteristic & Seaweed isolate & Coral isolate \
    hline
    bigstrut[t]
    Cell shape & Rod & Rod\
    Gram stain & $-$ & $-$\
    Oxidase & $+$ & $-$\
    Catalase & $+$ & $-$\
    MSA & Growth & No growth\
    Anaerobic & Growth (weak) & No growth\
    Motility & & \
    Indole production & & \
    bigstrut[b]
    Hugh & Leifsons & & \
    hline
    end{tabular}

    bigskip
    noindent With booktabspar
    bigskip
    begin{tabular}{@{}lcc@{}}
    toprule
    & multicolumn{2}{c@{}}{Result}\
    cmidrule(l){2-3}
    Characteristic & Seaweed isolate & Coral isolate \
    cmidrule( r){1-1}
    cmidrule(lr){2-2}
    cmidrule(l ){3-3}
    Cell shape & Rod & Rod\
    Gram stain & $-$ & $-$\
    Oxidase & $+$ & $-$\
    Catalase & $+$ & $-$\
    MSA & Growth & No growth\
    Anaerobic & Growth (weak) & No growth\
    Motility & & \
    Indole production & & \
    Hugh & Leifsons & & \
    bottomrule
    end{tabular}
    end{document}


    The output is



    enter image description here






    share|improve this answer















    You can use the extrarowheight command from the array package to stretch all the rows. Otherwise you can define your own "strut" command to enlarge a single row. The code below is based on array's strut box. If you are using vertical lines, then us it on the sides also.



    EDIT: There is also the bigstrut package



    I have also include an example how to do it properly with booktabs



    documentclass{article}
    usepackage{array}
    %setlength{extrarowheight}{1pt}
    usepackage{booktabs} %for top, middle and bottomline
    usepackage{bigstrut}
    setlengthbigstrutjot{3pt}

    makeatletter
    newlengthmylena
    newlengthmylenb
    newcommandmystrut[1][2]{%
    setlengthmylena{#1ht@arstrutbox}%
    setlengthmylenb{#1dp@arstrutbox}%
    rule[mylenb]{0pt}{mylena}}
    makeatother

    begin{document}
    noindent With mystrutpar
    bigskip
    begin{tabular}{|l|c|c|}
    hline
    mystrut & multicolumn{2}{c|}{Result}\
    cline{2-3}
    mystrut
    Characteristic & Seaweed isolate & Coral isolate \
    hline
    mystrut
    Cell shape & Rod & Rod\
    Gram stain & $-$ & $-$\
    Oxidase & $+$ & $-$\
    Catalase & $+$ & $-$\
    MSA & Growth & No growth\
    Anaerobic & Growth (weak) & No growth\
    Motility & & \
    Indole production & & \
    Hugh & Leifsons & & \
    hline
    end{tabular}

    bigskip
    noindent With bigstrutpar
    bigskip
    begin{tabular}{|l|c|c|}
    hline
    bigstrut & multicolumn{2}{c|}{Result}\
    cline{2-3}
    bigstrut
    Characteristic & Seaweed isolate & Coral isolate \
    hline
    bigstrut[t]
    Cell shape & Rod & Rod\
    Gram stain & $-$ & $-$\
    Oxidase & $+$ & $-$\
    Catalase & $+$ & $-$\
    MSA & Growth & No growth\
    Anaerobic & Growth (weak) & No growth\
    Motility & & \
    Indole production & & \
    bigstrut[b]
    Hugh & Leifsons & & \
    hline
    end{tabular}

    bigskip
    noindent With booktabspar
    bigskip
    begin{tabular}{@{}lcc@{}}
    toprule
    & multicolumn{2}{c@{}}{Result}\
    cmidrule(l){2-3}
    Characteristic & Seaweed isolate & Coral isolate \
    cmidrule( r){1-1}
    cmidrule(lr){2-2}
    cmidrule(l ){3-3}
    Cell shape & Rod & Rod\
    Gram stain & $-$ & $-$\
    Oxidase & $+$ & $-$\
    Catalase & $+$ & $-$\
    MSA & Growth & No growth\
    Anaerobic & Growth (weak) & No growth\
    Motility & & \
    Indole production & & \
    Hugh & Leifsons & & \
    bottomrule
    end{tabular}
    end{document}


    The output is



    enter image description here







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Jun 11 '17 at 8:29









    David Carlisle

    497k4111441891




    497k4111441891










    answered May 13 '11 at 2:49









    Danie ElsDanie Els

    15.6k15059




    15.6k15059













    • Comprehensive and to the point. Thanks Danie. :)

      – ptrcao
      May 13 '11 at 9:56



















    • Comprehensive and to the point. Thanks Danie. :)

      – ptrcao
      May 13 '11 at 9:56

















    Comprehensive and to the point. Thanks Danie. :)

    – ptrcao
    May 13 '11 at 9:56





    Comprehensive and to the point. Thanks Danie. :)

    – ptrcao
    May 13 '11 at 9:56











    0














    To avoid broken lines "use cline{i-j} instead of hline"






    share|improve this answer








    New contributor




    Dubacharla Gyaneshwar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.

























      0














      To avoid broken lines "use cline{i-j} instead of hline"






      share|improve this answer








      New contributor




      Dubacharla Gyaneshwar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.























        0












        0








        0







        To avoid broken lines "use cline{i-j} instead of hline"






        share|improve this answer








        New contributor




        Dubacharla Gyaneshwar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.










        To avoid broken lines "use cline{i-j} instead of hline"







        share|improve this answer








        New contributor




        Dubacharla Gyaneshwar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer






        New contributor




        Dubacharla Gyaneshwar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered 11 mins ago









        Dubacharla GyaneshwarDubacharla Gyaneshwar

        1




        1




        New contributor




        Dubacharla Gyaneshwar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        Dubacharla Gyaneshwar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        Dubacharla Gyaneshwar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f18092%2fvertical-lines-are-being-broken-up-disrupted-by-the-horizontal-booktabs-lines%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Can't compile dgruyter and caption packagesLaTeX templates/packages for writing a patent specificationLatex...

            Schneeberg (Smreczany) Bibliografia | Menu...

            Hans Bellmer Spis treści Życiorys | Upamiętnienie | Przypisy | Bibliografia | Linki zewnętrzne |...