0
\documentclass{article}
\usepackage{fontspec}
\usepackage{caption}
\setmainfont{Segoe UI}%
  [BoldFont=Segoe UI Bold]  
\usepackage[tablename=TABLE]{caption} 
\captionsetup{labelfont=bf}
\usepackage[svgnames]{xcolor}
\begin{document}

\begin{table}
\caption[]{fadafsd \\dasfsda \\adsfasd \\
    dasfsd}
\begin{center}
\begin{tabular}{cr}
a&A
\end{tabular}    
\end{center}
\end{table}
\end{document}

I have a caption in table split to more lines, how to align all parts below?

  • 1
    \captionsetup{format=hang}, if I understand well what you want. – Bernard Aug 30 at 21:55
1

Is it what you want?

A small remark: don't use the centre environment with floats: it adds unwanted vertical spacing. Use \centering instead.

\documentclass{article}
\usepackage{fontspec}
\usepackage{caption}
\setmainfont{Segoe UI}%
  [BoldFont=Segoe UI Bold]
\usepackage[tablename=TABLE]{caption}
\captionsetup{labelfont=bf, format=hang}
\usepackage[svgnames]{xcolor}

\begin{document}

\begin{table}
\caption{Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah\\dasfsda \\adsfasd dasfsd\\
    dasfsd adsfasd fadafsd}
\centering
\begin{tabular}{cr}
a&A
\end{tabular}
\end{table}

\end{document} 

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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