yungyuc / bezierfoil

1 stars 2 forks source link

Use pstricks (pst-bezier) to create the schematic in cubic_bezier_curve.eps #5

Open yungyuc opened 1 month ago

yungyuc commented 1 month ago

Use pstricks (e.g., pst-bezier) to parameterize the schematics used in https://github.com/yungyuc/bezierfoil/blob/06c3cbeaaa8d8b55a02fc6a4e0ee247b12f9723e/foil.tex#L158

The pstricks commands can be saved in a .tex file and converted by using pstake.py.

Gene0315 commented 1 week ago

I encountered problems with the use of pst-bezier. I saved the files in following directories:

/usr/local/texlive/texmf-local/tex/pst-bezier.tex
/usr/local/texlive/texmf-local/latex/pst-bezier.sty
/usr/local/texlive/texmf-local/dvips/pstricks/pst-bezier.pro

and then run texhash.

But, I still failed to plot the Bezier curve in its manual p.4

\begin{pspicture}(0,-0.4)(6,2)
\psbcurve(1,2)(5,2)
\end{pspicture}

and I have no idea how to find the reason for failure.

yungyuc commented 1 week ago

Maybe it's about the tex installation (texlive/mactex). My texlive was too old (2021!) and it refused to list packages! I need to refresh it to see if it can be solved by installing from texlive.