Tikz求相对位置坐标点的各绝对分量值

2020-03-04 18:10发布

```tex \documentclass{standalone} \usepackage{xeCJK} \usepackage{tikz} \usepackage{color} \begin{do...

```tex \documentclass{standalone} \usepackage{xeCJK} \usepackage{tikz} \usepackage{color} \begin{document} \begin{tikzpicture} \node[draw, align=center] (a) {aaaa\\aaa\\aaaaa\\a}; \fill (a.south east) circle (1pt); \node[below right, align=left] at (a.south east) {我想在这打印加粗这个点的绝对坐标$(x_0,y_0)$ (cm)\\和只打印其中一个分量$x=x_0$ cm\\甚至是极坐标$(\theta_0:r_0)$\\及其分量$\theta=\theta_0$ \textcolor{red}{rad}}; \end{tikzpicture} \end{document} ``` ![](https://pics.latexstudio.net/data/images/202003/7aab6c172d9dd75.png)
2条回答
zhaochongbin
2020-03-27 23:50
一个更简单的方法——使用`let`子句。 ```tex \documentclass[tikz]{standalone} \usepackage{xeCJK} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \node[draw, align=center] (a) {aaaa\\aaa\\aaaaa\\a}; \fill (a.south east) circle (1pt); \node[below right, align=left] at (a.south east) {我想在这打印加粗这个点的绝对坐标$(x_0,y_0)$ (cm)\\和只打印其中一个分量$x=x_0$ cm\\甚至是极坐标$(\theta_0:r_0)$\\及其分量$\theta=\theta_0$ \textcolor{red}{rad}}; \fill[blue] let \p1=(a.south east) in (\p1) circle (2pt) node [above right] {(\x1,\y1), \p1}; \end{tikzpicture} \end{document} ``` ![](https://pics.latexstudio.net/data/images/202003/37e8909b8e13f42.png)

一周热门 更多>