找回密码
 快速注册
搜索
查看: 815|回复: 8

不规则阴影怎么加?

[复制链接]

66

主题

416

回帖

3566

积分

积分
3566

显示全部楼层

Tesla35 发表于 2020-4-14 12:08 |阅读模式
阴影.png
阴影2.png
  1. \begin{figure}[!ht]
  2.         \flushright
  3.         \begin{tikzpicture}[scale=0.8,>=latex']
  4.         \tikzstyle{every node}=[font=\small]
  5.        
  6.         \coordinate (A) at (0,4);
  7.         \coordinate (B) at (3,0);
  8.         \coordinate (C) at (0,0);
  9.         \coordinate (D) at (0,1);
  10.         \coordinate (E) at (1,0);
  11.         \coordinate (O) at (1,1);
  12.         \coordinate (P) at (0.8,2.4);
  13.        
  14.         \node[left]at(A){$A$};
  15.         \node[right]at(B){$B$};
  16.         \node[below left]at(C){$C$};
  17.         \node[left]at(D){$D$};
  18.         \node[below]at(E){$E$};
  19.         \node[left]at(P){$P$};
  20.         \draw(A)--(B)--(C)--(A);
  21.         \draw[->] (C)--(P);
  22.         \draw (O)circle (1);
  23.         \end{tikzpicture}
  24. \end{figure}
复制代码

730

主题

1万

回帖

9万

积分

积分
93593
QQ

显示全部楼层

kuing 发表于 2020-4-14 16:15
easy执
  1. \begin{tikzpicture}[scale=0.8,>=latex']
  2.         \tikzstyle{every node}=[font=\small]
  3.        
  4.         \coordinate (A) at (0,4);
  5.         \coordinate (B) at (3,0);
  6.         \coordinate (C) at (0,0);
  7.         \coordinate (D) at (0,1);
  8.         \coordinate (E) at (1,0);
  9.         \coordinate (O) at (1,1);
  10.         \coordinate (P) at (0.8,2.4);
  11.         \filldraw[fill=gray!50,even odd rule]
  12.         (A)--(B)--(C)--cycle
  13.         (O)circle (1);
  14.         \draw[->] (C)--(P);
  15.         \node[left]at(A){$A$};
  16.         \node[right]at(B){$B$};
  17.         \node[below left]at(C){$C$};
  18.         \node[left]at(D){$D$};
  19.         \node[below]at(E){$E$};
  20.         \node[left]at(P){$P$};
  21. \end{tikzpicture}
复制代码

66

主题

416

回帖

3566

积分

积分
3566

显示全部楼层

 楼主| Tesla35 发表于 2020-4-22 14:33
回复 2# kuing

厉害

3149

主题

8386

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65391
QQ

显示全部楼层

hbghlyj 发表于 2023-7-30 13:18
kuing 发表于 2020-4-14 16:15
easy执
\begin{tikzpicture}[scale=0.8,>=latex']


>=latex是默认箭头样式,但>=latex'是什么呢?

730

主题

1万

回帖

9万

积分

积分
93593
QQ

显示全部楼层

kuing 发表于 2023-7-30 14:56
hbghlyj 发表于 2023-7-30 13:18
是默认箭头样式,但是什么呢?


查了一下,箭头样式 latex' 是旧版 tikz / pgf V2.10 时期的 arrows library 给出的。
后来虽然已经不推荐使用,但仍然兼容。

-latex 与 -latex' 的区别:


参见:tug.org/svn/texlive/trunk/Master/texmf-dist/doc/generic/pgf/pgfm ... on=20236&view=co(第 256 页)
(顺便问一下,是不是可以在链接后面加个 #XXX 使得点进去自动跳到相应页面?)

tikz / pgf 历史版本:
tug.org/svn/texlive/trunk/Master/texmf-dist/doc/generic/pgf/pgfmanual.pdf?view=log

3149

主题

8386

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65391
QQ

显示全部楼层

hbghlyj 发表于 2023-7-30 15:59
kuing 发表于 2023-7-30 14:56
(顺便问一下,是不是可以在链接后面加个 #XXX 使得点进去自动跳到相应页面?)


可以加#subsection.23.2
tug.org/svn/texlive/trunk/Master/texmf-dist/doc/generic/pgf/pgfm ... w=co#subsection.23.2

730

主题

1万

回帖

9万

积分

积分
93593
QQ

显示全部楼层

kuing 发表于 2023-7-30 16:14
hbghlyj 发表于 2023-7-30 15:59
可以加#subsection.23.2
https://tug.org/svn/texlive/trunk/Master/texmf-dist/doc/generic/pg ...

怎么知道可以加这个,从哪里可以查到?

3149

主题

8386

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65391
QQ

显示全部楼层

hbghlyj 发表于 2023-7-30 19:52
kuing 发表于 2023-7-30 16:14
怎么知道可以加这个,从哪里可以查到?


没有找到好办法我是靠运气在Inspect PDF file翻到的subsection
Screenshot 2023-07-30 at 19-50-46 Inspect PDF file - Free online tool.png
同理可以猜到#page.256是到达第256页的
tug.org/svn/texlive/trunk/Master/texmf-dist/doc/generic/pgf/pgfm ... amp;view=co#page.256

点评

圆奶乳齿  发表于 2023-7-30 20:21

手机版|悠闲数学娱乐论坛(第3版)

GMT+8, 2025-3-4 12:28

Powered by Discuz!

× 快速回复 返回顶部 返回列表