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

\documentclass[a4paper]{book}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage[utf8]{vietnam}
\usepackage{tikz}
\usetikzlibrary{calc,shadings,intersections}
\usepackage{tikz-3dplot}
\usepackage[outline]{contour} %tạo đường viền cho chữ
\definecolor{TOP}{RGB}{0, 161, 212}
\definecolor{BLACKBLUE}{RGB}{0, 12, 49}
\definecolor{WHITEBLUE}{RGB}{0, 108, 148}
\definecolor{GRAY}{RGB}{179, 179, 179}
\definecolor{BOTTOM}{RGB}{154, 192, 45}
\pagecolor{white}
\definecolor{xanh}{RGB}{147,180,140}
\definecolor{vien}{RGB}{180,199,178}
\definecolor{leftcolor}{RGB}{33,84,51}
\definecolor{rightcolor}{RGB}{199,218,195}
\definecolor{bongcolor}{RGB}{121,121,121}
\definecolor{topgray}{RGB}{206,206,206}
\definecolor{sidegray}{RGB}{179,179,179}
\definecolor{rightgray}{RGB}{214,214,214}
\def\r{5}
\def\n{12}
\pgfmathsetmacro{\g}{180/\n}
\pgfmathsetmacro{\x}{sqrt(2)*\r*sin(\g)}
\newcommand{\hv}[1]{
\ifnum #1=0
\else
\begin{scope}
\foreach \j/\mau in {0/cyan,30/orange,60/yellow,90/violet!40!yellow,120/magenta,150/{blue!30!green},180/green,210/{red!70!green},240/pink,270/red!70!pink,300/blue,330/cyan,360/violet}{
\fill[\mau!70, draw=cyan,rotate =\j](\r,0)--++(60:\x)--++(150:\x)--++(240:\x)--cycle;
}
\end{scope}
\pgfmathtruncatemacro{\k}{#1-1}
\begin{scope}[rotate=\g,scale=1/(sqrt(2))]
\hv{\k}
\end{scope}
\fi
}
\begin{document}
\thispagestyle{empty}
\begin{tikzpicture}[remember picture, overlay,transform shape]
%%Fill back ground
\fill[yellow!10]([shift={(0,-4)}]current page.north east)rectangle(current page.south west);
\foreach \i in{0,5,...,360}
\draw[cyan](current page.north west)..controls++(\i:10)and++(160+\i:10)..(current page.south west);
\fill[green!10!cyan](current page.north east) rectangle([shift={(0,-4)}]current page.north west);
\fill[green!10!cyan]([shift={(0,3)}]current page.south east)rectangle(current page.south west)++(0,4);
%% Node information
\path(current page.north east)--([shift={(0,-4)}]current page.north west)node[pos=0.5]
{\bfseries\color{black}\fontfamily{pbk}\fontsize{20pt}{22pt}\selectfont Author 2023}
;
\path (current page.south west)--([shift={(0,3)}]current page.south east)node[pos=0.5,scale=2]{\textit{Tháng 8/ 2023}};
\begin{scope}
\clip ($(current page.center)+(-7,-1)$)rectangle($(current page.center)+(10,5)$);
\node at ($(current page.center)+(-6,1.3)$)[right,scale=2,shift={(0.45,-0.35)},xslant=0.75,yscale=.5,,xscale=1.25,opacity=0.3]{\contour{magenta}{\bfseries\color{gray}\fontfamily{qag}\fontsize{40pt}{42pt}\selectfont TOÁN 10}};
\end{scope}
\begin{scope}
\clip ($(current page.center)+(-6,-1)$)rectangle($(current page.center)+(10,3)$);
\node at ($(current page.center)+(-6,1.3)$)[right,scale=2,xscale=1.25]{\contour{green}{\bfseries\color{teal}\fontfamily{qag}\fontsize{40pt}{42pt}\selectfont TOÁN 10}};
\end{scope}
\node at ($(current page.center)+(-5.5,-1.2)$)[right]{\bfseries\color{red}\fontfamily{qag}\fontsize{28pt}{30pt}\selectfont Chuyên đề Toán 10 mới};
%% Pics
\tikzset{tamgiac/.pic={
\def\a{0.75}
\def\r{1.5}
\pgfmathsetmacro{\l}{2*\r*sin(60)}
\foreach \g/\mau in {0/magenta!50,120/cyan,240/green!70}{
\begin{scope}[rotate=\g]
\path(-150:\r)coordinate(A)--(-30:\r)coordinate(B)--(90:\r)coordinate(C);
\fill[\mau](B)--(A)--([turn]60:\a)--([turn]120:{\l+3*\a})--([turn]120:{\l+4*\a})--([turn]60:\a)--([turn]120:{\l+3*\a})--cycle;
\end{scope}
}
}}
\tikzset{noncau/.pic={
\def\i{180}
\def\x{80}
\def\a{4}\def\b{0.3*\a}% Thông số e-lip
\def\t{-10}% Góc tiếp xúc của mặt cầu và e-lip
\def\i{100}%Vị trí tia quay Am
\pgfmathsetmacro{\m}{\b/(sin(\t)}
\pgfmathsetmacro{\n}{-(\b*sin(\t)-(\a*cos(\t))^2/(\b*sin(\t)-\m)}
\pgfmathsetmacro{\l}{sqrt((\a*cos(\t))^2+(\n-\b*sin(\t))^2)}
\pgfmathsetmacro{\h}{\n+\l-0.5*\b}% Chiều cao
\pgfmathsetmacro{\s}{asin(\b/\h)}
\pgfmathsetmacro{\s}{asin(\b/\h)}%Điểm tiếp xúc của tiếp tuyến với elip
\path({\a*cos(\t)},{\b*sin(\t)})coordinate(A)(0,\n)coordinate(I);%Tâm mặt cầu
\clip(I) circle(\l+0.45);
\shade[shading=color wheel white center,opacity=0.3] let \p1=($(A)-(I)$) in (I) circle ({veclen(\x1,\y1)});
\coordinate (N) at ({\a*cos(\s)}, {\b*sin(\s)});
\coordinate(M) at ({-\a*cos(\s)}, {\b*sin(\s)});
\path(0,0)coordinate(H)(0,\n)coordinate(I)(\a,0)arc(0:{\i}:{\a} and {\b})coordinate(m);
\draw(\t: {\a} and {\b})arc(\t:{-180-\t}:{\a} and {\b});
\path[name path =oy]([shift={(-90:\l)}]I)--(I)--++(90:\l);
\draw[name path=elipmot,dotted,rotate around={\x:(I)}](\l,\n)arc(0:-180:{\l} and {0.3*\l});
\draw[name path=eliphai,rotate around={\x:(I)}](\l,\n)arc(0:180:{\l} and {0.3*\l});
\path[name intersections ={ of = oy and elipmot,by={B}}];
\path[name intersections ={ of = oy and eliphai,by={A}}];
\shade[shading=color wheel white center](\t: {\a} and {\b})arc(\t:\s:{\a} and {\b})--(A)--(M)arc(180+\t:360+\t:{\a} and {\b});
\draw[dotted](\t: {\a} and {\b})arc(\t:{180-\t}:{\a} and {\b})(N)--(A)--(B)(H)--(N)(m)--(A);
\draw[dotted,rotate around={\x:(I)}](\l,\n)arc(0:-180:{\l} and {0.3*\l});
\draw[rotate around={\x:(I)}](\l,\n)arc(0:180:{\l} and {0.3*\l});
\foreach \d/\g in{B/-90,A/90,M/120,I/40,H/-135,m/190}
\draw[fill=black](\d)circle(1pt)node[shift={(\g:0.35)}]{$\d$};
}}
\tikzset{sucsac/.pic={
\begin{scope}[rounded corners=5mm]
\def\a{3}
\path(0,0)coordinate(A)++(-30:0.85*\a)coordinate(B)(1.5*\a,0)coordinate(C)($(A)+(C)-(B)$)coordinate(D);
\path[shift={(0,\a)}](0,0)coordinate(A')++(-30:0.85*\a)coordinate(B')(1.5*\a,0)coordinate(C')($(A')+(C')-(B')$)coordinate(D');
\fill[ball color=gray!30,draw=gray](A)--(A')--(D')--(C')--(C)--(B)--cycle;
\fill[ball color=cyan!10,draw=teal](B)--(C)--(C')--(B')--cycle (A')--(B')--(C')--(D')--cycle (A)--(A')--(B')--(B)--cycle;
\fill[ball color=red,yscale=0.5,draw=red!30]($(A')!0.5!(C')$)circle(0.25*\a)($(A')!0.5!(C')$)circle(0.25*\a);
\path($(A')!0.5!(B')$)coordinate(M')($(A)!0.5!(B)$)coordinate(M);
\fill[ball color=red,yslant=-0.3,,draw=red!30]($(M)!1/3!(M')$)circle(0.125*\a)($(M)!2/3!(M')$)circle(0.125*\a);
\path($(B')!1/3!(C')$)coordinate(N')($(B) !1/3!(C)$)coordinate(N)($(B')!2/3!(C')$)coordinate(P')($(B)!2/3!(C)$)coordinate(P);
\fill[ball color=red,yslant=0.3,draw=red!30]($(N)!1/3!(N')$)circle(0.1*\a)($(N)!2/3!(N')$)circle(0.1*\a)($(P)!1/3!(P')$)circle(0.1*\a)($(P)!2/3!(P')$)circle(0.1*\a);
\end{scope}
}}
\tikzset{Hypebol/.pic={
\def\r{2}
\def\h{2}
\tdplotsetmaincoords{70}{110}
\begin{scope}[tdplot_main_coords,join=round,cap=round]
\draw[magenta](0,0,0)circle(\r);
\def\y{.75}
\foreach \t in{0,5,...,355}{
\fill[opacity=0.55]({\r*cos(\t)},{\r*sin(\t)},0)--(0,0,\h)--({\r*cos(\t+5)},{\r*sin(\t+5)},0)--cycle;
}
\fill[yellow,opacity=0.5,draw=teal,samples=100,domain=-sqrt((\r)^2-(\y)^2):sqrt((\r)^2-(\y)^2)]plot(\x,\y,{\h*(\r-sqrt((\x)^2+(\y)^2))/\r})--cycle;
%\def\y{2}
\foreach \t in{0,5,...,355}{
\fill[opacity=0.55]({\r*cos(\t)},{\r*sin(\t)},2*\h)--(0,0,\h)--({\r*cos(\t+5)},{\r*sin(\t+5)},2*\h)--cycle;
}
\fill[yellow,opacity=0.5,draw=teal,samples=100,domain=-sqrt((\r)^2-(\y)^2):sqrt((\r)^2-(\y)^2)]plot(\x,\y,{-\h*(\r-sqrt((\x)^2+(\y)^2))/\r+2*\h})--cycle;
\draw[magenta](0,0,2*\h)circle(\r);
\end{scope}
}}
\tikzset{Parabol/.pic={
\def\y{-0.1}
\def\r{2}
\def\h{2}
\pgfmathsetmacro{\l}{sqrt((\r)^2+(\h)^2)}
\pgfmathsetmacro{\ll}{\l*(\r+\y)/(2*\r)}
\pgfmathsetmacro{\xmin}{-sqrt((\r)^2-(\y)^2)}
\pgfmathsetmacro{\a}{-\ll/((\xmin)^2)}
\pgfmathsetmacro{\goc}{90+atan(\h/\r)}
\tdplotsetmaincoords{70}{120}
\begin{scope}[tdplot_main_coords,join=round,cap=round]
\draw(0,0,0)circle(\r);
\tikzset{Non/.pic={
\foreach \t in{0,5,...,355}{
\fill[opacity=0.6]({\r*cos(\t)},{\r*sin(\t)},0)--(0,0,\h)--({\r*cos(\t+5)},{\r*sin(\t+5)},0)--cycle;
}
\fill[yellow,draw=teal,samples=100,domain=\xmin:-\xmin]plot(\x,{\y+cos(\goc)*\a*((\x)^2-(\xmin)^2)},{sin(\goc)*\a*((\x)^2-(\xmin)^2)})--cycle;
\draw[magenta](0,0,2*\h)circle(\r);
}}
\path(0,0,0)pic{Non}(0,0,2*\h)pic[rotate=180]{Non};
\draw[magenta](0,0,2*\h)circle(\r);
\end{scope}
}}
\tikzset{triangle/.pic={
\def\a{4}
\def\b{0.5*\a}
\path(1.5*\a,{sqrt(3)*\a/3})coordinate(I);
\foreach \i/\mau/\mauv/\mauu/\mauvv in{0/red/green/green/cyan,120/green/cyan/cyan/red,240/cyan/red/red/green}{
\begin{scope}[rotate around ={\i:(I)}]
\path(-120:\a)--(0,0)--++(2.5*\a,0)--++(-60:\b)coordinate(M)--++(-120:\b)coordinate(N)--++(-60:\a)coordinate(P)--++(60:\b)coordinate(Q)++(120:\b)coordinate(R)--++(60:\b)coordinate(S);
\fill[\mauv](M)--(N)--(P)--(Q)--(R)--(S)--cycle;
\path (0,0)++(0:4*\a)--++(-120:\b)--++(180:\b)(0,0)++(0:4*\a)--++(0:\b)coordinate(A)--++(-60:\a)coordinate(B)--++(-120:\a)coordinate(C)--++(180:\a)--++(120:\a)--++(0:\a)coordinate(D)--++(-60:\a);
\fill[\mauu](A)--(B)--(C)--(D)--cycle;
\fill[\mau](-120:\a)--++(0:3*\a)--++(-60:\a)--++(180:3*\a)--cycle;
\fill[\mauvv](-120:\a)--(0,0)--++(2.5*\a,0)--++(-60:\b)--++(-120:\b)--cycle;
\fill[\mau](D)--++(-60:\a)--++(180:\a)--++(120:\a)--cycle;
\fill[\mauvv](D)--++(60:\a)--++(180:\b)--++(-120:\b)--++(180:\b)--++(-120:\b)--cycle;
\end{scope}}
}}
%%Set pics
\path ([shift={(-3,-2)}]current page.north east)node[scale=0.25]{
\tikz{\hv{15}
}};
\path ([shift={(-3,-8)}]current page.center)pic[green,scale=0.8]{Hypebol};
\path ([shift={(0,5)}]current page.center)pic[scale=0.75,rotate=45]{sucsac};
\path ([shift={(7.5,-8)}]current page.center)pic[green,scale=0.8,opacity=0.5]{Parabol};
\path ([shift={(1.35,-7.2)}]current page.center)pic[scale=0.15][green,opacity=0.8]{triangle};
\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 *