# Enhancing Booktab Tables containing Tikz picture

I have created a table containing text, equations and a tikz picture [created using Geogebra and scaled using \resizebox].

As a beginner, I found it difficult to center my content and to remove the origin label from the graph. Can somebody help me with this problem? I would also like to ask for tips to enhance my code to help avoid confusion. Thank you.

\documentclass[11pt,dvipsnames,landscape,twocolumn]{article}
\usepackage{mathtools}
\usepackage{pgf,tikz}
\usepackage{mathrsfs}
\usetikzlibrary{arrows}
\pagestyle{empty}
\usepackage[utf8]{inputenc}
\usepackage{tkz-euclide}
\usepackage{multicol}
\usepackage[T1]{fontenc}
\usepackage{array, booktabs, mathrsfs, charter, blindtext, varwidth, tabu}
\usepackage[expert]{mathdesign}

\begin{document}
\framebox{Trigonometric Integrals}

\begin{center}
\begin{tabular}{cccc}
\toprule
\textsc{\fontsize{10}{7.2}\selectfont \parbox{1.8cm}{Integrand\\[3pt]    Contains:}} & \textsc{\fontsize{10}{100}\selectfont \parbox{5.9cm}
{\begin{center}
Substitution
\end{center}}} &
\textsc{\fontsize{10}{7.2}\selectfont \parbox{2cm}{Restriction\\[3pt]
\centering $\theta \in [0,2\pi]$}}\par \\
\midrule
$\sqrt{a^2 - u^2}$ &

\parbox{5.5cm}{let $u = a\sin \theta$ \quad
$du = a\cos \theta \; d\theta$
then \boldmath{$\sqrt{a^2-u^2} = a\cos \theta$}}
&

\resizebox{1.3cm}{1.3cm}{\begin{tikzpicture}[line cap=round,line      join=round,>=triangle 45,x=1.0cm,y=1.0cm]
\draw[-,,color=black] (-1.5,0.) -- (1.5,0.);
\foreach \x in {.,.}
\draw[shift={(\x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below]
{\footnotesize $\x$};
\draw[-,color=black] (0.,-1.5) -- (0.,1.5);
\foreach \y in {.,.}
\draw[shift={(0,\y)},color=black] (2pt,0pt) -- (-2pt,0pt) node[left]
{\footnotesize $\y$};
\draw[color=black] (0pt,-10pt) node[right] {\footnotesize $0$};
\clip(-1.5,-1.5) rectangle (1.5,1.5);
\draw [shift={(0.,0.)}]
plot[domain=-1.5707963267948966:1.5707963267948966,variable=\t]({1.*1.*cos(\t r)+0.*1.*sin(\t r)},{0.*1.*cos(\t r)+1.*1.*sin(\t r)});
\begin{scriptsize}

\draw [fill=black] (0.,1.) circle (3.5pt);
\draw [fill=black] (0.,-1.) circle (3.5pt);
\end{scriptsize}
\end{tikzpicture}}
\\
\bottomrule
\end{tabular}
\end{center}
\end{document}


Edit: Here is a picture for the guide. Thanks.

• For the zero, remove the line \draw[color=black] (0pt,-10pt) node[right] {\footnotesize $0$}; Jul 27, 2016 at 4:35

To scale your picture you can just use key scale for tikzpicture environment.

To draw half unite circle rather then

\draw [shift={(0.,0.)}]
plot[domain=-1.5707963267948966:1.5707963267948966,variable=\t]({1.*1.*cos(\t r)+0.*1.*sin(\t r)},{0.*1.*cos(\t r)+1.*1.*sin(\t r)});


\draw (0,-1) arc [start angle=-90, end angle=90, radius=1cm];


And to center your picture on the tabular cell you can add

baseline=(current bounding box.center)


Code

\documentclass[11pt,dvipsnames,landscape,twocolumn]{article}
\usepackage{mathtools}
\usepackage{pgf,tikz}
\usepackage{mathrsfs}
\usetikzlibrary{arrows}
\pagestyle{empty}
\usepackage[utf8]{inputenc}
\usepackage{tkz-euclide}
\usepackage{multicol}
\usepackage[T1]{fontenc}
\usepackage{array, booktabs, mathrsfs, charter, blindtext, varwidth, tabu}
\usepackage[expert]{mathdesign}

\begin{document}
\framebox{Trigonometric Integrals}

\begin{center}
\begin{tabular}{cccc}
\toprule
\textsc{\fontsize{10}{7.2}\selectfont \parbox{1.8cm}{Integrand\\[3pt]    Contains:}} & \textsc{\fontsize{10}{100}\selectfont \parbox{5.9cm}
{\begin{center}
Substitution
\end{center}}} &
\textsc{\fontsize{10}{7.2}\selectfont \parbox{2cm}{Restriction\\[3pt]
\centering $\theta \in [0,2\pi]$}}\par \\
\midrule
$\sqrt{a^2 - u^2}$ &

\parbox{5.5cm}{let $u = a\sin \theta$ \quad
$du = a\cos \theta \; d\theta$
then \boldmath{$\sqrt{a^2-u^2} = a\cos \theta$}}
&

\begin{tikzpicture}[scale=0.5,baseline=(current bounding box.center)]
\draw (-1.5,0) -- (1.5,0);
\draw (0.,-1.5) -- (0.,1.5);
\draw (0,-1) arc [start angle=-90, end angle=90, radius=1cm];
\fill (0,1) circle (3.5pt);
\fill (0,-1) circle (3.5pt);
\end{tikzpicture}
\\
\bottomrule
\end{tabular}
\end{center}
\end{document}


Output