```tex \documentclass[UTF8]{ctexart} \usepackage{tikz} \usetikzlibrary{decorations.pathreplacing,calligraphy} \usepackage{mathdots} \usepackage[paperwidth=55mm,paperheight=36mm,text={52mm,30mm},left=1.5mm,top=0pt]{geometry} \begin{document} \[A_{km}(x)=2^{2^{2^{\iddots^{2^x}}}}\] \[A_{km}(x)=2^{2^{{\tikz[remember picture,minimum height=2mm] \node[inner sep=0.3pt] (n1) {$\scriptscriptstyle 2$};}^{\iddots^{{\tikz[remember picture] \node[inner sep=0.20pt] (n2) {$\scriptscriptstyle 2$};}^x}}}}\] \begin{tikzpicture}[remember picture,overlay] \draw[decorate,decoration={calligraphic brace,amplitude=0.5mm,,raise=3.2pt},ultra thick,line width=0.1mm] (n1.center) -- (n2.center) node[midway,sloped,above=1.5mm,scale=0.4] {$k\!$个}; \end{tikzpicture} \end{document} ``` ![](https://pics.latexstudio.net/data/images/201911/52dacefb28b70ec.png) 求解更好的思路

2 回答2

1
先看一下效果: ![](/static/images/ext/pdf.gif)<a href="https://static.latexstudio.net/data/attach/201911/8c19e105303b519.pdf" target="_blank">mwe_index_two.pdf</a> 再看源码: ```tex %mwe_index_two.tex \input{preamble_QQ2019.tex} \begin{document} \begin{tikzpicture}[decoration=brace] \draw [decorate,thick] (0,7pt) -- (.8cm-1pt,.8cm-1pt); \node[] (A) at (-26pt,0){$A_{km}(x)=2$}; \node[font=\scriptsize] (A1) at (3pt,5pt){$2$}; \node[font=\scriptsize] (A2) at (8pt,8pt){$2$}; \node[font=\scriptsize] (A3) at (15pt,15pt){$\iddots$}; \node[font=\scriptsize] (A4) at (23pt,18pt){$2$}; \node[font=\scriptsize] (A5) at (26pt,21pt){$x$}; \node[font=\scriptsize] (A6) at (8pt,22pt){$k$个}; \draw [decorate,thick] (27pt,26pt) -- (47pt,41pt); \node[font=\scriptsize] (B1) at (30pt,24pt){$2$}; \node[font=\scriptsize] (B2) at (34pt,28pt){$2$}; \node[font=\scriptsize] (B3) at (41pt,35pt){$\iddots$}; \node[font=\scriptsize] (B4) at (47pt,37pt){$2$}; \node[font=\scriptsize] (B5) at (33pt,40pt){$m$个}; \node at (80pt,-2pt) {,}; \draw [decorate,thick] (130pt,7pt) -- (129pt+.8cm,.8cm-1pt); \node[] (C) at (108pt,0){$B_{k}(y)=2$}; \node[font=\scriptsize] (C1) at (133pt,5pt){$2$}; \node[font=\scriptsize] (C2) at (138pt,8pt){$2$}; \node[font=\scriptsize] (C3) at (145pt,15pt){$\iddots$}; \node[font=\scriptsize] (C4) at (153pt,18pt){$2$}; \node[font=\scriptsize] (C5) at (156pt,21pt){$y$}; \node[font=\scriptsize] (C6) at (138pt,22pt){$k$个}; \node at (158pt,-2pt){.}; \end{tikzpicture} \end{document} ```
  • 太直观了,没有编程思想。 – WoodMan 2019-11-29 09:43 回复
  • 旬瞎蒙胡凑出来的。没有什么意义。 – WoodMan 2019-11-29 09:42 回复
0
这样的制作也是可以了, 有个其他的方式, 不过要进行一大堆的代码去调整角度和显示, 还不如 TiKZ 来得快. 其他用户看看有没有更好的方法.

你的回答

请登录后回答

你的回答将会帮助更多人,请务必认真回答问题。