a) How can I resize the tikz picture to fit inside the tabular cell ?
b) How can I center the first row horizontally?
This is what I've until now:
\documentclass{article}
\usepackage[a4paper]{geometry}
\usepackage[utf8]{inputenc} % accents
\usepackage{verbatim} % \begin{comment}
\usepackage{tcolorbox}
\usepackage{amsfonts,amsmath}
\usepackage{tikz}
\newcommand{\mmRationalPie}[1]{
\def\angle{#1}
\def\radius{1}
\def\color{blue}
\begin{tikzpicture}[]
\draw[fill=red,draw=red] (0,0) -- (0:\radius) arc (0:\angle:\radius) -- cycle;
\draw (0,0) -- (\angle:\radius) arc (\angle:360:\radius) -- cycle;
\end{tikzpicture}
}
\begin{document}
\begin{tabular}[t]{ | p{1cm} | p{1cm} |}
$ \frac{1}{3} $ & $ \frac{2}{3} $ \\
\hline
\mmRationalPie{120} & \mmRationalPie{240}
\end{tabular}
\end{document}
clarification: it is better if, in order to change the sizes, it is not necessary modify both, the tikz commands and the tabular characteristics.





\def\color{blue}??!! Ouch. – cfr Nov 28 '16 at 03:37