I try to add an item legend using tikz drawed bullet in sidecaption with memoir, using Texlive 2013 updated, and xelatex, to this working MWE
\documentclass[a4paper, 11pt,twoside, openright]{memoir}
\usepackage{mwe} % just for dummy images
\usepackage{amssymb}
\usepackage{amsmath,mathtools}
\usepackage{amstext} % defines the \text command, needed here
\usepackage{array}
\usepackage{showframe}
\usepackage{tikz}
\usepackage{graphicx}
\sidecapmargin{outer}
\setsidecappos{t}
\newsubfloat{figure}{}
\newsubfloat{table}{}
\captiontitlefont{\normalfont}% title font
\precaption{\raggedright}% for Caption N
\captiondelim{\newline}% newline*
\captionstyle{\raggedright}% for title
\setlength{\belowcaptionskip}{\onelineskip}
\usepackage{ragged2e}
\renewcommand*{\sidecapstyle}{%
\ifscapmargleft
\captionstyle{\justifying\scriptsize}%
\else
\captionstyle{\justifying\scriptsize}%
\fi}
% BOX LEGEND
% some color definitions
\definecolor{tangoBlue1}{RGB}{114,159,207}
\definecolor{tangoOrange1}{RGB}{245,121,0}
\definecolor{tangoRed1}{RGB}{239,41,41}
% normal box
\newcommand{\sqbox}[1]{%
\begin{tikzpicture}%[baseline={(a.base)}]
\fill[#1] (0,0) rectangle (1.2ex,1.2ex);
\end{tikzpicture}%
}
\begin{document}
\begin{itemize}
\item \sqbox{tangoBlue1} indique une valeur $v$ minimale,
\item \sqbox{tangoRed1} une valeur $v$ maximale, et
\item \sqbox{tangoOrange1} les autres valeurs $v$ intermédiaires
\end{itemize}
\begin{figure}[h]
\begin{sidecaption}[fortoc]{}[fig:xyspacePspaceOmultimodal]
\centering
\subbottom[]{
\includegraphics[width=0.4\linewidth]{example-image}
\label{subfig_xyespaceSolutionCandidate:a}}
\subbottom[bla]{
\includegraphics[width=.4\linewidth]{example-image}
\label{subfig_xyespaceSolutionCandidate:b}}\hspace{1em}
\subbottom[bla]{
\includegraphics[width=.4\linewidth]{example-image}
\label{subfig_sxyespaceSolutionCandidate:c}}
\end{sidecaption}
\end{figure}
\end{document}
When i try to move the item code into sidecaption, like this
\begin{figure}[h]
\begin{sidecaption}[fortoc]{\begin{itemize}
\item \sqbox{tangoBlue1} indique une valeur $v$ minimale,
\item \sqbox{tangoRed1} une valeur $v$ maximale, et
\item \sqbox{tangoOrange1} les autres valeurs $v$ intermédiaires
\end{itemize}}[fig:xyspacePspaceOmultimodal]
\centering
\subbottom[]{
\includegraphics[width=0.4\linewidth]{example-image}
\label{subfig_xyespaceSolutionCandidate:a}}
\subbottom[bla]{
\includegraphics[width=.4\linewidth]{example-image}
\label{subfig_xyespaceSolutionCandidate:b}}\hspace{1em}
\subbottom[bla]{
\includegraphics[width=.4\linewidth]{example-image}
\label{subfig_sxyespaceSolutionCandidate:c}}
\end{sidecaption}
\end{figure}
I have this error
ABD: EveryShipout initializing macros ABD: EverySelectfont initializing macros (/usr/local/texlive/2013/texmf-dist/tex/latex/amsfonts/umsa.fd) (/usr/local/texlive/2013/texmf-dist/tex/latex/amsfonts/umsb.fd)
! LaTeX Error: Something's wrong--perhaps a missing \item.
See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ...
l.112 ^^I\end{sidecaption}
xelatex
would be worth a mention. Just tested, and luckily it does not make a difference in this case.