Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inline/baseline in feynman environment #79

Open
jionnyMagiah opened this issue Dec 27, 2022 · 0 comments
Open

inline/baseline in feynman environment #79

jionnyMagiah opened this issue Dec 27, 2022 · 0 comments

Comments

@jionnyMagiah
Copy link

I have an issue related to this #32. I have this LaTex code

\begin{align}
    \labeq{lqed}
    \mathcal{L}_{Q E D}&=-\frac{1}{4} F_{\mu \nu} F^{\mu \nu}-\bar{\psi}\left(\gamma^{\mu} \partial_{\mu}+m\right) \psi+i e A_{\mu} \bar{\psi} \gamma^{\mu} \psi \\
    &=\ 
    \begin{tikzpicture}[baseline=-\the\dimexpr\fontdimen22\textfont2\relax]
        \begin{feynman}[inline=(a)]
            \diagram[horizontal=a to b]{
            a--[boson]b};
        \end{feynman}
    \end{tikzpicture} \ +\ 
    \begin{tikzpicture}[baseline=-\the\dimexpr\fontdimen22\textfont2\relax]
        \begin{feynman}[inline=(a)]
            \diagram[horizontal=a to b]{
            a--[fermion]b};
        \end{feynman}
    \end{tikzpicture} \ +\ 
    \begin{tikzpicture}[baseline=-\the\dimexpr\fontdimen22\textfont2\relax]
        \begin{feynman}[inline=(a)]
            \diagram[horizontal=a to b]{
                a -- [fermion] b -- [fermion] c,
                b -- [boson] d,
                c--[opacity=0]d
                };
        \end{feynman}
    \end{tikzpicture} \nonumber
\end{align}

the graphs are correctly lined up, but in the "baseline" size rather then the "inline" size, which causes an overflow (the black vertical line is the margin).
Schermata del 2022-12-27 10-26-25
I tried using inline after the tikzpicture environment, but it won't compile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant