输出SVG原创
将默认的pdf
转为svg
。参考链接 (opens new window),使用的是dvisvgm
相关设置请看设置
latex
代码格式:
\documentclass[dvisvgm]{standalone} %使用 dvisvgm 生成 SVG
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[>=latex] % [>=latex] 修改 箭头样式
\draw[->](-1,0)--(4,0)node[right]{$x$}; % [->] 箭头在右 x轴
\draw[->](0,-1)--(0,4)node[right]{$y$}; % [->] 箭头在右 y轴
\node at (-.2,-.2){$O$};
% \draw[->](0,-1)--(0,4)node[right]{$y$};
% \draw[rounded corners] (1,3)--(2,2)--(4,5);
\end{tikzpicture}
\end{document}
上次更新: 2022/08/23, 18:12:45