如何改进此 tex 文件(封面框架)

如何改进此 tex 文件(封面框架)
    \documentclass[12pt,a4paper]{report}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\usepackage{pgfplots,tikz,enumerate,array,fancyhdr,enumitem,fancybox,graphicx,amsfonts,amsmath,amssymb,amsthm,mathrsfs}
\usepackage{showexpl}
\usepackage{float}
\usetikzlibrary{positioning,arrows,shapes}
\usepackage{caption}

\usepackage{xcolor}
\usepackage{titlesec}
\usepackage{float}
\usepackage{esvect}
\usepackage{wrapfig}



\usepackage{graphicx}

\usepackage[left=2cm,right=3cm,top=2cm,bottom=2.5cm]{geometry} 


\thispagestyle{empty}

%===============================


\usepackage{fancybox}
%======================================================== 
% languages & fonts===========================================

%%
%=========================================================



\usepackage[outline]{contour}
\def\z~#1~#2~#3~#4~#5~{
\node [rotate=#1]at (#2:#3){\pgfornament[width=#4cm,color=red]{#5}};
}
\def\s{%
\tikz{
\draw [line width=2pt](-4,0)-|(0,4);
\draw [line width=1pt](-4,0.14)-|(-0.14,4);
\draw [line width=2pt](-4,0.48)-|(-3.2,1.2)arc(-90:0:1)arc(-90:0:1)-|(-0.48,4);
\draw [line width=1pt](-4,0.38)-|(-3.08,1.1)arc(-90:0:1)arc(-90:0:1)-|(-0.38,4);
\draw[line width=6mm,color=white](135:2.8)+(-0.5,-0.5)--+(.5,.5);
\z~90~135~2.1~2.5~54~
\z~180~102~2.93~.8~55~
\z~-90~168~2.93~.8~56~
\z~0~94.5~5~1~67~
\z~90~178.5~5~1~67~
\z~90~91~16~15~83~
\z~90~92~7.5~6~85~
}
}
\def\r{%
\tikz{
\draw [line width=2pt](-4,0)-|(0,4);
\draw [line width=1pt](-4,0.14)-|(-0.14,4);
\draw [line width=2pt](-4,0.48)-|(-3.2,1.2)arc(-90:0:1)arc(-90:0:1)-|(-0.48,4);
\draw [line width=1pt](-4,0.38)-|(-3.08,1.1)arc(-90:0:1)arc(-90:0:1)-|(-0.38,4);
\draw[line width=6mm,color=white](135:2.8)+(-0.5,-0.5)--+(.5,.5);
\z~90~135~2.1~2.5~54~
\z~180~102~2.93~.8~55~
\z~-90~168~2.93~.8~56~
\z~0~94.5~5~1~67~
\z~90~178.5~5~1~67~
}
}
\def\t{
\tikz{\filldraw[rounded corners=5mm,draw=black!50!white,inner color=white,outer color=black](-4.5,-0.1)to[bend right=5](-2,0.5)--(2,.5)to[bend right=5,sharp corners](4.3,0)to[bend left=5](2,-.5)--(-2,-.5)to[bend left=5]cycle;
\filldraw[rounded corners=5mm,draw=red!50!white,inner color=black,outer color=black](4.5,-0.1)to[bend right=5](2,0.5)--(-2,.5)to[bend left=5,sharp corners](-4.3,0)to[bend left=5](-2,-.5)--(2,-.5)to[bend left=5]cycle;}
}

\parindent=0mm

\begin{document}

\begin{tikzpicture}[overlay,remember picture]
\node at ([shift={(-3.6,12.3)}]current page.south east){\s};
\node [rotate=180]at ([shift={(3.6,-12.3)}]current page.north west){\s};
\node [rotate=90]at ([shift={(-3.6,-3.6)}]current page.north east){\r};
\node [rotate=-90]at ([shift={(3.6,3.6)}]current page.south west){\r};
\node [yscale=0.6,scale=0.8]at ([yshift=-1cm]current page.north){\t};
\node [yscale=0.6,scale=0.8]at ([yshift=1cm]current page.south){\t};
\node at ([shift={(0,-5.2cm)}]current page.north);
\end{tikzpicture}

\end{document}

答案1

在此处输入图片描述

 \documentclass[12pt,a4paper]{report}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\usepackage{pgfplots,tikz,enumerate,array,fancyhdr,enumitem,fancybox,graphicx,amsfonts,amsmath,amssymb,amsthm,mathrsfs}
\usepackage{showexpl}
\usepackage{float}
\usetikzlibrary{positioning,arrows,shapes}
\usepackage{caption}

\usepackage{xcolor}
\usepackage{titlesec}
\usepackage{float}
\usepackage{esvect}
\usepackage{wrapfig}



\usepackage{graphicx}

\usepackage[left=2cm,right=3cm,top=2cm,bottom=2.5cm]{geometry} 


\thispagestyle{empty}

%===============================


\usepackage{fancybox}
%======================================================== 
% languages & fonts===========================================

%%
%=========================================================



\usepackage[outline]{contour}
\def\z~#1~#2~#3~#4~#5~{
\node [rotate=#1]at (#2:#3){\pgfornament[width=#4cm,color=red]{#5}};
}
\def\s{%
\tikz{
\draw [line width=2pt](-4,0)-|(0,4);
\draw [line width=1pt](-4,0.14)-|(-0.14,4);
\draw [line width=2pt](-4,0.48)-|(-3.2,1.2)arc(-90:0:1)arc(-90:0:1)-|(-0.48,4);
\draw [line width=1pt](-4,0.38)-|(-3.08,1.1)arc(-90:0:1)arc(-90:0:1)-|(-0.38,4);
\draw[line width=6mm,color=white](135:2.8)+(-0.5,-0.5)--+(.5,.5);
% \z~90~135~2.1~2.5~54~
% \z~180~102~2.93~.8~55~
% \z~-90~168~2.93~.8~56~
% \z~0~94.5~5~1~67~
% \z~90~178.5~5~1~67~
% \z~90~91~16~15~83~
% \z~90~92~7.5~6~85~
}
}
\def\r{%
\tikz{
\draw [line width=2pt](-4,0)-|(0,4);
\draw [line width=1pt](-4,0.14)-|(-0.14,4);
\draw [line width=2pt](-4,0.48)-|(-3.2,1.2)arc(-90:0:1)arc(-90:0:1)-|(-0.48,4);
\draw [line width=1pt](-4,0.38)-|(-3.08,1.1)arc(-90:0:1)arc(-90:0:1)-|(-0.38,4);
\draw[line width=6mm,color=white](135:2.8)+(-0.5,-0.5)--+(.5,.5);
% \z~90~135~2.1~2.5~54~
% \z~180~102~2.93~.8~55~
% \z~-90~168~2.93~.8~56~
% \z~0~94.5~5~1~67~
% \z~90~178.5~5~1~67~
}
}
\def\t{
\tikz{\filldraw[rounded corners=5mm,draw=black!50!white,inner color=white,outer color=black]
              (-4.5,-0.1)to[bend right=5](-2,0.5)--(2,.5)to[bend right=5,sharp corners](4.3,0)to[bend left=5](2,-.5)--(-2,-.5)to[bend left=5]cycle;
\filldraw[rounded corners=5mm,draw=red!50!white,inner color=black,outer color=black]
              (4.5,-0.1)to[bend right=5](2,0.5)--(-2,.5)to[bend left=5,sharp corners](-4.3,0)to[bend left=5](-2,-.5)--(2,-.5)to[bend left=5]cycle;}
}

% \parindent=0mm

\begin{document}

\begin{tikzpicture}[overlay,remember picture]
\node at ([shift={(-3,3)}]current page.south east){\s};
\node [rotate=180]at ([shift={(3,-3)}]current page.north west){\s};
\node [rotate=90]at ([shift={(-3,-3)}]current page.north east){\r};
\node [rotate=-90]at ([shift={(3,3)}]current page.south west){\r};
\node [yscale=0.6,scale=0.8]at ([yshift=-1cm]current page.north){\t};
\node [yscale=0.6,scale=0.8]at ([yshift=1cm]current page.south){\t};
\node at ([shift={(0,-5.2cm)}]current page.north){};
\end{tikzpicture}

\end{document}

相关内容