I'm not sure what this problem is called so it's hard to search for information... When I use the tikz
package sometimes part of the drawing does not show fully. Currently the code I am using for a curly brace is not showing its right side... Why?
The original code from where I took it had a picture that seemed to display correctly. This is not the first time that this has happened on my Textmate.
Here is a minimal working code that uses the template I am using and only shows the graph with problematic curling braces: http://pastebin.com/g4j7kKAF
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{matrix}
\usetikzlibrary{decorations.pathreplacing}
\tikzstyle{underbrace style}=[decorate,decoration={brace,raise=10mm,amplitude=5pt,mirror},color=black]
\usepackage[brazilian]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\begin{document}
\begin{tikzpicture}[%
>=stealth,
shorten >=2pt,
thick
]
\matrix (block) [%
matrix of nodes,
nodes={%
draw,
anchor=center,
minimum width=2em,
minimum height=1em
}
] {%
1 & 2 & \node[fill=gray!99]{8}; & \node[fill=gray!50]{3}; & 4 & 6 & 9\\
};
%\node[fill=gray!50]{1};
\path[->] (block-1-4.north) edge [bend right=30] (block-1-3.north)
(block-1-3.south) edge [bend right=30] (block-1-4.south);
\draw (block-1-1.west) node[left=0.005cm,scale=0.9] {A:};
\draw (block-1-2.south) node[below=0.1cm] {$\longleftarrow$};
\draw (block-1-2.south) node[left=0.2cm,below=0.4cm,scale=0.6] {Ordenado};
\draw (block-1-1.north) node[above=0.1cm,scale=0.7] {0};
\draw (block-1-2.north) node[above=0.1cm,scale=0.7] {1};
\draw (block-1-3.north) node[above=0.1cm,scale=0.7] {i=2};
\draw (block-1-4.north) node[above=0.05cm,scale=0.7] {j=3};
\draw (block-1-5.north) node[above=0.1cm,scale=0.7] {4};
\draw (block-1-6.north) node[above=0.1cm,scale=0.7] {5};
\draw (block-1-7.north) node[above=0.1cm,scale=0.7] {6};
\draw (block-1-2.south east) node[right=0.25cm,below=1.9cm] {$\longrightarrow$};
\draw [thin] (block-1-2.south east) +(0,-2) -- +(0,+2);
\draw (block-1-2.south east) node[right=0.25cm,below=2.1cm] {Fronteira};
\draw [underbrace style] (block-1-1.south west) -- (block-1-2.south east) node [left=0.8cm,below=1.05cm] {$A_{esquerdo}$};
\draw [underbrace style] (block-1-2.south east) -- (block-1-7.south east) node [left=1.8cm,below=1.05cm] {$A_{direito}$};
\end{tikzpicture}
\end{document}
tikzmark
(theremember picture
option) you will need to compile at least twice. If you are usingtikzmark
withoutremember picture
you need to add it since it works only with that option.