Graphics, Figures & TablesCustom Symbol as Caption Separator

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
gmsotavio
Posts: 10
Joined: Sun Aug 12, 2012 1:41 am

Custom Symbol as Caption Separator

Post by gmsotavio »

Hello

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!
Otavio Augusto

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Custom Symbol as Caption Separator

Post by localghost »

gmsotavio wrote:[…] I tried the caption package, but it provide just a few non customizable options for sep, which doesn't include custom symbols. […]
Obviously you missed to read Section 4 of the package manual and the explanations for the \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}

Thorsten
gmsotavio
Posts: 10
Joined: Sun Aug 12, 2012 1:41 am

Re: Custom Symbol as Caption Separator

Post by gmsotavio »

I read, but had not realized this detail. Thanks a lot!
Best Regads!
Otavio Augusto
alsanadm
Posts: 5
Joined: Thu Dec 14, 2017 5:42 am

Custom Symbol as Caption Separator

Post by alsanadm »

Hello all,

I have this issue;
How can I remove dots from tables and figures numbers in the list of figures and tables?
For example, I want Figure 1.1: to be Figure 1.1
Post Reply