11 Luglio 2008 alle 16:18
#25438
::
Salve,
vorrei realizzare un qualcosa del genere0 1 0 <------ riga 1 0 0 0 0 0 0 <------ riga 3 Con quella che ho riportato da prendere come una matrice ovviamente tra parentesi tonde. Come faccio?
`\newcommand{\denoterow}[1]{\rlap{\hspace{1em}$\leftarrow{}$ riga #1}}
\newcommand{\adjustpmatrix}{\phantom{\hbox{$\leftarrow{}$ riga 1}}}
…
\[
\begin{pmatrix}
0 & 1 & 0\denoterow{1}\\
0 & 0 & 0\\
0 & 1 & 1\denoterow{3}
\end{pmatrix}\adjustpmatrix
\]`
Il comando \adjustpmatrix serve perché altrimenti TeX non terrebbe conto delle parti aggiunte, riguardo alla spaziatura. Se la matrice è come nell’esempio, è ragionevole anche non usare l’aggiustamento, vedi tu.
Ciao
Enrico