Forgot password?
 Create new account
View 314|Reply 3

用TikzEdt重制一个图片

[Copy link]

3147

Threads

8493

Posts

610K

Credits

Credits
66163
QQ

Show all posts

hbghlyj Posted at 2022-8-25 10:13:04 |Read mode
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}
Copy the Code

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

将节点命名为a和b
  1. \node (a) at (-2.6,-2.8) {};
  2. \node (b) at (2.6,-2.8) {};
Copy the Code

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

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

黎曼曲面.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}
Copy the Code
完毕
黎曼曲面.png

3147

Threads

8493

Posts

610K

Credits

Credits
66163
QQ

Show all posts

 Author| hbghlyj Posted at 2022-8-26 06:55:50
•        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.

3147

Threads

8493

Posts

610K

Credits

Credits
66163
QQ

Show all posts

 Author| hbghlyj Posted at 2022-8-26 07:12:35
那个Edge tool为什么是向上的光标呢? 点击时很不方便.

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

3147

Threads

8493

Posts

610K

Credits

Credits
66163
QQ

Show all posts

 Author| hbghlyj Posted at 2022-8-31 10:07:50
  1. \makeatletter
  2. \f@size
Copy the Code

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

手机版Mobile version|Leisure Math Forum

2025-4-20 22:26 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list