I am drawing a number line with labels for different intervals as follows: ``` \documentclass{beamer} \beamertemplatenavigationsymbolsempty \setbeamersize{text margin left=10mm,text margin right=5mm} \setbeamertemplate{frametitle}[default][center] \usepackage{tikz} \usetikzlibrary{patterns,decorations.pathreplacing} \begin{document} \begin{frame}{} \begin{tikzpicture} \draw[-] (0,0) -- (11.3,0) ; %edit here for the axis \foreach \x in {11.3, 5.65, 2.825, 1.4125, 0.70625, 0.353125, 0.1765625, 0.08828125, 0.044140625, 0.0220703125,0} % edit here for the vertical lines \draw[shift={(\x,0)},color=black] (0pt,3pt) -- (0pt,-3pt); \draw [ decoration={ brace, raise=0.2cm }, decorate ] (5.65,0) -- node[above=2ex] {odd} (11.3,0); \draw [ decoration={ brace, raise=0.2cm }, decorate ] (0,0) -- node[above=2ex] {even} (5.65,0); \draw [ decoration={ brace, raise=0.9cm }, decorate ] (0,0) -- node[above=5.5ex] {divisible by $4$} (2.825,0); \draw [ decoration={ brace, mirror, raise=0.2cm }, decorate ] (0,0) -- node[below=2ex] {divisible by $8$} (1.4125,0); \draw [ decoration={ brace, mirror, raise=0.9cm }, decorate ] (0,0) -- node[below=5.5ex] {div.\@ by $16$} (0.70625,0); \end{tikzpicture} \end{frame} \end{document} ``` The problem is that "divisible by 8" and "div. by 16" still over to the left of the line which pushes the whole diagram over the edge on the righthand side. Is it possible to move the labels "divisible by 8" and "div. by 16" to the right maybe with a little curved line from the brace to the text to show the connection?

You could use the `overlay` key to prevent these nodes to occupy room. ``` \documentclass{beamer} \beamertemplatenavigationsymbolsempty \setbeamersize{text margin left=10mm,text margin right=5mm} \setbeamertemplate{frametitle}[default][center] \usepackage{tikz} \usetikzlibrary{patterns,decorations.pathreplacing} \begin{document} \begin{frame}{} \begin{tikzpicture} \draw[-] (0,0) -- (11.3,0) ; %edit here for the axis \foreach \x in {11.3, 5.65, 2.825, 1.4125, 0.70625, 0.353125, 0.1765625, 0.08828125, 0.044140625, 0.0220703125,0} % edit here for the vertical lines \draw[shift={(\x,0)},color=black] (0pt,3pt) -- (0pt,-3pt); \draw [ decoration={ brace, raise=0.2cm }, decorate ] (5.65,0) -- node[above=2ex] {odd} (11.3,0); \draw [ decoration={ brace, raise=0.2cm }, decorate ] (0,0) -- node[above=2ex] {even} (5.65,0); \draw [ decoration={ brace, raise=0.9cm }, decorate ] (0,0) -- node[above=5.5ex] {divisible by $4$} (2.825,0); \draw [ overlay, decoration={ brace, mirror, raise=0.2cm }, decorate ] (0,0) -- node[below=2ex] {divisible by $8$} (1.4125,0); \draw [overlay, decoration={ brace, mirror, raise=0.9cm }, decorate ] (0,0) -- node[below=5.5ex] {div.\@ by $16$} (0.70625,0); \end{tikzpicture} \end{frame} \end{document} ``` ![document2.png](/image?hash=683a9644db70a8717edc6d9542837274fd230d4031f5ac8cf12c4648377a8354) Or manually shift the labels a bit: ``` \documentclass{beamer} \beamertemplatenavigationsymbolsempty \setbeamersize{text margin left=10mm,text margin right=5mm} \setbeamertemplate{frametitle}[default][center] \usepackage{tikz} \usetikzlibrary{patterns,decorations.pathreplacing} \begin{document} \begin{frame}{} \begin{tikzpicture} \draw[-] (0,0) -- (11.3,0) ; %edit here for the axis \foreach \x in {11.3, 5.65, 2.825, 1.4125, 0.70625, 0.353125, 0.1765625, 0.08828125, 0.044140625, 0.0220703125,0} % edit here for the vertical lines \draw[shift={(\x,0)},color=black] (0pt,3pt) -- (0pt,-3pt); \draw [ decoration={ brace, raise=0.2cm }, decorate ] (5.65,0) -- node[above=2ex] {odd} (11.3,0); \draw [ decoration={ brace, raise=0.2cm }, decorate ] (0,0) -- node[above=2ex] {even} (5.65,0); \draw [ decoration={ brace, raise=0.9cm }, decorate ] (0,0) -- node[above=5.5ex] {divisible by $4$} (2.825,0); \draw [ decoration={ brace, mirror, raise=0.2cm }, decorate ] (0,0) -- node[below=2ex,xshift=0.3cm] {divisible by $8$} (1.4125,0); \draw [ decoration={ brace, mirror, raise=0.9cm }, decorate ] (0,0) -- node[below=5.5ex,xshift=0.4cm] {div.\@ by $16$} (0.70625,0); \end{tikzpicture} \end{frame} \end{document} ``` ![document.png](/image?hash=795ce8e57328dc0c5a5cd5ef6da272d9c8795996aef19e0192dc0a618debe253)

You can definitely draw such arrows. However, this answer is also to suggest to use `x=<some length>` to rescale the unit vector in x direction so that you only need to work with fraction `1/2`, `1/4` and so on. ``` \documentclass{beamer} \beamertemplatenavigationsymbolsempty \setbeamersize{text margin left=10mm,text margin right=5mm} \setbeamertemplate{frametitle}[default][center] \usepackage{tikz} \usetikzlibrary{patterns,decorations.pathreplacing,calligraphy} \begin{document} \begin{frame} \frametitle{Intervals} \begin{tikzpicture}[x=11cm]% sets the scale \draw[-] (0,0) -- (1,0) (0,3pt) -- ++ (0,-6pt); \foreach \x in {0,...,9} % edit here for the vertical lines {\draw ({1/pow(2,\x)},3pt) -- ++(0,-6pt);} \begin{scope}[every path/.style={decoration=calligraphic brace,decorate,thick}] \draw (1/2,0.2) -- node[above=0.2ex] {odd} ++ (1/2,0); \draw (0,0.2) -- node[above=0.2ex] {even} ++ (1/2,0); \draw (0,0.9) -- node[above=0.2ex] {divisible by $4$} ++ (1/4,0); \draw (1/8,-0.2) -- coordinate[below=0.5ex] (div8) (0,-0.2); \draw (1/16,-0.9) -- coordinate[below=0.5ex] (div16) (0,-0.9); \end{scope} \path (0.2,-0.5) node[right](d8) {divisible by $8$} (0.2,-1) node[right](d16) {divisible by $16$}; \draw[-stealth] (d8) to[out=180,in=-90] (div8); \draw[-stealth] (d16) to[out=180,in=-90] (div16); \end{tikzpicture} \end{frame} \end{document} ``` ![Screen Shot 2020-09-07 at 4.22.57 AM.png](/image?hash=11226340f747a89bb7cdfa8017630f3ed143120ac170f5225425eb36aacd2018)