Take the 2-minute tour ×
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.

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
1  
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
2  
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
add comment

1 Answer

up vote 11 down vote accepted

There are many ways to do this. For example,

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows}
\begin{document}
\tikz\draw [o-o] (0,0) -- +(1,0);
\tikz\draw [o-*] (0,0) -- +(1,0);
\tikz\draw [o->] (0,0) -- +(1,0);
\end{document}

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
add comment

Your Answer

 
discard

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.