summaryrefslogtreecommitdiff
path: root/macros/xetex/latex/parsa/parsa.sty
blob: 80d0833935527b59578eafcf422f1314c6315b9b (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
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
%%
%% This is file “parsa.sty”,
%%
%%   __________________________________________________
%%   Copyright (c) 2019-2020 Farshad Rasuli
%% 
%%   It may be distributed and/or modified under the LaTeX Project Public License,
%%   version 1.3c or higher (your choice). The latest version of
%%   this license is at: http://www.latex-project.org/lppl.txt
%% 
%%   This work is “author-maintained” (as per LPPL maintenance status)
%%   by Farshad Rasuli.
%% 
%%   Location on CTAN: /macros/xetex/latex/parsa
%%
%%   Homepage: http://github.com/farshadrasuli/parsa
%%
%%   Issue tracker: https://github.com/farshadrasuli/parsa/issues
%%
%%



% === Package structure: Identification
\NeedsTeXFormat{LaTeX2e}
\def\parsa@version{1.3}
\def\parsadate{2020/4/22}
\def\parsafirstrelease{2019/12/12}
\ProvidesPackage{parsa}[\parsadate\space v\parsa@version\space
A XeLaTeX package for theses and dissertations at Iranian Universities as fast and as efficiently as possible]
\edef\@parsa@info{****************************************************^^J%
* ^^J%
* parsa package (A XeLaTeX package for theses and dissertations at Iranian Universities)^^J%
* ^^J%
* Description: The package designed for^^J%
* thesis/dissertation typography.^^J%
* ^^J%
* Copyright (c) 2019-2020 Farshad Rasuli^^J%
* ^^J%
* v\parsa@version, \parsadate^^J%
* ^^J%
* License: LaTeX Project Public License, version^^J%
* 1.3c or higher (your choice)^^J%
* ^^J%
* Location on CTAN: /macros/xetex/latex/parsa^^J%
* ^^J%
* Homepage: http://github.com/farshadrasuli/parsa^^J%
* ^^J%
* Issue tracker: http://github.com/farshadrasuli/parsa/issues^^J%
* ^^J%
****************************************************}

% === Package structure: Options
\newcommand{\ParsaTargetPa}{~} \newcommand{\ParsaTargetLa}{~}
\newcommand{\ParsaTypePa}{~} \newcommand{\ParsaTypeLa}{~}
\DeclareOption{thesis}{%
\renewcommand{\ParsaTargetPa}{پایان نامه \\ برای دریافت درجه‌ی کارشناسی‌ارشد}%
\renewcommand{\ParsaTargetLa}{A Thesis \\ submitted in fulfillment of the requirements
for Master's degree}%
\renewcommand{\ParsaTypePa}{پایان‌نامه}\renewcommand{\ParsaTypeLa}{Thesis}}

\DeclareOption{dissertation}{%
\renewcommand{\ParsaTargetPa}{رساله \\ برای دریافت درجه‌ی دکتری}%
\renewcommand{\ParsaTargetLa}{A Dissertation \\ submitted in fulfillment of the requirements
for Doctoral degree}%
\renewcommand{\ParsaTypePa}{رساله}\renewcommand{\ParsaTypeLa}{Dissertation}}

\ProcessOptions\relax

% === Package structure: Preliminary declarations

\RequirePackage{xparse}
\RequirePackage{fancyhdr}
\RequirePackage{graphicx}
\RequirePackage{multirow}
\RequirePackage{float}
\RequirePackage{adjustbox}


% === Package structure: More declarations

     % PAGE  STYLE
\fancypagestyle{plain}{\fancyhf{}\fancyfoot[OL,ER]{\ParsaHeaderFont \thepage}\renewcommand{\headrulewidth}{0pt}}

\fancypagestyle{headings}{\fancyhf{}\fancyhead[OL,ER]{\ParsaHeaderFont \thepage}\fancyhead[OR]{\ParsaHeaderFont \rightmark}\fancyhead[EL]{\ParsaHeaderFont \leftmark}\renewcommand{\headrulewidth}{0.3pt}}

     % Create [This Page Intentionally Left Blank] by \cleardoublepage command.
\newcommand*{\blankpage}{%
\vspace*{\fill}
{\centering ~\par}
\vspace{\fill}}
\makeatletter
\renewcommand*{\cleardoublepage}{\clearpage\if@twoside \ifodd\c@page\else
\blankpage
\thispagestyle{empty}
\newpage
\if@twocolumn\hbox{}\newpage\fi\fi\fi}
\makeatother

     % Commands

% Institute's Information
\newcommand{\InstituteLogoPa}{~} \newcommand{\InstituteLogoLa}{~} \newcommand{\InstituteLogoPaSmall}{~} \newcommand{\InstituteLogoLaSmall}{~}
\NewDocumentCommand{\InstituteLogo}{m m O{3cm} O{3cm}}{\renewcommand{\InstituteLogoPa}{\includegraphics[width=#3,height=#4]{#1}}\renewcommand{\InstituteLogoLa}{\includegraphics[width=#3,height=#4]{#2}}\renewcommand{\InstituteLogoPaSmall}{\includegraphics[width=1.6cm,height=1.6cm]{#1}}\renewcommand{\InstituteLogoLaSmall}{\includegraphics[width=1.6cm,height=1.6cm]{#2}}}

\newcommand{\InstitutePa}{~} \newcommand{\InstituteLa}{~}
\NewDocumentCommand{\Institute}{m m}{\renewcommand{\InstitutePa}{#1} \renewcommand{\InstituteLa}{#2}}

\newcommand{\FacultyPa}{~} \newcommand{\FacultyLa}{~}
\NewDocumentCommand{\Faculty}{m m}{\renewcommand{\FacultyPa}{#1} \renewcommand{\FacultyLa}{#2}}

\newcommand{\DepartmentPa}{~} \newcommand{\DepartmentLa}{~}
\NewDocumentCommand{\Department}{m m}{\renewcommand{\DepartmentPa}{#1}\renewcommand{\DepartmentLa}{#2}}

\newcommand{\captiononePa}{~} \newcommand{\captiononeLa}{~}
\newcommand{\StudentNamePa}{~} \newcommand{\StudentNameLa}{~}
\NewDocumentCommand{\StudentName}{m m}{\renewcommand{\StudentNamePa}{#1} \renewcommand{\StudentNameLa}{#2}\renewcommand{\captiononePa}{نگارنده}\renewcommand{\captiononeLa}{by}}





% Student's Information
\newcommand{\StudentMajorPa}{~} \newcommand{\StudentMajorLa}{~}
\NewDocumentCommand{\StudentMajor}{m m}{\renewcommand{\StudentMajorPa}{#1} \renewcommand{\StudentMajorLa}{#2}}

\newcommand{\StudentMinorPa}{~} \newcommand{\StudentMinorLa}{~}
\NewDocumentCommand{\StudentMinor}{m m}{\renewcommand{\StudentMinorPa}{#1} \renewcommand{\StudentMinorLa}{#2}}

\newcommand{\StudentDegreePa}{~} \newcommand{\StudentDegreeLa}{~}
\NewDocumentCommand{\StudentDegree}{m m}{\renewcommand{\StudentDegreePa}{#1} \renewcommand{\StudentDegreeLa}{#2}}

\newcommand{\Studentid}{~}
\NewDocumentCommand{\StudentID}{m}{\renewcommand{\Studentid}{#1}}

\newcommand{\Studentnumber}{~}
\NewDocumentCommand{\StudentNumber}{m}{\renewcommand{\Studentnumber}{#1}}

\newcommand{\Studentemail}{~}
\NewDocumentCommand{\StudentEMAIL}{m}{\renewcommand{\Studentemail}{#1}}





% Parsa  Information
\newcommand{\ParsaTitlePa}{~} \newcommand{\ParsaTitleLa}{~}
\NewDocumentCommand{\ParsaTitle}{m m}{\renewcommand{\ParsaTitlePa}{#1} \renewcommand{\ParsaTitleLa}{#2}}

\NewDocumentCommand{\ParsaTarget}{m m}{\renewcommand{\ParsaTargetPa}{#1} \renewcommand{\ParsaTargetLa}{#2}}

\newcommand{\ParsaCompilationDatePa}{~} \newcommand{\ParsaCompilationDateLa}{~}
\NewDocumentCommand{\ParsaCompilationDate}{m m}{\renewcommand{\ParsaCompilationDatePa}{#1} \renewcommand{\ParsaCompilationDateLa}{#2}}

\newcommand{\ParsaExamDatePa}{~} \newcommand{\ParsaExamDateLa}{~}
\NewDocumentCommand{\ParsaExamDate}{m m}{\renewcommand{\ParsaExamDatePa}{#1} \renewcommand{\ParsaExamDateLa}{#2}}





% Supervisor
\newcommand{\SupervisorNamePa}{~} \newcommand{\SupervisorNameLa}{~}
\newcommand{\SupervisorTitlePa}{~} \newcommand{\SupervisorTitleLa}{~}
\newcommand{\SupervisorAffiliationPa}{~} \newcommand{\SupervisorAffiliationLa}{~}
\newcommand{\Supervisorid}{~}
\newcommand{\Supervisoremail}{~}
\newcommand{\captiontwoPa}{~} \newcommand{\captiontwoLa}{~}
\newcommand{\SupervisorReportPa}{~} \newcommand{\SupervisorReportLa}{~}
\newcommand{\SupervisorVspace}{~}
\NewDocumentCommand{\SupervisorName}{m m}{\renewcommand{\SupervisorNamePa}{#1}\renewcommand{\SupervisorNameLa}{#2}\renewcommand{\captiontwoPa}{استاد راهنما}\renewcommand{\captiontwoLa}{Supervisor}\renewcommand{\SupervisorReportPa}{\noindent نام کامل استاد راهنما: ~\textbf{\SupervisorNamePa} \hrulefill \\
\begin{tabular}{p{0.17\textwidth}p{0.28\textwidth}p{0.15\textwidth}p{0.17\textwidth}p{0.1\textwidth}}
\textit{مرتبهٔ علمی}     & \textbf{\SupervisorTitlePa} & \textit{شمارهٔ ملی}       & \Supervisorid         & \multicolumn{1}{c}{امضا} \\
\textit{وابستگی سازمانی} & \SupervisorAffiliationPa    & \textit{رایانامه سازمانی} & \lr{\Supervisoremail} & ~ 
\end{tabular}
} \renewcommand{\SupervisorReportLa}{\noindent Supervisor:~\textbf{\SupervisorNameLa} \hrulefill \\
\begin{tabular}{p{0.11\textwidth}p{0.29\textwidth}p{0.18\textwidth}p{0.17\textwidth}p{0.12\textwidth}}
\textit{Title}       & \textbf{\SupervisorTitleLa} & \textit{National ID}     & \Supervisorid    & \multicolumn{1}{c}{Signature} \\
\textit{Affiliation} & \SupervisorAffiliationLa    & \textit{Official E-Mail} & \Supervisoremail & ~ 
\end{tabular}}\renewcommand{\SupervisorVspace}{~\\[0.5mm]}}

\NewDocumentCommand{\SupervisorTitle}{m m}{\renewcommand{\SupervisorTitlePa}{#1}\renewcommand{\SupervisorTitleLa}{#2}}

\NewDocumentCommand{\SupervisorAffiliation}{m m}{\renewcommand{\SupervisorAffiliationPa}{#1}\renewcommand{\SupervisorAffiliationLa}{#2}}

\NewDocumentCommand{\SupervisorID}{m}{\renewcommand{\Supervisorid}{#1}}

\NewDocumentCommand{\SupervisorEMAIL}{m}{\renewcommand{\Supervisoremail}{#1}}





% 2nd Supervisor
\newcommand{\SecondSupervisorNamePa}{~} \newcommand{\SecondSupervisorNameLa}{~}
\newcommand{\SecondSupervisorTitlePa}{~} \newcommand{\SecondSupervisorTitleLa}{~}
\newcommand{\SecondSupervisorAffiliationPa}{~} \newcommand{\SecondSupervisorAffiliationLa}{~}
\newcommand{\SecondSupervisorid}{~}
\newcommand{\SecondSupervisoremail}{~}
\newcommand{\SecondSupervisorReportPa}{~} \newcommand{\SecondSupervisorReportLa}{~}
\newcommand{\SecondSupervisorVspace}{~}
\NewDocumentCommand{\SecondSupervisorName}{m m}{\renewcommand{\SecondSupervisorNamePa}{#1}\renewcommand{\SecondSupervisorNameLa}{#2}\renewcommand{\captiontwoPa}{استادان راهنما}\renewcommand{\captiontwoLa}{Supervisors}\renewcommand{\SecondSupervisorReportPa}{\noindent نام کامل استاد راهنمای دوم: ~\textbf{\SecondSupervisorNamePa} \hrulefill \\
\begin{tabular}{p{0.17\textwidth}p{0.28\textwidth}p{0.15\textwidth}p{0.17\textwidth}p{0.1\textwidth}}
\textit{مرتبهٔ علمی}     & \textbf{\SecondSupervisorTitlePa} & \textit{شمارهٔ ملی}       & \SecondSupervisorid         & \multicolumn{1}{c}{امضا} \\
\textit{وابستگی سازمانی} & \SecondSupervisorAffiliationPa    & \textit{رایانامه سازمانی} & \lr{\SecondSupervisoremail} & ~   
\end{tabular}
} \renewcommand{\SecondSupervisorReportLa}{\noindent Second Supervisor:~\textbf{\SecondSupervisorNameLa} \hrulefill \\
\begin{tabular}{p{0.11\textwidth}p{0.29\textwidth}p{0.18\textwidth}p{0.17\textwidth}p{0.12\textwidth}}
\textit{Title}       & \textbf{\SecondSupervisorTitleLa} & \textit{National ID}     & \SecondSupervisorid    & \multicolumn{1}{c}{Signature} \\
\textit{Affiliation} & \SecondSupervisorAffiliationLa    & \textit{Official E-Mail} & \SecondSupervisoremail & ~  
\end{tabular} }\renewcommand{\SecondSupervisorVspace}{~\\[0.5mm]}}

\NewDocumentCommand{\SecondSupervisorTitle}{m m}{\renewcommand{\SecondSupervisorTitlePa}{#1}\renewcommand{\SecondSupervisorTitleLa}{#2}}

\NewDocumentCommand{\SecondSupervisorAffiliation}{m m}{\renewcommand{\SecondSupervisorAffiliationPa}{#1}\renewcommand{\SecondSupervisorAffiliationLa}{#2}}

\NewDocumentCommand{\SecondSupervisorID}{m}{\renewcommand{\SecondSupervisorid}{#1}}

\NewDocumentCommand{\SecondSupervisorEMAIL}{m}{\renewcommand{\SecondSupervisoremail}{#1}}





% Co-supervisor
\newcommand{\CosupervisorNamePa}{~} \newcommand{\CosupervisorNameLa}{~}
\newcommand{\CosupervisorTitlePa}{~} \newcommand{\CosupervisorTitleLa}{~}
\newcommand{\CosupervisorAffiliationPa}{~} \newcommand{\CosupervisorAffiliationLa}{~}
\newcommand{\Cosupervisorid}{~}
\newcommand{\Cosupervisoremail}{~}
\newcommand{\captionthreePa}{~} \newcommand{\captionthreeLa}{~}
\newcommand{\CosupervisorReportPa}{~} \newcommand{\CosupervisorReportLa}{~}
\newcommand{\CosupervisorVspace}{~}
\NewDocumentCommand{\CosupervisorName}{m m}{\renewcommand{\CosupervisorNamePa}{#1}\renewcommand{\CosupervisorNameLa}{#2}\renewcommand{\captionthreePa}{استاد مشاور}\renewcommand{\captionthreeLa}{Co-supervisor}\renewcommand{\CosupervisorReportPa}{\noindent نام کامل استاد مشاور: ~\textbf{\CosupervisorNamePa} \hrulefill \\
\begin{tabular}{p{0.17\textwidth}p{0.28\textwidth}p{0.15\textwidth}p{0.17\textwidth}p{0.1\textwidth}}
\textit{مرتبهٔ علمی}     & \textbf{\CosupervisorTitlePa} & \textit{شمارهٔ ملی}       & \Cosupervisorid         & \multicolumn{1}{c}{امضا} \\
\textit{وابستگی سازمانی} & \CosupervisorAffiliationPa    & \textit{رایانامه سازمانی} & \lr{\Cosupervisoremail} & ~
\end{tabular}
} \renewcommand{\CosupervisorReportLa}{\noindent Co-supervisor:~\textbf{\CosupervisorNameLa} \hrulefill \\
\begin{tabular}{p{0.11\textwidth}p{0.29\textwidth}p{0.18\textwidth}p{0.17\textwidth}p{0.12\textwidth}}
\textit{Title}       & \textbf{\CosupervisorTitleLa} & \textit{National ID}     & \Cosupervisorid    & \multicolumn{1}{c}{Signature} \\
\textit{Affiliation} & \CosupervisorAffiliationLa    & \textit{Official E-Mail} & \Cosupervisoremail & ~  
\end{tabular} }\renewcommand{\CosupervisorVspace}{~\\[0.5mm]}}

\NewDocumentCommand{\CosupervisorTitle}{m m}{\renewcommand{\CosupervisorTitlePa}{#1}\renewcommand{\CosupervisorTitleLa}{#2}}

\NewDocumentCommand{\CosupervisorAffiliation}{m m}{\renewcommand{\CosupervisorAffiliationPa}{#1}\renewcommand{\CosupervisorAffiliationLa}{#2}}

\NewDocumentCommand{\CosupervisorID}{m}{\renewcommand{\Cosupervisorid}{#1}}

\NewDocumentCommand{\CosupervisorEMAIL}{m}{\renewcommand{\Cosupervisoremail}{#1}}






% 2nd Co-supervisor
\newcommand{\SecondCosupervisorNamePa}{~} \newcommand{\SecondCosupervisorNameLa}{~}
\newcommand{\SecondCosupervisorTitlePa}{~} \newcommand{\SecondCosupervisorTitleLa}{~}
\newcommand{\SecondCosupervisorAffiliationPa}{~} \newcommand{\SecondCosupervisorAffiliationLa}{~}
\newcommand{\SecondCosupervisorid}{~}
\newcommand{\SecondCosupervisoremail}{~}
\newcommand{\SecondCosupervisorReportPa}{~} \newcommand{\SecondCosupervisorReportLa}{~}
\newcommand{\SecondCosupervisorVspace}{~}
\NewDocumentCommand{\SecondCosupervisorName}{m m}{\renewcommand{\SecondCosupervisorNamePa}{#1}\renewcommand{\SecondCosupervisorNameLa}{#2}\renewcommand{\captionthreePa}{استادان مشاور}\renewcommand{\captionthreeLa}{Co-supervisors}\renewcommand{\SecondCosupervisorReportPa}{\noindent نام کامل استاد مشاور دوم: ~\textbf{\SecondCosupervisorNamePa} \hrulefill \\
\begin{tabular}{p{0.17\textwidth}p{0.28\textwidth}p{0.15\textwidth}p{0.17\textwidth}p{0.1\textwidth}}
\textit{مرتبهٔ علمی}     & \textbf{\SecondCosupervisorTitlePa} & \textit{شمارهٔ ملی}       & \SecondCosupervisorid         & \multicolumn{1}{c}{امضا} \\
\textit{وابستگی سازمانی} & \SecondCosupervisorAffiliationPa    & \textit{رایانامه سازمانی} & \lr{\SecondCosupervisoremail} & ~ 
\end{tabular}
} \renewcommand{\SecondCosupervisorReportLa}{\noindent Second Co-supervisor:~\textbf{\SecondCosupervisorNameLa} \hrulefill \\
\begin{tabular}{p{0.11\textwidth}p{0.29\textwidth}p{0.18\textwidth}p{0.17\textwidth}p{0.12\textwidth}}
\textit{Title}       & \textbf{\SecondCosupervisorTitleLa} & \textit{National ID}     & \SecondCosupervisorid    & \multicolumn{1}{c}{Signature} \\
\textit{Affiliation} & \SecondCosupervisorAffiliationLa    & \textit{Official E-Mail} & \SecondCosupervisoremail & ~  
\end{tabular} }\renewcommand{\SecondCosupervisorVspace}{~\\[0.5mm]}}

\NewDocumentCommand{\SecondCosupervisorTitle}{m m}{\renewcommand{\SecondCosupervisorTitlePa}{#1}\renewcommand{\SecondCosupervisorTitleLa}{#2}}

\NewDocumentCommand{\SecondCosupervisorAffiliation}{m m}{\renewcommand{\SecondCosupervisorAffiliationPa}{#1}\renewcommand{\SecondCosupervisorAffiliationLa}{#2}}

\NewDocumentCommand{\SecondCosupervisorID}{m}{\renewcommand{\SecondCosupervisorid}{#1}}

\NewDocumentCommand{\SecondCosupervisorEMAIL}{m}{\renewcommand{\SecondCosupervisoremail}{#1}}






% 1st Examiner
\newcommand{\FirstExaminerNamePa}{~} \newcommand{\FirstExaminerNameLa}{~}
\newcommand{\FirstExaminerTitlePa}{~} \newcommand{\FirstExaminerTitleLa}{~}
\newcommand{\FirstExaminerAffiliationPa}{~} \newcommand{\FirstExaminerAffiliationLa}{~}
\newcommand{\FirstExaminerid}{~}
\newcommand{\FirstExamineremail}{~}
\newcommand{\FirstExaminerReportPa}{~} \newcommand{\FirstExaminerReportLa}{~}
\newcommand{\FirstExaminerVspace}{~}
\NewDocumentCommand{\FirstExaminerName}{m m}{\renewcommand{\FirstExaminerNamePa}{#1}\renewcommand{\FirstExaminerNameLa}{#2}\renewcommand{\FirstExaminerReportPa}{\noindent نام کامل استاد داور اول: ~\textbf{\FirstExaminerNamePa} \hrulefill \\
\begin{tabular}{p{0.17\textwidth}p{0.28\textwidth}p{0.15\textwidth}p{0.17\textwidth}p{0.1\textwidth}}
\textit{مرتبهٔ علمی}     & \textbf{\FirstExaminerTitlePa} & \textit{شمارهٔ ملی}       & \FirstExaminerid         & \multicolumn{1}{c}{امضا} \\
\textit{وابستگی سازمانی} & \FirstExaminerAffiliationPa    & \textit{رایانامه سازمانی} & \lr{\FirstExamineremail} & ~
\end{tabular}
} \renewcommand{\FirstExaminerReportLa}{\noindent First Examiner:~\textbf{\FirstExaminerNameLa} \hrulefill \\
\begin{tabular}{p{0.11\textwidth}p{0.29\textwidth}p{0.18\textwidth}p{0.17\textwidth}p{0.12\textwidth}}
\textit{Title}       & \textbf{\FirstExaminerTitleLa} & \textit{National ID}     & \FirstExaminerid    & \multicolumn{1}{c}{Signature} \\
\textit{Affiliation} & \FirstExaminerAffiliationLa    & \textit{Official E-Mail} & \FirstExamineremail & ~
\end{tabular} }\renewcommand{\FirstExaminerVspace}{~\\[0.5mm]}}

\NewDocumentCommand{\FirstExaminerTitle}{m m}{\renewcommand{\FirstExaminerTitlePa}{#1}\renewcommand{\FirstExaminerTitleLa}{#2}}

\NewDocumentCommand{\FirstExaminerAffiliation}{m m}{\renewcommand{\FirstExaminerAffiliationPa}{#1}\renewcommand{\FirstExaminerAffiliationLa}{#2}}

\NewDocumentCommand{\FirstExaminerID}{m}{\renewcommand{\FirstExaminerid}{#1}}

\NewDocumentCommand{\FirstExaminerEMAIL}{m}{\renewcommand{\FirstExamineremail}{#1}}






% 2nd Examiner
\newcommand{\SecondExaminerNamePa}{~} \newcommand{\SecondExaminerNameLa}{~}
\newcommand{\SecondExaminerTitlePa}{~} \newcommand{\SecondExaminerTitleLa}{~}
\newcommand{\SecondExaminerAffiliationPa}{~} \newcommand{\SecondExaminerAffiliationLa}{~}
\newcommand{\SecondExaminerid}{~}
\newcommand{\SecondExamineremail}{~}
\newcommand{\SecondExaminerReportPa}{~} \newcommand{\SecondExaminerReportLa}{~}
\newcommand{\SecondExaminerVspace}{~}
\NewDocumentCommand{\SecondExaminerName}{m m}{\renewcommand{\SecondExaminerNamePa}{#1}\renewcommand{\SecondExaminerNameLa}{#2}\renewcommand{\SecondExaminerReportPa}{\noindent نام کامل استاد داور دوم: ~\textbf{\SecondExaminerNamePa} \hrulefill \\
\begin{tabular}{p{0.17\textwidth}p{0.28\textwidth}p{0.15\textwidth}p{0.17\textwidth}p{0.1\textwidth}}
\textit{مرتبهٔ علمی}     & \textbf{\SecondExaminerTitlePa} & \textit{شمارهٔ ملی}       & \SecondExaminerid         & \multicolumn{1}{c}{امضا} \\
\textit{وابستگی سازمانی} & \SecondExaminerAffiliationPa    & \textit{رایانامه سازمانی} & \lr{\SecondExamineremail} & ~
\end{tabular}
}\renewcommand{\SecondExaminerReportLa}{\noindent Second Examiner:~\textbf{\SecondExaminerNameLa} \hrulefill \\
\begin{tabular}{p{0.11\textwidth}p{0.29\textwidth}p{0.18\textwidth}p{0.17\textwidth}p{0.12\textwidth}}
\textit{Title}       & \textbf{\SecondExaminerTitleLa} & \textit{National ID}     & \SecondExaminerid    & \multicolumn{1}{c}{Signature} \\
\textit{Affiliation} & \SecondExaminerAffiliationLa    & \textit{Official E-Mail} & \SecondExamineremail & ~
\end{tabular}}\renewcommand{\SecondExaminerVspace}{~\\[0.5mm]}}

\NewDocumentCommand{\SecondExaminerTitle}{m m}{\renewcommand{\SecondExaminerTitlePa}{#1}\renewcommand{\SecondExaminerTitleLa}{#2}}

\NewDocumentCommand{\SecondExaminerAffiliation}{m m}{\renewcommand{\SecondExaminerAffiliationPa}{#1}\renewcommand{\SecondExaminerAffiliationLa}{#2}}

\NewDocumentCommand{\SecondExaminerID}{m}{\renewcommand{\SecondExaminerid}{#1}}

\NewDocumentCommand{\SecondExaminerEMAIL}{m}{\renewcommand{\SecondExamineremail}{#1}}






% 3rd Examiner
\newcommand{\ThirdExaminerNamePa}{~} \newcommand{\ThirdExaminerNameLa}{~}
\newcommand{\ThirdExaminerTitlePa}{~} \newcommand{\ThirdExaminerTitleLa}{~}
\newcommand{\ThirdExaminerAffiliationPa}{~} \newcommand{\ThirdExaminerAffiliationLa}{~}
\newcommand{\ThirdExaminerid}{~}
\newcommand{\ThirdExamineremail}{~}
\newcommand{\ThirdExaminerReportPa}{~} \newcommand{\ThirdExaminerReportLa}{~}
\newcommand{\ThirdExaminerVspace}{~}
\NewDocumentCommand{\ThirdExaminerName}{m m}{\renewcommand{\ThirdExaminerNamePa}{#1}\renewcommand{\ThirdExaminerNameLa}{#2}\renewcommand{\ThirdExaminerReportPa}{\noindent نام کامل استاد داور سوم: ~\textbf{\ThirdExaminerNamePa} \hrulefill \\
\begin{tabular}{p{0.17\textwidth}p{0.28\textwidth}p{0.15\textwidth}p{0.17\textwidth}p{0.1\textwidth}}
\textit{مرتبهٔ علمی}     & \textbf{\ThirdExaminerTitlePa} & \textit{شمارهٔ ملی}       & \ThirdExaminerid         & \multicolumn{1}{c}{امضا} \\
\textit{وابستگی سازمانی} & \ThirdExaminerAffiliationPa    & \textit{رایانامه سازمانی} & \lr{\ThirdExamineremail} & ~
\end{tabular}
}\renewcommand{\ThirdExaminerReportLa}{\noindent Third Examiner:~\textbf{\ThirdExaminerNameLa} \hrulefill \\
\begin{tabular}{p{0.11\textwidth}p{0.29\textwidth}p{0.18\textwidth}p{0.17\textwidth}p{0.12\textwidth}}
\textit{Title}       & \textbf{\ThirdExaminerTitleLa} & \textit{National ID}     & \ThirdExaminerid    & \multicolumn{1}{c}{Signature} \\
\textit{Affiliation} & \ThirdExaminerAffiliationLa    & \textit{Official E-Mail} & \ThirdExamineremail & ~
\end{tabular} }\renewcommand{\ThirdExaminerVspace}{~\\[0.5mm]}}

\NewDocumentCommand{\ThirdExaminerTitle}{m m}{\renewcommand{\ThirdExaminerTitlePa}{#1}\renewcommand{\ThirdExaminerTitleLa}{#2}}

\NewDocumentCommand{\ThirdExaminerAffiliation}{m m}{\renewcommand{\ThirdExaminerAffiliationPa}{#1}\renewcommand{\ThirdExaminerAffiliationLa}{#2}}

\NewDocumentCommand{\ThirdExaminerID}{m}{\renewcommand{\ThirdExaminerid}{#1}}

\NewDocumentCommand{\ThirdExaminerEMAIL}{m}{\renewcommand{\ThirdExamineremail}{#1}}






% Representative
\newcommand{\RepresentativeNamePa}{~} \newcommand{\RepresentativeNameLa}{~}
\newcommand{\Representativeid}{~}
\newcommand{\Representativeemail}{~}
\newcommand{\RepresentativeReportPa}{~} \newcommand{\RepresentativeReportLa}{~}
\NewDocumentCommand{\RepresentativeName}{m m}{\renewcommand{\RepresentativeNamePa}{#1}\renewcommand{\RepresentativeNameLa}{#2}\renewcommand{\RepresentativeReportPa}{\noindent نماینده‌ی تحصیلات تکمیلی \hrulefill \\[0.25cm]
\begin{tabular}{p{0.15\textwidth}p{0.52\textwidth}p{0.2\textwidth}}
\textit{نام کامل}         & \textbf{\RepresentativeNamePa} &      \\
\textit{رایانامه سازمانی} & \lr{\Representativeemail}      & \multicolumn{1}{c}{امضا} \\
\textit{شمارهٔ ملی}       & \Representativeid             & 
\end{tabular}
}\renewcommand{\RepresentativeReportLa}{\noindent The Representative of Graduate and Professional Studies Office \hrulefill \\
\begin{tabular}{p{0.18\textwidth}p{0.49\textwidth}p{0.20\textwidth}}
\textit{Full Name}       & \textbf{\RepresentativeNameLa} &           \\
\textit{Official E-Mail} & \Representativeemail           & \multicolumn{1}{c}{Signature} \\
\textit{National ID}     & \Representativeid             &
\end{tabular} } }

\NewDocumentCommand{\RepresentativeTitle}{m m}{\renewcommand{\RepresentativeTitlePa}{#1}\renewcommand{\RepresentativeTitleLa}{#2}}

\NewDocumentCommand{\RepresentativeAffiliation}{m m}{\renewcommand{\RepresentativeAffiliationPa}{#1}\renewcommand{\RepresentativeAffiliationLa}{#2}}

\NewDocumentCommand{\RepresentativeID}{m}{\renewcommand{\Representativeid}{#1}}

\NewDocumentCommand{\RepresentativeEMAIL}{m}{\renewcommand{\Representativeemail}{#1}}





% Persian Title Page
\NewDocumentCommand{\titlepageParsi}{}{\begin{center}
\InstituteLogoPa ~\\[0.25cm]
\InstitutePa ~\\
\FacultyPa ~\\
\DepartmentPa ~\\[0.5cm]

\ParsaTargetPa ~\\
\StudentMajorPa ~ \StudentMinorPa ~\\[1cm]

{\Large \textbf \ParsaTitlePa} ~\\[0.25cm]

\captiononePa ~\\
\textbf{\StudentNamePa} ~\\[1cm]

\captiontwoPa ~\\
\textbf{\SupervisorNamePa \\ \SecondSupervisorNamePa} ~\\[1cm]

\captionthreePa ~\\
\textbf{\CosupervisorNamePa \\ \SecondCosupervisorNamePa} ~\\[1cm]
\vfill
\textbf{\ParsaCompilationDatePa}
\end{center}}






% Latin Title Page
\NewDocumentCommand{\titlepageLatin}{}{\begin{latin} \begin{center}
\InstituteLogoLa ~\\[0.25cm]
\InstituteLa ~\\
\FacultyLa ~\\
\DepartmentLa ~\\[0.5cm]

\emph{\ParsaTargetLa} ~\\
\StudentMajorLa ~ \StudentMinorLa ~\\[1cm]

{\Large \textbf \ParsaTitleLa} ~\\[0.25cm]

\captiononeLa ~\\
\textbf{\StudentNameLa} ~\\[1cm]

\captiontwoLa ~\\
\textbf{\SupervisorNameLa \\ \SecondSupervisorNameLa} ~\\[1cm]

\captionthreeLa ~\\
\textbf{\CosupervisorNameLa \\ \SecondCosupervisorNameLa} ~\\[1cm]
\vfill
\textbf{\ParsaCompilationDateLa}
\end{center} \end{latin}}





%Persian Abstract
\NewDocumentEnvironment{ParsaAbstractParsi}{+b}{
\section*{چکیده} \addcontentsline{toc}{chapter}{چکیده}
#1
\vspace*{\fill}}{}





% Latin Abstract
\NewDocumentEnvironment{ParsaAbstractLatin}{+b}{
\begin{latin}
\section*{Abstract}
#1
\end{latin}
\vspace*{\fill}}{}





% Page of In the name of god
\newcommand{\parsapicture}{~}
\NewDocumentCommand{\ParsaPicture}{m}{~\newpage \vspace*{\fill} \includegraphics[width=\textwidth]{#1} ~ \vspace*{\fill} ~\newpage}






% Credit
\NewDocumentCommand{\ParsaCredit}{}{\begin{minipage}{1\textwidth}
\section*{\centering اصالت و مالکیت اثر}
\noindent این‌جانب ~\textbf{\StudentNamePa}~ دانش‌آموخته‌ی ~\textbf{\StudentDegreePa}~ \textbf{\StudentMajorPa}~ \textbf{\StudentMinorPa}~ \textbf{\FacultyPa}~ \textbf{\InstitutePa}~ به شماره دانشجویی ~\textbf{\Studentnumber}~ پدیدآورنده‌ی ~\textbf{\ParsaTypePa}~ با عنوان ~\textbf{\ParsaTitlePa}~ با راهنمایی ~\textbf{\SupervisorNamePa}، بر پایه‌ی قوانین و مقررات، از جمله «دستورالعمل نحوه‌ی بررسی تخلفات پژوهشی» و «مصادیق تخلفات پژوهشی» مصوب ۲۵ اسفند ۱۳۹۳ وزارت علوم، تحقیقات و فناوری، متعهد می‌شوم که:
\begin{enumerate}
\item این ~\ParsaTypePa ~ دستاورد پژوهش این‌جانب و محتوای آن از درستی و اصالت برخوردار است؛
\item حقوق معنوی همه‌ی کسانی را که در به دست آمدن نتایج اصلی ~\ParsaTypePa ~ تأثیرگذار بوده‌اند، رعایت کرده‌ام و هنگام کاربرد دستاورد پژوهش‌های دیگران در آن، با دقت و به‌درستی به آن‌ها استناد کرده‌ام؛
\item این ~\ParsaTypePa ~ و محتوای آن، تاکنون توسط این‌جانب یا فرد دیگری، برای دریافت هیچ‌گونه مدرک یا امتیازی در هیچ‌جا ارائه نشده‌است؛
\item همه‌ی حقوق مادی این ~\ParsaTypePa ~ از آن ~\InstitutePa ~ است و آثار برگرفته از آن با وابستگی سازمانی ~\InstitutePa ~ منتشر خواهد شد؛
\item در همه‌ی آثار برگرفته از این ~\ParsaTypePa ، نام استاد(ان) راهنما و اگر استاد راهنمای نخست تشخیص دهد، نام استاد(ان) مشاور و رایانامه‌ی سازمانی آنان را می‌آورم؛
\item در همه‌ی گام‌های انجام این ~\ParsaTypePa ، هرگاه به اطلاعات شخصی افراد یا اطلاعات سازمان‌ها دسترسی داشته‌باشم یا آن‌ها را به کار برده‌ام، رازداری و اخلاق پژوهشی را رعایت کرده‌ام.
\end{enumerate}
\begin{center} تاریخ و امضا \end{center}
\vspace{1.5cm}
\section*{\centering حقوق \InstitutePa}
این گزارش و همه‌ی حقوق مادی و محصولات آن (مقاله‌ها، کتاب‌ها، پروانه‌های اختراع، برنامه‌های رایانه‌ای، نرم‌افزارها، تجهیزات ساخته شده و مانند آن‌ها) بر پایه‌ی «قانون حمایت حقوق مولفان و مصنفان و هنرمندان» مصوب سال ۱۳۴۸ و اصلاحیه‌های بعدی آن و همچنین «آئین‌نامه‌ی اجرایی این قانون» از آن ~\InstitutePa ~ است و هرگونه استفاده از همه یا پاره‌ای از آن شامل نقل‌قول، تکثیر، انتشار، کاربرد نتایج، تکمیل و مانند آن‌ها به صورت چاپی، الکترونیکی یا وسایل دیگر، تنها با اجازه نوشتاری ~\InstitutePa ~ شدنی‌است. نقل‌قول محدود در انتشارات علمی مانند کتاب‌ها و مقاله‌ها یا پایان‌نامه‌ها و رساله‌های دیگر با نوشتن اطلاعات کامل کتاب‌شناختی، نیازی به مجوز ~\InstitutePa ~ ندارد.
\end{minipage}}





% Persian Examination Report
\NewDocumentCommand{\ExaminationReportPa}{}{
\begin{table}[H] \adjustbox{pagecenter}{
\begin{tabular}{ccc}
\multirow{3}{*}{\InstituteLogoPaSmall} & به نام خدا                                         & ~                \\
                                       & \InstitutePa                                       & تاریخ دفاع       \\
                                       & صورت جلسه‌ی دفاع از \ParsaTypePa ~\StudentDegreePa & \ParsaExamDatePa
\end{tabular} }
\end{table} 
\begin{minipage}{1\textwidth} \begin{flushright}
\begin{tabular}{p{0.23\textwidth}p{0.66\textwidth}}
\textit{نام کامل دانش‌آموخته} & \textbf{\StudentNamePa}          \\
\textit{رشته‌ی تحصیلی}        & \StudentMajorPa ~\StudentMinorPa \\
\textit{شماره ملی}            & \Studentid                       \\
\textit{رایانامه شخصی}        & \Studentemail                    \\
\textit{عنوان \ParsaTypePa :} & \textbf{\ParsaTitlePa}          
\end{tabular}
\end{flushright} \end{minipage} ~\\

\begin{minipage}{1\textwidth}
\begin{center} \textbf{
هیئت داوران پس از شنیدن گزارش و دفاع دانشجو، \ParsaTypePa ‌ی وی را داوری کرده \\
و با درجه‌ی عالی $\bigcirc$ بسیار خوب $\bigcirc$ خوب $\bigcirc$ پذیرفته‌نشده $\bigcirc$ ارزیابی کرد.
} \end{center}
\end{minipage} ~\\

\SupervisorReportPa         \SupervisorVspace
\SecondSupervisorReportPa   \SecondSupervisorVspace
\CosupervisorReportPa       \CosupervisorVspace
\SecondCosupervisorReportPa \SecondCosupervisorVspace
\FirstExaminerReportPa      \FirstExaminerVspace
\SecondExaminerReportPa     \SecondExaminerVspace
\ThirdExaminerReportPa      \ThirdExaminerVspace
\RepresentativeReportPa }





% Latin Examination Report
\NewDocumentCommand{\ExaminationReportLa}{}{\begin{latin}
\begin{table}[H] \adjustbox{pagecenter}{
\begin{tabular}{ccc}
\multirow{3}{*}{\InstituteLogoLaSmall}& \textsc{In The Name of God} & ~ \\
                         & \InstituteLa                             & Date \\
                         & \emph{A \ParsaTypeLa ~Examination Report}& \ParsaExamDateLa
\end{tabular} }
\end{table} 
\begin{minipage}{1\textwidth}
\begin{tabular}{p{0.2\textwidth}p{0.7\textwidth}}
\textit{Full Name}           & \textbf{\StudentNameLa} \\
\textit{Discipline}          & \StudentMajorLa ~\StudentMinorLa \\
\textit{National ID}         & \Studentid \\
\textit{Personal E-Mail}     & \Studentemail \\
\textit{\ParsaTypeLa ~Title} & \textbf{\ParsaTitleLa}   \\
\end{tabular} 
\end{minipage} ~\\

\begin{minipage}{0.9\textwidth}
\begin{center} \textbf{
Following the oral defence by the student, the examination committee evaluated the \ParsaTypeLa ~as:\\
Excellent $\bigcirc$ Very Good $\bigcirc$ Good $\bigcirc$ Not Acceptable $\bigcirc$\@.
} \end{center}
\end{minipage} ~\\

\SupervisorReportLa         \SupervisorVspace
\SecondSupervisorReportLa   \SecondSupervisorVspace
\CosupervisorReportLa       \CosupervisorVspace
\SecondCosupervisorReportLa \SecondCosupervisorVspace
\FirstExaminerReportLa      \FirstExaminerVspace
\SecondExaminerReportLa     \SecondExaminerVspace
\ThirdExaminerReportLa      \ThirdExaminerVspace
\RepresentativeReportLa                          \end{latin}}






% Copyleft Page
\NewDocumentCommand{\ParsaCopyleft}{}{\begin{center} \begin{minipage}{0.67\textwidth}
\section*{\centering مجوز بهره‌برداری}
بهره‌برداری از این  \ParsaTypePa ~در چهارچوب مقررات کتاب‌خانه و با توجه به محدودیتی که توسط استاد راهنما به شرح زیر تعیین می‌گردد، بلامانع است:\\
\begin{itemize}
\item[$\bigcirc$] بهره‌برداری از این \ParsaTypePa ~برای همگان و با ذکر منبع، بلامانع است.
\item[$\bigcirc$] بهره‌برداری از این \ParsaTypePa ~با اخذ مجوز از استاد راهنما و با ذکر منبع، بلامانع است.
\item[$\bigcirc$] بهره‌برداری از این \ParsaTypePa ~تا تاریخ .................... ممنوع است.
\end{itemize}
\begin{center}
استاد راهنما: \SupervisorNamePa \\
امضا
\end{center} \end{minipage} \end{center} }





% Dedicate
\NewDocumentCommand{\ParsaDedicate}{+m}{
\vspace*{\fill} 
\begin{center} 
\begin{Large}
#1
\end{Large}
\end{center}
\vspace*{\fill}}





% Acknowledgment
\NewDocumentEnvironment{ParsaAcknowledgment}{+b}{
\chapter*{\centering سپاس‌گزاری}
\addcontentsline{toc}{chapter}{سپاس‌گزاری} \thispagestyle{empty}
#1}{}





% CV
\NewDocumentEnvironment{ParsaCV}{+b}{\newpage
\vspace*{\fill} 
\begin{center}
\begin{minipage}{0.67\textwidth}
#1
\end{minipage}
\end{center}
\vspace*{\fill}\newpage}{}