I would like to align the top of the text with a figure and add a caption with a label to it. But as soon as add
caption=test,figure
to the adjustbox the picture floats above the text.
How do I make this work?
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{float}
\usepackage{ngerman}
\usepackage{chngcntr}
\usepackage{newunicodechar}
\usepackage{adjustbox}
\begin{document}
\begin{itemize}
\adjustbox{valign=t}{\begin{minipage}[t]{0.6\linewidth}
\item Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
\end{minipage}}
\hfill
\adjustbox{valign=t, caption=test,figure}{\begin{minipage}[t]{0.3\linewidth}
\includegraphics[width=\linewidth]{PICs/TestItemize.png}
\end{minipage}
}
\end{itemize}
\end{document}


\documentclass{...}, the required\usepackage's,\begin{document}, and\end{document}. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem. For example, I do not know where\picWidthcomes from... – LaRiFaRi May 26 '15 at 14:18