Skip to content

Instantly share code, notes, and snippets.

@JarekParal
Created February 21, 2017 16:31
Show Gist options
  • Save JarekParal/4633277da22c715e07a1738e3198a129 to your computer and use it in GitHub Desktop.
Save JarekParal/4633277da22c715e07a1738e3198a129 to your computer and use it in GitHub Desktop.
Two pictures/figures in two column (two methods)
\begin{figure}[h]
\begin{minipage}[b]{.5\textwidth}
\centering
\includegraphics[width=\textwidth]{images/pololu-3pi-robot-8-on-line.jpg}
\caption[Robot Pololu 3pi]{Robot Pololu 3pi\protect\footnotemark}
\label{fig:pololu-3pi-robot-8-on-line}
\end{minipage}
\hfill
\begin{minipage}[b]{.5\textwidth}
\centering
\includegraphics[width=\textwidth]{images/Edison-Educational-robot.jpg}
\caption[Robot Edison]{Robot Edison\protect\footnotemark}
\label{fig:Edison-Educational-robot}
\end{minipage}
\end{figure}
% two footnote/footnotemark in minipage - problem with index
% solution: http://tex.stackexchange.com/a/43694
\addtocounter{footnote}{-1} % footnote_cnt -= 1
\footnotetext{Zdroj: \url{https://www.pololu.com/product/975}}
\stepcounter{footnote}
\footnotetext{Zdroj: \url{https://meetedison.com/meet-edison-v2-0/}}
% putting two images beside each other
% source: http://tex.stackexchange.com/a/148445
%\begin{figure}[!tbp]
% \begin{subfigure}[b]{.5\textwidth}
% \centering
% \includegraphics[width=\textwidth]{images/pololu-3pi-robot-8-on-line.jpg}
% \caption[Robot Pololu 3pi]{Robot Pololu 3pi\protect\footnotemark}
% \label{fig:pololu-3pi-robot-8-on-line}
% \end{subfigure}
% \hfill
% \begin{subfigure}[b]{.5\textwidth}
% \centering
% \includegraphics[width=\textwidth]{images/Edison-Educational-robot.jpg}
% \caption[Robot Edison]{Robot Edison\protect\footnotemark}
% \label{fig:Edison-Educational-robot}
% \end{subfigure}
% \caption{Roboti se zaměřením na velmi úzkou oblast činnost}
%\end{figure}
%
%\footnotetext{Zdroj: \url{https://www.pololu.com/product/975}}
%\footnotetext{Zdroj: \url{https://meetedison.com/meet-edison-v2-0/}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment