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}}$
$\dynkin[Coxeter,label height=a,label depth=4]{F}{4}$
. Turns out the styles made it to the package. ;-)label height=.,label depth=.
will do (but the edge label will be a bit too close to previous line...).\tikzset{dlabel sep/.style={every label/.append style={inner sep=#1}}} $\dynkin[Coxeter,label height=4,label depth=.,dlabel sep=0.5pt]{F}{4}$
.