[Tex/LaTex] Centering captions under figures

captionshorizontal alignment

Is there a way to do this? All mine are left aligned; however, I want them centered. How is it done?

Also related: how do I embolden all of my captions?

\documentclass[a4paper,12pt,fleqn,titlepage]{report}
\usepackage[margin=2.0cm]{geometry}                % See geometry.pdf to learn the layout options. There are lots.
\geometry{letterpaper}                   % ... or a4paper or a5paper or ... 
%\geometry{landscape}                % Activate for for rotated page geometry
\usepackage[parfill]{parskip}    % Activate to begin paragraphs with an empty line rather than an indent
\usepackage{graphicx}
\usepackage{ulem}
\usepackage{mathtools}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{epstopdf}
\usepackage{longtable}
\usepackage{color}
\usepackage{subfigure}
\usepackage{wrapfig}
\usepackage{pdfpages}
\usepackage{makecell}
\usepackage{caption}
\usepackage{titlesec}
\newcommand{\sectionbreak}{\clearpage}
\titleformat{\chapter}[display]
  {\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}
\titlespacing*{\chapter}{0pt}{-30pt}{12pt}
\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}
\renewcommand{\thefootnote}{\arabic{footnote}}
\usepackage[perpage,bottom]{footmisc}

\begin{document}

\begin{table}[h!]
\centering
\captionsetup{width=13cm}
\caption{Load of stuff above the table which is wider than the table, can use width to limit that as above but want it centralised, also might be numbers in here which means when I want to embolden the entire caption from the preamle so that it does it for all figures in my document that the numbers like this $n=1,2,3,4,5,6$ and $7$ will embolden too. If I put this in at the moment it looks like my actual text and so there is lttle way to discern between the two.}
\vspace{0.3cm}
\begin{tabular}{| l | l | l |}
\hline
Thing1 & Thing2 & Thing3 \\ \hline
blah1 & blah2 & blah3 \\ \hline
\end{tabular}
\label{table:stuff}
\end{table}

\end{document}

Please excuse the preamble as I don't really know what relates to what, I just know that these have been collected over time to be able to write my entire document so all are used at some point. I you want I can edit them out…

So I want a way to embolden, centralise and change font size of all my captions globally, and by centralise I mean center align, so they are not left aligned.

Best Answer

No need for an extra package; since you are loading caption, you can use its features:

\documentclass[a4paper,12pt,fleqn,titlepage]{report}
\usepackage{caption}

\captionsetup{width=.75\textwidth,font={bf,scriptsize},skip=0.3cm,within=none}


\begin{document}

\chapter{Test}
\begin{table}
\centering
\caption{Load of stuff above the table which is wider than the table, can use width to limit that as above but want it centralised, also might be numbers in here which means when I want to embolden the entire caption from the preamle so that it does it for all figures in my document that the numbers like this $n=1,2,3,4,5,6$ and $7$ will embolden too. If I put this in at the moment it looks like my actual text and so there is lttle way to discern between the two.}
\begin{tabular}{| l | l | l |}
\hline
Thing1 & Thing2 & Thing3 \\ \hline
blah1 & blah2 & blah3 \\ \hline
\end{tabular}
\label{table:stuff}
\end{table}

\end{document}

enter image description here