KTUGFaq
KTUG FAQ
To criticize the incompetent is easy; it is more difficult to criticize the competent.
FrontPage › Asymptote
r1.1°ú ÇöÀç ¹öÀüÀÇ Â÷ÀÌÁ¡
@@ -3,3 +3,54 @@
http://asymptote.sourceforge.net/doc/Description.htmlinspired by '''MetaPost''', with a much cleaner, powerful C++-like programming syntax and floating-point numerics;
=== Gallery ===
http://asymptote.sourceforge.net/gallery/
=== Asymptote and LaTeX ===
http://asymptote.sourceforge.net/doc/LaTeX-usage.html
http://www.dse.nl/~dario/projects/asylatex/
=== Sample ===
{{{
%% pdflatex -> asy -> pdflatex
%%
\documentclass[12pt]{article}
\usepackage{kotex}
\usepackage{asymptote}
\begin{document}
(º°·Î ¾È) °£´ÜÇÑ 3D ¿¹Á¦.
\begin{center}
\begin{asy}[height=8cm,attach=false]
// sinc.asy
import graph3;
import contour;
currentprojection=orthographic(1,-2,1);
currentlight=(1,-1,0.5);
size(12cm,0);
real sinc(pair z) {
real r=2pi*abs(z);
return r != 0 ? sin(r)/r : 1;
}
draw(lift(sinc,contour(sinc,(-2,-2),(2,2),new real[] {0})),red);
draw(surface(sinc,(-2,-2),(2,2),Spline),lightgray+opacity(0.5));
xaxis3("$x$",Bounds,InTicks);
yaxis3("$y$",Bounds,InTicks(beginlabel=false));
zaxis3("$z$",Bounds,InTicks);
\end{asy}
\end{center}
\end{document}
}}}
----
CategoryGraphicTools
inspired by MetaPost, with a much cleaner, powerful C++-like programming syntax and floating-point numerics;
[ÆíÁý]
Sample ¶
%% pdflatex -> asy -> pdflatex %% \documentclass[12pt]{article} \usepackage{kotex} \usepackage{asymptote} \begin{document} (º°·Î ¾È) °£´ÜÇÑ 3D ¿¹Á¦. \begin{center} \begin{asy}[height=8cm,attach=false] // sinc.asy import graph3; import contour; currentprojection=orthographic(1,-2,1); currentlight=(1,-1,0.5); size(12cm,0); real sinc(pair z) { real r=2pi*abs(z); return r != 0 ? sin(r)/r : 1; } draw(lift(sinc,contour(sinc,(-2,-2),(2,2),new real[] {0})),red); draw(surface(sinc,(-2,-2),(2,2),Spline),lightgray+opacity(0.5)); xaxis3("$x$",Bounds,InTicks); yaxis3("$y$",Bounds,InTicks(beginlabel=false)); zaxis3("$z$",Bounds,InTicks); \end{asy} \end{center} \end{document}