0

I need to draw following chart in latex format. Currently i put it as image.Need some expertist help to do it simplest way.

enter image description here

-------updated ----------------------------- Accoridng to given link in comment i will create tree like this,how i can format that text like given image and put two , trees side by side in same referece?

    \begin{tikzpicture}[level distance=1.5cm,
  level 1/.style={sibling distance=3cm},
  level 2/.style={sibling distance=1.5cm}]
  \node {Cryptography}
    child {node {cryptos}
      child {node {hidden}}
    }
    child {node {graphia}
    child {node {writing}}
    };
\end{tikzpicture}

enter image description here

1
2

Your best option is to use TikZ, but this will work and it uses no extra package:

\documentclass[12pt]{article}
\begin{document}
\begin{center}
  \begin{tabular}{ccc}
    \Large Cryptography&\qquad&\Large Stenography\\[1ex]
    \Large$\swarrow\qquad\searrow$&&\Large$\swarrow\qquad\searrow$\\[1ex]
    \textit{cryptos}\qquad\textit{graphia}&&\textit{steganos}\qquad\textit{graphia}\\[1ex]
    \Large$\downarrow$\qquad\qquad$\downarrow$&&\Large$\downarrow$\qquad\qquad$\downarrow$\\[1ex]
    hidden\qquad writing&&covered\qquad writing
  \end{tabular}
\end{center}
\end{document}
4
  • your answer is working as i expected. :) thank you , but can i increase the horinzontal gap between two trees ,it looks like two closer each otheir ? – uma Mar 22 '20 at 11:49
  • Sure. For instance, at the fifth line of my code, add another \qquad after the one that it's already there. – José Carlos Santos Mar 22 '20 at 11:51
  • grate , it is simple and working. thank you – uma Mar 22 '20 at 12:01
  • 1
    I'm glad I could help. – José Carlos Santos Mar 22 '20 at 12:02
3

You can use the font key to set the font style and size.

Here's a solution using TikZ:

\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{trees}
\begin{document}
\begin{tikzpicture}[
        ->,
        font = \Large,
        level distance = 1.5cm,
        level 1/.style={
            font = \normalfont\sl,
            sibling distance = 3cm
        },
        level 2/.style = {
            font = \normalfont\large,
            sibling distance = 1.5cm
        }
    ]
    \node {Cryptography}
        child {node {cryptos}
            child {node {hidden}}
        }
        child {node {graphia}
            child {node {writing}}
        };
    \node[xshift = 5cm] {Steganography}
        child {node {steganos}
            child {node {covered}}
        }
        child {node {graphia}
            child {node {writing}}
        };
\end{tikzpicture}
\end{document}

Tree

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.