Table of Contents not ragged right (full explaination in comments) : r/LaTeX
xetex - Unwanted line break with \raggedleft, \centering or \raggedright - TeX - LaTeX Stack Exchange
Text alignment - Overleaf, Online LaTeX Editor
horizontal alignment - Align figure to the right (with \raggedleft) while still centering its caption with respect to the image - TeX - LaTeX Stack Exchange