I have the following code:
\documentclass[a4paper,10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{matrix,shapes,arrows,positioning,chains}
\begin{document}
\tikzset{
desicion/.style={
diamond,
draw,
text width=4em,
text badly centered,
inner sep=0pt
},
block/.style={
rectangle,
draw,
text width=10em,
text centered,
rounded corners
},
cloud/.style={
draw,
ellipse,
minimum height=2em
},
descr/.style={
fill=white,
inner sep=2.5pt
},
connector/.style={
-latex,
font=\scriptsize
},
rectangle connector/.style={
connector,
to path={(\tikztostart) -- ++(#1,0pt) \tikztonodes |- (\tikztotarget) },
pos=0.5
},
rectangle connector/.default=-2cm, straight connector/.style={
connector,
to path=--(\tikztotarget) \tikztonodes}
}
\begin{figure}[htpb]
\begin{center}
\begin{tikzpicture}
\def\x{1.5}
\node [block] (init) {Initialisation};
\node [block, right = 3cm of init] (running) {Running};
\draw[->] (init) -- (running);
\end{tikzpicture}
\end{center}
\caption{Fonctionnement du programme.}
\label{fig:svnfm-main-flow}
\end{figure}
\end{document}
Output:
As you can see, "Initialisation" and "Running" are not correctly aligned horizontally. How can I change that ? Thank you.


\vphantom{g}to text in the first node. than see, where you to nodes style definition can addtext depth=0.5ex. – Zarko Jul 03 '18 at 09:38