Como alinhar o texto ao centro superior dentro de um nó tikz

Como alinhar o texto ao centro superior dentro de um nó tikz

Esta é a aparência dos meus nós:

insira a descrição da imagem aqui

Gostaria que todo o texto estivesse alinhado no topo de cada nó. Este é o código:

\node[rec5, below=4.6cm of E] (G) {Umwandlung der Zustände in normierte Lastwerte durch Sampling der GMM für den jeweiligen Zustand in der jeweiligen Stunde};
\node[rec5, below=4.6cm of E1] (G1) {Umwandlung der Zustände in normierte Lastwerte durch Sampling der GMM für den jeweiligen Zustand in der jeweiligen
Stunde, entsprechend typischer Woche im Monat};
\node[rec5, below=4.6cm of E2] (G2) {Umwandlung der Zustände in normierte Lastwerte durch Sampling der GMM für den jeweiligen Zustand in der jeweiligen
Stunde, entsprechend dem Tagtyp im Monat};
\node[rec5, below=4.6cm of E3] (G3) {Umwandlung der Zustände in normierte Lastwerte durch Sampling der GMM für den jeweiligen Zustand in der jeweiligen
Stunde, entsprechend dem Tagtyp im Quartal};

com rec5 sendo:

\tikzstyle{rec5}=[minimum width=4.05cm,minimum height=6cm, draw, outer sep=0pt, align=center, anchor=north, text width=3.7cm, inner xsep=0pt, inner ysep=0pt] 

De alguma forma, não consegui encontrar nada parecido aqui, mas tenho certeza de que alguém deve ter tido a mesma pergunta antes... de qualquer forma, estou feliz com qualquer dica!

EDITAR:

Isso faz parte de um fluxograma maior com vários caminhos, então eu absolutamente preciso fazer isso em nós, eu acho.

aqui está outro trecho: insira a descrição da imagem aqui

Responder1

Sua pergunta não está totalmente clara. Falta o contexto dos nós, é tikzobrigatório o uso de imagem com seus nós, etc. Como mencionei no comentário, esses quatro nós podem ser simplesmente substituídos por tabela, por exemplo. Por exemplo, usando o pacote `tabularray:

\documentclass{article}
\usepackage[ngerman]{babel}
\usepackage{newtxtext}
\usepackage{microtype}
\usepackage{tabularray}

\begin{document}
    \begin{table}[ht]
\begin{tblr}{vlines,
             colspec = {X[j] c X[j] c X[j] c X[j] c X[j] c },
             column{even} = {colsep=2pt},
             colsep=3pt,
             }
    \cline{1-1} \cline{3-3} \cline{5-5} \cline{7-7}
Umwandlung der Zustände in normierte Lastwerte durch Sampling der GMM für den jeweiligen Zustand in der jeweiligen Stunde
    &   \SetCell[r=1]{j}
        & Umwandlung der Zustände in normierte Lastwerte durch Sampling der GMM für den jeweiligen Zustand in der jeweiligen Stunde, entsprechend typischer Woche im Monat
        &   \SetCell[r=1]{j}
            & Umwandlung der Zustände in normierte Lastwerte durch Sampling der GMM für den jeweiligen Zustand in der jeweiligen Stunde, entsprechend dem Tagtyp im Monat
            &   \SetCell[r=1]{j}
                &  Umwandlung der Zustände in normierte Lastwerte durch Sampling der GMM für den jeweiligen Zustand in der jeweiligen Stunde, entsprechend dem Tagtyp im Quartal      \\
    \cline{1-1} \cline{3-3} \cline{5-5} \cline{7-7}
\end{tblr}
    \end{table}
\end{document}

insira a descrição da imagem aqui

Editar: Após a edição, o contexto do problema é esclarecido. A solução possível (que incentiva o uso de tikzsintaxe decente) pode ser:

\documentclass{article}
\usepackage{geometry}

\usepackage[ngerman]{babel}
\usepackage{newtxtext}
\usepackage{microtype}

\usepackage{tikz}
\usetikzlibrary{positioning}
\tikzset{
    rec5/.style = {draw,
                   text depth = #1\baselineskip, text width=34mm, align=center, inner sep=1mm}
        }

%---------------- Show page layout. Don't use in a real document!
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%

\begin{document}
\begin{center}
    \begin{tikzpicture}[
node distance = 2em and 2mm
                        ]
% simulate part of diagram above nodes of concer
\coordinate (E);
\coordinate[right=38mm of E]    (E1);
\coordinate[right=38mm of E1]   (E2);
\coordinate[right=38mm of E2]   (E3);
    \begin{scope}[rec5/.default = 9]
\node[rec5, below=of E] (G) 
    {Umwandlung der Zustände in normierte Lastwerte durch Sampling der GMM für den jeweiligen Zustand in der jeweiligen Stunde};
\node[rec5, below=of E1] (G1) 
    {Umwandlung der Zustände in normierte Lastwerte durch Sampling der GMM für den jeweiligen Zustand in der jeweiligen
Stunde, entsprechend typischer Woche im Monat};
\node[rec5, below=of E2] (G2) 
    {Umwandlung der Zustände in normierte Lastwerte durch Sampling der GMM für den jeweiligen Zustand in der jeweiligen
Stunde, entsprechend dem Tagtyp im Monat};
\node[rec5, below=of E3] (G3) 
    {Umwandlung der Zustände in normierte Lastwerte durch Sampling der GMM für den jeweiligen Zustand in der jeweiligen Stunde, entsprechend dem Tagtyp im Quartal};
\draw[->]   (E)  edge (G)
            (E1) edge (G1)
            (E2) edge (G2)
            (E3)  to  (G3);
    \end{scope}
    \end{tikzpicture}
\end{center}
\end{document}

insira a descrição da imagem aqui

(as linhas vermelhas indicam o layout da página)

Responder2

imaginei que adicionar o text depthparâmetro resolve, por exemplo

\tikzstyle{rec5}=[minimum width=4.05cm,minimum height=6cm, draw, outer sep=0pt, align=center, text width=3.7cm, inner xsep=0pt,text depth = 5.75 cm]

informação relacionada