diff options
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/xelatex/arabic-book/README.txt | 21 | ||||
-rw-r--r-- | Master/texmf-dist/doc/xelatex/arabic-book/arabic-book.pdf | bin | 0 -> 271221 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/xelatex/arabic-book/arabic-book.tex | 28 | ||||
-rw-r--r-- | Master/texmf-dist/doc/xelatex/arabic-book/arabic-ref.bib | 9 | ||||
-rw-r--r-- | Master/texmf-dist/doc/xelatex/arabic-book/fig1.png | bin | 0 -> 269200 bytes | |||
-rw-r--r-- | Master/texmf-dist/tex/xelatex/arabic-book/arabic-book.cls | 194 | ||||
-rwxr-xr-x | Master/tlpkg/bin/tlpkg-ctan-check | 2 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/arabic-book.tlpsrc | 0 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/collection-langarabic.tlpsrc | 1 |
9 files changed, 254 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/xelatex/arabic-book/README.txt b/Master/texmf-dist/doc/xelatex/arabic-book/README.txt new file mode 100644 index 00000000000..0f91471e278 --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/arabic-book/README.txt @@ -0,0 +1,21 @@ + This is an Arabic document class. It is used to produce a book. Version 1.0 +Copyright 2021, Mohammed O. Alziyadi + +This work may be distributed and/or modified under the +conditions of the LaTeX Project Public Licenese, either version 1.3 of this license or (at your option) any later version. The latest version of this license is in +http://www.latex-project.org/lppl.txt +and version 1.3 or later is part of all distributions of LaTeX + + + +This work has the LPPL maintenance status `maintained'. + +The current maintainer of this work is Mohammed Alziyadi. +Contact mo_9009@hotmail.com for bug reports. + +Files included are: + arabic-book.cls - class file + arabic-book.tex - class file documentation (source) + arabic-book.pdf - class file documentation + arabic-ref.bib - class file documentation (bib file) + fig1.png - figure
\ No newline at end of file diff --git a/Master/texmf-dist/doc/xelatex/arabic-book/arabic-book.pdf b/Master/texmf-dist/doc/xelatex/arabic-book/arabic-book.pdf Binary files differnew file mode 100644 index 00000000000..c8c23a2adb4 --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/arabic-book/arabic-book.pdf diff --git a/Master/texmf-dist/doc/xelatex/arabic-book/arabic-book.tex b/Master/texmf-dist/doc/xelatex/arabic-book/arabic-book.tex new file mode 100644 index 00000000000..6946603ab60 --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/arabic-book/arabic-book.tex @@ -0,0 +1,28 @@ +\documentclass[10pt,oneside]{arabic-book} +\title{اللغة العربيّة} +\author{ محمد الزيادي} +\date{\today} +\abstract{هنا توضع المقدمة} +\begin{document} +\chapter{مستند يدعم الكتابة باللغة العربية} +هذا المستند يدعم الكتابة باللغة العربية بواسطة Latex أيضاً يدعم لغات أخرى كالانجليزية و الهندية والفارسية. تم إعداده لكتابة كتاب باللغة العربية. هذا القالب لا يعمل إلا باستخدام المحرك Xelatex. الملف المستخرج بصيغة pdf قابل للنسخ واللصق. + +الخط المستخدم في المستند هو الخط الاميري \ref{fig:fig1}\cite{1}. هذا القالب يخدم أيضا خطوط أخرئ. +\begin{figure}[H] + \centering + \includegraphics[width=0.7\linewidth]{fig1} + \caption{اللغة العربيّة} + \label{fig:fig1} +\end{figure} + +\section{مكانة اللغة العربيّة وميزاتها} +مكانة اللغة العربيّة وميزاتها. +\section{المعادلات الرياضية } +\begin{equation} + F = m a +\end{equation} +\chapter{الملحقات} +لإضافة الملحقات نستخدم \verb|\appendix| +\bibliography{arabic-ref}{} +\bibliographystyle{unsrt} +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/xelatex/arabic-book/arabic-ref.bib b/Master/texmf-dist/doc/xelatex/arabic-book/arabic-ref.bib new file mode 100644 index 00000000000..2140e9b3eac --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/arabic-book/arabic-ref.bib @@ -0,0 +1,9 @@ +@article{1, + title={الخـط العــربـي عنصـرا كتابيـا وزخرفيـا}, + author={إسماعيل محمود أحمد}, + journal={Journal of Surra Man Raa}, + volume={6}, + number={22}, + year={2010}, + publisher={University of Samarra} +}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/xelatex/arabic-book/fig1.png b/Master/texmf-dist/doc/xelatex/arabic-book/fig1.png Binary files differnew file mode 100644 index 00000000000..9c00ff3c70b --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/arabic-book/fig1.png diff --git a/Master/texmf-dist/tex/xelatex/arabic-book/arabic-book.cls b/Master/texmf-dist/tex/xelatex/arabic-book/arabic-book.cls new file mode 100644 index 00000000000..5921061f131 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/arabic-book/arabic-book.cls @@ -0,0 +1,194 @@ +% This is an Arabic document class. It is used to produce a book. +% Copyright 2021, Mohammed Obaid Alziyadi + +% This work may be distributed and/or modified under the +% conditions of the LaTeX Project Public Licenese, either version 1.3 +% of this license or (at your option) any later version. +% The latest version of this license is in +% http://www.latex-project.org/lppl.txt +% and version 1.3 or later is part of all distributions of LaTeX version 2005/12/01 or later. + +% This work has the LPPL maintenance status `maintained'. + +% The current maintainer of this work is Mohammed Alziyadi. +% Contact mo_9009@hotmail.com for bug reports. + +% document class version : +% version 1.0 + +% Here is a history of changes: + +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{arabic-book}[2021-06-14] +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}} +\ProcessOptions +\LoadClass{book} +\usepackage{polyglossia} +%\usepackage[utf8]{inputenc} +\usepackage[linktocpage,breaklinks,linktoc=all,hidelinks]{hyperref} +\usepackage[top=1in,bottom=1in,left=1in,right=1in,letterpaper]{geometry} +\usepackage{amsmath} +\usepackage{enumitem} +\usepackage{tikz} +\usepackage[doublespacing]{setspace} +\usepackage{titling} +\usepackage{ifthen} +\usepackage{titlesec} +\usepackage{indentfirst} +\usepackage[titles]{tocloft} +\usepackage{etoolbox} +\usepackage[figure,table]{totalcount} +\usepackage[nottoc]{tocbibind} +\usepackage[within=chapter]{newfloat} +\usepackage[labelsep=period]{caption} +\usetikzlibrary{matrix,arrows,decorations.pathmorphing} +\usepackage{collcell} +\usepackage{float} +\usepackage[printwatermark]{xwatermark} + + +%set fonts +%\setmainfont[Scale=1.5]{Amiri-Regular.ttf} +\setmainlanguage[locale=mashriq,calendar=hijri]{arabic} +\setotherlanguage{english} + +\newfontfamily\arabicfont[Script=Arabic,Scale=1.5]{Amiri-Regular.ttf} +\setmonofont{Amiri-Regular.ttf} +\let\arabicfonttt\ttfamily + +% Basic spacing +\setlength{\parindent}{.5in} +\setcounter{secnumdepth}{5} +\setlength{\intextsep}{\baselineskip} +\openup 0.5em + +%------------------------------------ + +\addto\captionsarabic{ + \renewcommand{\contentsname}{الفهرس} + \renewcommand{\listtablename}{قائمةالجداول } + \renewcommand{\listfigurename}{قائمة الاشكال } + \renewcommand{\chaptername}{} + \renewcommand{\cftchapfont}{\normalfont} + \renewcommand{\cftchappagefont}{\normalfont} + \renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}}} +\renewcommand{\cftchapaftersnum}{.} +\renewcommand{\cftfigaftersnum}{.} +\renewcommand{\cfttabaftersnum}{.} +\renewcommand{\cftsecaftersnum}{.} +\renewcommand{\cftsubsecaftersnum}{.} +\setlength{\cftbeforesecskip}{.5\baselineskip} +\setlength{\cftbeforesubsecskip}{0.5\baselineskip} +\setlength{\cftbeforetabskip}{0.5\baselineskip} +\setlength{\cftbeforefigskip}{0.5\baselineskip} +\setlength{\cftfigindent}{0em} +\setlength{\cfttabindent}{0em} +\setlength{\cftfignumwidth}{3.5em} +\cftsetindents{section}{1em}{3.5em} +\cftsetindents{chapter}{1em}{2.5em} +\renewcommand{\bibname}{المراجع} +\DeclareTotalCounter{appendixfigure} +\DeclareTotalCounter{appendixtable} +\DeclareFloatingEnvironment[fileext=loaf,placement={ht},listname={جدول الملحقات },name=Figure]{appendixfigure} +\DeclareFloatingEnvironment[fileext=loat,placement={ht},listname={جدول الملحقات },name=Table]{appendixtable} + +% Fix table captions +\captionsetup[table]{position=top,skip=\baselineskip} +\captionsetup[appendixtable]{position=top,skip=\baselineskip} +%----------------------abstract +\newcommand\abstract[1]{\def\@abstract{#1}} +\let\@abstract=\@empty + +\renewcommand\title[1]{\def\@title{\uppercase{#1}}} +\let\@title=\@empty + + +\newcommand{\makeabstract}{ + \chapter*{المقدمة} \@abstract + \addcontentsline{toc}{chapter}{المقدمة} +} + +%--------------------------Header +\AtBeginDocument{\frontmatter + \def\thepage{\alph{page}} \maketitle\thispagestyle{empty}\makeabstract + \begin{singlespace}\tableofcontents\end{singlespace} + \iftotaltables + \begingroup + \renewcommand*{\addvspace}[1]{} + \begin{singlespace}\listoftables\end{singlespace} + \endgroup + \fi + \iftotalfigures + \begingroup + \renewcommand*{\addvspace}[1]{} + \begin{singlespace}\listoffigures\end{singlespace} + \endgroup + \fi + \iftotalappendixtables\begin{singlespace}\listofappendixtables\end{singlespace}\fi + \iftotalappendixfigures\begin{singlespace}\listofappendixfigures\end{singlespace}\fi + \mainmatter} + +% Format table of contents +\pagestyle{plain} +\addtocontents{lot}{\noindent\underline{Table}\hfill \underline{صفحة}\par} +\addtocontents{lof}{\noindent\underline{أشكال}\hfill \underline{صفحة}\par} +\addtocontents{loat}{\noindent\underline{Table}\hfill \underline{Page}\par} +\addtocontents{loaf}{\noindent\underline{صفحة}\hfill \underline{أشكال}\par} + +% Labels chapters correctly +\titleformat{\chapter} +{\centering\normalfont\bfseries}{{\LARGE\MakeUppercase{{\chaptertitlename}} \thechapter.}}{1em}{\LARGE\MakeUppercase} +\titlespacing*{\chapter}{0pt}{-0.5\baselineskip}{\baselineskip} + +\titleformat{\section} +{\Large\bfseries}{\thesection}{0.6em}{} +\titlespacing*{\section}{0pt}{*0}{0pt} + +\titleformat{\subsection} +{\normalfont\bfseries}{\thesubsection}{0.5em}{} +\titlespacing*{\subsection}{0pt}{*0}{0pt} + +\titleformat{\subsubsection} +{\normalfont\bfseries}{\thesubsubsection.}{0.5em}{} +\titlespacing*{\subsubsection}{0pt}{*0}{0pt} + +% Generate appendices with the correct numbering +\renewcommand{\appendix}{ + \chapter*{الملحقات} + \setcounter{appendixfigure}{0} + \renewcommand{\theappendixfigure}{A.\arabic{appendixfigure}} + \setcounter{appendixtable}{0} + \renewcommand{\theappendixtable}{A.\arabic{appendixtable}} + \addcontentsline{toc}{chapter}{الملحقات} + \renewcommand{\theequation}{A.\arabic{equation}} +} +\newcommand{\namedappendix}[1]{ + \chapter*{الملحقات. #1} + \setcounter{appendixfigure}{0} + \renewcommand{\theappendixfigure}{A.\arabic{appendixfigure}} + \setcounter{appendixtable}{0} + \renewcommand{\theappendixtable}{A.\arabic{appendixtable}} + \addcontentsline{toc}{chapter}{ الملحقات . \LARGE{#1}} + \renewcommand{\theequation}{A.\arabic{equation}} +} + + +%------------------ Labels equations correctly + +\makeatletter +\def\maketag@@@#1{\hbox{\m@th\normalfont\LRE{#1}}} +\def\tagform@#1{\maketag@@@{(\ignorespaces#1\unskip)}} +\makeatother + +%--------------------Labels equations correctly +\def\SepMark#1{\gdef\@SepMark{\if@RTL\fi#1\if@RTL\fi}} +\makeatletter +\renewcommand{\SepMark}[1]{\def\@SepMark{#1}} +\makeatother +\SepMark{-} + +%-------------------- size the equations correctly +\DeclareMathSizes{10}{15}{15}{15} + +\widowpenalty=10000 +\clubpenalty=10000
\ No newline at end of file diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index 734539fa2b1..bdcddeec323 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -49,7 +49,7 @@ my @TLP_working = qw( appendix appendixnumberbeamer apprendre-a-programmer-en-tex apprends-latex apptools apxproof - arabi arabicfront arabi-add arabluatex arabtex arabxetex + arabi arabic-book arabicfront arabi-add arabluatex arabtex arabxetex aramaic-serto arara archaeologie archaic archivo arcs arev arimo armtex around-the-bend arphic arphic-ttf arraycols arrayjobx arraysort arsclassica arvo arydshln articleingud diff --git a/Master/tlpkg/tlpsrc/arabic-book.tlpsrc b/Master/tlpkg/tlpsrc/arabic-book.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/arabic-book.tlpsrc diff --git a/Master/tlpkg/tlpsrc/collection-langarabic.tlpsrc b/Master/tlpkg/tlpsrc/collection-langarabic.tlpsrc index 2fb83f2aa7c..94f4cacf362 100644 --- a/Master/tlpkg/tlpsrc/collection-langarabic.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-langarabic.tlpsrc @@ -9,6 +9,7 @@ depend alpha-persian depend amiri depend arabi depend arabi-add +depend arabic-book depend arabluatex depend arabtex depend bidi |