Re: [dk-tug] markering af punkt i en tikz matrix

Lars Madsen <[email protected]>
Newsgroups gmane.comp.tex.danish
Message-ID <[email protected]>
hmm, lidt fiks-fakserier så kunne man bare tegne den efter matricen, man kender jo knudens placering

dog ikke vidre pæn kode

/Lars Madsen
Institut for Matematik / Department of Mathematics
Aarhus Universitet / Aarhus University
Mere info: http://au.dk/daleif@imf / More information: http://au.dk/en/daleif@imf


________________________________________
From: [email protected] [[email protected]] on behalf of Lars Madsen [[email protected]]
Sent: 22 November 2012 13:42
To: [email protected]
Subject: [dk-tug] markering af punkt i en tikz matrix

Se nedenstående MWE

Jeg ville gerne have at den cirkel om -1, ikke forstyrrer resten af matricen, altså at -2's placering er den samme u anset hvad og at cirklen ikke påvirker resten af matricen.

Nogen der har et forslag?


\documentclass[a4paper]{memoir}
\usepackage{tikz}
\usetikzlibrary{matrix}
\tikzstyle{daleifs matrix of math nodes}=[%
  matrix of nodes,
  nodes={%
   execute at begin node=$,%
   execute at end node=$,%
   anchor=east,
  }%
]
\tikzstyle{pivot marker}=[
shape=circle,
draw,
inner sep=2pt,
]

\begin{document}

\begin{tikzpicture}[baseline=(current  bounding  box.center)]
  \matrix (M) [daleifs matrix of math nodes] {
    5  & 4  & 3  & 0  \\
    -2 & -3 & -1 & 5  \\
    -4 & -1 & -2 & 11 \\
    -3 & -4 & |[pivot marker]|-2 & 8  \\
    1  & 0  & 0  & 0  \\
    0  & 1  & 0  & 0  \\
    0  & 0  & 1  & 0  \\
  };
\end{tikzpicture}
\end{document}





/Lars Madsen
Institut for Matematik / Department of Mathematics
Aarhus Universitet / Aarhus University
Mere info: http://au.dk/daleif@imf / More information: http://au.dk/en/daleif@imf


_______________________________________________
[email protected] mailing list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.