How can I achieve this in LaTeX?

enter image description here


Your question is probably a duplicate of this one, but I like to show you an alternative solution with tikzmark.

\usetikzlibrary{tikzmark, calc}

        ($(pic cs:#1)+(-.3,.3)$) -- node[xshift=-1em, align=left, text width=4em]{#3} ($(pic cs:#2)+(-.3,-.1)$);}


\tikzmark{lp} P \\
\tikzmark{lq} Q \\
\tikzmark{gp} P \\
\tikzmark{gq} Q \\
\begin{tikzpicture}[overlay,remember picture,baseline]

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.