怎么在TiKZ中画一个大括号

2020-01-02 23:45发布

[图]一下是我的代码,方法比较笨\documentclass{standalone}\usepackage{amsmath,tikz,ctex}\usetikzlibrary{arrows.meta,cal...


一下是我的代码,方法比较笨
\documentclass{standalone}
\usepackage{amsmath,tikz,ctex}
\usetikzlibrary{arrows.meta,calc}
\begin{document}
\begin{tikzpicture} [>=Implies]
\node [draw] at (0,0) {等边三角形$ABC$};
\node [draw] at (5,0) {$AB=BC=AC$};
\node [draw,align=left ] at (0,-3) {将$\triangle ACD$绕点$A$\ 逆时针旋转$60^\circ$得\ 到$\triangle AEF$};
\node [draw,align=center] at (4,-3) {$\angle CAE=60^\circ$\$AC=AE$};
\node [draw,align=center] at (7.2,-3) {等边$\triangle ACE$};
\node [draw,align=center] at (11,-3) {$AC=AE=CE$};

\draw [ ->,double distance=1.5pt] (2,0) — (3,0);
\draw [ ->,double distance=1.5pt] (1.8,-3) — (2.65,-3);
\draw [ ->,double distance=1.5pt] (5.3,-3) — (5.9,-3);
\draw [ ->,double distance=1.5pt] (8.5,-3) — (9.3,-3);

\node [draw,align=center] at (4,-5) {$AB=BC=CE=AE$};
\node [draw,align=center] at (8.5,-5) {菱形$ABCE$};

\draw [ ->,double distance=1.5pt] (0.5,-5) — (1.6,-5);
\draw [ ->,double distance=1.5pt] (6.4,-5) — (7.2,-5);

\end{tikzpicture}
\end{document}

1条回答
registor
2020-01-03 06:19
可以使用TikZ的decorations.pathreplacing库中的brace装饰来实现。以下几个网站可以参考: 1. [https://tex.stackexchange.com/questions/230566/making-curly-braces-with-tikz/230567](https://tex.stackexchange.com/questions/230566/making-curly-braces-with-tikz/230567 "https://tex.stackexchange.com/questions/230566/making-curly-braces-with-tikz/230567")。 1. [https://tex.stackexchange.com/questions/220503/how-to-shift-curly-brackets/220515](https://tex.stackexchange.com/questions/220503/how-to-shift-curly-brackets/220515 "https://tex.stackexchange.com/questions/220503/how-to-shift-curly-brackets/220515") 1. [https://tex.stackexchange.com/questions/20885/draw-curly-braces-in-tikz](https://tex.stackexchange.com/questions/20885/draw-curly-braces-in-tikz "https://tex.stackexchange.com/questions/20885/draw-curly-braces-in-tikz") 更多细节可以在命令行通过`texdoc tikz`查看其使用说明书。

一周热门 更多>