Sampling: How should I sketch a signal spectrum?
Figure 7.4 just concerns itself with an example signal, which happens to have triangular spectrum.

your $x(t)=a\cos(2\pi f t)$ signal is just that: a single cosine tone, and thus has the "shape" of two dirac impulses with integral area $\frac a2$ each.