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 used the following code to draw the table, however, there is blank space in the border. the lines are not connected. May someone help me?

\usepackage{tikz}
\usetikzlibrary{
    shapes.geometric,
    positioning,
    fit,
    calc
}
\usepackage{array}
\usetikzlibrary{decorations.markings}
\newcommand*{\Shift}{0.6ex}
\usepackage{fancyvrb}
\usepackage{listings}
\usepackage{adjustbox}
\usepackage{etex}
\usepackage{amsmath, amssymb, proof} % mathabx,
\usepackage{ctable}
\usepackage{multirow}
\usepackage{bigstrut}
\usepackage{lipsum}

\usepackage[ruled,vlined,linesnumbered]{algorithm2e}

% GRAPHICS

\usepackage{pgf}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{pgfplots}
\usepackage{verbatim}
\usetikzlibrary{arrows,automata,positioning,shapes,patterns}

\usepackage{mathtools}
\usepackage{hyperref}

\usepackage{scalefnt}
 \begin{table}[h]
  \centering

    \begin{tabular}%{@{}p{0.7in}c@{\hspace{0.5em}}c@{\hspace{0.5em}}c@{\hspace{0.5em}}c}
    {| >{\centering\arraybackslash}m{0.7in} | >{\centering\arraybackslash}m{0.7in} |>{\centering\arraybackslash}m{0.7in} |}
    \toprule
    {\small{Response Time}} & \small{Availability} & \small{Throughput} \\
    \midrule
    $\sum\limits_{i=1}^n q(\si)$  &  $\prod\limits_{i=1}^n q(\si)$  & $\min\limits_{i=1}^n q(\si)$   \\
    \bottomrule
    \end{tabular}%
\caption{Aggregation Function}
  \label{tab:compositionalStructure}%
\end{table}

![enter image description here][1]

share|improve this question

1 Answer 1

up vote 8 down vote accepted

You haven't said (please always post complete documents showing all packages used) but you are using booktabs. booktabs as an explicit, documented design aim, is incompatible with vertical rules. You need to choose to either have vertical rules or use that package.

share|improve this answer
    
nope, booktabs is not using, I have posted all the package here. Anyway can edit it to show the line connecting together? –  william007 Feb 25 '13 at 18:22
    
@william007 Your example is still not a complete document, if I add \documentclass{article} and define \si so that it runs without error then the log file confirms booktabs is being used (/usr/local/texlive/2012/texmf-dist/tex/latex/booktabs/booktabs.sty (ctable loads booktabs) –  David Carlisle Feb 25 '13 at 19:04
    
i guess you are right, i draw a new table, and it works. Those toprule, midrule, etc. are the culprit. –  william007 Feb 25 '13 at 19:34

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.