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.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
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.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p