-
Notifications
You must be signed in to change notification settings - Fork 0
/
MyTemplate.sty
55 lines (43 loc) · 2.01 KB
/
MyTemplate.sty
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
% This Template Designed By Nima Pourdamghani
\ProvidesPackage{MyTemplate}
%Required Packages
%=======================================================
\RequirePackage{hyperref}
\usepackage{fancybox}
\usepackage{graphicx}
\usepackage{subfigure}
\usepackage{endnotes}
\usepackage[small,it]{caption}
\usepackage[font=small,format=plain,labelfont=bf,textfont=it]{caption} %Image captions reformatt
\usepackage[bottom=29mm,top=29mm,left=19mm,right=19mm]{geometry}
\usepackage{multicol}
\usepackage{xepersian}
\graphicspath{{images/}}
%=======================================================
\addtolength{\topmargin}{-0.8cm}
\addtolength{\textheight}{1.6cm}
\addtolength{\oddsidemargin}{0cm}
\addtolength{\evensidemargin}{-0.5cm}
\addtolength{\textwidth}{0.5cm}
%Paragraph setting
%=======================================================
\linespread{1.3} %line space
\setlength{\parindent}{0pt} %The indent of the paragraph first line
\setlength{\parskip}{5pt} %Befor paragraph space
%General Setting
%=======================================================
\hypersetup{colorlinks=true,linkcolor=blue,citecolor=green,filecolor=magneta,urlcolor=cyan}
\settextfont[Scale=1,Extension=.ttf, Path=fonts/]{Nazli}
\setlatintextfont[Scale=1]{Times New Roman}
\setdigitfont[Scale=1, Extension=.ttf, Path=fonts/]{Nazli}
% there is a reason that I used Nazli instead of B Nazanin or any fonts like that
% see http://qa.parsilatex.com/14580/%D9%81%D9%88%D9%86%D8%AA-xb-nazanin-%D9%86%DB%8C%D8%A7%D8%B2-%D8%AF%D8%A7%D8%B1%D9%85-%D8%A8%D8%B1%D8%A7%DB%8C-%D8%AF%D8%A7%D9%86%D9%84%D9%88%D8%AF-%D9%BE%DB%8C%D8%AF%D8%A7-%D9%86%D9%85%DB%8C%DA%A9%D9%86%D9%85
% numbering style definition
%\renewcommand{\thesection}{\arabic{section}}
%\renewcommand{\thesubsection}{\arabic{subsection}.\arabic{section}}
%\renewcommand{\thetable}{\arabic{table}.\arabic{section}}
%\renewcommand{\thefigure}{\arabic{figure}.\arabic{section}}
% Commands and definitions
%=======================================================
\let\LTRfootnote=\endnote
\renewcommand{\notesname}{\vspace{-16pt}}