创建在数轴上向左跳跃的箭头

创建在数轴上向左跳跃的箭头

我需要为数学考试添加带有向左跳箭头的数字线。tikz如果可能,请保留这些包。这是我的代码:

\documentclass[tikz]{book}
\usepackage[utf8]{inputenc}
\usepackage[LGRgreek]{mathastext}
\usepackage{multirow}
\usepackage{tkz-base}
\usepackage{tikz}
\usepackage{tkz-euclide}
\usepackage{amsmath}
\usetikzlibrary{arrows}
\makeatletter
\pgfkeys{
  /tkzlabelX/no zero/.style={
    /tikz/xlabel style/.append style={
      style/.expand once={\ifdim\tkz@pos pt=0pt shape=coordinate\fi}}},
  /tkzlabelY/no zero/.style={
    /tikz/ylabel style/.append style={
      style/.expand once={\ifdim\tkz@pos pt=0pt shape=coordinate\fi}}},
  /tkzAxeXY/no zero/.code=, /tkzdrawX/no zero/.code=, /tkzdrawY/no zero/.code=,
  /tkzlabelX/make an O/.style={
    /tikz/xlabel style/.append style={
      style/.expand once={\ifdim\tkz@pos pt=0pt
        shape=rectangle, fill=none, fill/.code=, % no filling, please
        pos=.5, yshift=+3pt, anchor=south east, % counter default xlabel style
        inner sep=+.3333em, /utils/exec=\def\tkz@Xresult{$O$}\fi}}},
  /tkzAxeXY/make an O/.code=, /tkzlabelY/make an O/.code=,
  /tkzdrawX/make an O/.code=, /tkzdrawY/make an O/.code=}
\makeatother
\usepackage{array}
\usepackage{siunitx}
\usepackage{amssymb}
\setlength{\parindent}{0pt}
\usepackage{hyperref}
\usepackage{longtable}
\usepackage{graphicx}
\newcommand{\nc}{\newcommand}
\hypersetup{
    colorlinks=true,
    linkcolor=black,
    filecolor=purple,      
    urlcolor=RoyalBlue,
    pdftitle={Math AT1 Year 7},
    pdfpagemode=FullScreen,
}
\usepackage{scalerel}
\usepackage{stackengine}
\usepackage{xcolor}
\newcommand\showdiv[1]{\overline{\smash{\hstretch{.5}{)}\mkern-3.2mu\hstretch{.5}{)}}#1}}
\let\ph\phantom
\usepackage[a4paper, total={7in, 10.5in}]{geometry}
\usepackage{sectsty}

\begin{document}

\begin{figure}[h]
\begin{tikzpicture}
\draw[latex-latex] (-5.5,0) -- (10.5,0) ; 
\foreach \x in  {-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9,10} 
\draw[shift={(\x,0)},color=black] (0pt,3pt) -- (0pt,-3pt);
\foreach \x in {-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9,10} 
\draw[shift={(\x,0)},color=black] (0pt,0pt) -- (0pt,-3pt) node[below] 
{$\x$};
\draw[*-*] (4.92,0) to[out=20, in=160] (10.08,0);
\draw[*-*] (0.92,0) to[out=20, in=160] (5.08,0);
\draw[*-*] (-2.08,0) to[out=20, in=160] (1.08,0);
\end{tikzpicture}
\end{figure}

\end{document}

我的输出:在此处输入图片描述 想要的输出(不改变字体、刻度或曲线的斜率,但放大箭头并在 -2 的左侧添加箭头):在此处输入图片描述

感谢您的帮助!

相关内容