Graphics, Figures & TablesTable Cell partly without Rules

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
mahmood
Posts: 26
Joined: Sun Oct 31, 2010 11:42 am

Table Cell partly without Rules

Post by mahmood »

I have a created a table like this:

Code: Select all

----------------------
|      |      |      |
----------------------
|      |      |      |
----------------------
|      |      |      |
----------------------
However I don't know how can i make remove part of horizontal and vertical lines in location (1,1). like this:

Code: Select all

       ---------------
       |      |      |
----------------------
|      |      |      |
----------------------
|      |      |      |
----------------------

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Table Cell partly without Rules

Post by localghost »

mahmood wrote:I have a created a table like this […]
In this case you can for sure present the code in form of a proper minimal example in order to give an adequate problem description.


Thorsten
mahmood
Posts: 26
Joined: Sun Oct 31, 2010 11:42 am

Table Cell partly without Rules

Post by mahmood »

Here is the code

Code: Select all

   
   \begin{table}[h]
    \caption{ title of Table} 
    \centering
    \begin{tabular}{| c | c | c |}
     \hline
                &   $a1 < 0$   &   $a1 > 0$  \\
     \hline
     $b1 < 0$   &     no       &     yes     \\
     \hline
     $b1 > 0$   &    yes       &     no      \\
     \hline
    \end{tabular}
    \label{policy}
   \end{table}
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Table Cell partly without Rules

Post by localghost »

You still have to learn what a proper minimal example is. For the next time it is appreciated that you provide an example which is compilable as is.

Code: Select all

\documentclass[11pt]{article}
\usepackage[tableposition=top]{caption}

\begin{document}
  \begin{table}[!htb]
    \caption{Title of Table}
    \label{tab:policy}
    \centering
    \begin{tabular}{|c|c|c|}\cline{2-3}
      \multicolumn{1}{c|}{} & $a_1<0$ & $a1>0$ \\ \hline
      $b_1<0$ & no  & yes \\ \hline
      $b_1>0$ & yes & no  \\ \hline
    \end{tabular}
  \end{table}
\end{document}
Some basic reading can't do any harm to manage those essentials.

For good looking tables you should drop vertical lines completely and take a look at the booktabs package.


Thorsten
mahmood
Posts: 26
Joined: Sun Oct 31, 2010 11:42 am

Re: Table Cell partly without Rules

Post by mahmood »

thanks a lot. I though a code snippet is ok.
anyway
Post Reply