I put my questions inside the code.
Code: Select all
\documentclass[letterpaper]{article}
\usepackage{tikz}
\usepackage{amsmath}
\usetikzlibrary{arrows}
\begin{document}
\begin{tikzpicture}
\draw[-latex][thick] (0,0) -- (5.5,0);
%How do I make number line longer, say, to go from (0,0) to (5.5,0) but make the unit length, say, 4cm and have all my tick marks and numbers "come along"?
\foreach \x in {0,1,...,5}
\draw[shift={(\x,0)},color=black] (0pt,4pt) -- (0pt,-4pt);
% This is where the vertical tick marks go...
% but what is the "shift" part for in the optional argument?
\foreach \x in {0,1,...,5}
\draw[shift={(\x,0)},color=black] (0pt,0pt) -- (0pt,-6pt) node[below]
{$\x$};
% This is how you put numbers under the tick marks...
% But what is the shift part here for? And what is the node part for?
\end{tikzpicture}
\end{document}