diff options
Diffstat (limited to 'macros/xetex/latex/na-border/tex/na-border.sty')
-rw-r--r-- | macros/xetex/latex/na-border/tex/na-border.sty | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/macros/xetex/latex/na-border/tex/na-border.sty b/macros/xetex/latex/na-border/tex/na-border.sty new file mode 100644 index 0000000000..0f1b9859a0 --- /dev/null +++ b/macros/xetex/latex/na-border/tex/na-border.sty @@ -0,0 +1,28 @@ +%na-border.sty v0.1 encodage : UTF8 +%Créé par PROF : NAAM MOHAMED +%2018/07/08 - to put a border in the page , you must install font CornPop-TTF in windows +%%%%%%%%%%%%%%%%%% +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{na-border}[2018/07/08 version 0.1] +\RequirePackage{amsmath,amsfonts,amssymb,mathrsfs} +\RequirePackage[svgnames,dvipsnames,x11names,]{xcolor} +\RequirePackage{tikz} +\RequirePackage{fancyhdr} +\usetikzlibrary{patterns} +\usetikzlibrary{shapes,shadings,shadows,shapes.geometric,decorations,positioning,arrows,decorations.pathmorphing} +\usetikzlibrary{calc,fadings,shapes.geometric,shapes.misc, decorations.pathmorphing,shadows} +\usetikzlibrary{calc,intersections} +%========================= +\newcommand{\naborder}[2]{ +\begin{tikzpicture}[remember picture, overlay] +\draw[color=#1] ($(current page.north west)+(2cm,-2cm)$) node {\LARGE \corna #2}; +\draw[line width=4pt,#1,double] ($(current page.north west)+(0.77cm,-3.6cm)$)--($(current page.south west)+(0.77cm,+3.67cm)$); +\draw[color=#1] ($(current page.north east)+(-2cm,-2.025cm)$) node[rotate=-90] {\LARGE \corna #2}; +\draw[color=#1] ($(current page.south west)+(1.94cm,2.07cm)$) node[rotate=-270] {\LARGE \corna #2}; +\draw[color=#1] ($(current page.south east)+(-2.1cm,2.02cm)$) node[rotate=-180] {\LARGE \corna #2}; +\draw[line width=4pt,#1,double] ($(current page.north east)+(-0.85cm,-3.64cm)$)--($(current page.south east)+(-0.85cm,+3.67cm)$); +\draw[line width=4pt,#1,double] ($(current page.south west)+(3.64cm,+0.85cm)$)--($(current page.south east)+(-3.65cm,+0.85cm)$); +\draw[line width=4pt,#1,double] ($(current page.north west)+(3.63cm,-0.8cm)$)--($(current page.north east)+(-3.65cm,-0.8cm)$); +\draw[line width=1.2pt,#1] ($(current page.north west)+(0.4cm,-0.4cm)$)rectangle ($(current page.south east)+(-0.5cm,0.5cm)$); +\end{tikzpicture}} +\newcommand{\bordertitle}[3]{\tikz \node [ top color=#1 ,bottom color=#2,draw=black,line width=1pt ,rectangle,double,chamfered rectangle,chamfered rectangle corners={north east,south west},drop shadow] at (0,0) { #3};}
\ No newline at end of file |