Claudio ha mostrato un pacchetto interessante (Alain Matthes ne ha scritti molti interessanti). Credo che avendo pazienza di provare a giocarci un po’ si potrebbe ottenere esattamente il risultato identico, ma in questo periodo la pazienza è qualcosa di raro (vedasi il messaggio di ieri sulle tabelle).
Entrambi gli esempi possono essere riprodotti esattamente con TikZ.
Per restare in tema “educativo”, siccome le matrici non sono riportate nell’Arte di disegnare con LaTeX, ecco come usarle. Il secondo esempio, invece, con quanto scritto sulla guida può essere riprodotto tranquillamente.
Il codice: `\documentclass[tikz,border=10pt]{standalone}
\usetikzlibrary{calc,matrix,positioning}
\begin{document}
\begin{tikzpicture}
\matrix (m) [matrix of math nodes,row sep=1ex,column sep=1em]{
+ & + & – & + & +\\
+ & – & – & – & +\\
+ & – & + & – & +\\
};
\draw (m.north west)–(m.north east);
\draw ($(m-2-1.west)!0.5!(m-3-1.west)$)–($(m-2-5.east)!0.5!(m-3-5.east)$);
\foreach \x/\xtext [evaluate=\x as \next using int(\x+1)] in {1/A,2/B,3/C,4/D}{
\fill ([yshift=3.25pt]$(m-1-\x.north)!0.5!(m-1-\next.north)$)
circle[radius=1.5pt] coordinate (n-\x)
node[above=2pt,
font=\small,
text height=1ex,
text depth=0pt]{$\xtext$};
\draw[dashed]([yshift=-2pt]n-\x)–($(m-3-\x.south)!0.5!(m-3-\next.south)$);
}
\node
{Num};
\end{tikzpicture}
\end{document}
` Per ottenere l’esempio di partenza uguale, basta modificare 4 caratteri e aggiungere 2 linee di codice.
Ciao
Claudio