KTUG마당은 KTUG를 방문하는 모든 이용자가 대화를 나누고 소식을 전하는 곳입니다.

  • 로그인 없이 자유롭게 글을 읽고 쓸 수 있는 철학은 처음과 같이 계속됩니다.
  • Team Blog의 글을 이곳 게시판의 "정보글"로 모았습니다. Team blog는 기고자가 올린 글에 질문을 받는 부담을 줄이기 위하여 댓글을 허용하지 않았습니다. 그러나 이곳 게시판으로 모으면서 댓글을 달 수 있습니다. 게시물을 작성하실 때 댓글을 원하지 않으시면 댓글을 허용하시지 않으시기를 바랍니다. 또한 불필요한 소모성 댓글을 달지 않도록 주의하여 주시기를 바랍니다.
  • TeX과 관련된 질문이나 답변은 QnA 마당을 이용하십시오. TeX과 관련된 질문은 지웁니다
  • MathJax를 이용한 수식조판을 사용하실 수 있습니다. 여기를 참조하세요.
  • 스팸 글을 막기 위하여 짧은 시간 내에 다시 글이 등록되는 IP를 막거나, 광고 글을 막기 위하여 금지어로 .com, .net 등을 설정하고 있습니다. 다소간의 불편함이 있으시더라도 양해 바랍니다.
    • 금지어에서 stackexchange, stackoverflow, ctan, overleaf, , github, google.com, gmail.com, .org, .io, sil.org, wiki.com, tistory.com등은 해제하였습니다.
  • 사용하는 편집기는 CKeditor입니다. 편집기에서 [enter]를 누르면 <p> 태그가 들어가고, 문단으로 생각하고 한줄을 비웁니다. 글줄만 바꾸려면 shift-enter 를 누르시면 <BR>가 들어가므로 용도에 맞게 나누어 쓸 수 있습니다.

Progress

Winplot을 이용해봅니다.

사인, 코사인 그래프를 그리고 이를 PicTeX 소스로 내보냅니다. 


extracting_pictex_source_from_Winplot.png


이렇게 얻은 소스 끝에다 \bye를 붙이고 플레인 TeX으로 컴파일하면 되는데, 여기서는 latex 컴파일하도록 조금 바꿨습니다. 


sine_and_cosine_graph_with_Winplot.png


\documentclass{standalone}


\usepackage{pictex} % > tlmgr install pictex in TL2015 scheme-small

% \input prepictex.tex

% \input postpictex.tex


\begin{document}


\beginpicture

\setcoordinatesystem units <0.77670cm,0.77670cm>

\put {\phantom{.}} at -1.72895 -4.84274

\put {\phantom{.}} at -1.72895 4.84277

\put {\phantom{.}} at 8.57105 -4.84274

\put {\phantom{.}} at 8.57105 4.84277

\setlinear

\setshadesymbol <z,z,z,z> ({\fiverm .})

% x axis begin

\putrule from -1.71865 0.00000 to 8.56075 0.00000

\arrow <0.080cm> [0.500,0.900] from 8.53145 0.00000 to 8.54610 0.00000

% x axis end

% x-ticks begin

\putrule from -1.00000 -0.07326 to -1.00000 0.07326

\putrule from 1.00000 -0.07326 to 1.00000 0.07326

\putrule from 2.00000 -0.07326 to 2.00000 0.07326

\putrule from 3.00000 -0.07326 to 3.00000 0.07326

\putrule from 4.00000 -0.07326 to 4.00000 0.07326

\putrule from 5.00000 -0.07326 to 5.00000 0.07326

\putrule from 6.00000 -0.07326 to 6.00000 0.07326

\putrule from 7.00000 -0.07326 to 7.00000 0.07326

\putrule from 8.00000 -0.07326 to 8.00000 0.07326

% x-ticks end

% y axis begin

\putrule from 0.00000 -4.83305 to 0.00000 4.83309

\arrow <0.080cm> [0.500,0.900] from 0.00000 4.80378 to 0.00000 4.81843

% y axis end

% y-ticks begin

\putrule from -0.07326 -4.00000 to 0.07326 -4.00000

\putrule from -0.07326 -3.00000 to 0.07326 -3.00000

\putrule from -0.07326 -2.00000 to 0.07326 -2.00000

\putrule from -0.07326 -1.00000 to 0.07326 -1.00000

\putrule from -0.07326 1.00000 to 0.07326 1.00000

\putrule from -0.07326 2.00000 to 0.07326 2.00000

\putrule from -0.07326 3.00000 to 0.07326 3.00000

\putrule from -0.07326 4.00000 to 0.07326 4.00000

% y-ticks end

\plot 

-1.72895 -0.15749

-1.71434 -0.14305

-1.69973 -0.12857


(중략)


-1.02767 0.51681

-1.01306 0.52927

-0.99845 0.54161

-0.98384 0.55383

-0.00498 0.99999


(중략)


0.00963 0.99995

0.02424 0.99971

8.55644 0.76325

8.57105 0.75373

/

\put {$-1$} [t] at -1.09893 -0.13919

\put {$1$} [t] at 0.95228 -0.13919

\put {$2$} [t] at 1.96323 -0.13919

\put {$3$} [t] at 2.95953 -0.13919

\put {$4$} [t] at 3.95583 -0.13919

\put {$5$} [t] at 4.95213 -0.13919

\put {$6$} [t] at 5.96309 -0.13919

\put {$7$} [t] at 6.95939 -0.13919

\put {$8$} [t] at 7.95569 -0.13919

\put {$-4$} [r] at -0.33706 -3.87565

\put {$-3$} [r] at -0.33706 -2.87926

\put {$-2$} [r] at -0.33706 -1.88287

\put {$-1$} [r] at -0.33706 -0.88648

\put {$1$} [r] at -0.23450 1.12096

\put {$2$} [r] at -0.23450 2.11735

\put {$3$} [r] at -0.23450 3.11374

\put {$4$} [r] at -0.23450 4.11013

\put {$x$} [b] at 8.40989 0.31505

\put {$y$} [lt] at 0.13179 4.81347

\endpicture


\end{document}









XE Login