In the paper I am writing, I need:
part of the captions 'Example 1' instead of 'Fig.1' as the caption of some pictures (Not all the figures, so
\usepackage[figurename=Example.]{caption}is not suitbale). This requirement is similar to Change the caption name of a specific figure.At the same time, I need both the List of Figures and List of Examples. I found the way to insert 'List of Anything' such as List of Anything.
But how could I be able to combine the two requirements: 1. Change few particular caption to Example; 2. Insert a List of Example after contents.
Thank you very much for any suggestions.
--- For the comments from Peter ---
I cannot include the code in the comment as it is too long. Simply replace the "memoir" with "book" then you will see the problem. I have no idea why it is so difficult to understand what I mean (below code). BTW, thank you for your previous answer. Goodbye from a KYM (Kind Young Man).
\documentclass{book}
\usepackage{lipsum}
\usepackage{graphicx}
\newlistof{listofexamples}{loe}{List of Examples}
\newfloat{example}{loe}{Example}
\begin{doument}
\frontmatter
\tableofcontents
\listoffigures
\listofexamples
\mainmatter
\chapter{First}
\lipsum[1]
\begin{figure}
\centering
%\includegraphics... for a picture
\caption{A picture}
\end{figure}
\begin{example}
\centering
%\includegraphics... for an illustration
\caption{An illustration}
\end{example}
\end{document}
For others meet the same problem, I find float environment and list of anything might be helpful.
\includegraphicscan be used in the defined 'example' environment since I want to insert 'figure format' example only with different caption 'Example.' instead of 'Fig.'. It would be better if you could an example code. Thank you in advance. – Raymond Jun 24 '19 at 06:41\includegraphicsin theexampleenvironment?\includegraphicscan be used anywhere, not just in afigureenvironment. – Peter Wilson Jun 25 '19 at 15:51memoirclass. You did not say what class you were using. I have no idea why you are getting errors moving from thebooktomemoirclass as you have not bothered to show any code. Goodbye from a GOM (Grumpy Old Man). – Peter Wilson Jun 30 '19 at 18:19