I want to have a table under a subsection, but the place I write the table and its specifications in the source file seem not to matter. Can someone explain how to have a table at a desired position together with its vertical and horizontal position?
Thanks
Edit: The part of the code I mention is as follows:
\documentclass[12pt]{article}
\usepackage{a4, color}
\usepackage{amsmath, amsfonts, amssymb}
\usepackage{siunitx}
\begin{document}
\title{Understanding Semiconductor Lasers}
\author{Ongun Ar\i sev}
\date{Report: 15.10.2013\\ Experiment: 8.10.2013}
\maketitle
\subsection{Output characteristic of semiconductor laser diode}
\begin{table}[htbp]
\centering
\begin{minipage}[t]{.4\textwidth}
\begin{tabular}[t]{|c|c|}
\hline
I\,(\si{\milli\ampere})&P\,(\si{\micro\watt})\\
\hline
2.5&0.53\\
2.6&0.56\\
\hline
\end{tabular}
\end{minipage}
\begin{minipage}[t]{.4\textwidth}
\begin{tabular}[t]{|c|c|}
\hline
I\,(\si{\milli\ampere})&P\,(\si{\milli\watt})\\
\hline
11.0&12.63\
\hline
\end{tabular}
\end{minipage}
\end{table}
\newpage
\subsection{Divergence angle of the beam measurement}
\begin{table}
\centering
\begin{minipage}[t]{.4\textwidth}
\begin{tabular}[t]{|c|c|}
\hline
I\,(\si{\milli\ampere})&P\,(\si{\micro\watt})\\
\hline
\hline
\end{tabular}
\end{minipage}
\end{document}
[htbp]is what you are looking for. – Svend Tveskæg Oct 14 '13 at 00:21[htb]to the second table also. BTW you are missing\end{tabular}for the second table. – Oct 14 '13 at 00:47table; acenterenvironment will suffice. You don't need the innerminipagein any case. – egreg Oct 14 '13 at 07:28