summaryrefslogtreecommitdiff
path: root/macros/xetex/latex/sexam/sexam_wexam_doc_ar.tex
blob: be9b3a55a244cb3051263b1219c09a9f90a71924 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376

\documentclass[11pt,A4]{article}
\usepackage[left=2 cm,right=2cm,top=2.5cm,bottom=2.5cm]{geometry}
\usepackage{blindtext}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{niceframe}
\usepackage{enumitem}
\usepackage{swrule}
\usepackage{ulem}
\usepackage{hyperref}
\usepackage{multicol}
\hypersetup{
    bookmarks=true,         % show bookmarks bar?     % links in new PDF window
    colorlinks=true,       % false: boxed links; true: colored links
    linkcolor=red,          % color of internal links (change box color with linkbordercolor)
    citecolor=green,        % color of links to bibliography
    filecolor=magenta,      % color of file links
    urlcolor=cyan           % color of external links
}
\usepackage{xcolor}
\usepackage{pgf,tikz}
\usepackage{mathrsfs}
\usetikzlibrary{arrows}
\usepackage{polyglossia}
\usepackage{varwidth,umrand}
\usepackage{nicefrac}
\usepackage{tcolorbox}
\tcbuselibrary{skins,listings,breakable}
\usepackage{listings}
\definecolor{ocre}{RGB}{65,105,225}
\definecolor{BrickRed}{RGB}{132,31,39}
\definecolor{RoyalBlue}{RGB}{243,102,25}
\usepackage{newverbs}
\newverbcommand{\cverb}{\color{blue}}{}
\lstset{language=[LaTeX]TeX,
,escapeinside=``,
	keywordstyle=\color{blue},%
	upquote=true,
columns=flexible,
texcsstyle=*\color{blue},
	 basicstyle=\small,
	stringstyle=\color{blue},
	commentstyle=\color{red}}	   
\lstset{moretexcs={question,part,pointsinrightmargin,mathbb,dfrac,subpart,subsection,subsubsection,abstractname,textsubscript,mathcal}}
%===================================================================
\tcbset{bicolor,colback=green!3!white,colbacklower=white,colframe=BrickRed}
%============================================================================
%===============================================================
\setdefaultlanguage[calendar=gregorian,,locale=algeria]{arabic}
\newfontfamily\arabicfont[Script=Arabic,Scale=1]{Amiri}
\newfontfamily\arabicfontsf[Script=Arabic,Scale=1.2]{Aljazeera}
\newfontfamily\arabicfonttt[Script=Arabic,Scale=1]{Times New Roman}
\setotherlanguage{english}
% ----------------------------------------------------------------





%--------------------------------------
\def\c{\char'} 
\font\G = umrandb at 20pt

\title{استعمال حزمة 
 exam
في 
كتابة مواضيع الامتحانات والفروض
بالعربية
}
\author{
\href{https://www.facebook.com/groups/573789572802504/?ref=bookmarks}{\LR{\LaTeX 4 ALL}}
}

\begin{document}
\artdecoframe{
\maketitle
}
\niceframe{
\tableofcontents}
\section{التعريف بحزمة { exam} }
 حزمة تستعمل في كتابة مواضيع الامتحانات والفروض في برنامج 
\LaTeX 
.\\
وهنا قمت باظافة بعض التنسيقات
على شكل حزمتين
\href{https://drive.google.com/open?id=1lOoPPxZE4uCbjJtLTnVITsyLAhPeWImx}{\LR{sexam \& wexam}}
 التي ستمكننا من استغلال امكانيات exam في الكتابة العربية ،
 يمكن تحميلهما من 
\href{https://drive.google.com/open?id=1lOoPPxZE4uCbjJtLTnVITsyLAhPeWImx}{\textbf{هنـــا}} 
.

  نتمنى أن يكون مفيدا للأخوة مستعملي 
\LaTeX
.
\section{ استعمال الحزمة sexam}
يجب أولا تحميل الحزمة
%بالنقر
%\href{http://mirrors.ctan.org/macros/generic/umrand.zip}{هنا} 
sexam
ووضعها مع ملف التاك الذي نكتب فيه موضوع الإمتحان.\\
ندرج في الديباجة الأمر :
\begin{english}
\begin{lstlisting}
\documentclass[12pt]{exam}
\usepackage{sexam}
\end{lstlisting}
\end{english}
%\newpage
\section{كتابة موضوع الامتحان }
\begin{enumerate}
\item
لتغيير نوع الخط الرئيسي أو الخطوط الثانوية ،نفتح ملف 
\LR{sexam.sty}
ثم نقوم بتغيير اسم الخطوط الموضحة في الصورة :
$$\fbox{\includegraphics[width=16cm]{01.JPG}}$$
\item
بعد فتح ملف التاك الذي سنكتب فيه الامتحان نجد الأوامر التالية:
\begin{english}
\begin{lstlisting}
\newcommand{\lycee}{\sffamily `\textarabic{نكتب هنا اسم الثانوية}` }
\newcommand{\annee}{2018-2017}
\newcommand{\examnum}{ `\textarabic{نكتب اسم الامتحان أو الفرض مع السداسي الخاص به}`}
\newcommand{\examdate}{\date}
\newcommand{ \duree }{ `\textarabic{الحجم الساعي للامتحان}` }
\newcommand{ \niveau }{  `\textarabic{المستوى الذي سيمتحن}`}
\end{lstlisting}
\end{english}
نقوم بكتابة المعلومات الخاصة بنا ، كما في المثال التالي:
\begin{english}
\begin{lstlisting}
\newcommand{\lycee}{\sffamily `\textarabic{ثانوية الدكتور أحمد عروة}` }
\newcommand{\annee}{2018-2017}
\newcommand{\examnum}{ `\textarabic{امتحان الفصل الثاني مادة الرياضيات}`}
\newcommand{\examdate}{\date}
\newcommand{ \duree }{ `\textarabic{ساعتان}` }
\newcommand{ \niveau }{  `\textarabic{سنة ثانية تقني رياضي}`}
\end{lstlisting}
\end{english}
\item
بعد الديباجة نجد الأوامر التالية على شكل اختصارات قمنا بتعريفها سابقا ، نتركها كما هي :
\begin{english}
\begin{lstlisting}
{ \lycee}
%-----------------
\hfill
%-----------------
{\sffamily `\textarabic{ السنة الدراسية :}`\annee}
%-----------------
%-----------------
$\rule{\textwidth}{1pt}$

\vspace{9pt}
\centerline{\sffamily\large  \examnum}
%-----------------
$\rule{\textwidth}{1pt}$\\
{\sffamily `\textarabic{ الشعبة :}` \niveau  
 %-----------------
\hfill
%-----------------
`\textarabic{  المدة:}`\duree}
\end{lstlisting}
\end{english}
\item
بعد المعالجة نجد :
$$\fbox{\includegraphics[scale=0.7]{2.JPG}}$$
\item
بعد ضبط العناوين الرئيسية للامتحان ، ننتقل إلى المضمون ألا وهو التمارين .\\
\begin{enumerate}[label=\alph*)]
\item
للبدء في كتابة التمارين نكتب الأمر :
\begin{english}
\begin{lstlisting}
\begin{questions}
....
\end{questions}
\end{lstlisting}
\end{english}
\item
لإدراج التمرين الأول نكتب الأمر :
\verb#\question[note]#
فيظهر لنا العنوان مرفقا بالتنقيط 
\LR{(note)}
الخاص به  :
 \begin{tcolorbox}[attach boxed title to top right=
{yshift=-\tcboxedtitleheight/3,xshift=-5mm},title=\textarabic{\sffamily مثال},colbacktitle=BrickRed,sidebyside]

\begin{flushright}
\uline{\textbf{\sffamily التمرين الأول :}}   
(1 نقطة)
\end{flushright}

\tcblower
نكتب الأمر
\begin{english}
\begin{lstlisting}
\begin{questions}
\question[1]
\end{questions}
\end{lstlisting}
\end{english}
\end{tcolorbox}
نفس الأمر إذا أردنا ادراج تمرين آخر.
 \begin{tcolorbox}[attach boxed title to top right=
{yshift=-\tcboxedtitleheight/3,xshift=-5mm},title=\textarabic{\sffamily مثال},colbacktitle=BrickRed,sidebyside]

\begin{flushright}
\uline{\textbf{\sffamily التمرين الأول :}}   
(1 نقطة)\\
\vspace{0.3cm}
\uline{\textbf{\sffamily التمرين الثاني :}}   
(3 نقاط)
\end{flushright}

\tcblower
نكتب الأمر
\begin{english}
\begin{lstlisting}
\begin{questions}
\question[1]
\question[3]
\end{questions}
\end{lstlisting}
\end{english}
\end{tcolorbox}
\item
للبدء في كتابة الأسئلة الرئيسية في التمرين نستعمل البيئة
parts
بعد الأمر :
\verb#\question[note]#
كما يلي :
\begin{english}
\begin{lstlisting}
\begin{questions}
\question[note]
\begin{parts}
%
\part[note] 
%
\end{parts}
\end{questions}
\end{lstlisting}
\end{english}
الأمر 
\verb#\part[note]#
معناه السؤال رقم 
1)
 في التمرين الأول مرفقا بتنقيطه note
.\\
إذا أردنا عدم ارفاق السؤال بتنقطيه نكتب :
\verb#\part#
فقط.

 \begin{tcolorbox}[attach boxed title to top right=
{yshift=-\tcboxedtitleheight/3,xshift=-5mm},title=\textarabic{\sffamily مثال},colbacktitle=BrickRed]
\begin{english}
\begin{lstlisting}
\begin{questions}
\question[3]
`\textarabic{لتكن الدالة }` $g$ `\textarabic{ المعرفة على}` $\mathbb{R}-\left\lbrace -1 \right\rbrace$ 
`\textarabic{بالعبارة : }` $g(x)=\dfrac{2x}{x+1}$
`\textarabic{وليكن }` $(C_g)$
`\textarabic{تمثيلها البياني في معلم متعامد ومتجانس }`
$\left( O;\vec{i}; \vec{j}\right)$.
%
\begin{parts}
\part[1]
`\textarabic{ بيّن أنه من أجل كل}` $x_0$ `\textarabic{من}` 
$\mathbb{R}-\left\lbrace -1 \right\rbrace$ :
$$\dfrac{g(x_0+h)-g(x_0)}{h}=\dfrac{2}{(x_0+h+1)(x_0+1)}$$
%
\part[1]
%
\part
\end{parts}
\end{questions}
\end{lstlisting}
\end{english}
\tcblower
\begin{center}
\includegraphics[width=14cm]{3.JPG} 
\end{center}

\end{tcolorbox} 
\item
يمكن ادراج الأسئلة الفرعية الخاصة بكل سؤال part في تمرين question 
وذلك بادراج البيئة
subparts
والأمر 
\verb#\subpart[note]#.
\begin{tcolorbox}[colback=white]
نكتب الأمر
\begin{english}
\begin{lstlisting}
\begin{questions}
\question[note]  % `\textarabic{التمرين الأول مرفق بنقطة}`
\begin{parts}    %
\part[note]      % `\textarabic{السؤال الأول في التمرين}`
\begin{subparts}
\subpart[note]   %   `\textarabic{السؤال الفرعي الأول الخاص بالسؤال رقم 1}` 
\end{subparts}
\end{parts}
\end{questions}
\end{lstlisting}
\end{english}
\end{tcolorbox}
\end{enumerate} 
%---
 \begin{tcolorbox}[attach boxed title to top right=
{yshift=-\tcboxedtitleheight/3,xshift=-5mm},title=\textarabic{\sffamily مثال},colbacktitle=BrickRed,sidebyside]
\includegraphics[width=6cm,height=5cm]{4.JPG} 
\tcblower

\begin{english}
\begin{lstlisting}
\question [5]

\begin{parts}
\part[2] 

\begin{subparts}
\subpart   % `\textarabic{السؤال الفرعي الأول الخاص بالسؤال رقم 1}` 
\subpart[1]
\end{subparts}

\part 

\end{parts}
\end{lstlisting}
\end{english}
\end{tcolorbox}
\item
يمكن تغيير موضع ظهور تنقيط الأسئلة إلى يسار الصفحة ،وذلك بإضافة الأمر
\verb#\pointsinrightmargin#
قبل بداية الأسئلة.
%--
 \begin{tcolorbox}[attach boxed title to top right=
{yshift=-\tcboxedtitleheight/3,xshift=-5mm},title=\textarabic{\sffamily مثال},colbacktitle=BrickRed,sidebyside]
\includegraphics[width=7cm,height=5cm]{9.JPG} 
\tcblower

\begin{english}
\begin{lstlisting}
\pointsinrightmargin
\question [5]
\begin{parts}
\part[2]  ......................................

\begin{subparts}
\subpart[1] % `\textarabic{السؤال الفرعي الأول الخاص بالسؤال رقم 1}` 
\subpart[1]
\end{subparts}

\part[3]

\end{parts}
\end{lstlisting}
\end{english}
\end{tcolorbox}


\end{enumerate}
\subsection{ترقيم الصفحات}
يكون بشكل آلي اظهار رقم الصفحة مع عبارة تغييرها اذا كان الموضوع مكونا من صفحتين.
$$\includegraphics[width=12cm]{6.JPG} $$
$$\includegraphics[width=12cm]{7.JPG} $$
أما إذا كان مكونا من صفحة واحدة فقط يظهر:
$$\includegraphics[width=12cm]{8.JPG} $$
\section{اختبار باستعمال sexam }
$$\includegraphics[width=14cm]{10.png}  $$

\section{اختبار باستعمال wexam }
لها نفس مبدء عمل sexam ، لكنها تظهر الأطار.
$$\includegraphics[width=14cm]{11.png}  $$
\end{document}