pgf-users

 [Pgf-users] shortening of braces From: Zarko F. Cucej - 2013-03-24 15:30:51 Hi, many times i need togive some description to groups of successive (rectangle) shapes, i.e. something like this: \documentclass[tikz]{standalone} \usetikzlibrary{decorations.pathreplacing} \begin{document} \begin{tikzpicture}[ box/.style = {draw, minimum size=9pt,inner sep=1pt, outer sep=0pt, right}, brc/.style = {decorate, decoration={brace,raise=1mm}}, shorten <>/.style = {shorten >=#1pt, shorten <=#1pt} ] \coordinate (a0) at (0,0); \foreach \x [count=\xi from 0] in {1,...,4} \node[box] (a\x) at (a\xi.east) {\x}; \draw[brc] (a1.north west) to node[above=2mm] {A} (a2.north east); \draw[brc] (a3.north west) to node[above=2mm] {B} (a4.north east); \draw[brc,shorten <>=1] (a2.south east) to node[below=2mm] {C} (a1.south west); \draw[brc,shorten <>=1] (a4.south east) to node[below=2mm] {D} (a3.south west); \end{tikzpicture} \end{document} where i like to have small space between successive braceswithout changing braces coordinates. so i try to use shorten, but result is only partly satisfactory... (see braces C and D). well, if i set shorten to 0.5 points, braces look perfectly, but distance between them is little to small. do anyone has better solution? regards, Zarko