# Vertical spacing for edge labels in Dynkin diagrams

This question follows the update to the package dynkin-diagrams made available by the author after this question.

I am using the newest version of dynkin-diagrams and everything works fine, but the new default vertical spacing for edge labels breaks the spacing between lines of text. E.g., when using $\dynkin[Coxeter]{F}{4}$ inline there is too much space between the current line of text and the previous, as shown in the image below.

Is there a way to set the vertical spacing "back to zero" for edge labels? (forgive my inability with tikz).

UPDATE - MWE

    \documentclass{book}
\usepackage{dynkin-diagrams}
\usepackage{lipsum}

\begin{document}
\lipsum[10]
$\dynkin[Coxeter]{F}{4}$
\lipsum[10]
\end{document}


UPDATE (3/12/2019): PARTIAL SOLUTION

• The author (@BenjaminMcKay) of the package in a comment to the this question suggests to use this code
    \tikzset{/Dynkin diagram/text style/.append style={text height=0}}
\tikzset{/Dynkin diagram/text style/.append style={text depth=0}}


to restore the previous behaviour, however in my attempts this breaks correct spacing for vertex labels if set globally.

• The user @Schrödinger'scat suggests below to use the following code
    \tikzset{dlabel sep/.style={every label/.append style={inner sep=#1}}}
$\dynkin[Coxeter,label height=4,label depth=.,dlabel sep=0.5pt]{F}{4}$


which does what I need and doesn't break alignment of vertex labels. However, to be absolutely sure that the dynkin diagrams doesn't mess with vertical spacing between lines I added a \smash (just to stay safe) and removed the label height=4 param which is not relevant in this case.

    \tikzset{dlabel sep/.style={every label/.append style={inner sep=#1}}}
$\smash{\dynkin[Coxeter,label depth=.,dlabel sep=1pt]{F}{4}}$

• I added a MWE. As for your curiosity, see the comment to my previous question by the author of the package himself. – Sirion Dec 2 at 21:49
• If you want a quick and dirty solution, use $\dynkin[Coxeter,label height=a,label depth=4]{F}{4}$. Turns out the styles made it to the package. ;-) – Schrödinger's cat Dec 2 at 21:54
• Thank you, it's much better indeed, but the gap between the two lines is still slightly bigger than the default one... as I am going to use it in my phd thesis (that I should print very soon) I'd really appreciate a complete solution (no matter how dirty the code is). For example, is there any way to set the depth and height of the character "_"? – Sirion Dec 2 at 22:03
• Found it! label height=.,label depth=. will do (but the edge label will be a bit too close to previous line...). – Sirion Dec 2 at 22:06
• \tikzset{dlabel sep/.style={every label/.append style={inner sep=#1}}} $\dynkin[Coxeter,label height=4,label depth=.,dlabel sep=0.5pt]{F}{4}$. – Schrödinger's cat Dec 2 at 22:19

\documentclass{book}
$\dynkin[Coxeter]{F}{4}$