Como posso alinhar a lista verticalmente com o texto anterior? Na célula do meio, quero 1. alinhar verticalmente com “Entradas”. Na célula inferior, "Metas" deve estar no meio verticalmente entre 1. e 2.
\documentclass[tikz]{standalone}
\usetikzlibrary{shapes}
\begin{document}
\tikzstyle{rect} = [rectangle split, rectangle split parts=3, draw]
\begin{tikzpicture}[]
\node[rect](first) {
\textbf{Parse FCC Broadband Availability Data}
\nodepart{two}
Inputs:
\begin{tabular}{p{5cm}}
\begin{enumerate}
\item FCC Form 477 Data
\end{enumerate}
\end{tabular}
\nodepart{three}
Goals:
\begin{tabular}{p{5cm}}
\begin{enumerate}
\item Select states and ISPs
\item Baseline for comparison.
\end{enumerate}
\end{tabular}
};
\end{document}
Responder1
Em vez do tikzpicture
, sugiro usar um simples tabular
. Com a ajuda de cellspace
você pode ajustar o espaçamento acima e abaixo do texto nas células. Usei o enumitem
pacote para definir um tabenum
ambiente customizado:
\documentclass{article}
\usepackage{array}
\usepackage{enumitem}
\newlist{tabenum}{enumerate}{1}
\setlist[tabenum]{label*=\arabic*.,leftmargin=*, nosep,leftmargin=*,before=\begin{minipage}{\hsize},after=\end{minipage}}
\usepackage[column=0]{cellspace}
\setlength{\cellspacetoplimit}{\tabcolsep}
\setlength{\cellspacebottomlimit}{\cellspacetoplimit}
\begin{document}
\noindent
\begin{tabular}{|0l0{p{4.25cm}}|}
\hline
\multicolumn{2}{|0c|}{\bfseries Parse FCC Broadband Availability Data}\\
\hline
Inputs: & \begin{tabenum}
\item FCC Form 477 Data
\end{tabenum} \\
\hline
Goals: & \begin{tabenum}
\item Select states and ISPs
\item Baseline for comparison.
\end{tabenum} \\
\hline
\end{tabular}
\end{document}
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning}
\usepackage{array}
\usepackage{enumitem}
\newlist{tabenum}{enumerate}{1}
\setlist[tabenum]{label*=\arabic*.,leftmargin=*, nosep,leftmargin=*,before=\begin{minipage}{\hsize},after=\end{minipage}}
\usepackage[column=0]{cellspace}
\setlength{\cellspacetoplimit}{\tabcolsep}
\setlength{\cellspacebottomlimit}{\cellspacetoplimit}
\begin{document}
\begin{tikzpicture}
\node(first) {
\begin{tabular}{|0l0{p{4.25cm}}|}
\hline
\multicolumn{2}{|0c|}{\bfseries Parse FCC Broadband Availability Data}\\
\hline
Inputs: & \begin{tabenum}
\item FCC Form 477 Data
\end{tabenum} \\
\hline
Goals: & \begin{tabenum}
\item Select states and ISPs
\item Baseline for comparison.
\end{tabenum} \\
\hline
\end{tabular}};
\node[below=of first](second) {
\begin{tabular}{|0l0{p{4.25cm}}|}
\hline
\multicolumn{2}{|0c|}{\bfseries Parse FCC Broadband Availability Data}\\
\hline
Inputs: & \begin{tabenum}
\item FCC Form 477 Data
\end{tabenum} \\
\hline
Goals: & \begin{tabenum}
\item Select states and ISPs
\item Baseline for comparison.
\end{tabenum} \\
\hline
\end{tabular}};
\draw [->] (first) -- (second);
\end{tikzpicture}
\end{document}