0

I am a beginner to LaTex.

How to draw a long arrow like this?

enter image description here

  • 1
    https://tex.stackexchange.com/questions/585896/how-to-draw-horizontal-curly-braces-under-a-timeline/585898#585898 – js bibra Mar 12 '21 at 10:47

1 Answers1

3

Since you are novice here:

enter image description 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:

enter image description here

Zarko
  • 296,517
  • Exactly this. Many thanks. –  Mar 12 '21 at 13:55
  • @PedroPasserini, then you can up-vote and accept answer (by clicking on up-pen and check mark at top left side of answer) :-) – Zarko Mar 12 '21 at 13:59
  • Okay many thanks. Answer accepted; answer useful. –  Mar 12 '21 at 14:21
  • do you mind if I ask you how to change the line spacing (i.e., where I have ``text here")? Many thanks. –  Mar 12 '21 at 14:26
  • @PedroPasserini, do you mean distance between dots? or distance between text and arrow? The first is determined by 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
  • I think OP means line spacing between text and here should be less – js bibra Mar 13 '21 at 00:22
  • 1
    @jsbibra, you may be right. This can be easy changed/reduced, for example by adding font = \linespread{0.84}\selectfont to tikzpicture options. Thank you very much for the comment. – Zarko Mar 13 '21 at 03:39
  • Yes I meant line spacing between text. Very helpful. Many thanks. –  Mar 13 '21 at 14:02