我想用不同的颜色突出显示数字,例如在第一个数字行中突出显示从 0 开始的数字,在第二个数字行中突出显示从 0 开始的数字,在第三个数字行中突出显示所有数字。提前谢谢您
\documentclass[12pt]{article}
\usepackage[bindingoffset=0.2in,left=0.5in,right=0.5in,top=0.5in,bottom=0.5in,footskip=.25in]{geometry}
\usepackage[centertags]{amsmath}
\usepackage{latexsym}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{newlfont}
\usepackage{enumerate}
\usepackage{makeidx}
\usepackage{tikz}
\usepackage{xparse}
\usetikzlibrary{backgrounds,intersections}
\begin{document}
\begin{tikzpicture}[xscale=1.5]
\draw[thick,latex-latex] (-5,0) -- (5,0)node[right]{};
\foreach \x in {-4,-3,-2,-1,0,1,2,3,4}{
\node[fill,circle,inner sep=1.20pt,label=below:$\x$] at (\x,0) {};
};
\end{tikzpicture}
\vspace{1.5cm}
\begin{tikzpicture}[xscale=1.5]
\draw[thick,latex-latex] (-5,0) -- (5,0)node[right]{};
\foreach \x in {-4,-3,-2,-1,0,1,2,3,4}{
\node[fill,circle,inner sep=1.20pt,label=below:$\x$] at (\x,0) {};
};
\end{tikzpicture}
\vspace{1.5cm}
\begin{tikzpicture}[xscale=1.5]
\draw[thick,latex-latex] (-5,0) -- (5,0)node[right]{};
\foreach \x in {-4,-3,-2,-1,0,1,2,3,4}{
\node[fill,circle,inner sep=1.20pt,label=below:$\x$] at (\x,0) {};
};
\end{tikzpicture}
\end{document}