2

I've been trying to include the diagram in the picture below in Latex, and I could achieve the result in the picture using the tabular environment. I was wondering, however, whether the same result can be achieved via Tikz. I've tried with no successful outcome. Thanks for any possible suggestions!

\documentclass{article}

\usepackage[T1]{fontenc} %font

\usepackage{arydshln}

\begin{document} 

\begin{table}[]

\begin{tabular}{lllllll}

&   \multicolumn{1}{|c}{}   &    &   &   & & \\

 Acc  &     \multicolumn{1}{|c}{Erg} &   &   &   &   &   \\

 &   \multicolumn{1}{|c}{}   & \multicolumn{1}{|c}{}   &   &   & & \\

\cline{2-2}

&  \multicolumn{1}{|c}{}   &  \multicolumn{1}{|c}{} &  &   &     &  \\

+tu  &     \multicolumn{1}{|c}{}  -tu  &       \multicolumn{1}{|c}{}  &    &  &    &    \\

  &   &    \multicolumn{1}{|c}{}    &   \multicolumn{1}{|c}{}    &  &   &  \\

 \cline{3-3}

 &   &    \multicolumn{1}{|c}{}   &   \multicolumn{1}{|c}{}     &     &     &   \\

&  \multicolumn{1}{l}{} +ego  &  \multicolumn{1}{|c}{} -ego &  \multicolumn{1}{|c}{} &  &  &      `pronouns'   \\ 

 &  &   &  \multicolumn{1}{|c}{}  &  \multicolumn{1}{|c}{} &  &  \\

\hdashline

 \cline{4-4}

 & &  &  \multicolumn{1}{|c}{}  &  \multicolumn{1}{|c}{} &   &    \\ 

 &  &  \multicolumn{1}{l}{}  +proper &  \multicolumn{1}{|c}{}  -proper &   
\multicolumn{1}{|c}{}   &     & `nouns'    \\

 &     &    &     &   \multicolumn{1}{|c}{}  &   \multicolumn{1}{|c}{}  & \\

\cline{5-5}

 &     &    &    &      \multicolumn{1}{|c}{}     &    \multicolumn{1}{|c}{}    &  \\

 &  &  &  \multicolumn{1}{l}{}  +human  &  \multicolumn{1}{|c}{} -human  &   
\multicolumn{1}{|c}{}  &    \\

 &     &        &  &    &    \multicolumn{1}{|c}{}  &    \\

 \cline{6-6}

 &     &   &   &  \multicolumn{1}{l}{} +animate &  \multicolumn{1}{|c}{}  -animate &   \\

 &     &   &   &    &   \multicolumn{1}{|c}{}   &  \\

  &     &   &   &    & \multicolumn{1}{|c}{}  …  &           

\end{tabular}

\end{table}

\end{document} 

enter image description here

2
  • As I understend You correctly, I would reccomend You to make Your table in another tex file, but in ``` standalone``` class, (as a result You will have a .pdf file), and then just paste in dodument it like ``` \includegraphics[width=0.5\linewidth]{image}``` with Your own scaling... Apr 12, 2022 at 15:10
  • Thanks for your suggestion! I drew the graphic as suggested by @kabenyuk in a standalone document and included it in the relevant file, worked out great in terms of sizing and alignment!
    – consume
    May 13, 2022 at 9:26

1 Answer 1

1

Without any additional packages, you can do something like this. The parameters \a and \b can be adjusted as you want.

\documentclass{standalone}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}[scale=0.8]
    \def\a{2}
    \def\b{3}
    \foreach \i in {0,...,4}{
    \draw[thick] (\b*\i,-\a*\i)--(\b*\i,-\a*\i-2*\a)(\b*\i,-\a*\i-\a)--(\b*\i+\b,-\a*\i-\a);
    };
    \draw[dashed] (-\b,-3*\a)--(5.5*\b,-3*\a);
    
    \node[below left] at (0,0) {Acc};
    \node[below right] at (0,0) {Erg};
    \node[left] at (0,-0.5*\a-\a) {+tu};
    
    \node[left] at (\b,-0.5*\a-\a) {-tu};
    \node[left] at (\b,-0.5*\a-2*\a) {+ego};

    \node[left] at (2*\b,-0.5*\a-2*\a) {-ego};
    \node[left] at (2*\b,-0.5*\a-3*\a) {+proper};
    
    \node[left] at (3*\b,-0.5*\a-3*\a) {-proper};
    \node[left] at (3*\b,-0.5*\a-4*\a) {+human};
    
    \node[left] at (4*\b,-0.5*\a-4*\a) {-human};
    \node[left] at (4*\b,-0.5*\a-5*\a) {+animate};

    \node[left] at (5*\b,-0.5*\a-5*\a) {-animate};
    \node[left] at (5*\b,-0.5*\a-5.5*\a) {\ldots};

    \node[above left] at (5.5*\b,-3*\a) {'pronouns`};
    \node[below left] at (5.5*\b,-3*\a) {'nouns`};
   
\end{tikzpicture}
\end{document}

enter image description here

1
  • This worked out great, thank you!
    – consume
    May 13, 2022 at 9:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .