I tried this based on Suppress warning from natbib/multibib with silence and How do you suppress specific warnings generated by pdflatex? but does not worked:
\documentclass[10pt,a5paper,twoside]{memoir}
\usepackage{silence}
\WarningFilter*{memoir}{Class memoir Warning: You are using the caption package with the memoir class. To prepare we will now reset all captioning macros and configurations to kernel defaults, and then let the caption package take over. Please remember to use the caption package interfaces in order to configure your captions.}
\usepackage{caption}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{capt-of}
\usepackage{graphicx,newfloat}
\DeclareCaptionType{InfoBox}
\begin{document}
\fboxsep=8pt\relax
\fboxrule=2pt\relax
\begin{center}
\fbox{\centering
\includegraphics[width=2in]{example-image-A}}\par
\captionof{InfoBox}{Here is my caption\label{fg:A}}
\end{center}
\begin{InfoBox}[ht]
\centering
\fbox{\centering\medskip
\includegraphics[width=2in]{example-image-B}}\par
\caption{Here is my caption\label{fg:B}}
\end{InfoBox}
\end{document}
I still keep getting it:
Class memoir Warning: You are using the caption package with the memoir class.
To prepare we will now reset all captioning macros and configurations to kernel
defaults, and then let the caption package take over. Please remember to use
the caption package interfaces in order to
configure your captions.
This warning just do not help me in anything as there is nothing to be fixed or I could do. It is just pollution, distracting of things which are importante and I need to take care of.
memoir.clsfile and I don't see any possibility to get rid of it other than editing the class file, which is not recommended. You're distracting yourself and giving this warning too much attention – Sep 18 '17 at 15:38captioninterface instead of thememoirinterface to change the appearance of captions. Why is this pollution? – Johannes_B Sep 18 '17 at 15:41captionwithmemoir, so you should opt for remove thecaptionpackage or otherwise ignore at least all the command explained un section 10.6 and 10.7 from the memoir manual. For instance, you have\captionnamefont{\sffamily}in memoir working and "Figure 1." is perfectly in sans serif font ... until you have the occurrence of load the packagecaption. Memoir should not warn you? Would it be better let to you to break your head trying to figure out what's going on? – Fran Sep 18 '17 at 15:47WarningFilterthing. Incidentally I needed to useexample-image-anotexample-image-Awhich troubles me as my Mac's file system is supposedly case insensitive. (this seems to be akpsewhichfeature) – Sep 18 '17 at 16:08memoircan style the captions for you, socaptionis not needed.memoircan also create new float types, so packagenewfloatis also not needed. Many packages that work with the standard classes do not work withmemoiror KOMA-script classes, as they have a much more complex and feature rich functionality. – Johannes_B Sep 18 '17 at 16:11memoir-> complex, featurerich, third party add-ons not needed, everything is already built in. – Johannes_B Sep 18 '17 at 16:12\DeclareCaptionTypein any manual. – Johannes_B Sep 18 '17 at 17:02newfloatand works almost the same as the command\DeclareFloatingEnvironmentfrom packagenewfloatwhich you are using. – Johannes_B Sep 18 '17 at 17:17