I am a beginner to LaTex.
How to draw a long arrow like this?
Since you are novice here:
\documentclass[border=3.141592]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,
decorations.pathreplacing,%
calligraphy,% had to be loaded after decorations.pathreplacing
positioning}
\begin{document}
\begin{tikzpicture}[
> = Straight Barb,
node distance = 8mm and 24mm,
BC/.style = {% Brace Calligraphic
decorate,
decoration={calligraphic brace,
raise=3pt, amplitude=6pt},
very thick, pen colour={black}
},
dot/.style = {circle, fill, inner sep=2pt, outer sep=0pt},
every label/.append style = {align=center}
]
\draw[thick,->] (0,0) -- (8.8,0);
\node (a) [dot,label=below:text\here] at (2.2,0) {};
\node (b) [dot,label=below:text\here,
right=of a] {};
\node (c) [dot,label=above:text\here,
right=of b] {};
%
\draw[BC] (a.north) -- node[above=9pt] {text here} (b.north);
\draw[->] (c) -- ++ (0,1.1) node[above] {text here};
\end{tikzpicture}
\end{document}
Assendum:
As @jsbibra noted in his comment below. OP probably like to reduce \baselineskip distance, i.e. distance between text lines. This can be changed by determine \linespread. For example, with
\begin{tikzpicture}[
> = Straight Barb,
node distance = 8mm and 24mm,
BC/.style = {% Brace Calligraphic
decorate,
decoration={calligraphic brace,
raise=3pt, amplitude=6pt},
very thick, pen colour={black}
},
dot/.style = {circle, fill, inner sep=2pt, outer sep=0pt},
every label/.append style = {align=center},
font = \linespread{0.84}\selectfont % <-----------
]
% image code
image become:
node distance = 8mm and 24mm where 8mm is vertical distance (so far not used in answer) and 24mm horizontal distance. You can change this distance as like to have. Distance of text here is determined by inner sep of node (default is 3pt), if you like bigger distance form nodes coordinate, determine it as is done at brace: ... node[above=9pt] .... Tell me, which distance you like to change that I can prepare addendum to my answer.
– Zarko
Mar 12 '21 at 18:03
font = \linespread{0.84}\selectfont to tikzpicture options. Thank you very much for the comment.
– Zarko
Mar 13 '21 at 03:39