2012年5月23日 星期三

用 latex 繪製中華民國國旗


中華民國國旗
這是前陣子心血來潮時寫的
規格按照中華民國國徽國旗法
成品預覽如右圖

以下是簡短簡易的 latex code
任何版友皆可享用
這裡有 eps 圖檔的成品

\documentclass{article}
\usepackage{pst-node}
\pagestyle{empty}

\begin{document}
\fcolorbox{white}{white}{%
\pspicture(-6,-4)(6,4)%
\psset{linewidth=1pt,unit=0.1cm}%
%%%%% 滿地紅
\psline*[linecolor=red](-60,-40)(60,-40)(60,40)(-60,40)%

\rput(-30,20){
%%%%% 青天
\psline*[linecolor=blue](-30,-20)(30,-20)(30,20)(-30,20)
%%%%% 白日
\psline*[linecolor=white]%
(15;0)(15;150)(15;300)(15;450)(15;600)(15;750)%
(15;900)(15;1050)(15;1200)(15;1350)(15;1500)(15;1650)(15;1800)%
%%%%% 藍圈
\pscircle*[linecolor=blue](0,0){8.5}
\pscircle*[linecolor=white](0,0){7.5}
}

\endpspicture
}
\end{document}