I have a diagram in tikz
where each node contains an itemized list.
\documentclass[11pt, authoryear, 3p]{elsarticle}
\usepackage{tikz}
\usetikzlibrary{shapes,positioning,arrows}
\begin{document}
\begin{figure}
\tikzstyle{dataset} = [rectangle, draw, text width = 2in, minimum height=1in, ]
\begin{tikzpicture}[auto, font=\scriptsize]
% Place nodes
\node [dataset] (tm) {Data 1 \begin{itemize}
\item{\# Adults } \item{\# Children} \item{Income}
\item{Ethnicity}
\end{itemize}};
\node [dataset, right of=tm, node distance=3in] (dmv) {Data 2 \begin{itemize} \item{Data 2} \end{itemize}};
% draw links
\path [<->] (tm) edge node[above, sloped] {Address} (dmv);
\end{tikzpicture}
\caption{Analysis dataset assembly.}
\label{fig:dataset}
\end{figure}
\end{document}
The items are double-spaced, as the rest of the document. How can I set these nodes to be single-spaced? I have tried encasing the chunk in a singlespaced
environment, and related questions (e.g., this one) don't seem to be precisely applicable.
Best Answer
Like this?