Multiple values of a function

\[
f(n) = \left\{
\begin{array}{l l}
name and value & \quad \text{if $name$ }\\
name & \quad \text{if $name$}\\
value & \quad \text{if $name$}\\
\end{array} \right.
\]


2×2 Multiple images in Latex

\begin{figure}

\begin{minipage}{.5\linewidth}%

\subfigure[Initial settings\label{fig:initial}]{\includegraphics[width=.95\linewidth]{pix/initial.jpg}}%

\end{minipage}%

\begin{minipage}{.5\linewidth}%

\subfigure[User adjusted settings\label{fig:after}]{\includegraphics[width=.95\linewidth]{pix/after.jpg}}%

\end{minipage}%

Here, make sure there is a new paragraph. If you do not leave a blank line here, latex will try to put all four images in a row; your pictures will be a 1×4 matrix (vector).

\begin{minipage}{.5\linewidth}%

\subfigure[User adjusted settings\label{fig:after}]{\includegraphics[width=.95\linewidth]{pix/after.jpg}}%

\end{minipage}%

\begin{minipage}{.5\linewidth}%

\subfigure[User adjusted settings\label{fig:after}]{\includegraphics[width=.95\linewidth]{pix/after.jpg}}%

\end{minipage}%

\caption{Collecting User Preferences}

\end{figure}


Multiple column latex table

\[
\begin{center}
\begin{table}
\hfill{}
\begin{tabular}{ | c | c | c | c | c |}
\hline
\multirow{2}{*}{\textbf{Similarity}} d& \multicolumn{4}{c|}{\textbf{Percentage of new edges}} \\
& {200K Tr.} & {200K Untr.} & {100K Untr.} & {100K Tr.}\\ \hline \hline

0.1&0.014&0.0125&0.0289&0.0197\\ \hline
0.2&0.134&0.1534&0.2016&0.1544\\ \hline
0.3&0.081&0.0932&0.1178&0.0939\\ \hline
0.4&0.111&0.1175&0.1266&0.1123\\ \hline
0.5&0.124&0.1303&0.1229&0.1212\\ \hline
0.6&0.132&0.1303&0.1158&0.1221\\ \hline
0.7&0.133&0.1281&0.1046&0.1219\\ \hline
0.8&0.126&0.1262&0.0969&0.1186\\ \hline
0.9&0.115&0.0982&0.0771&0.1074\\ \hline
1.0&0.025&0.0098&0.0073&0.0279\\ \hline

\hline
\end{tabular}
\hfill{}
\caption{Percentage of strangers of newly formed edges on the Youtube dataset by their network similarity values.}
\label{table:youtube}
\end{table}
\end{center}\]

Row height of tables: Add  \\ [5ex] \hline to the end of each row.

Advertisements