将 Tikz 代码转换为 PGF

将 Tikz 代码转换为 PGF

我想将 SVG 图像(来自 inkscape)转换为 PGF,以便可以使用 调用该图像include package{pgfornaments}

使用 svg2tikz(另存为 > Latex 与 PStricks 并另存为 > Tikz 代码),但我无法弄清楚如何将该输出转换为 pgfornaments 可以使用的 PGF 代码。

是否有转换器可以去除 Tikz 前端并渲染 PGF 代码?或者,在“导出”>“导出到 Tikz 路径”中是否有可以渲染为 PGF 代码的设置?

我的输出示例(作为 Tikz 代码)

\begin{tikzpicture}[y=0.80pt, x=0.80pt, yscale=-1.000000, xscale=1.000000, inner sep=0pt, outer sep=0pt]
\begin{scope}[rotate around={90.0:(189.94021,85.82203)}]
  \path[draw=black,fill=black,miter limit=4.00,line width=0.032pt]
    (137.4186,46.0503) .. controls (137.5137,51.9889) and (137.1626,63.2730) ..
    (137.5933,63.9338) .. controls (137.8673,64.4875) and (137.9942,64.6226) ..
    (138.9748,64.9034) .. controls (140.2243,65.1767) and (143.6854,65.3049) ..
    (144.1519,64.9899) .. controls (144.5977,64.6890) and (144.8841,61.4342) ..
    (144.9169,61.2122) .. controls (145.0740,56.9180) and (145.2158,53.4952) ..

我的代码示例(PStricks)

%LaTeX with PSTricks extensions
%%Creator: inkscape 0.92.3
%%Please note this file requires PSTricks extensions
\psset{xunit=.5pt,yunit=.5pt,runit=.5pt}
\begin{pspicture}(256,245.44000244)
{
\newrgbcolor{curcolor}{0 0 0}
\pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor]
{
\newpath
\moveto(229.711937,212.13954244)
\curveto(223.773378,212.04444244)(212.489203,212.39554244)(211.828455,211.96491244)
\curveto(211.274754,211.69091244)(211.139625,211.56395244)(210.858804,210.58342244)
\curveto(210.585535,209.33391244)(210.457387,205.87276244)(210.772344,205.40625244)
\curveto(211.073258,204.96053244)(214.328044,204.67404244)(214.550021,204.64133244)
\curveto(218.844224,204.48414244)(222.267088,204.34241244)(227.607715,203.61839244)
\lineto(207.616746,203.61797244)
\curveto(208.805053,204.30850244)(209.063802,204.48101244)(209.929411,205.00819244)
\lineto(209.713273,213.36042244)
\curveto(209.714773,214.08932244)(209.696303,214.16726244)(209.956956,214.55688244)
\curveto(210.159345,214.82979244)(210.407771,215.07556244)(210.988481,215.12536244)
\curveto(221.851601,214.49965244)(226.399447,213.03761244)(229.711932,212.13972244)
\closepath
}

矢量图形示例

\m 21.8584 19.4822 
\c 24.1677 19.4822 29.308 19.6707 34.9033 21.0996 
\c 40.4978 22.5278 42.8549 24.837 42.8549 26.074 
\c 42.8549 27.3123 39.8551 28.5492 36.6661 28.0028 
\c 33.4758 27.455 32.6657 26.3602 32.6657 25.7168 
\c 32.6657 25.0747 33.57 24.5269 34.2612 25.0262 

相关内容