Re: Le mie (dis)avventure con TikZ

#96778
Liverpool
Partecipante
    Up
    0
    Down
    ::

    cfiandra” post=99040
    `\newcommand{\sottolinea}[2][]{%
    \begin{tikzpicture}[baseline=-.5ex]\node[inner sep=0pt,outer sep=-1pt](x){$#2$};
    \draw[#1]([yshift=-1.5pt]x.south west)–([yshift=-1.5pt]x.south east);
    \end{tikzpicture}%
    }`

    A me sembra che vada benone. Perché dici che la spaziatura matematica non è rispettata? E che ne dici di questa minima variante?
    `\newcommand{\sottolinea}[2][]{%
    \begin{tikzpicture}[baseline=0]
    \node [anchor=base, inner xsep=0, inner ysep=1.2bp, outer sep=-0.1em] (x) {$#2$};
    \draw[#1] (x.south west) — (x.south east);
    \end{tikzpicture}%
    }`

    Go to top