![tikzpicture의 `\matrix (m) [table]` 중괄호에 위 첨자를 추가하세요.](https://rvso.com/image/472796/tikzpicture%EC%9D%98%20%60%5Cmatrix%20(m)%20%5Btable%5D%60%20%EC%A4%91%EA%B4%84%ED%98%B8%EC%97%90%20%EC%9C%84%20%EC%B2%A8%EC%9E%90%EB%A5%BC%20%EC%B6%94%EA%B0%80%ED%95%98%EC%84%B8%EC%9A%94..png)
의 기존 중괄호에 위 첨자를 추가하고 싶습니다 \matrix (m) [table]
. 이것은 조옮김을 나타냅니다. 다른 \matrix (m) [table]
.
내 매트릭스와 시도는 다음과 같이 제공됩니다.
\documentclass{article}
%%% tikz
\usepackage{tikz}
\usetikzlibrary{calc}
\usetikzlibrary{arrows}
\usetikzlibrary{decorations.text,decorations.pathreplacing,matrix,calc,positioning}
\usetikzlibrary{calligraphy}% AFTER decorations.text
\tikzset{
table/.style={
matrix of math nodes,
row sep=-\pgflinewidth,
column sep=-\pgflinewidth,
nodes={rectangle,text width=3em,align=center},
text depth=1.25ex,
text height=2.5ex,
nodes in empty cells,
left delimiter=[,
right delimiter={]},
ampersand replacement=\&
}
}
\newcommand*{\connectorH}[4][]{
\draw[#1] (#3) -| ($(#3) !#2! (#4)$) |- (#4);% https://hugoideler.com/wp-content/uploads/2013/01/connector.tex
}
\begin{document}
\begin{figure}
\centering
\begin{tikzpicture}[baseline,decoration=brace]
\matrix (m) [table] {
%1 %2 %3 %4 %5 %6 %7
A_{1,:}^\top\\
A_{2,:}^\top\\
};
\node at (m-1-1.north east) {$\qquad\quad{\top}$};
\end{tikzpicture}
\end{figure}
\end{document}
그러나 전치(transpose)는 행렬의 중앙에서만 끝나며, 행렬의 오른쪽 중괄호를 장식하지 않습니다. 을 사용하는 동안 이를 수행할 수 있는 좋은 방법이 있습니까 \matrix (m) [table]
?
답변1
와 같은 것을 사용할 수도 있지만 \node[anchor=west, xshift=0.67em] at (m-1-1.north east) {$\top$};
실제로는 올바른 구분 기호를 바꿀 수도 있습니다(위 첨자를 올바른 글꼴 크기로 렌더링함).
\documentclass[border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{matrix}
\tikzset{
table/.style={
matrix of math nodes,
row sep=-\pgflinewidth,
column sep=-\pgflinewidth,
nodes={
text width=3em,
align=center
},
text depth=1.25ex,
text height=2.5ex,
nodes in empty cells,
left delimiter={[},
right delimiter={]},
ampersand replacement=\&
}
}
\begin{document}
\begin{tikzpicture}
\matrix (m) [table, right delimiter={]^{\top}}] {
A_{1,:}^{\top} \\
A_{2,:}^{\top} \\
};
\end{tikzpicture}
\end{document}