0

Is there any way to change the numbered figure caption in Lyx? For example, in Section 2 to be 2.1.1 then 2.1.2, etc. but I don't want to write in the caption "Figure 2.1.1. blabla" I want "Fig. 2.1.1 blabla"

1
0

Combining the answers to questions: Change figure numbering for appendix and How to change Figure 1: to bold Fig.1. in latex:

enter image description here

\documentclass{article}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{chngcntr}
\captionsetup[figure]{name={Fig.}}
\counterwithin{figure}{section}
\begin{document}
\section{First}
\begin{figure}[ht!]
  \centering
  \includegraphics[scale=1]{example-image}
  \caption{Example figure.}
 \label{fig:1}
\end{figure}
\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.