Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I searched through the manual of ctable handy package and couldn't find any help there, to change the default centered caption to left alignment. This is a MWE:

\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{ctable}
\begin{document}
\ctable[
caption = The caption is centered by default,
]{lll}{
}{
\toprule
 No & Mininmal Working Example Column One & Mininmal Working Example Column Two \\ 
  \midrule
  1 & Mininmal Working Example Cell 1 & Mininmal Working Example Cell 1 \\ 
  2 & Mininmal Working Example Cell 2 & Mininmal Working Example Cell 2 \\ 
  3 & Mininmal Working Example Cell 3 & Mininmal Working Example Cell 3\\ 
  \bottomrule
}

\end{document}

MWE result:
enter image description here

Note: ctable v1.26

How can one change the default centered alignment setting of a caption?

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

use

[...]
\usepackage{ctable}
\usepackage{caption}
\captionsetup{justification=RaggedRight,singlelinecheck=false}
[...]

RaggedRight also allows hyphenation if the the caption is longer than one line

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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