I have the code (image below) that I would like to insert in a document. I got it from the Stitz-Zeager Algebra Book, Corrected Edition, first chapter.
I am working in ShareLaTeX and I do not know how to insert the mfpic [10] figure that comes in the code, and which corresponds to the portion of the real number line (third column of the table).
I also use TeXnicCenter but I do not know how to generate the metapost file there, neither in ShareLaTeX.
I know there are another ways to insert or create images by using other packages, but I would like to embed the table as it is. Is there any way to do that?
Here is the code for the first two rows.
\documentclass[11pt]{book}
\usepackage{amssymb,amsmath,amsthm,fancyhdr,supertabular,longtable,hhline}
\usepackage{colortbl}
\usepackage{import, multicol,boxedminipage}
\usepackage[metapost,truebbox]{mfpic}
\usepackage[pdflatex]{graphicx}
\newcommand{\bbm}{\begin{boxedminipage}{6.41in}}
\newcommand{\ebm}{\end{boxedminipage}}
\begin{document}
\colorbox{ResultColor}{\bbm
\begin{center}
\begin{tabular}{|c|c|c|} \hline
Set of Real Numbers & Interval Notation & Region on the Real Number Line \\ \hline
& & \\
\shortstack{$\{x\,|\,a<x<b\}$ \\ \hfill}& \shortstack{$(a,b)$ \\ \hfill} &
\begin{mfpic}[10]{-3}{3}{-2}{2}
\backgroundcolor[gray]{.95}
\tlpointsep{4pt}
\axislabels {x}{{$a\vphantom{b} \hspace{4pt} $} -3, {$b$} 3}
\polyline{(-3,0), (3,0)}
\pointfillfalse
\point[3pt]{(3,0), (-3,0)}
\end{mfpic} \\ \hline
\end{tabular}
\end{center}
\ebm}
\end{document}


mfpicfor those diagrams is overkill. – egreg Aug 23 '17 at 09:13