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.

sample

How I can change "Table 1: sample" to "Table 1. sample"?

PS. I'm using ctable, if it important:

\documentclass{article}
\usepackage{ctable}
\begin{document}
\ctable
[caption={sample}]
{|l|r|}
{}
{
  \hline
  test & some example stuff \\ \hline
  \hline
}
\end{document}
share|improve this question
add comment

1 Answer

up vote 10 down vote accepted

Use the caption package:

\documentclass{article}
\usepackage{ctable}
\usepackage[labelsep=period]{caption}

\begin{document}
\ctable
[caption={sample}]
{|l|r|}
{}
{
  \hline
  test & some example stuff \\ \hline
  \hline
}
\end{document}

If you want the change to only apply to ctable, a bit more setup is required:

\usepackage{etoolbox}
\usepackage{ctable}
\usepackage{caption}

\makeatletter
\preto\@ctblCaption{\captionsetup{labelsep=period}}
\makeatother
share|improve this answer
    
Thanks, it work. –  Drakmail May 30 '12 at 4:16
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.