diff options
Diffstat (limited to 'macros/xetex/latex/na-border')
-rw-r--r-- | macros/xetex/latex/na-border/README.txt | 60 | ||||
-rw-r--r-- | macros/xetex/latex/na-border/doc/codenote.tex | 177 | ||||
-rw-r--r-- | macros/xetex/latex/na-border/doc/lisandsections.tex | 174 | ||||
-rw-r--r-- | macros/xetex/latex/na-border/doc/na-border.pdf | bin | 0 -> 253214 bytes | |||
-rw-r--r-- | macros/xetex/latex/na-border/doc/na-border.tex | 561 | ||||
-rw-r--r-- | macros/xetex/latex/na-border/doc/packages.tex | 40 | ||||
-rw-r--r-- | macros/xetex/latex/na-border/font/CORNPOP.TTF | bin | 0 -> 278196 bytes | |||
-rw-r--r-- | macros/xetex/latex/na-border/font/readme.txt | 38 | ||||
-rw-r--r-- | macros/xetex/latex/na-border/test/test_naborder.pdf | bin | 0 -> 52011 bytes | |||
-rw-r--r-- | macros/xetex/latex/na-border/test/test_naborder.tex | 80 | ||||
-rw-r--r-- | macros/xetex/latex/na-border/tex/na-border.sty | 28 |
11 files changed, 1158 insertions, 0 deletions
diff --git a/macros/xetex/latex/na-border/README.txt b/macros/xetex/latex/na-border/README.txt new file mode 100644 index 0000000000..a0af528b4c --- /dev/null +++ b/macros/xetex/latex/na-border/README.txt @@ -0,0 +1,60 @@ +************* README file for na-border ********************** +ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ + + The + na-border + package + + v0.1 + + 08/07/2018 + +ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ + +Author : NAAM MOHAMED and LAOUIDJI WALID +Maintainer: NAAM MOHAMED and LAOUIDJI WALID +email: naas231083@gmail.com +Licence +------- + +This program can be redistributed and/or modified under the terms +of the LaTeX Project Public License Distributed from CTAN +archives in directory macros/latex/base/lppl.txt. + +********************* ENGLISH ***************************** + +This package use to draw border in page with font CornPop-ttf. +This font is provided to you by Fonts2u.com – the largest online +repository of free fonts for Windows and Mac. + +This package made compatible with the Arabic language and french language (via XeLaTeX/polyglossia). + +Documentation +------------- + +The documentation of the package is in the ZIP file or under the +directory /doc/ in Arabic language. + +Thanks to use na-border .sty. + +************* Fichier README pour na-border ********************** +********************** FRANCAIS ******************************* + +Cette extension est pour dessiner bordure de page avec + CornPop-ttf font qui est un Police gratuite trouvée dans le lien : http://www.fontspace.com/category/frames +Cette extension est utilisable XeLaTeX/polyglossia +pour écrire des documents en arabe et latin . + +Licence +------- + +L'extension peut étre redistribuÃée et/ou modifiée sous les termes +de la licence LaTeX Project Public (voir macros/latex/base/lppl.txt). + +Documentation +------------- + +La documentation de l'extension se trouve dans le fichier ZIP ou +dans dans le répertoire /doc/. + +Merci d'utiliser na-border.sty. diff --git a/macros/xetex/latex/na-border/doc/codenote.tex b/macros/xetex/latex/na-border/doc/codenote.tex new file mode 100644 index 0000000000..c7ea1387c5 --- /dev/null +++ b/macros/xetex/latex/na-border/doc/codenote.tex @@ -0,0 +1,177 @@ +\def\ShadowXshift{0.5ex} +\def\ShadowYshift{-0.5ex} + +\newsavebox{\NotebookBox} + +\makeatletter +\define@key{educnotebook}{spiralspace}{\def\SpiralSpace{#1}} +\define@key{educnotebook}{nbcolorbg}{\def\NbColorBg{#1}} +\define@key{educnotebook}{minorgridcolor}{\def\MinorGridColor{#1}} +\define@key{educnotebook}{majorgridcolor}{\def\MajorGridColor{#1}} +\define@boolkey{educnotebook}{majorgrid}[false]{ +\ifKV@educnotebook@majorgrid + \def\DrawMajorGrid{ + \path[clip,rounded corners=10pt] + ([xshift=-30pt,yshift=20pt]Notebook.north west) rectangle + ([xshift=30pt,yshift=-20pt]Notebook.south east); + \draw[\MajorGridColor,opacity=0.3] + ([xshift=30pt,yshift=-20pt]Notebook.south east) grid[step=10mm] + ([xshift=-30pt,yshift=20pt]Notebook.north west); + } +\else + \def\DrawMajorGrid{\relax} +\fi +} +\define@boolkey{educnotebook}{minorgrid}[false]{ +\ifKV@educnotebook@minorgrid + \def\DrawMinorGrid{ + \path[clip,rounded corners=10pt] + ([xshift=-30pt,yshift=20pt]Notebook.north west) rectangle + ([xshift=30pt,yshift=-20pt]Notebook.south east); + \draw[\MinorGridColor,opacity=0.3] + ([xshift=30pt,yshift=-20pt]Notebook.south east) grid[step=1mm] + ([xshift=-30pt,yshift=20pt]Notebook.north west); + } +\else + \def\DrawMinorGrid{\relax} +\fi +} +\define@choicekey+{educnotebook}{spiralposition}[\val\nr]{left,right,top}[left]{% + \ifcase\nr\relax + \def\SpiralPosition{ + ([xshift=9pt,yshift=7pt-\SpiralOffset-\Valor*\SpiralSpace]Notebook.north west) + } + \def\RotateAngle{0} + \or + \def\SpiralPosition{ + ([xshift=-9pt,yshift=-3pt-\SpiralOffset-\Valor*\SpiralSpace]Notebook.north east) + } + \def\RotateAngle{180} + \def\ShadowXshift{-0.5ex} + \def\ShadowYshift{-0.5ex} + \or + \def\SpiralPosition{ + ([yshift=-19pt,xshift=4pt+\SpiralOffset+\Valor*\SpiralSpace]Notebook.north west) + } + \def\RotateAngle{270} + \fi +}{} + +\setkeys{educnotebook}{ + nbcolorbg=white, + minorgrid=false, + majorgrid=false, + minorgridcolor=black!20, + majorgridcolor=black!60, + spiralposition=left, + spiralspace=0.5in + } +\def\RotateAngle{0} +\def\ShadowXshift{0.5ex} +\def\ShadowYshift{-0.5ex} + +\makeatother + +\tikzset{ +spiral/.pic={ + \draw[rotate=\RotateAngle, + draw=black, + left color=black!70, + right color=black!60, + middle color=gray!40 + ] + (-1.1,-0.35) rectangle ++(10pt,10pt); + \draw[ + rotate=\RotateAngle, + double=gray!60, + double distance=1pt, + ] + (-1,-0.2) arc (40:-250:10pt and 2pt); + \draw[ + rotate=\RotateAngle, + double=gray!60, + double distance=1pt, + ] + (-1,-0.05) arc (40:-250:10pt and 2pt); + } +} +\tikzset{ +spirale/.pic={ + \draw[rotate=\RotateAngle, + draw=black, + left color=black!70, + right color=black!60, + middle color=gray!40 + ] + (-1,-0.18) circle(0.175); + \draw[ + rotate=\RotateAngle, + double=gray!60, + double distance=1pt, + ] + (-1,-0.2) arc (40:-250:10pt and 2pt); + \draw[ + rotate=\RotateAngle, + double=gray!60, + double distance=1pt, + ] + (-1,-0.05) arc (40:-250:10pt and 2pt); + } +} + +\newcommand{\naamNotebook}[2][]% #1 = options (optional), #2 = contents, preferably in the form of a \parbox +{\bgroup + \savebox{\NotebookBox}{#2}% + \setkeys{educnotebook}{#1}% + \ifnum\RotateAngle=270\relax + \dimen0=\dimexpr \wd\NotebookBox\relax + \else + \dimen0=\dimexpr \ht\NotebookBox+\dp\NotebookBox\relax + \fi + \dimen1=\SpiralSpace\relax + \def\SpiralNumber{\the\numexpr \dimen0/\dimen1 - 1\relax}% + \dimen2=\dimexpr \dimen0 - \SpiralNumber\dimen1\relax + \def\SpiralOffset{\the\dimexpr 0.5\dimen2\relax}% + \par\noindent\tikz{ + \node (Notebook) [inner sep=0pt] {\usebox\NotebookBox}; + \begin{scope}[on background layer] + \shade[rounded corners=5pt,ball color=LightSkyBlue,drop shadow={shadow xshift=\ShadowXshift, shadow yshift=\ShadowYshift}] + ([xshift=-0.7cm,yshift=20pt]Notebook.north west) rectangle + ([xshift=30pt,yshift=-20pt]Notebook.south east); + \begin{scope}%clipping + \DrawMajorGrid + \DrawMinorGrid + \end{scope} + \foreach \Valor in {0,1,...,\SpiralNumber} + \pic at \SpiralPosition {spiral}; + \end{scope} + }\par +\egroup} +\newcommand{\nNotebook}[2][]% #1 = options (optional), #2 = contents, preferably in the form of a \parbox +{\bgroup + \savebox{\NotebookBox}{#2}% + \setkeys{educnotebook}{#1}% + \ifnum\RotateAngle=270\relax + \dimen0=\dimexpr \wd\NotebookBox\relax + \else + \dimen0=\dimexpr \ht\NotebookBox+\dp\NotebookBox\relax + \fi + \dimen1=\SpiralSpace\relax + \def\SpiralNumber{\the\numexpr \dimen0/\dimen1 - 1\relax}% + \dimen2=\dimexpr \dimen0 - \SpiralNumber\dimen1\relax + \def\SpiralOffset{\the\dimexpr 0.5\dimen2\relax}% + \par\noindent\tikz{ + \node (Notebook) [inner sep=0pt] {\usebox\NotebookBox}; + \begin{scope}[on background layer] + \draw[rounded corners=4pt,pattern=crosshatch dots light steel blue,drop shadow] + ([xshift=-0.3cm,yshift=20pt]Notebook.north west) rectangle + ([xshift=10pt,yshift=-20pt]Notebook.south east); + \begin{scope}%clipping + \DrawMajorGrid + \DrawMinorGrid + \end{scope} + \foreach \Valor in {0,1,...,\SpiralNumber} + \pic at \SpiralPosition {spirale}; + \end{scope} + }\par +\egroup}
\ No newline at end of file diff --git a/macros/xetex/latex/na-border/doc/lisandsections.tex b/macros/xetex/latex/na-border/doc/lisandsections.tex new file mode 100644 index 0000000000..689a691f5e --- /dev/null +++ b/macros/xetex/latex/na-border/doc/lisandsections.tex @@ -0,0 +1,174 @@ +\lstset{ + language=[LaTeX]TeX,escapeinside={*}{*}, + texcsstyle=*\color{red!40!black}, +basicstyle=\ttfamily, +numbers=none, + frame=none, + rulesepcolor=\color{blue}, + rulecolor=\color{blue}, + framexleftmargin=10pt , +breaklines=true, +keywordstyle=\color{blue}, +commentstyle=\color{gray}, +moretexcs={setdefaultlanguage,newfontfamily +, AtBeginDocument,arabicfon,lyfont}, +morekeywords={begin, end, draw,fill,tcbuselibrary, +filldraw,shadedraw,shade,usetikzlibrary,foreach,clip,plot ,grid,rectangle,cycle,circle,path,pgfmathsetmacro +,radiusSmall},} +\usepackage{polyglossia} +\makeatletter +\AtBeginDocument{\bidi@isloaded[]{arabxetex}} +\makeatother +\newfontfamily\arabicfont[Script=Arabic,Scale=1.4]{DecoType Naskh} +\newfontfamily +\corna[Script=Arabic,Scale=5]{CornPop} +\newfontfamily +\leter[Script=Arabic,Scale=1.5]{Mcs Book Title 3} +\newfontfamily +\bantise[Script=Arabic,Scale=2]{Mcs Letter Word 5} +\newfontfamily +\nk[Script=Arabic,Scale=1]{Arial} +\newfontfamily\arabicfonttt{Latin Modern Mono} +\newfontfamily\arabicfontttt[Scale=2]{Latin Modern Mono} +\newfontfamily\arabicfontsf[Script=Arabic,Scale=1.4]{Amiri} +\newfontfamily\not[Script=Arabic,Scale=1.5]{Aref Ruqaa} +\newfontfamily\fontislam[Script=Arabic,Scale=5]{AGA Islamic Phrases} +\newfontfamily +\waalidfontta[Script=Arabic,Scale=1.5]{Amiri} +\setdefaultlanguage[calendar=gregorian,locale=algeria]{arabic} +\setotherlanguage{french} +\usepackage[novoc]{arabxetex} +\renewcommand{\footrulewidth}{0pt} +\renewcommand{\headrulewidth}{0pt} +\newtcblisting{boxlis}{ +enhanced, +drop fuzzy shadow, +colback=DarkSlateGray1!20!white, +colframe=blue,breakable, +listing only, +listing options={language={[LaTeX]TeX},escapeinside={*}{*}, +texcsstyle=*\color{red!50!black}, +basicstyle=\setLTR\ttfamily, +numbers=none, +breaklines=true, +keywordstyle=\color{blue}, +commentstyle=\color{gray}, +moretexcs={setdefaultlanguage,setdefaultlanguage,newfontfamily +,textarabic,hfill,posaa,posbb,posbe,posbf, +posbc,posbd,naborder,corna, +bordertitle,uline,bf,XeLaTeX,textfrench,underline,ztotpages,cfoot,rfoot,lfoot,chead,lhead,rhead, AtBeginDocument,def ,Nline,Nplot,arabicfon,usetikzlibrary,setotherlanguage,lyfont,arabicfontsf,arabicfont}, +morekeywords={begin,end,draw,fill}, % you can add what you need +frame=none, +}} +\definecolor{section@title@color}{cmyk}{1,0.2,0.3,0.1} +\definecolor{subsection@title@color}{cmyk}{0,0.6,0.9,0} +\definecolor{shadow@color}{cmyk}{.07,0,0,0.49} +% fontes section +\renewcommand\thesubsection{\arabic{subsection}.\thesection} +\def\sectiontitle@font{\not \selectfont} +\def\subsectiontitle@font{\waalidfontta \selectfont} +\newlength\decalnumsec +\newlength\decalnumsubsec +\setlength{\decalnumsec}{-0.5em} +\setlength{\decalnumsubsec}{-0.5em} +\newlength\decalxtitlesubsec +\setlength{\decalxtitlesubsec}{\parindent} +% Espace entre le numéro de section et le titre +\newlength\spacetitlesec +\newlength\spacetitlesubsec +\setlength{\spacetitlesec}{0.2em} +\setlength{\spacetitlesubsec}{0.2em} +\titleformat{\section}[block] +{% + \bfseries\Large + \color{NavyBlue} + \sectiontitle@font +} +{ +\raisebox{\decalnumsec} +{% +\begin{tikzpicture} +\node (numsec) {\sectiontitle@font\thesection}; +\fill[rounded corners=4pt,fill=NavyBlue!40] ($(numsec.north west)+(2pt,-2pt)$) -- ($(numsec.north east)+(+2mm,-3mm)+(2pt,-2pt)$) -- ($(numsec.south east)+(2pt,-2pt)$) -- ($(numsec.south west)+(-1mm,-2mm)+(2pt,-2pt)$) -- cycle; +\shadedraw[rounded corners=4pt,shading=ball,ball color=NavyBlue] (numsec.north west) -- ($(numsec.north east)+(+2mm,-3mm)$) -- (numsec.south east) -- ($(numsec.south west)+(-1mm,-2mm)$) -- cycle; +\node[white] at (numsec) {\not \thesection}; +\node [above right,anchor= east] (titre) at ($(numsec.west)+(-.4,-.2)$) {\large\bfseries \textarabic{\not #1}}; +\node [yscale=-0.7, scope fading=south, opacity=0.4, above] at ($(titre.south)+(0,0.3)$) {\large\bfseries \textarabic{\not #1}}; +\end{tikzpicture} +} +} +{\spacetitlesec} +{} +\titleformat{\subsection}[block] +{% + \bfseries + \color{DarkOrchid2} + \subsectiontitle@font +} +{ +\raisebox{\decalnumsubsec} +{% +\begin{tikzpicture} +\node (numsubsec) { \subsectiontitle@font\RL{\thesubsection}}; +\fill[rounded corners=2pt,fill=DarkOrchid2!40] ($(numsubsec.north west)+(2pt,-2pt)$) -- ($(numsubsec.north east)+(1mm,0mm)+(2pt,-2pt)$) -- ($(numsubsec.south east)+(2pt,-2pt)$) -- ($(numsubsec.south west)+(-1mm,0)+(2pt,-2pt)$) -- cycle; +\fill[rounded corners=2pt,fill=DarkOrchid2] (numsubsec.north west) -- ($(numsubsec.north east)+(1mm,0mm)$) -- (numsubsec.south east) -- ($(numsubsec.south west)+(-1mm,0)$) -- cycle; +\node[Tomato4] at (numsec) {\waalidfontta \RL{\thesubsection}}; +\node [above right,anchor= east] (titre) at ($(numsec.west)+(-.4,-.2)$) {\large\bfseries \textarabic{\nk #1}}; +\node [yscale=-0.8, scope fading=south, opacity=0.4, above] at ($(titre.south)+(0,0.3)$) {\large\bfseries \textarabic{\nk #1}}; +\end{tikzpicture} +} +} +{\spacetitlesubsec} +{} +\colorlet{codebackground}{LightBlue!30!white} +\renewcommand{\baselinestretch}{1.4} +\tcbset{arc,arc is angular} +\newcommand{\naams}[1]{\fcolorbox{SlateBlue3}{SlateBlue3}{{\color{white}\textbf{#1}}}} +\newcommand{\page}{\newpage \fancyfoot[L]{{ + \naams{\textbf{0\thepage}}}} + \fancyfoot[C]{} + \fancyfoot[R]{} \rhead{} \chead{} \parindent 0pt \renewcommand{\footrulewidth}{1.4pt} }\renewcommand{\headrulewidth}{1.5pt} +\renewcommand{\headrule}{{\color{SlateBlue3}% +\hrule width\headwidth height\headrulewidth }} +\renewcommand{\footrule}{{\color{SlateBlue3}% +\hrule width\headwidth height\headrulewidth }} +\definecolor{myblue}{RGB}{40,96,139} +\definecolor{fondpaille}{cmyk}{0,0,0.1,0} +\makeatother +\parindent=0pt +%\pagecolor{brown!10} +\tcbset{arc=1mm} +\makeatletter% +\renewcommand\tableofcontents% +{% + %\section*{\contentsname}% + \@mkboth{% + \MakeUppercase\contentsname}{\MakeUppercase\contentsname}% + \@starttoc{toc}% +} +\rightfootnoterule +\newenvironment{reflet}[1] +{ +\begin{center} +\begin{tikzpicture}[inner sep=3pt] +\node[scale=1.4,above,yslant=0]{#1}; +\node[scale=1.4,above,yslant=0, +yscale=-1,scope fading=south, +opacity=0.4]{#1}; +\end{tikzpicture} +} +{ +\end{center}} +\newtcolorbox{Rappel}[1][]{breakable, +enhanced, +colback={green!70!white}, +colupper=white, +fontupper=\large, +notitle , +sharp corners, +colframe=brown!70!black, +boxrule=2mm, +drop fuzzy shadow, +underlay={{size=2mm, + inside node=frame, raised color=brown!70!black}}, +#1}
\ No newline at end of file diff --git a/macros/xetex/latex/na-border/doc/na-border.pdf b/macros/xetex/latex/na-border/doc/na-border.pdf Binary files differnew file mode 100644 index 0000000000..923561964c --- /dev/null +++ b/macros/xetex/latex/na-border/doc/na-border.pdf diff --git a/macros/xetex/latex/na-border/doc/na-border.tex b/macros/xetex/latex/na-border/doc/na-border.tex new file mode 100644 index 0000000000..9cdf50914f --- /dev/null +++ b/macros/xetex/latex/na-border/doc/na-border.tex @@ -0,0 +1,561 @@ +% compiler avec XeLaTeX +\documentclass[a4paper,12pt,openany]{article} +\input{packages.tex} +\input{lisandsections.tex} +\parindent=0pt +\pagestyle{fancy} +\input{codenote.tex} +\begin{document} +\begin{arab} +\title{\nNotebook[spiralposition=top]{\begin{minipage}{12cm} +\begin{flushright} +\begin{center} +\resizebox {!}{1.4cm}{\textcolor{white}{\large\bidicontour{black}{الحزمة + \texttt{na-border}}}} + \resizebox {!}{0.7cm}{\textcolor{blue}{\large\bidicontour{red}{ +\textfrench{\texttt{version 0.1}}}}} +\end{center} +\end{flushright} +\end{minipage}}} +\author{\textarabic{لرسم إطارات مزخرفة للصفحات}} +\date{\bf $08$/$07$/$2018$} +\end{arab} +\maketitle + +\vspace{-1cm} +\hrulefill +\thispagestyle{empty} +\begin{center} +\scalebox{2.2}{ +\begin{tikzpicture} + \draw[decorate,decoration={text along path,text={|\color{blue!50!black}|$ na-border. package - na-border-$ ||}, text align={fit to path stretching spaces}}] (0.2\paperwidth , -0.11\paperheight ) circle (1.15); +\node (A) at (0.2\paperwidth , -0.11\paperheight )[magenta] {ناعم محمد}; +\draw[blue!50!black] (0.2\paperwidth , -0.11\paperheight ) circle (0.8); +\draw[blue!50!black] (0.2\paperwidth , -0.11\paperheight ) circle (1.3); + \end{tikzpicture}} +\end{center} +\pagestyle{empty} +\begin{tcolorbox}[breakable,enhanced jigsaw,title={ \tikz{ + \draw (0,0) node {\resizebox {!}{0.5cm}{\contour{black}{ \color{white}{\leter h}}}}}}, + colback=yellow!10!white,colframe=red!50!black, + interior style={fill overzoom image=goldshade.png,fill image opacity=0.25}, + colbacktitle=yellow!10!white, coltitle=red!56!black, + enlargepage flexible=\baselineskip,pad at break*=3mm, + watermark color=blue!35!red!25, + watermark text={\bfseries\Large \leter h}, + attach boxed title to top center={yshift=-0.25mm-\tcboxedtitleheight/2,yshifttext=2mm-\tcboxedtitleheight/2}, + boxed title style={enhanced,boxrule=0.5mm, + frame code={ \path[tcb fill frame] ([xshift=-4mm]frame.west) -- (frame.north west) + -- (frame.north east) -- ([xshift=4mm]frame.east) + -- (frame.south east) -- (frame.south west) -- cycle; }, + interior code={ \path[tcb fill interior] ([xshift=-2mm]interior.west) + -- (interior.north west) -- (interior.north east) + -- ([xshift=2mm]interior.east) -- (interior.south east) -- (interior.south west) + -- cycle;} }, + drop fuzzy shadow] +\small \tableofcontents +\end{tcolorbox} +\newpage +\pagestyle{fancy} +\cfoot{} +\lhead{} + \rhead{\resizebox {!}{0.8cm}{\naams{ + $\thepage$}}} +\lfoot{\naams{ + $\thepage$}} +\onecolumn +\setcounter{page}{1} +\pagenumbering{arabic} +\begin{Rappel} +\begin{arab} +\centerline{\fontislam 4} +\large +h_dh .hzmT jdydT tsmY \texttt{na-border} +'an^s-'at x.sy.s"aN lrsm 'i.tArAt mzxrfT lil.sf.hAt +, .hy_t ymkn 'istxdAm h_dh al-'i.tArAt fy ktAbT 'ihdA' 'aw lktAbT .sf.hT wAjhT m_dkrT , ktAb , 'aw mjlT , w qd tm al-'i`tmAd `lY al.hzmT \texttt{tikz} w alx.t \texttt{CornPop.ttf} ; x.t mn nw` \texttt{ttf} , b.hy_t lAbd mn t_tbyth `lY alwyndwz l-'an al-'i.tArAt klhA t`tmd `lyh .\\ +tjdwn rfqT h_dA aldlyl alx.t \texttt{CornPop.ttf} al_dy yjb 'awlA t_tbyth `lY alwyndwz 'in lm ykn m_tbtA . +\end{arab} +\LARGE +\end{Rappel} +\begin{arab} +\section{كيفية استخدام الحزمة } +l-'istxdAm al.hzmT \texttt{na-border} +'awl ^sy' nktb m` al.hzm fy dbAjT alw_tyqT +\LR{\verb# \usepackage{na-border} #} , kmA yjb t_tbyt alx.t \texttt{CornPop.ttf} `lY alwyndwz l-'an kl alzxArf tat`lq bh ; alx.t tjdh m` h_dA aldlyl fy nfs almjld mA`lyk 'ilA alnnqr `lyh mrtyn _tm nanqr +`lY \texttt{installer} ftatm `mlyT t_tbyt alx.t b^sl bsy.t jdA .\\ +l-'istxdAm al.hzmT \texttt{na-border} nqwm bnsx almlf {\color{blue}\texttt{na-border.sty}} mn 'imtdAd \texttt{sty} +w n.d`h fy almlf ( 'ay \texttt{dossier}) al_dy n`Alj fyh .\\ +\colorbox{yellow!30}{\begin{minipage}{17cm} +\underline{ملاحظة مهمة :}\\ +al.hzmT t`ml fq.t `nd astxdAm al.hzmT +\texttt{polyglossia} w alm`AljT b--- :\texttt{XeLaTeX} swA'aA kAnt alal.gT alr'iysyyT hy al`rbyT 'aw l.gT lAtynyT 'axrY bm`nY 'annh ymkn 'istxdAm h_dh al-'i.tArAt lktAbT .sf.hT mqdmT m_dkrT bAlal.gT alalAtynyT b^skl `Ady jdA w lys al`rbyT fq.t .w fy kll al.hAlAt lAbd 'an nktb b`d al.hzmT \texttt{polyglossia} +al-'amr almbyn fy al-'i.tAr al-'azrq almbyyn 'adnAh +wh_dA al-'amr mhm jdA fbdwnh lA t`ml al.hzmT +\texttt{na-border} +\end{minipage}} +\begin{boxlis} +\newfontfamily\corna[Script=Arabic,Scale=5]{CornPop} +\end{boxlis} +\section{الشكل العام لتعليمة رسم الإطارات} +lrsm al-'i.tArAt nktb dAxl alws.t +\texttt{document} alt`lymT alttAlyyT +\begin{boxlis} +\naborder{*\textarabic{\nk نكتب هنا لون الإطار + }*}{*\textarabic{\nk نكتب هنا الحرف اللاتيني الذي يمثل الزخرفة + }*} +\end{boxlis} +$\triangleleft$ fy mkAn lwn al-'i.tArAt n.d` alalwn al_dy nr.gb fyh m_tl (\texttt{red} 'a.hmr ) , (\texttt{blue} 'azrq ) , (\texttt{brown} bny) \\ , +(\texttt{green} 'ax.dr) , (\texttt{yellow} 'a.sfr ) , +(\texttt{pink} wrdy) , (\texttt{lime} 'ax.dr fAt.h) w hk_dA , al-'alwAn mt`dadT w k_tyrT fy altAk 'axtr alalwn al_dy tryd (t_dkyr : al.hzmT \LR{\verb# \usepackage[svgnames,dvipsnames,x11names]{xcolor} #}) taty.h lk astxdAm `dad hA'il mn al-'alwAn.\\ +$\triangleleft$ fy al.hA.zntyn al_tAnytyn nktb al.hrf alalAtyny al_dy ym_tl alzxrfT m_tl (\textfrench{a,b,c,d,f,g,h,i,k,l,m,o,p,q,r,E,......}) , fkll .hrf lAtyny ym_tl zxrfT m`yynT . +\subsection{أمثلة} +\underline{مثال أول}: +lw nktb m_tlA : +\begin{boxlis} +\naborder{blue}{f} +\end{boxlis} +nt.h.sl b`d alm`AljT `lY : +\end{arab} +\newpage +\pagestyle{empty} +\naborder{blue}{f} +\newpage +\setcounter{page}{3} +\pagestyle{fancy} +\begin{arab} +mA `lyk al-'An 'ilA 'an t.gyyr fy alalwn alsAbq (\texttt{blue}) w tktb alalwn al_dy tryd w t.gyr fy al.hrf alalAtyny \texttt{f} w tktb .hrfA 'Axr ltlA.h.z alfrq (tat.h.sl `lY zxrfT jdydT) . +\section{الشكل العام لتعليمة رسم إطار العنوان } +ymkn 'ay.dA bAl.hzmT \texttt{na-border} rsm +'i.tAr l`nwAn m`yyn k`nwAn m_tlA m_dkrT w al^skl al`Am lt`lymT al`nwAn hy : +\begin{boxlis} +\bordertitle{*\textarabic{\nk لون أعلى الإطار + }*}{*\textarabic{\nk لون أسفل الإطار + }*} {*\textarabic{\nk نص العنوان + }*} +\end{boxlis} +\subsection{أمثلة} +\underline{مثال أول :} +lw nktb m_tlA : +\begin{boxlis} +\bordertitle{lime}{white}{*\textarabic{\nk متتاليات فيبوناتشي + }*} +\end{boxlis} +nt.h.sl `lY :\\ +\bordertitle{lime}{white}{\textarabic{ متتاليات فيبوناتشي + }}\\ + \underline{مثال ثاني :} + ltkbyr al`nwAn m_tlA nst`yn bAlt`lymT + \LR{\verb# \resizebox #} + fm_tlA lw nktb : + \begin{boxlis} +\bordertitle{lime}{white}{\resizebox{!}{1.5cm}{*\textarabic{\nk متتاليات فيبوناتشي + }*}} +\end{boxlis} +nt.h.sl `lY :\\ +\bordertitle{pink}{white}{\resizebox{!}{1.5cm}{\textarabic{ متتاليات فيبوناتشي + }}}\\ + fymA yx.s alalwn al`lwy lil-'i.tAr w alalwn alsfly ymkn t.gyayrhmA kmA tryd .gyr fq.t fy al.hA.dntyn alsAbqtyn almwjwdtyn fy t`lymT al`nwAn . +\\ +\underline{مثال ثالث :} +fy b`.d al.hAlAt ykwn al`nwAn .twyl nw`A mA w bAltAly al-'i.tAr yt`dY 'ab`Ad alwrqT l.hl h_dA alm^skl nst`yn bAlws.t \texttt{minipage} +w h_dA alm_tAl yw.d.h _dlk flw nktb : +\begin{boxlis} +\bordertitle{blue!20}{white}{\begin{minipage}{16cm} + \resizebox {16cm}{1.8cm}{*\textarabic{\nk المتتاليات في الفضاء الحقيقي }*}\\ + \resizebox {16cm}{1.8cm}{*\textarabic{\nk و في فضاءات مترية و طبولوجية }*} + \end{minipage}} +\end{boxlis} + nt.h.sl `lY :\\ + \bordertitle{blue!20}{white}{\begin{minipage}{16cm} + \resizebox {16cm}{1.8cm}{ \textarabic{ المتتاليات في الفضاء الحقيقي }}\\ + \resizebox {16cm}{1.8cm}{\textarabic{ و في فضاءات مترية و طبولوجية }} + \end{minipage}} +\subsection{أمثلة متنوعة } +\underline{مثال عن واجهة مذكرة} +\begin{boxlis} +\documentclass[paper=a4,12pt]{article} +\usepackage[left=1.5cm,right=1.7cm, +top=1.57cm,bottom=2.3cm]{geometry} +\usepackage[svgnames,dvipsnames,x11names]{xcolor} +\usepackage{amsmath,amsfonts,amssymb} +\usepackage{fancyhdr} +\usepackage[utf8]{inputenc} +\usepackage{na-border} +\usepackage{contour} +\usepackage{tikz} +\usepackage{polyglossia} +\setdefaultlanguage[calendar=gregorian,locale=algeria]{arabic} +\setotherlanguage{french} +\newfontfamily\arabicfont[Script=Arabic,Scale=1.4]{Amiri} +\newfontfamily\arabicfontsf[Script=Arabic,Scale=1.4]{Amiri} +\newfontfamily\not[Script=Arabic,Scale=1.5]{Aref Ruqaa} +\newfontfamily\corna[Script=Arabic,Scale=5]{CornPop} +\pagestyle{empty} +\parindent=0pt +\begin{document} +\naborder{red!50!black}{d} + +\begin{minipage}{8cm} +\\*\textarabic{\nk وزارة التعليم العالي والبحث العلمي}* +\\*\textarabic{\nk المدرسة العليا للأساتذة}* +\\*\textarabic{\nk $-$ القبة القديمة $-$ (الجزائر)}* +*\textarabic{\nk قسم الرياضيات}* +\end{minipage}\hfill +\begin{minipage}{10cm} +\begin{french} +\textbf{Minist\`{e}re de l'Enseignement +Sup\'{e}rieur \\ +et de la Recherche Scientifique \\ +\'{E}cole Normale Sup\'{e}rieure \\ +-Vieux Kouba - (Alger) }\\ +\textsf{D\'{e}partement de Math\'{e}matiques} +\end{french} +\end{minipage} + \vskip1cm + \centerline{\textarabic{\not *\textarabic{ \nk + مذكرة تخرج لنيل شهادة أستاذ التعليم المتوسط }*}} + \centerline{\textarabic{\not *\textarabic{\nk + تحت عنوان :}*}} +\bordertitle{blue!20}{white}{\begin{minipage}{16cm} + \resizebox {16cm}{1.5cm}{*\textarabic{\nk المتتاليات في الفضاء الحقيقي }*}\\ + \resizebox {16cm}{1.5cm}{*\textarabic{\nk و في فضاءات مترية و طبولوجية }*} + \end{minipage}} +\vskip0.4cm +\begin{minipage}{5cm} +\vspace{0.7cm} +*\textarabic{\nk من إعداد الطالب :}*\\ +$\blacktriangleleft$ +*\textarabic{\nk إسم الطالب}* +\end{minipage}\hfill +\begin{minipage}{5cm} +*\textarabic{\nk تحت إشراف الأستاذ :}* \\ +$\blacktriangleleft$ +*\textarabic{\nk إسم الأستاذ هنا }* +\end{minipage} + +\vspace{1cm} +*\textarabic{\nk إسم الأستاذ }* +\dotfill +*\textarabic{\nk استاذ بالمدرسة العليا للأساتذة}* +\dotfill +*\textarabic{\nk مشرفا}* +\\ +*\textarabic{\nk إسم الأستاذ }* +\dotfill +*\textarabic{\nk استاذ بالمدرسة العليا للأساتذة}* +\dotfill +*\textarabic{\nk ممتحنا}* +\vskip4cm +\centerline{*\textarabic{\nk السنة الجامعية:$2018/2017$}*} +\centerline{*\textarabic{\nk دفعة جوان : +$2019$}*} +\end{document} +\end{boxlis} +nt.h.sl b`d alm`AljT bAstxdAm \texttt{XeLaTeX} +`lY al.sf.hT almwAlyyT +\end{arab} +\newpage +\pagestyle{empty} +\naborder{red!50!black}{d} + +\begin{minipage}{8cm} +وزارة التعليم العالي والبحث العلمي\\ +المدرسة العليا للأساتذة\\ +$-$ القبة القديمة $-$ (الجزائر)\\ +قسم الرياضيات +\end{minipage}\hfill +\begin{minipage}{10cm} +\begin{french} +\textbf{Minist\`{e}re de l'Enseignement +Sup\'{e}rieur \\ +et de la Recherche Scientifique \\ +\'{E}cole Normale Sup\'{e}rieure \\ +-Vieux Kouba - (Alger) }\\ +\textsf{D\'{e}partement de Math\'{e}matiques} +\end{french} +\end{minipage} + \vskip1cm + \centerline{\not + مذكرة تخرج لنيل شهادة أستاذ التعليم المتوسط } + \centerline{\not + تحت عنوان :} + \vskip0.3cm + \bordertitle{blue!20}{white}{\begin{minipage}{16cm} + \resizebox {16cm}{1.8cm}{ \textarabic{ المتتاليات في الفضاء الحقيقي }}\\ + \resizebox {16cm}{1.8cm}{\textarabic{ و في فضاءات مترية و طبولوجية }} + \end{minipage}} + \vskip0.4cm +\begin{minipage}{5cm} +\vspace{0.7cm} +من إعداد الطالب :\\ +$\blacktriangleleft$ +إسم الطالب +\end{minipage}\hfill +\begin{minipage}{5cm} +تحت إشراف الأستاذ :\\ +$\blacktriangleleft$ +إسم الأستاذ هنا +\end{minipage} + +\vspace{1cm} +إسم الأستاذ +\dotfill +استاذ بالمدرسة العليا للأساتذة +\dotfill +مشرفا\\ +إسم الأستاذ +\dotfill +استاذ بالمدرسة العليا للأساتذة +\dotfill +ممتحنا +\vskip4cm +\centerline{ +السنة الجامعية:$2018/2017$} +\centerline{دفعة جوان : +$2019$} +\newpage +\setcounter{page}{7} +\pagestyle{fancy} +\begin{arab} +\underline{مثال أخر عن واجهة مذكرة تخرج}\\ +\begin{boxlis} +\documentclass[paper=a4,12pt]{article} +\usepackage[left=1.5cm,right=1.7cm, +top=1.57cm,bottom=2.3cm]{geometry} +\usepackage[svgnames,dvipsnames,x11names]{xcolor} +\usepackage{amsmath,amsfonts,amssymb} +\usepackage{fancyhdr} +\usepackage[utf8]{inputenc} +\usepackage{na-border} +\usepackage{contour} +\usepackage{tikz} +\usepackage{polyglossia} +\setdefaultlanguage[calendar=gregorian,locale=algeria]{arabic} +\setotherlanguage{french} +\newfontfamily\arabicfont[Script=Arabic,Scale=1.4]{Amiri} +\newfontfamily\arabicfontsf[Script=Arabic,Scale=1.4]{Amiri} +\newfontfamily\not[Script=Arabic,Scale=1.5]{Aref Ruqaa} +\newfontfamily\corna[Script=Arabic,Scale=5]{CornPop} +\pagestyle{empty} +\parindent=0pt +\begin{document} +\naborder{Purple4}{E} + +\begin{minipage}{8cm} +\\*\textarabic{\nk وزارة التعليم العالي والبحث العلمي}* +\\*\textarabic{\nk المدرسة العليا للأساتذة}* +\\*\textarabic{\nk $-$ القبة القديمة $-$ (الجزائر)}* +*\textarabic{\nk قسم الرياضيات}* +\end{minipage}\hfill +\begin{minipage}{10cm} +\begin{french} +\textbf{Minist\`{e}re de l'Enseignement +Sup\'{e}rieur \\ +et de la Recherche Scientifique \\ +\'{E}cole Normale Sup\'{e}rieure \\ +-Vieux Kouba - (Alger) }\\ +\textsf{D\'{e}partement de Math\'{e}matiques} +\end{french} +\end{minipage} + \vskip1cm + \centerline{\textarabic{\not *\textarabic{ \nk + مذكرة تخرج لنيل شهادة أستاذ التعليم المتوسط }*}} + \centerline{\textarabic{\not *\textarabic{\nk + تحت عنوان :}*}} +\bordertitle{red!20}{lime!45}{ + \resizebox {16cm}{1.5cm}{*\textarabic{\nk فضاءات لوبيغ و فضاءات سوبولاف }*}} +\vskip0.4cm +\begin{minipage}{5cm} +\vspace{0.7cm} +*\textarabic{\nk من إعداد الطالب :}*\\ +$\blacktriangleleft$ +*\textarabic{\nk إسم الطالب}* +\end{minipage}\hfill +\begin{minipage}{5cm} +*\textarabic{\nk تحت إشراف الأستاذ :}* \\ +$\blacktriangleleft$ +*\textarabic{\nk إسم الأستاذ هنا }* +\end{minipage} + +\vspace{1cm} +*\textarabic{\nk إسم الأستاذ }* +\dotfill +*\textarabic{\nk استاذ بالمدرسة العليا للأساتذة}* +\dotfill +*\textarabic{\nk مشرفا}* +\\ +*\textarabic{\nk إسم الأستاذ }* +\dotfill +*\textarabic{\nk استاذ بالمدرسة العليا للأساتذة}* +\dotfill +*\textarabic{\nk ممتحنا}* +\vskip8cm +\centerline{*\textarabic{\nk السنة الجامعية:$2018/2017$}*} +\centerline{*\textarabic{\nk دفعة جوان : +$2019$}*} +\end{document} +\end{boxlis} +nt.h.sl b`d alm`AljT bAstxdAm \texttt{XeLaTeX} +`lY al.sf.hT almwAlyyT +\end{arab} +\newpage +\pagestyle{empty} +\naborder{Purple4}{E} + +\begin{minipage}{8cm} +وزارة التعليم العالي والبحث العلمي\\ +المدرسة العليا للأساتذة\\ +$-$ القبة القديمة $-$ (الجزائر)\\ +قسم الرياضيات +\end{minipage}\hfill +\begin{minipage}{10cm} +\begin{french} +\textbf{Minist\`{e}re de l'Enseignement +Sup\'{e}rieur \\ +et de la Recherche Scientifique \\ +\'{E}cole Normale Sup\'{e}rieure \\ +-Vieux Kouba - (Alger) }\\ +\textsf{D\'{e}partement de Math\'{e}matiques} +\end{french} +\end{minipage} + \vskip1cm + \centerline{\not + مذكرة تخرج لنيل شهادة أستاذ التعليم المتوسط } + \centerline{\not + تحت عنوان :} + \vskip0.3cm + \bordertitle{red!20}{lime!45}{ + \resizebox {16cm}{1.8cm}{ \textarabic{ فضاءات لوبيغ و فضاءات سوبولاف }}} + \vskip0.4cm +\begin{minipage}{5cm} +\vspace{0.7cm} +من إعداد الطالب :\\ +$\blacktriangleleft$ +إسم الطالب +\end{minipage}\hfill +\begin{minipage}{5cm} +تحت إشراف الأستاذ :\\ +$\blacktriangleleft$ +إسم الأستاذ هنا +\end{minipage} + +\vspace{1cm} +إسم الأستاذ +\dotfill +استاذ بالمدرسة العليا للأساتذة +\dotfill +مشرفا\\ +إسم الأستاذ +\dotfill +استاذ بالمدرسة العليا للأساتذة +\dotfill +ممتحنا +\vskip8cm +\centerline{ +السنة الجامعية:$2018/2017$} +\centerline{دفعة جوان : +$2019$} +\newpage +\setcounter{page}{10} +\pagestyle{fancy} +\begin{arab} +\underline{مثال أخر عن واجهة مذكرة تخرج باللغة الفرنسية}\\ +\begin{boxlis} +\documentclass[paper=a4,12pt]{article} +\usepackage[left=1.5cm,right=1.7cm, +top=1.57cm,bottom=2.3cm]{geometry} +\usepackage[svgnames,dvipsnames,x11names]{xcolor} +\usepackage{amsmath,amsfonts,amssymb} +\usepackage{fancyhdr} +\usepackage[utf8]{inputenc} +\usepackage{na-border} +\usepackage{contour} +\usepackage{tikz} +\usepackage{polyglossia} +\setdefaultlanguage[calendar=gregorian,locale=algeria]{arabic} +\setotherlanguage{french} +\newfontfamily\arabicfont[Script=Arabic,Scale=1.4]{Amiri} +\newfontfamily\arabicfontsf[Script=Arabic,Scale=1.4]{Amiri} +\newfontfamily\not[Script=Arabic,Scale=1.5]{Aref Ruqaa} +\newfontfamily\corna[Script=Arabic,Scale=5]{CornPop} +\pagestyle{empty} +\parindent=0pt +\begin{document} +\naborder{blue!50!black}{c} + +\begin{french} +{\centering +République Algérienne démocratique et Populaire\\ +Ministère de l'enseignement supérieur et de la recherche scientifique +\vskip6mm\large +UNIVERSITE DE TISSEMSILT\\[3mm] +\normalsize +FACULTE : TECHNOLOGIE\\[3mm] +DEPARTEMENT : INFORMATIQUE +\vskip6mm +\vskip5mm +\underline{\Large MEMOIRE DE MASTER} +\vskip1cm +OPTION:} +\vskip1.5cm +\begin{center} +\bordertitle{magenta!20}{white}{ + \resizebox {16cm}{1.8cm}{ LE TITRE DU MEMOIRE}} +\end{center} +\vfill +\begin{minipage}[t]{8cm} +\underline{ Présenté par:}\\[3mm] +Nom et prénom +\end{minipage} +\hfill +\begin{minipage}[t]{5cm} +\underline{ Enquadré par:}\\[3mm] +\hfill Nom \& Prénoms +\end{minipage} +\vfill +\centerline{ +Promotion: mois \& année} +\end{french} +\end{document} +\end{boxlis} +nt.h.sl b`d alm`AljT bAstxdAm \texttt{XeLaTeX} +`lY al.sf.hT almwAlyyT +\end{arab} +\newpage +\pagestyle{empty} +\naborder{blue!50!black}{c} + +\begin{french} +{\centering +République Algérienne démocratique et Populaire\\ +Ministère de l'enseignement supérieur et de la recherche scientifique +\vskip6mm\large +UNIVERSITE DE TISSEMSILT\\[3mm] +\normalsize +FACULTE : TECHNOLOGIE\\[3mm] +DEPARTEMENT : INFORMATIQUE +\vskip6mm +\vskip5mm +\underline{\Large MEMOIRE DE MASTER} +\vskip1cm +OPTION:} +\vskip1.5cm +\begin{center} +\bordertitle{magenta!20}{white}{ + \resizebox {16cm}{1.8cm}{ LE TITRE DU MEMOIRE}} +\end{center} +\vfill +\begin{minipage}[t]{8cm} +\underline{ Présenté par:}\\[3mm] +Nom et prénom +\end{minipage} +\hfill +\begin{minipage}[t]{5cm} +\underline{ Enquadré par:}\\[3mm] +\hfill Nom \& Prénoms +\end{minipage} +\vfill +\centerline{ +Promotion: mois \& année} +\end{french} +\end{document}
\ No newline at end of file diff --git a/macros/xetex/latex/na-border/doc/packages.tex b/macros/xetex/latex/na-border/doc/packages.tex new file mode 100644 index 0000000000..8a4e4d21cf --- /dev/null +++ b/macros/xetex/latex/na-border/doc/packages.tex @@ -0,0 +1,40 @@ +\usepackage[left=1.5cm,right=1.7cm, +top=1.57cm,bottom=2.3cm]{geometry} +\usepackage[svgnames,dvipsnames,x11names,]{xcolor} +\usepackage{url} +\usepackage{hyperref} +%\usepackage[pages=all]{background} +\hypersetup{pdfstartview=FitH,colorlinks=true, linkcolor=black, urlcolor=green!50!black} +\usepackage[explicit]{titlesec} +\usepackage{varwidth} +\usepackage[listings]{tcolorbox} +\usepackage{esvect} +\usepackage{tcolorbox, graphicx, tikz} +\usepackage{graphicx} +\usepackage{svgcolor} +\usepackage[utf8]{inputenc} +\usepackage{esvect} +\usepackage{na-border} +\usepackage{contour} +\usepackage{fancybox} +\usepackage{bidicontour} +\usepackage{amsmath,amsfonts,amssymb,mathrsfs} +\usepackage{fancyhdr} +\usepackage{xkeyval} +\usepackage{tikzpagenodes} +\usetikzlibrary{shadows,calc,backgrounds} +\usepackage{contour} +\usepackage{pgf ,tikz} +\usepackage{pifont} +\usetikzlibrary{decorations.pathmorphing} +\tcbuselibrary{skins,breakable} +\usetikzlibrary{decorations, decorations.text} +\usetikzlibrary{calc} +\tcbuselibrary{listings} +\usetikzlibrary{decorations.pathmorphing} +\tcbuselibrary{listings,breakable,skins} +\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} +\usepackage{listings}
\ No newline at end of file diff --git a/macros/xetex/latex/na-border/font/CORNPOP.TTF b/macros/xetex/latex/na-border/font/CORNPOP.TTF Binary files differnew file mode 100644 index 0000000000..1a1e272368 --- /dev/null +++ b/macros/xetex/latex/na-border/font/CORNPOP.TTF diff --git a/macros/xetex/latex/na-border/font/readme.txt b/macros/xetex/latex/na-border/font/readme.txt new file mode 100644 index 0000000000..0ed2ff8031 --- /dev/null +++ b/macros/xetex/latex/na-border/font/readme.txt @@ -0,0 +1,38 @@ +This font is provided to you by Fonts2u.com – the largest online +repository of free fonts for Windows and Mac. + + + +How to install this font on your computer? + +For Windows 7 / Vista users: + +- Right-click the font file(s) and choose "Install". + +For users of the previous Windows versions: + +- Copy the included file(s) into a default Windows font folder + (usually C:\WINDOWS\FONTS or C:\WINNT\FONTS) + +For Mac users: + +Mac OS X 10.3 or above (including the FontBook) + +- Double-click the font file and hit "Install font" button at + the bottom of the preview. + +Mac OS X + +- Either copy the font file(s) to /Library/Fonts (for all users), + or to /Users/Your_username/Library/Fonts (for you only). + +Mac OS 9 or earlier + +- You have to convert the font file(s) you have downloaded. + Drag the font suitcases into the System folder. The system + will propose you to add them to the Fonts folder. + +For Linux users: + +- Copy the font file(s) to /USR/SHARE/FONTS + diff --git a/macros/xetex/latex/na-border/test/test_naborder.pdf b/macros/xetex/latex/na-border/test/test_naborder.pdf Binary files differnew file mode 100644 index 0000000000..936f683182 --- /dev/null +++ b/macros/xetex/latex/na-border/test/test_naborder.pdf diff --git a/macros/xetex/latex/na-border/test/test_naborder.tex b/macros/xetex/latex/na-border/test/test_naborder.tex new file mode 100644 index 0000000000..758984d2a9 --- /dev/null +++ b/macros/xetex/latex/na-border/test/test_naborder.tex @@ -0,0 +1,80 @@ +\documentclass[paper=a4,12pt]{article} +\usepackage[left=2cm,right=1.7cm, +top=1.57cm,bottom=2.3cm]{geometry} +\usepackage[utf8]{inputenc} +\usepackage{na-border} +\usepackage{contour} +\usepackage{polyglossia} +\makeatletter +\AtBeginDocument{\bidi@isloaded[]{arabxetex}} +\makeatother +\setdefaultlanguage[calendar=gregorian,locale=algeria]{arabic} +\newfontfamily\arabicfont[Script=Arabic,Scale=1.4]{Amiri} +\newfontfamily\arabicfontsf[Script=Arabic,Scale=1.4]{Amiri} +\newfontfamily +\corna[Script=Arabic,Scale=5]{CornPop} +\usepackage[novoc]{arabxetex} +\setotherlanguage{french} +\renewcommand{\footrulewidth}{0pt} +\renewcommand{\headrulewidth}{0pt} +\rhead{ } +\lhead{} +\chead{ } +\pagestyle{fancy} +\parindent=0pt +\cfoot{} +\begin{document} +\naborder{MidnightBlue}{f} +\vskip1cm +أكتب هنا +\newpage +\naborder{red!50!black}{d} +\newpage +\naborder{DarkSlateGray}{f} +\newpage +\naborder{Maroon}{p} +\newpage +\naborder{Purple4}{E} +\newpage +\naborder{magenta}{1} +\newpage +\naborder{green}{h} +\newpage +\naborder{blue!50!white}{n} +\newpage +\naborder{DarkSlateGray}{w} +\newpage +\naborder{red}{b} +\newpage +\naborder{blue}{o} + +\begin{french} +icrire ici bon courage \\ +\centerline{\bordertitle{yellow}{white}{memoire de mathémathéqiue}} +\end{french} +\newpage +\naborder{magenta}{c} + +\begin{french} +icrire ici bon courage \\ +\centerline{\bordertitle{yellow}{white}{memoire de mathémathéqiue}} +\end{french} +\newpage +\naborder{magenta}{q} + +\begin{french} +icrire ici bon courage \\ +\centerline{\bordertitle{yellow}{white}{memoire de mathémathéqiue}} +\end{french} +\newpage +\naborder{magenta}{x} + +\begin{french} +icrire ici bon courage \\ +\centerline{\bordertitle{yellow}{white}{memoire de mathémathéqiue}} +\end{french} +\newpage +\naborder{blue}{l} + +اكتب هنا +\end{document}
\ No newline at end of file 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 |