\usepackage{booktabs, collcell, makecell, tabularx, threeparttable}
    \renewcommand\TPTtagStyle{\bfseries} % optional
\caption{The QPSO update equations for different potential energy types}\label{3wavfun}
\begin{tabularx}{\textwidth}{@{} L l *{3}{>{$}l<{$}S} @{}}
 {\bf Delta potential}  & {\bf QPSO update equation}\\
 Delta potential well & $x_i(t+1)=p(t)\pm\frac{\ln(1/u)}{2q\ln\sqrt{2}}\parallel x_i(t)-p(t)\parallel$\\
 Harmonic oscillator & $x_i(t+1)=p(t)\pm\frac{\sqrt{\ln1/u}}{0.47694q}\parallel x_i(t)-p(t)\parallel$\\
 Square well & $x_i(t+1)=p(t)+\frac{0.6574}{\xi q}\cos^{-1}(\pm\sqrt u)\parallel x_i(t)-p(t)\parallel$\\

enter image description here


You wrote in a comment,

i need the "table 1:" to be in bold in order to respect APA format

All you need to do, then, is to add the instruction \captionsetup{labelfont=bf} in the preamble -- after loading the caption package.

However, you should do yourself (and your readers) a lot more than just that. For the sake of making the code more maintainable, you should remove a lot of cruft. You should also make it more readable by rendering the equations in the second column in displaymath mode. And please don't use \parallel -- at least not in this context; use \lVert and \rVert instead. Better yet, define a \norm macro. Finally, don't overuse bold-facing.

You should clean up and simplify the document's preamble. I strongly doubt that you need many of packages you're loading at present. For example, the yfonts package provide text-mode fraktur-type fonts -- do you really need them?

enter image description here




\caption{The QPSO update equations for different potential energy types}
\begin{tabularx}{\textwidth}{@{} >{\raggedright\arraybackslash}X >{$\displaystyle}l<{$} @{}}
Delta potential  
& $QPSO update equation$\\
Delta potential well 
& x_i(t+1)=p(t)\pm \frac{\ln(1/u)}{2q\ln\sqrt{2}} \norm{x_i(t)-p(t)}\\[3ex]

Harmonic oscillator 
& x_i(t+1)=p(t)\pm \frac{\sqrt{\ln(1/u)}}{0.47694q} \norm{x_i(t)-p(t)}\\[3ex]

Square well 
& x_i(t+1)=p(t)+ \frac{0.6574}{\xi q}\cos^{-1}(\pm\sqrt{u}\,) \norm{x_i(t)-p(t)}\\
| improve this answer | |
  • all the package i load are to my 100pages of dissertation. and thx for your concern – Chamanga Mar 26 at 6:55

Not the answer you're looking for? Browse other questions tagged or ask your own question.