I try to set up the label of caption, and expect to modify the text
of label. I apply the following code:
Code: Select all
\begin{table}
\renewcommand{\captionlabel}{test}
\end{table}
Code: Select all
\begin{table}
\renewcommand{\captionlabel}{test}
\end{table}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
\captionlabel is coming from which package? From the caption or the ccaption package or the memoir document class or...?clement wrote:I try to set up the label of caption, and expect to modify the text of label. I apply the following code:
I do not see a \caption here where the redefinition could take affect.Code: Select all
\begin{table} \renewcommand{\captionlabel}{test} \end{table}
Code: Select all
\documentclass{article}
\usepackage{caption}
\DeclareCaptionLabelFormat{test}{test}
\captionsetup{labelformat=test}
\begin{document}
\begin{figure}
\caption{No picture}
\end{figure}
\end{document}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis