[Tex/LaTex] Extending Text Outside Table Cell

horizontal alignmenttables

I have a simple graphic I'm trying to make with a table, but for it to work I need to extend the text beyond the table cell – through something like a negative margin – is this possible? Specifically, the bottom row of the table (0,c,r) should line up with the vertical borders above – currently also slightly to the right of each. The graphic represents a number line.

enter image description here

\documentclass[11pt]{article}
\usepackage{array}
\usepackage[math]{cellspace}
\begin{document}

\begin{table}[!htdp]
\begin{center}
\begin{tabular}{Sc m{5cm} m{5cm}}
\cline{2-3} 
$\dfrac{1}{x}$ & \multicolumn{1}{|c}{F} & \multicolumn{1}{|c|}{O} \\
\cline{2-3} 
0 & \flushright{c} & \flushright{r} \\
\end{tabular}
\end{center}
\end{table}


\end{document}  

Best Answer

With package mathtools:

\documentclass[11pt]{article}
\usepackage{mathtools}
\usepackage{array}
\usepackage[math]{cellspace}
\begin{document}
\begin{table}[!htdp]
\begin{center}
\begin{tabular}{Sc @{\clap{0}} m{5cm} @{$\mathclap{c}$} m{5cm} @{$\mathclap{r}$}}
\cline{2-3} 
\multicolumn{1}{c}{$\dfrac{1}{x}$} & \multicolumn{1}{|c}{F} & \multicolumn{1}{|c|}{O} \\
\cline{2-3} 
&&
\end{tabular}
\end{center}
\end{table}
\end{document}

Notice that \clap{text} is typeset as normal text and that $\mathclap{\alpha}$ is typeset as inline math. They both create boxes of zero width with entries centered.