LaTeX Templates Bìa sách tuyệt đẹp 9

\documentclass{article}
\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{calc}
\usetikzlibrary{shadows,shadows.blur}
\usepackage{anyfontsize}
\usepackage{pdfrender}
%============================================
\definecolor{myblue3}{RGB}{36, 57, 126}
\definecolor{YankeesBlue}{RGB}{28,40,65}
\definecolor{mygray}{RGB}{112,121,139}
%=================================================


\begin{document}

\pagestyle{empty}

\begin{tikzpicture}[remember picture,overlay]
\path 
(current page.north west) coordinate (A) 
(current page.north east) coordinate (B)
(current page.south east) coordinate (C)
(current page.south west) coordinate (D)
([shift={(0,-5)}]A) coordinate (A1)
([shift={(0,-10)}]A) coordinate (A2) ;
%=============================================
\fill[mygray!30!white] (A) rectangle (C);
%==========================================
\foreach \i in {0,5,10,15}
{
	\pgfmathparse{\i * 4+20}
\fill[blue!\pgfmathresult!red,blur shadow=%
{
	shadow blur steps=5,
	shadow xshift=-0.8mm,
	shadow yshift=-2mm}]
($(A2)+(\i,-\i)$) rectangle +(5,-5);
}

%=======================================
\foreach \i in {0,5,10,15}
{
	\pgfmathparse{\i * 4+10}

\fill[yellow!\pgfmathresult!red,blur shadow=%
{
	shadow blur steps=5,
	shadow xshift=-0.8mm,
	shadow yshift=-2mm}]
($(A1)+(\i,-\i)$) rectangle +(5,-5);
}

%==============================================
%==============================================
%title
\node[anchor=west] at ([shift={(7,-2)}]A1){
	\textpdfrender{
		TextRenderingMode=FillStroke, StrokeColor=myblue3, LineWidth=1.5pt, FillColor=white
	}{\fontsize{120}{120}\sffamily\bfseries\color{YankeesBlue}
		Title
}};
%=====================================================
%=========================================
%Author name and Email
\fill[YankeesBlue]
($(D)+(2,3)$)rectangle +(0.4,-2.5);
\node[anchor=west] at ([shift={(2.5,2)}]D) {\LARGE\sffamily\bfseries\color{YankeesBlue} Author name: };
\node[anchor=west] at ([shift={(2.5,1)}]D) {\LARGE\sffamily\bfseries\color{YankeesBlue} Email: };
%==============================================

\end{tikzpicture}

\end{document}

Để lại một bình luận

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *