I have a poster consisting of two columns. In one of the columns I have placed two figures next to each other. To get a nice tikz-frame around each figure I had to put them into minipages each (I did not managed to get just the tikz-frame around a figure working without a minipage...)
My problem is now, that I would like to have both elements [tikz-framed-figure] to be vertically aligned at the top. I tried to align it with tabular{x} but so far without success.
\documentclass[englisch,a0]{KITposter}
\usepackage[latin1]{inputenc}
\usepackage[english,ngerman]{babel}
\usepackage{multicol}
\usepackage{xcolor}
\usepackage[framemethod=tikz]{mdframed}
\usepackage{tabularx,booktabs}
\usepackage{tikz}
\usetikzlibrary{backgrounds}
\begin{document}
\begin{tabularx}{\textwidth}[t]{cc}
\begin{tikzpicture}
\node[framed,double,ultra thick,draw=red,rounded corners=25pt] {
\begin{minipage}[H]{.45\columnwidth}
\begin{figure}
\centering
\includegraphics[width=0.95\textwidth]{./setup_1.pdf}
\label{fig:setup_1}
\end{figure}
\end{minipage}
};
\end{tikzpicture}
&
\begin{tikzpicture}
\node[framed,double,ultra thick,draw=red,rounded corners=25pt] {
\begin{minipage}[H]{.45\columnwidth}
\begin{figure}
\centering
\includegraphics[width=0.95\textwidth]{./network_1.pdf}
\label{fig:network_1}
\end{figure}
\end{minipage}
};
\end{tikzpicture}
\end{tabularx}
\end{document}
edit
The solution suggested by Torbjørn (with a much more simplified structure without dead weight) works very well for me aligning the graphics within the tikz frames:
\documentclass{article}
\usepackage{graphicx}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{tikzpicture}[myframe/.style={double,ultra thick,draw=red,rounded corners=25pt,inner sep=10pt}]
\node [myframe] (imga) {\includegraphics[width=0.42\textwidth]{example-image}};
\node [right=of imga.north east,anchor=north west,myframe] {\includegraphics[width=0.42\textwidth]{example-image-10x16}};
\end{tikzpicture}
Cheers and thanks for the help!



\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. – LaRiFaRi Mar 10 '15 at 12:55figureenvironment to use\includegraphics. In fact, asfigureis a floating environment, it doesn't really make sense to put it inside aminipagein anodein atikzpicturein atabularx, all of which doesn't float. Remove theminipageandfigureenvironments, and the\centering. – Torbjørn T. Mar 10 '15 at 12:55articlewould be just as good? – Torbjørn T. Mar 10 '15 at 13:18