Last active
November 4, 2023 15:53
-
-
Save LiteHell/43abe5fcb711676d392d8d1900d5e1e5 to your computer and use it in GitHub Desktop.
LaTeX을 이용한 한국식 상장 템플릿
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{minimal} | |
\usepackage{kotex} | |
\usepackage[svgnames]{xcolor} | |
\usepackage{tikz} | |
\usepackage[a4paper, top=100pt, left=80pt, right=80pt, bottom=120pt]{geometry} | |
\usetikzlibrary{calc} | |
\newcommand{\thickframemargin}{40pt} | |
\newcommand{\thickframewidth}{6pt} | |
\newcommand{\thinframemargin}{46pt} | |
\newcommand{\thinframewidth}{1pt} | |
\newcommand{\framecornerradius}{30pt} | |
\newcommand{\framecolor}{Goldenrod} | |
\begin{document} | |
\begin{tikzpicture}[remember picture, overlay] | |
% thick corner | |
\draw[color=\framecolor, line width=\thickframewidth] | |
% north west rounded corner | |
([xshift=\thickframemargin, yshift=-\thickframemargin-2*\framecornerradius] current page.north west) arc (270:450:\framecornerradius) | |
-- ([xshift=\thickframemargin, yshift=-\thickframemargin] current page.north west) arc (180:360:\framecornerradius) | |
% north east rounded croner | |
-- ([xshift=-\thickframemargin-2*\framecornerradius, yshift=-\thickframemargin] current page.north east) arc (180:360:\framecornerradius) | |
-- ([xshift=-\thickframemargin, yshift=-\thickframemargin] current page.north east) arc (90:270:\framecornerradius) | |
% south east rounded corner | |
-- ([xshift=-\thickframemargin, yshift=\thickframemargin+2*\framecornerradius] current page.south east) arc (90:270:\framecornerradius) | |
-- ([xshift=-\thickframemargin, yshift=\thickframemargin] current page.south east) arc (0:180:\framecornerradius) | |
% south west rounded corner | |
-- ([xshift=\thickframemargin+2*\framecornerradius, yshift=\thickframemargin] current page.south west) arc (0:180:\framecornerradius) | |
-- ([xshift=\thickframemargin, yshift=\thickframemargin] current page.south west) arc (270:450:\framecornerradius) | |
% cycle | |
-- cycle; | |
% thin corner | |
\draw[color=\framecolor, line width=\thinframewidth] | |
% north west rounded corner | |
([xshift=\thinframemargin, yshift=-\thinframemargin-2*\framecornerradius] current page.north west) arc (270:360:\framecornerradius) | |
-- ([xshift=\thinframemargin+\framecornerradius, yshift=-\thinframemargin-\framecornerradius] current page.north west) arc (270:360:\framecornerradius) | |
% north east rounded croner | |
-- ([xshift=-\thinframemargin-2*\framecornerradius, yshift=-\thinframemargin] current page.north east) arc (180:270:\framecornerradius) | |
-- ([xshift=-\thinframemargin-\framecornerradius, yshift=-\thinframemargin-\framecornerradius] current page.north east) arc (180:270:\framecornerradius) | |
% south east rounded corner | |
-- ([xshift=-\thinframemargin, yshift=\thinframemargin+2*\framecornerradius] current page.south east) arc (90:180:\framecornerradius) | |
-- ([xshift=-\thinframemargin-\framecornerradius, yshift=\thinframemargin+\framecornerradius] current page.south east) arc (90:180:\framecornerradius) | |
% south west rounded corner | |
-- ([xshift=\thinframemargin+2*\framecornerradius, yshift=\thinframemargin] current page.south west) arc (0:90:\framecornerradius) | |
-- ([xshift=\thinframemargin+\framecornerradius, yshift=\thinframemargin+\framecornerradius] current page.south west) arc (0:90:\framecornerradius) | |
% cycle | |
-- cycle; | |
\end{tikzpicture} | |
\fontsize{16pt}{16pt}\selectfont 제 1 호 | |
\vspace{32pt} | |
\begin{center} | |
\fontsize{48pt}{48pt}\selectfont | |
상\hspace{1.25em}장 | |
\end{center} | |
\vspace{50pt} | |
\fontsize{20pt}{20pt}\selectfont | |
최우수상\hspace{\stretch{1}}홍길동 | |
\vspace{80pt} | |
\begin{center} | |
\fontsize{20pt}{30pt}\selectfont | |
위 사람은 \LaTeXe를 잘 활용하여 타의 모범이 되었으므로 이 상을 수여합니다. | |
\end{center} | |
\vspace{\stretch{1}} | |
\begin{center} | |
\fontsize{20pt}{20pt}\selectfont | |
1970년 1월 1일 | |
\end{center} | |
\vspace{2em} | |
\begin{center} | |
\fontsize{30pt}{30pt}\selectfont | |
\LaTeXe{} 애호가 김철수 | |
\end{center} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment