i am making a table in Latex. Everything is fine but the Caption section is not the way i want it to be.
I want the whole caption of the table in one single line, Not in two lines, the way it is right now as shown in the figure. I am doing it like this.
\begin{table}[h]
\caption {Parameters for Energy Model}
\begin{center}
\footnotesize
\begin{tabular} {|r|c|}
\hline
\textbf{Parameter} & \textbf{Value} \\
\hline
Power in recieving & 5W \\
\hline
Power in sleep mode & 250mW (assumed 5\% of $P_{Rx}$) \\
\hline
RF efficiency & 20\% \\
\hline
Supply loss efficiency & 10\% \\
\hline
Cooling efficiency & 50\% \\
\hline
Max transmit power & 5W \\
\hline
Wakeup Energy & 50J \\
\hline
\end{tabular}
\end{center}
\end{table}
Best Answer
If you are not bound to the journal's policy on how to set such things, you might want to load the package
caption
which 'fixes' this for you. Note that the font-size of the caption is getting slightly bigger than before. Please read the manual ofcaption
in order to see how to tweak such things. In order to change something just for the tables, it would look like\captionsetup[table]{...}
. Edit: I inserted something which comes close to the default.