blob: 462ba68f1216900a56eb90e03870e194f6beba96 (
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
|
%%
%% This is file “iran-bibtex.sty”, v0.3.0 (2023/12/18)
%%
%% __________________________________________________
%% Copyright (c) 2023 Farshad Rasuli
%%
%% It may be distributed and/or modified under the LaTeX Project
%% Public License version 1.3c or higher. The latest version of the
%% Lisense is at: http://www.latex-project.org/lppl.txt
%%
%% This work is “author-maintained” (as per LPPL maintenance status)
%% by Farshad Rasuli.
%%
%% Catalogue on CTAN: ctan.org/pkg/iran-bibtex
%%
%% Archive on CTAN : ctan.org/tex-archive/biblio/bibtex/contrib/iran-bibtex
%%
%% Repository: github.com/farshadrasuli/iran-bibtex
%%
%% Issue tracker: github.com/farshadrasuli/iran-bibtex/issues
%%
%%
% === Package structure: Identification
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{iran-bibtex}
\def\iranbibtex@version{0.3.0}
\def\iranbibtexdate{2023/12/18} % December 18th, 2023
\def\iranbibtexfirstrelease{2023/12/12} % December 12th, 2023
\edef\@iranbibtex@info{%
****************************************************^^J%
* ^^J%
* iran-bibtex package^^J%
* ^^J%
* Description: This package is an implementation of^^J%
* the Iran Manual of Style (1st edition, 2016)^^J%
* citation guide to Persian and English information^^J%
* sources in BibTeX.^^J%
* ^^J%
* Copyright (c) 2023 Farshad Rasuli^^J%
* ^^J%
****************************************************^^J%
}
% === Package structure: Preliminary declarations
\RequirePackage{natbib}
% === Package structures: Options
%% iran bibliography style: author-year style, ordered by authors' name
\DeclareOption{iran}
{%
\setcitestyle{authoryear,% citation mode
round,% braces
aysep={},% between author and year
}%
\bibliographystyle{iran}%
}
\ProcessOptions\relax
% === Package structure: Provide commands
%% provide command for bibliography environment
\newcommand{\enquote}[1]{``#1''}
\newcommand{\faquote}[1]{«#1»}
\providecommand{\url}[1]{{\tt #1}}
\providecommand{\doi}[1]{\url{#1}}
\providecommand{\eprint}[2][]{\url{#2}}
%% renew \cite command to behave like \citep in the netbib package
\renewcommand{\cite}%
{\begingroup\NAT@swatrue\def\NAT@ctype{0}\NAT@partrue
\@ifstar{\NAT@fulltrue\NAT@citetp}{\NAT@fullfalse\NAT@citetp}}
% === Package structure: Extra label appended to year for one author in same year
\providecommand{\extrayearlabelen}[1]{#1}
\providecommand{\extrayearlabelfa}[1]{#1}
\endinput
%%
%% End of file “iran-bibtex.sty”.
|