I have a simple question. How to redefine the float caption separator to
\textbar
symbol. I tried the caption package, but it provide just a few non customizable options for sep, which doesn't include custom symbols.Regards!
\textbar
symbol. I tried the caption package, but it provide just a few non customizable options for sep, which doesn't include custom symbols.NEW: TikZ book now 40% off at Amazon.com for a short time.
Obviously you missed to read Section 4 of the package manual and the explanations for thegmsotavio wrote:[…] I tried the caption package, but it provide just a few non customizable options for sep, which doesn't include custom symbols. […]
\DeclareCaptionLabelSeparator
command.
Code: Select all
\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{caption}
\DeclareCaptionLabelSeparator{bar}{ | }
\captionsetup{
labelsep=bar
}
\begin{document}
\begin{figure}[!ht]
\centering
\rule{6.4cm}{3.6cm}
\caption{Dummy figure}
\label{fig:dummy}
\end{figure}
\end{document}
NEW: TikZ book now 40% off at Amazon.com for a short time.