找回密码
 快速注册
搜索
查看: 57|回复: 3

用TikzEdt重制一个图片

[复制链接]

3149

主题

8386

回帖

6万

积分

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

积分
65391
QQ

显示全部楼层

hbghlyj 发表于 2022-8-25 10:13 |阅读模式
tikzedt.org/
打开TikzEdt, 保存为tex, 这里是D:\New Tikzfile.tex
把图片保存在同一目录下,这里是D:\d.png
把Grid (网格尺寸)设为0.1
插入图片:
  1. \begin{tikzpicture}
  2. \node[inner sep=0pt] at (0,0){\includegraphics{./d.png}};
  3. \end{tikzpicture}
复制代码

黎曼曲面.png
用Node工具, 点击图片的半圆的直径两端
编辑器出现
  1. \node at (-2.6,-2.8) {};
  2. \node at (2.6,-2.8) {};
复制代码

将节点命名为a和b
  1. \node (a) at (-2.6,-2.8) {};
  2. \node (b) at (2.6,-2.8) {};
复制代码

在编辑器写入\fill半圆的代码
  1. \fill[color=gray!80] (b) arc(0:180:2.6) (a);
复制代码
黎曼曲面.png
用Ellipse工具, 按Ctrl画圆, 点击图片中的圆的中心和圆上的一点.
编辑器出现
  1. \draw  (0,1.1) circle (1.7);
复制代码

用Select and move工具, 拖动新创建的节点, 调整圆心的位置.
在编辑器把自动生成的\draw改为\fill
  1. \fill[color=gray!80]  (0,1.1) circle (1.7);
复制代码

黎曼曲面.png
把插入的图片删除,得到最终代码
  1. \begin{tikzpicture}
  2. \node (a) at (-2.6,-2.8) {};
  3. \node (b) at (2.6,-2.8) {};
  4. \fill[color=gray!80] (b) arc(0:180:2.6) (a);
  5. \fill[color=gray!80]  (0,1.1) circle (1.7);
  6. \end{tikzpicture}
复制代码
完毕
黎曼曲面.png

3149

主题

8386

回帖

6万

积分

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

积分
65391
QQ

显示全部楼层

 楼主| hbghlyj 发表于 2022-8-26 06:55
•        Grid: The grid spacing can be set in the appropriate toolbar. Alternatively, ALT temporarily sets the grid spacing to 0, while ALT+SHIFT cuts it in half.
•        Snippets: Snippets can be inserted as styles, as full code samples, or as-is. You can create your own snippets under Settings->SnippetManager
•        Snippet thumbnails are created from the snippet's Latex code. You can (re-)create snippet thumbnails in the SnippetManager.
•        Styles: You can set styles to be used with the WYSIWYG tools in the tools toolbar.
•        TikzEdt supports both standalone document (containing \documentclass{} etc.) and tikz pictures to be \input{}-ted into a master document. However for correct bounding box determination you should use \PreviewEnvironment{tikzpicture} in your standalone documents.
•        Press Ctrl to open recent files in the File menu in a new window.
•        You can run TikzEdt in portable mode by supplying the -p or --portable command line switch. In this case TikzEdt stores its settings in the application folder, which must be writable.

3149

主题

8386

回帖

6万

积分

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

积分
65391
QQ

显示全部楼层

 楼主| hbghlyj 发表于 2022-8-26 07:12
那个Edge tool为什么是向上的光标呢? 点击时很不方便.

为什么--cycle没效果? 比如 \draw (v1)--(v2)--cycle; 只画出(v1)到(v2), 没有闭合路径.

3149

主题

8386

回帖

6万

积分

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

积分
65391
QQ

显示全部楼层

 楼主| hbghlyj 发表于 2022-8-31 10:07
  1. \makeatletter
  2. \f@size
复制代码

可以发现http://i.upmath.me默认的字号为10.95
所以从TikzEdt粘贴到这里,需要加上
  1. \fontsize{10}{12}\selectfont
复制代码

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

GMT+8, 2025-3-4 15:46

Powered by Discuz!

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