\Figureformat 명령을 재정의할 수 없습니다(\Figureformat 정의되지 않음).

\Figureformat 명령을 재정의할 수 없습니다(\Figureformat 정의되지 않음).

그림 캡션의 출력을 사용자 정의하기 위해 \Figureformat을 재정의하고 싶습니다.

\renewcommand*{\figureformat}{\thefigure.\figurename}

그러나 컴파일할 때 오류가 발생합니다.

\figureformat undefined. \renewcommand*{\figureformat}

테스트 텍스트는 다음과 같습니다.

\documentclass[10pt,letterpaper]{article}

\renewcommand*{\figureformat}{\thefigure. \figurename}

\begin{document}

\begin{figure}[h]
\caption{{test}
\label{fig1}
\end{figure}

\end{document}

TeX Live 2013/W32TeX 및 TexStudio를 사용하고 있습니다.

답변1

재정의할 수 없는 명령은 KOMA 클래스에서만 제공됩니다. 표준 수업의 경우 패키지가 caption유용합니다. 원하는 경우 그림에만 labelformat을 정의할 수 있습니다. 테이블은 그대로 유지됩니다.

레오캡션 형식

\documentclass[10pt,letterpaper]{article}

\usepackage{caption}
\DeclareCaptionLabelFormat{figure}{\thefigure.\nobreakspace\figurename}
\captionsetup[figure]{labelformat=figure}
\begin{document}

\begin{figure}[h]
    \caption{figure caption}
    \label{fig1}
\end{figure}
\begin{table}[h]
    \caption{table caption}
\end{table}

\end{document}

관련 정보