TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am writing up some exercises for students who are using College Algebra as their textbook. I need to know how to TeX pictures of intervals like those on page 3 and page 5 of the linked book. Thanks.

enter image description here

share|improve this question
Can you include the screenshot of an example here so that everybody who wonders what the question is about doesn't download the whole book for 1 page? – percusse Jan 17 '13 at 17:16
@percusse It's two pages. Also, I don't know how to include a screenshot. – Joe Johnson 126 Jan 17 '13 at 18:24
As is noted in the book's introduction, all LaTeX files used to created the book may be downloaded from the authors' website, stitz-zeager.com/Precalculus/…. – Mico Jan 17 '13 at 18:24
up vote 13 down vote accepted

There are many ways to do this. For example,

\tikz\draw [o-o] (0,0) -- +(1,0);
\tikz\draw [o-*] (0,0) -- +(1,0);
\tikz\draw [o->] (0,0) -- +(1,0);

enter image description here

share|improve this answer
Thanks. One more question, how would I label the endpoints with numbers? – Joe Johnson 126 Jan 17 '13 at 18:23
Try \tikz\draw [o-o] (0,0) node[pos=0, below] {$a$} -- +(1,0); – Boris Jan 17 '13 at 18:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.