File: groups.tex

package info (click to toggle)
auto-multiple-choice 1.7.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 92,612 kB
  • sloc: perl: 26,752; xml: 24,889; cpp: 1,997; python: 895; makefile: 569; sh: 233; ansic: 195
file content (115 lines) | stat: -rw-r--r-- 2,686 bytes parent folder | download | duplicates (7)
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
\documentclass[a4paper]{article}

\usepackage[box,completemulti]{automultiplechoice}

%% XeLaTeX with arabic texts, using Rasheeq font from arabeyes:
\usepackage{arabxetex}
\newfontfamily{\arabicfont}[Script=Arabic,Scale=1]{Rasheeq}
%%

\begin{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% some commands to turn texts into arabic :

\Arabic

\def\AMCchoiceLabel#1{\textLR{\Alph{#1}}}
\def\AMCbeginQuestion#1#2{\par\noindent{‫السؤال #1 #2 :}}
\def\AMCformQuestion#1{\vspace{\AMCformVSpace}\par{\large ‫السؤال #1 :}}

\AMCtext{none}{لا شيء من الإجابات أعلاه صحيحة}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%% preparation of the groups

\element{geographie}{
  \begin{question}{Paris}
    في أي قارة توجد باريس؟
    \begin{choices}
      \correctchoice{اوروبا}
      \wrongchoice{افريقيا}
      \wrongchoice{اسيا}
      \wrongchoice{كوكب المشتري}
    \end{choices}
  \end{question}
}

\element{geographie}{
  \begin{question}{Riyad}
    ما هي عاصمة السعودية؟
    \begin{choices}
      \correctchoice{الرياض}
      \wrongchoice{كولالمبور}
      \wrongchoice{أبوظبي}
    \end{choices}
  \end{question}
}

\element{histoire}{
  \begin{question}{ww1}
    في أي عام انتهت الحرب العالمية الاولى؟
    \begin{choiceshoriz}
      \correctchoice{1918}
      \wrongchoice{1919}
      \wrongchoice{1519}
    \end{choiceshoriz}
  \end{question}
}

\element{histoire}{
  \begin{questionmult}{ONU}
    يمكن القول عن  \emph{هيئة الامم المتحدة}؟
    \begin{choices}
      \correctchoice{انها تأسست عام 1946}
      \correctchoice{انها توجد في نيويورك}
      \wrongchoice{انها نادي استعماري للدول الكبرى}
    \end{choices}
  \end{questionmult}
}

%%% copies

\onecopy{10}{

%%% beginning of the test sheet header:

\noindent{\textLR{\bf AutoMultipleChoice}  \hfill \textLR{TEST}}

\vspace*{.5cm}
\begin{minipage}{.4\linewidth}
  \centering\large التاريخ والجغرافيا\\ اختبار الفصل الاول يناير 2011
\end{minipage}
\namefield{\fbox{\begin{minipage}{.5\linewidth}
الاسم الكامل:

\vspace*{.5cm}\dotfill
\vspace*{1mm}
\end{minipage}}}

%%% end of the header

\begin{center}
  \hrule\vspace{2mm}
  \Large الجغرافيا
  \vspace{1mm}\hrule
\end{center}

\shufflegroup{geographie}
\insertgroup{geographie}

\begin{center}
  \hrule\vspace{2mm}
  \Large التاريخ
  \vspace{2mm}\hrule
\end{center}

\shufflegroup{histoire}
\insertgroup{histoire}

\clearpage

}

\end{document}