diff options
author | Karl Berry <karl@freefriends.org> | 2021-06-14 20:31:29 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-06-14 20:31:29 +0000 |
commit | 20d09b7b016e2db76850daaf807e5c8a52981388 (patch) | |
tree | 6c53b4108cf5cd9d54b04068e335d6c995ce9272 /Master/texmf-dist | |
parent | ce2d69ebd751176b5b44ba3fa1a3bf8593e0b9fe (diff) |
arabic-book (14jun21)
git-svn-id: svn://tug.org/texlive/trunk@59594 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-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 |
6 files changed, 252 insertions, 0 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 |