# Tag Info

3

A way to work around is to define every node style as such (where the inner sep=xx affects the filled area while the line width adjust the line thickness one desires) every node/.style= {circle,fill={lightblue},draw=black,line width=1pt,inner sep=2.7pt} Code \documentclass[border=10pt,11pt]{standalone} \usepackage{tkz-berge} ...

2

Just for fun as usual. \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-node} \begin{document} \begin{pspicture}(8,8) \rput(2,6){\ovalnode{A}{PSTricks}} \rput(6,2){\dianode{B}{TikZ}} \ncline{<-}{A}{B}\nbput[nrot=:U]{inheritance direction} \end{pspicture} \end{document}

1

You have to use \usetikzlibrary{shapes.geometric} as the shape ellipse is defined by it. \documentclass{article} \usepackage{graphicx} \usepackage{tikz} \usetikzlibrary{shapes.geometric} \begin{document} \begin{tikzpicture} \node[ellipse,draw] {Ellipse}; %% draw just to show the shape \node[diamond,draw] at (0,-3) {Diamond}; \end{tikzpicture} ...

6

You can use {[nodes=alert]C -> D -> { E, F}, } code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{graphs} \tikzset{ every node/.style={draw=black}, alert/.style={draw=red}, } \begin{document} \begin{tikzpicture} \graph{ A -> { B, {[nodes=alert]C -> D -> { E, F}, }}, }; \end{tikzpicture} \end{document}

2

Try to reference the nodes (name) and to make your picture only in a tikzpicture environment. In this case i copied the second figure in a scope environment (because it is the same, your case really should be different) and named the outer nodes with (node1) and (node2). Then it is easy join them. \documentclass[ngerman]{scrbook} \usepackage{selinput} ...

4

Is this what you want? Problem 1: Adding the pictures, like database Display Database Instance Relationship with TikZ, for example in the cells (stack-5-6) (stack-6-6) with the name to make an arrow in future. Cells (stack-5-6) (stack-6-6) doesn't exist because you declared option nodes in empty cells=false and no nodes are created in empty cells. But ...

5

A PSTricks solution: \documentclass{article} \usepackage{pstricks} \begin{document} \psset{dimen = m} % no overlapping of the rectangles \begin{pspicture}(8,4) \psframe(0,0)(8,2) \psframe(0,2)(8,4) \psframe[ fillstyle = solid, fillcolor = orange!70 ](0,2)(2,4) \end{pspicture} \end{document} or \documentclass{article} ...

7

The non-alignment is caused by the use of thick for one rectangle but not the others. If you need variable line widths, you can compensate for the difference either by checking the widths TikZ is using for regular and thick lines or by specifying the widths you want. For example: \documentclass[a4paper,10pt]{standalone} \usepackage{tikz} ...

Top 50 recent answers are included