summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/bibtex/alpha-persian/alpha-persian-userguide.tex
blob: d141fb48d46144c8636e51c8497ba297751011b7 (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
\documentclass{article}
\usepackage{xcolor}
\usepackage{float}
\parindent0pt
\usepackage[pagebackref=true,colorlinks,linkcolor=blue,citecolor=green!80!black]{hyperref}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{verbatim}
\usepackage{fancyvrb}
\usepackage{xcolor}
\usepackage{ragged2e}
\newcommand*\justifyv{%
\fontdimen2\font=0.4em
\fontdimen3\font=0.2em
\fontdimen4\font=0.1em
\fontdimen7\font=0.1em
\hyphenchar\font=`\-
}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[OL,ER]{\thepage}
\fancyhead[EL]{{\qquad \color{blue}\thickhrulefill} \qquad \rl{\leftmark}}
\renewcommand{\headrulewidth}{1pt}
\renewcommand{\footrulewidth}{1pt}
\fancyfoot[C]{{\lr{\color{green!50!black} By Shapour Madadpour}}}
%\usepackage{url}
\usepackage[compress]{cite} 
%باید دوبار خروجی بگیرید.
%\usepackage[numbers,sort&compress]{natbib}
\usepackage{graphicx}
\usepackage{xepersian}
\settextfont{Yas}
\newcommand{\PRL}[1]{\RL{\Parsifont #1}}
\DefineVerbatimEnvironment{rtlverbatim}{Verbatim}{commandchars=+\[\]}
\newfontfamily\Parsifont[Script=Arabic]{XB Niloofar}
\newcommand{\prl}[1]{\RL{\Parsifont #1}}
\begin{document}
\begin{latin}
\section{alpha-persian.bst}	
\noindent
Bib style ``alpha-persian", Persian (farsi)  version of alpha.bst (RTL and LTR references).\\
\begin{Verbatim}[fontsize=\bf,commandchars=\^\#\*,baselinestretch=1,firstnumber=1,formatcom=\color{red!50!black}]
By: Shapour Madadpour
madad_sh@yahoo.com
\end{Verbatim}
{\color{red}First Compile:} XeLaTex-BibTeX-XeLaTex-XeLaTex\\
With this compile, persian references set at the end of latin references.\\
{\tt\color{blue} Sample:}
\end{latin}	
\begin{Verbatim}[numbers=left,fontsize=\bf,commandchars=\^\#\*,baselinestretch=1,firstnumber=1,formatcom=\color{green!50!black}]
@article{karamzadeh2012prime,
author={Karamzadeh, Omid Ali Shahny},
title={The Prime Avoidance Lemma Revisited},
key ={7},
journal={Kyungpook mathematical journal},
volume={52},
number={2},
pages={149^raisebox#.5mm--* ^!^!^!153},
year={2012},
quotation={1},
publisher={Department of Mathematics, Kyungpook National University}
}
@phdthesis{mmm,
title={^prl#فضای توپولوژی*},
author={^prl# رضایی علی‌آباد,علی*},
journal={Kyungpook mathematical journal},
pages={1163^raisebox#.5mm--* ^!^!^!1171},
LANGUAGE ={Persian},
mlabel ={^prl#ا.م.ف*},
murl = {http://www.w3.org/TR/prov-o/},
series = {second series},
year = {2002},
chapter={5},
quotation={1},
school={^prl#دانشگاه چمران اهواز*},
}
\end{Verbatim}
\begin{figure}[H]
\centering
\includegraphics[width=\textwidth,height=3cm]{image/sh11}
\end{figure}
\begin{latin}\noindent
{\color{red}Second Compile:} XeLaTex-BibTeX 8 bit-XeLaTex-XeLaTex\\
{\tt txs:///xelatex |bibtex8 -W -c cp1256fa %.aux| txs:///xelatex|txs:///       
xelatex.}\\
With this compile, latin references set at the end of  persian references.\\
{\tt\color{blue} Sample:}
\end{latin}	
\begin{figure}[H]
\centering
\includegraphics[width=\textwidth,height=3cm]{image/sht}
\end{figure}
\begin{latin}\noindent
{\tt {\color{red} quotation mark for title automatically.}}\\
{\tt\color{blue} Sample:}
\end{latin}
\begin{Verbatim}[numbers=left,fontsize=\bf,commandchars=\^\#\*,baselinestretch=1,firstnumber=1,formatcom=\color{green!50!black}]
@article{karamzadeh2012prime,
author={Karamzadeh, Omid Ali Shahny},
title={The Prime Avoidance Lemma Revisited},
key ={7},
journal={Kyungpook mathematical journal},
volume={52},
number={2},
pages={149^raisebox#.5mm--* ^!^!^!153},
year={2012},
quotation={1},
madadurltest={1},
murl = {http://www.w3.org/TR/prov-o/},
publisher={Department of Mathematics, Kyungpook National University}
}
@phdthesis{mmm,
title={^prl#فضای توپولوژی*},
author={^prl#رضایی علی‌آباد,علی*},
journal={Kyungpook mathematical journal},
pages={1163^raisebox#.5mm--* ^!^!^!1171},
LANGUAGE ={Persian},
mlabel ={^prl#ا.م.ف*},
madadurltest={1},
quotation={1},
murl = {http://www.w3.org/TR/prov-o/},
series = {second series},
year = {2002},
chapter={5},
school={^prl#دانشگاه چمران اهواز*},
}
\end{Verbatim}
\begin{figure}[H]
\centering
\includegraphics[width=\textwidth,height=3cm]{image/sh2}
\end{figure}
\begin{latin}\noindent
{\tt {\color{red}with or without link for title  automatically with hyperref package.}}\\
{\tt\color{blue} Sample:}
\begin{Verbatim}[numbers=left,fontsize=\bf,commandchars=\^\#\*,baselinestretch=1,firstnumber=1,formatcom=\color{green!50!black}]
\usepackage[pagebackref=true,colorlinks,linkcolor=blue]{hyperref}
\usepackage{xepersian}
\settextfont{Yas}
\end{Verbatim}
\end{latin}
\begin{figure}[H]
\centering
\includegraphics[width=\textwidth,height=3cm]{image/sh3}
\end{figure}
\begin{latin}\noindent
{\tt {\color{red}in addition to url with url and  hyperref packages,  it can have url feild without them.}}\\
{\tt\color{blue} Sample with hyperref package:}
\end{latin}
\begin{Verbatim}[numbers=left,fontsize=\bf,commandchars=\^\#\*,baselinestretch=1,firstnumber=1,formatcom=\color{green!50!black}]
@article{karamzadeh2012prime,
author={Karamzadeh, Omid Ali Shahny},
title={The Prime Avoidance Lemma Revisited},
key ={7},
journal={Kyungpook mathematical journal},
volume={52},
number={2},
pages={149--153},
year={2012},
quotation={1},
url={http://www.w3.org/TR/prov-o/},
publisher={Department of Mathematics, Kyungpook National University}
}
@phdthesis{mmm,
title={^prl#فضای توپولوژی*},
author={^prl#رضایی علی‌آباد,علی*},
journal={Kyungpook mathematical journal},
pages={1163^raisebox#.5mm--* ^!^!^!1171},
LANGUAGE ={Persian},
mlabel ={^prl#ا.م.ف*},
madadurltest={1},
quotation={1},
murl={http://www.w3.org/TR/prov-o/},
series={second series},
year={2002},
url={http://www.w3.org/TR/prov-o/},
chapter={5},
school={^prl#دانشگاه چمران اهواز*},
}
\end{Verbatim}
\begin{figure}[H]
\centering
\includegraphics[width=\textwidth,height=3cm]{image/sh4}
\end{figure}

\begin{latin}
{\tt {\color{blue}Sample without url and  hyperref packages:}}
\end{latin}\noindent
\begin{figure}[H]
\centering
\includegraphics[width=\textwidth,height=3.5cm]{image/sh5}
\end{figure}

\begin{latin}
{\tt{\color{red} issn+isbn+doi+et~al in english and persian bibstyle:}}\\
{ isbn Added. It Writes in Persian style \rl{"شابک``}.\\
 issn Added. It Writes in Persian style \rl{"شاپا``}.\\
doi Added. It Writes in Persian style\rl{"شناسه‌ی دیجیتال``}.}\\
{\rl{"شابک``}, \rl{"شاپا``} and \rl{"شناسه‌ی دیجیتال``} for {\color{blue} first time} in persian bib style}\\
{\tt\color{blue} Sample:}
\begin{Verbatim}[numbers=left,fontsize=\bf,commandchars=\&\#\*,baselinestretch=1,firstnumber=1,formatcom=\color{green!50!black}]
@inbook{d,
AUTHOR={&prl#مددپور, شاپور* and &prl#مددپور, محمدحسین* and &prl#سایرین*},
mlabel={&prl#مدد$^+$*},
aaa ={1},
TITLE={&prl#همریختی و بروریختی در حلقه‌ها*},
JOURNAL={&prl#مجله‌ی گراف فارس*},
VOLUME ={1},
YEAR ={1395},
MONTH={&prl#بهار*},
PAGES ={39&raisebox#.5mm--* &!&!&!43},
quotation={1},
LANGUAGE={Persian},
url={http://www.w3.org/TR/prov-o/},
doi={01.1000/doi-0121},
isbn={123456789000},
edition={&prl#دوم*},
series={&prl#سری دوم*},
number={10},
chapter={5},
madadurltest={1},
murl={http://www.w3.org/TR/prov-o/},
publisher={&prl#انتشارات دل آهنگ*},
note={&prl#یک یادداشت اختیاری در این‌جا می‌توانید وارد کنید*},
address={&prl#آدرس منتشر کننده*},
}
@book{kuznetsov1998elements,
title={Elements of applied bifurcation theory},
volume={112},
madadurltest={1},
year={1998},
edition={third},
publisher={Springer Verlag},
murl={http://www.w3.org/TR/prov-o/},
isbn={123456789000},
number={10},
pages={10^raisebox#.5mm--* ^!^!^!19},
series={second series},
chapter={5},
issn={1111-2222},
doi={01.1000/doi-0121},
editor={Kuznetsov, Y.A. and edward, Y.A.},
address={The address of the publisher},
}
\end{Verbatim}
\end{latin}
\begin{figure}[H]
\centering
\includegraphics[width=\textwidth,height=5.5cm]{image/sh6}
\end{figure}
\begin{latin}
{\tt {\color{red}Flexible for each defined label with appropriative field.}}\\
{\tt\color{blue} Sample:}
\end{latin}
\begin{Verbatim}[numbers=left,fontsize=\bf,commandchars=\&\#\*,baselinestretch=1,firstnumber=1,formatcom=\color{green!50!black}]
slabel = {$\checkmark\checkmark\checkmark$},
OR
slabel = {$\spadesuit$},
OR
slabel = {$\clubsuit$},
\end{Verbatim}
\begin{figure}[H]
\centering
\includegraphics[width=\textwidth,height=8cm]{image/sh7}
\end{figure}

\begin{latin}
{\tt{\color{red} in addition to general label, we can choose numbering label.}}\\
{\tt\color{blue} Sample:}
\begin{Verbatim}[numbers=left,fontsize=\bf,commandchars=\&\#\*,baselinestretch=1,firstnumber=1,formatcom=\color{green!50!black}]
slabel={1},
OR
slabel={2},
OR
slabel={3},
OR
slabel={4},
\end{Verbatim}
\end{latin}
\begin{figure}[H]
\centering
\includegraphics[width=\textwidth,height=7cm]{image/sh8}
\end{figure}
\begin{latin}
{\tt {\color{red}Compatible with  hyperref, url, natbib and cite packages.}}
\end{latin}
\begin{latin}
\begin{verbatim}
\usepackage[numbers]{natbib}
\usepackage[compress]{cite} 
\end{verbatim}
{\tt\color{blue} Sample:}
\end{latin}
\begin{figure}[H]
\centering
\includegraphics[width=\textwidth,height=9cm]{image/sh9}
\end{figure}
\begin{latin}{\color{red}
This is first version of it, but right now i am working on it and i will develop it.
}
\end{latin}
\noindent
\begin{latin}
{\tt{\color{blue} General example:}}
\end{latin}
\lr{\cite{B02f}}
 و
\cite{d}
و
\cite{Amintoosi87afzayesh}
و
\lr{\cite{aliabad2004rings}}
و
\lr{\cite{ghafarzadeh2016stem}}
و
\cite{aliabad2004rings,ali,whatever,B02f,d}
و همچنین داریم:
\lr{\cite{aliabad2004rings,ali,whatever,B02f,d}}

\nocite{*}                  
\bibliographystyle{alpha-persian}
%\bibliography{sample1}
%\bibliography{sample2}
%\bibliography{sample3}
%\bibliography{sample4}
%\bibliography{sample5}
%\bibliography{sample6}
%\bibliography{sample7}
\bibliography{sample8}
\end{document}