6

How can I draw the following table in LaTeX?

enter image description here

I tried looking here but from the examples I can't figure out how I can draw this.

Edit: After browsing a few more times I found this with the help of which I could draw the table without the diagonal. Here is my MWE,

\begin{table}[]
\centering
\caption{My caption}
\label{my-label}
\begin{tabular}{|l|l|l|l|l|l|l|}
\hline
\multicolumn{1}{|c|}{CONCEPT} & \multicolumn{6}{c|}{COMPREHENSIVE NOTES}                                \\ \hline
Man                            & Substance & Material & Living           &     Sentient & Rational & Man \\ \hline
Animal                         & Substance & Material & Living           &     Sentient & Brutes   & Man \\ \hline
Organism                       & Substance & Material & Inanimate Bodies &     Plants   & Brutes   & Man \\ \hline
Body                           & Substance & Material & Inanimate Bodies &     Plants   & Brutes   & Man \\ \hline
Substance                      & Substance & Spirit   & Inanimate Bodies &     Plants   & Brutes   & Man \\ \hline
\multicolumn{1}{|c|}{}         & \multicolumn{6}{c|}{EXTENSIVE SUBJECTS}                                 \\ \hline
\end{tabular}
\end{table}
4

With tikz

\documentclass[a4paper]{article}
\usepackage{tikz}

\newcommand{\tikzmark}[2][]{\tikz[remember picture, overlay]\node[#1,inner sep=0pt,xshift=-\tabcolsep](#2){};\ignorespaces}
\newcommand{\tm}[2][]{\tikzmark[yshift=#1]{#2}}

\begin{document}
\begin{table}[]
\centering
\caption{My caption}
\label{my-label}
\begin{tabular}{|l|l|l|l|l|l|l|}
\hline
\multicolumn{1}{|c|}{CONCEPT}& \multicolumn{6}{c|}{COMPREHENSIVE NOTES}                                                       \\ \hline
Man                          & Substance & Material               & Living           & Sentient & Rational &\tm[1.8ex]{A} Man \\ \hline
Animal                       & Substance & Material               & Living           & Sentient & Brutes   & Man              \\ \hline
Organism                     & Substance & Material               & Inanimate Bodies & Plants   & Brutes   & Man              \\ \hline
Body                         & Substance & Material               & Inanimate Bodies & Plants   & Brutes   & Man              \\ \hline
Substance                    & Substance & \tm[-0.9ex]{B} Spirits & Inanimate Bodies & Plants   & Brutes   & Man              \\ \hline
\multicolumn{1}{|c|}{}       & \multicolumn{6}{c|}{EXTENSIVE SUBJECTS}                                                        \\ \hline
\end{tabular}
\tikz[remember picture, overlay]\draw[thick] (A)--(B);
\end{table}
\end{document}
  • Better answer than mine because you are able to just set your \tm in any cell in the table and the line gets drawn programatically. – A Feldman May 26 '16 at 2:53
5

Here is one way of doing it, using the graphicx package:

\documentclass[10pt,letterpaper]{article}
 \usepackage{graphicx}
\begin{document}
\begin{table}[]
    \centering
    \caption{My caption}
    \label{my-label}
    \begin{tabular}{|l|l|l|l|l|l|l|}
        \hline
        \multicolumn{1}{|c|}{CONCEPT} & \multicolumn{6}{c|}%
{COMPREHENSIVE NOTES\Large\strut}                                \\ \hline
        Man                            & Substance & Material & Living           &     Sentient & Rational & Man \\ \hline
        Animal                         & Substance & Material & Living           &     Sentient & Brutes   & Man \\ \hline
        Organism                       & Substance & Material & Inanimate Bodies &     Plants   & Brutes   & Man \\ \hline
        Body                           & Substance & Material & Inanimate Bodies &     Plants   & Brutes   & Man \\ \hline
        Substance                      & Substance & Spirit   & Inanimate Bodies &     Plants   & Brutes   & Man \\ \hline
        \multicolumn{1}{|c|}{}         & \multicolumn{6}{c|}%
{EXTENSIVE SUBJECTS\Large\strut}                                 \\ \hline
    \end{tabular}


\vskip-1.17in\rotatebox{14}{\hskip1.5in\vtop{\hsize=3.75in\rule{3.28in}{1pt}}}



\end{table} 

and adjust the dimensions to fit your needs. I added a \Large\strut to adjust the cell padding for the top and bottom cells.

enter image description here

  • Try doing it in TikZ, since this would allow it to stretch with the content. – azetina May 25 '16 at 20:04
  • I'm sure that somebody will. I'm surprised there is not already a tikz solution. – A Feldman May 25 '16 at 20:31

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.