2

The letters i and y aren't aligned correctly. the hook of y is above the baseline of the i. How do I get them to be aligned correctly? The MWE is below.

\documentclass{standalone}
\usepackage{tikz}

\begin{document}
    \begin{tikzpicture}
        \draw (0,0) -- (1,0) -- (0,-1);
        \path[anchor=mid] (0,0) node[left] {i} node[right] {y};
    \end{tikzpicture}
\end{document}

As you can see by the code:

enter image description here

5

Maybe you are more satisfied with the following:

enter image description here

\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}

\begin{document}
    \begin{tikzpicture}
        \draw (0,0) -- (1,0) -- (0,-1);
        \path[anchor=mid] (0,0) node[base left] {i} node[base right] {y};
    \end{tikzpicture}
\end{document}
1
  • 2
    Nice! Thanks to your answer I could find the best placement: \path (0,0) node[mid left] {i} node[mid right] {y};. Thank you very much! – Levy Jul 28 '19 at 16:12

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.