von Lorenzo von Mattahorn » Fr 27. Mär 2020, 12:12
Mit der Hilfe des usepackage blockarray habe ich mir das alles zusammengebastelt.
Danke nochmal für den Tipp mit Tikz.
[code]
\documentclass[11pt, footsepline=false]{scrartcl}
\usepackage{mathtools}% lädt amsmath
\usepackage{tikz}
\usepackage{blkarray}
\usetikzlibrary{tikzmark,decorations.pathreplacing}
\begin{document}
$
\begin{blockarray}{ccccccccc}
\begin{block}{(cccccccc)c}
S & S & \tikzmarknode{xxx}{S} & \dots & \tikzmarknode{xxxx}{S} & \tikzmarknode{yyy}{S} & \dots & \tikzmarknode{yyyy}{S} & \ \\
S & S & S & \dots & S & S & \dots & S & \ \\
S & S & S & \dots & S & S & \dots & S & \tikzmarknode{zzz}{ \ } \\
\vdots & \vdots & \vdots & \ & \vdots & \vdots & & \vdots & \ \\
S & S & S & \dots & S & S & \dots & S & \tikzmarknode{zzzz}{ \ } \\
S & S & S & \dots & S & S & \dots & S & \tikzmarknode{jjj}{ \ } \\
\vdots & \vdots & \vdots & \ & \vdots & \vdots & & \vdots & \ \\
S & S & S & \dots & S & S & \dots & S & \tikzmarknode{jjjj}{ \ } \\
\end{blockarray}
$
\begin{tikzpicture}[
overlay,
remember picture,
decoration={brace, amplitude=5pt},
% thick
]
\draw [decorate, transform canvas={yshift=3pt}]
(xxx.north) -- node [above=5pt] {Text} (xxxx.north)
;
\end{tikzpicture}
\begin{tikzpicture}[
overlay,
remember picture,
decoration={brace, amplitude=5pt},
% thick
]
\draw [decorate, transform canvas={yshift=3pt}]
(yyy.north) -- node [above=5pt] {Text} (yyyy.north)
;
\end{tikzpicture}
\begin{tikzpicture}[
overlay,
remember picture,
decoration={brace, amplitude=5pt},
% thick
]
\draw [decorate, transform canvas={yshift=2pt}]
(zzz.north) -- node [right=5pt] {Text} (zzzz.north)
;
\end{tikzpicture}
\begin{tikzpicture}[
overlay,
remember picture,
decoration={brace, amplitude=5pt},
% thick
]
\draw [decorate, transform canvas={yshift=2pt}]
(jjj.north) -- node [right=5pt] {Text} (jjjj.north)
;
\end{tikzpicture}
\end{document}
[/code]
Sorry, dass das mit Code nicht funktioniert, bin wohl zu dumm dafür.
Mit der Hilfe des usepackage blockarray habe ich mir das alles zusammengebastelt.
Danke nochmal für den Tipp mit Tikz.
[code]
\documentclass[11pt, footsepline=false]{scrartcl}
\usepackage{mathtools}% lädt amsmath
\usepackage{tikz}
\usepackage{blkarray}
\usetikzlibrary{tikzmark,decorations.pathreplacing}
\begin{document}
$
\begin{blockarray}{ccccccccc}
\begin{block}{(cccccccc)c}
S & S & \tikzmarknode{xxx}{S} & \dots & \tikzmarknode{xxxx}{S} & \tikzmarknode{yyy}{S} & \dots & \tikzmarknode{yyyy}{S} & \ \\
S & S & S & \dots & S & S & \dots & S & \ \\
S & S & S & \dots & S & S & \dots & S & \tikzmarknode{zzz}{ \ } \\
\vdots & \vdots & \vdots & \ & \vdots & \vdots & & \vdots & \ \\
S & S & S & \dots & S & S & \dots & S & \tikzmarknode{zzzz}{ \ } \\
S & S & S & \dots & S & S & \dots & S & \tikzmarknode{jjj}{ \ } \\
\vdots & \vdots & \vdots & \ & \vdots & \vdots & & \vdots & \ \\
S & S & S & \dots & S & S & \dots & S & \tikzmarknode{jjjj}{ \ } \\
\end{blockarray}
$
\begin{tikzpicture}[
overlay,
remember picture,
decoration={brace, amplitude=5pt},
% thick
]
\draw [decorate, transform canvas={yshift=3pt}]
(xxx.north) -- node [above=5pt] {Text} (xxxx.north)
;
\end{tikzpicture}
\begin{tikzpicture}[
overlay,
remember picture,
decoration={brace, amplitude=5pt},
% thick
]
\draw [decorate, transform canvas={yshift=3pt}]
(yyy.north) -- node [above=5pt] {Text} (yyyy.north)
;
\end{tikzpicture}
\begin{tikzpicture}[
overlay,
remember picture,
decoration={brace, amplitude=5pt},
% thick
]
\draw [decorate, transform canvas={yshift=2pt}]
(zzz.north) -- node [right=5pt] {Text} (zzzz.north)
;
\end{tikzpicture}
\begin{tikzpicture}[
overlay,
remember picture,
decoration={brace, amplitude=5pt},
% thick
]
\draw [decorate, transform canvas={yshift=2pt}]
(jjj.north) -- node [right=5pt] {Text} (jjjj.north)
;
\end{tikzpicture}
\end{document}
[/code]
Sorry, dass das mit Code nicht funktioniert, bin wohl zu dumm dafür.