summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/abstyles/apreambl.tex
blob: 51b1022d2925f85b341c6caca651bba3206702d7 (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
% This is APREAMBL.TEX, version 1.10e, written by Hans-Hermann Bode
% (HHBODE@DOSUNI1.BITNET), for the BibTeX `adaptable' family, version 1.10.
% See the file APREAMBL.DOC for a detailed documentation.

% This program is distributed WITHOUT ANY WARRANTY, express or implied.

% Copyright (C) 1991, 1992 Hans-Hermann Bode

% Permission is granted to make and distribute verbatim copies of this
% document provided that the copyright notice and this permission notice
% are preserved on all copies.

% Permission is granted to copy and distribute modified versions of this
% document under the conditions for verbatim copying, provided that the
% entire resulting derived work is distributed under the terms of a
% permission notice identical to this one.

% This file has been extended for the Spanish language
% and modified to work with the J.L. Braams' Babel system
% Tom'as Bautista
% CAD Division of
% the Center for Applied Microlectronics,
% Univ. of Las Palmas de Gran Canaria, Canary Is.
% June 2nd, 1995.

\ifx\undefined\ifabfull
  \typeout{***   Please, do not load this file directly    ***}
  \typeout{    It will be loaded when using the adaptable}
  \typeout{    family BibTeX styles.}
  \expandafter\endinput
\fi

\expandafter\ifx\csname__APREAMBLE_TEX\endcsname\relax \else\endinput\fi
\expandafter\chardef\csname__APREAMBLE_TEX\endcsname=\the\catcode`\@
\catcode`\@=11
\gdef\abtype@english{%
\def\abtype##1##2{%
\ifcase##1{\sc##2}\or``##2''\or{\em##2\/}\or{\bf##2}\or(##2)\or(##2)\else##2\fi}}

\gdef\abtype@german{%
\def\abtype##1##2{%
\ifcase##1{\sc##2}\or\glqq##2\grqq\or{\em##2\/}\or{\bf##2}\or(##2)\or(##2)\else##2\fi}}

\gdef\abtype@spanish{%
\def\abtype##1##2{%
\ifcase##1{\sc##2}\or``##2''\or{\em##2\/}\or{\bf##2}\or(##2)\or(##2)\else##2\fi}}

\ifabfull

\gdef\abetc@english{

\def\abphrase##1{%
\ifcase##1{ and }\or{,}\or{ et~al.}\or{, editors}\or{, editor}\or%
{ of }\or{ in }\or{In }\or{volume}\or{Volume}\or{number}\or{Number}\or%
{ edition}\or{pages}\or{page}\or{chapter}\or%
{Technical Report}\or{Master's thesis}\or{PhD thesis}\fi}

\def\abmonth##1{\ifcase##1\or January\or February\or March\or April\or May\or
  June\or July\or August\or September\or October\or November\or December\fi}

\def\abedition##1{\ifcase##1\or First\or Second\or Third\or Fourth\or Fifth\or
  Sixth\or Seventh\or Eighth\or Ninth\or Tenth\else?\fi}

\def\abchapter##1{\ifcase##1Section\or Paragraph\or Appendix\or Part\fi}

}

\else

\gdef\abetc@english{

\def\abphrase##1{%
\ifcase##1{ and }\or{,}\or{ et~al.}\or{, editors}\or{, editor}\or%
{ of }\or{ in }\or{In }\or{vol.}\or{Vol.}\or{no.}\or{No.}\or%
{ ed.}\or{pp.}\or{p.}\or{ch.}\or%
{Technical Report}\or{Master's thesis}\or{PhD thesis}\fi}

\def\abmonth##1{\ifcase##1\or Jan.\or Feb.\or Mar.\or Apr.\or May\or June\or
  July\or Aug.\or Sept.\or Oct.\or Nov.\or Dec.\fi}

\def\abedition##1{\ifcase##1\or 1st\or 2nd\or 3rd\or 4th\or 5th\or
  6th\or 7th\or 8th\or 9th\or 10th\else?\fi}

\def\abchapter##1{\ifcase##1Sec.\or Par.\or App.\or Part\fi}

}

\fi

\ifabfull

\gdef\abetc@german{

\def\abphrase##1{%
\ifcase##1{ und }\or{}\or{ und andere}\or%
{ (Herausgeber)}\or{ (Herausgeber)}\or%
{ aus }\or{ in }\or{In }\or{Band}\or{Band}\or{Nummer}\or{Nummer}\or%
{ Auf{\kern0pt}lage}\or{Seiten}\or{Seite}\or{Kapitel}\or%
{Bericht}\or{Diplomarbeit}\or{Dissertation}\fi}

\def\abmonth##1{\ifcase##1\or Januar\or Februar\or M\"arz\or April\or Mai\or
  Juni\or Juli\or August\or September\or Oktober\or November\or Dezember\fi}

\def\abedition##1{\ifcase##1\or Erste\or Zweite\or Dritte\or
  Vierte\or F\"unf\-te\or Sechste\or Siebte\or Achte\or Neunte\or
  Zehnte\else?\fi}

\def\abchapter##1{\ifcase##1Abschnitt\or Absatz\or Anhang\or Teil\fi}

}

\else

\gdef\abetc@german{

\def\abphrase##1{%
\ifcase##1{ und }\or{}\or{ u.\thinspace a.}\or{ (Hrsg.)}\or{ (Hrsg.)}\or%
{ aus }\or{ in }\or{In }\or{Bd.}\or{Bd.}\or{Nr.}\or{Nr.}\or%
{ Aufl.}\or{S.}\or{S.}\or{Kap.}\or%
{Bericht}\or{Diplomarbeit}\or{Dissertation}\fi}

\def\abmonth##1{\ifcase##1\or Jan.\or Feb.\or M\"arz\or Apr.\or Mai\or
  Juni\or Juli\or Aug.\or Sep.\or Okt.\or Nov.\or Dez.\fi}

\def\abedition##1{\ifcase##1\or 1.\or 2.\or 3.\or 4.\or 5.\or
  6.\or 7.\or 8.\or 9.\or 10.\else?\fi}

\def\abchapter##1{\ifcase##1Abschn.\or Abs.\or Anh.\or Teil\fi}

}

\fi

\ifabfull

\gdef\abetc@spanish{

\def\abphrase##1{%
\ifcase##1{ y }\or{}\or{ et~al.}\or{, editores}\or{, editor}\or%
{ de }\or{ en }\or{En }\or{tomo}\or{Tomo}\or{n\'umero}\or{N\'umero}\or%
{ edici\'on}\or{p\'aginas}\or{p\'agina}\or{cap\'{\i}tulo}\or%
{Informe t'ecnico}\or{Proyecto Fin de Carrera}\or{Tesis Doctoral}\fi}

\def\abmonth##1{\ifcase##1\or enero\or febrero\or marzo\or abril\or mayo\or
  junio\or julio\or agosto\or septiembre\or octubre\or noviembre\or
  diciembre\fi}

\def\abedition##1{\ifcase##1\or Primera\or Segunda\or Tercera\or
  Cuarta\or Quinta\or Sexta\or S\'eptima\or Octava\or Novena\or
  D\'ecima\else?\fi}

\def\abchapter##1{\ifcase##1Apartado\or P\'arrafo\or Ap\'endice\or Parte\fi}

}

\else

\gdef\abetc@spanish{

\def\abphrase##1{%
\ifcase##1{ y }\or{}\or{ et~al.}\or{, editores}\or{, editor}\or%
{ de }\or{ en }\or{En }\or{vol.}\or{Vol.}\or%
{n\raise1ex\hbox{\underbar{\scriptsize o}}}\or%
{N\raise1ex\hbox{\underbar{\scriptsize o}}}\or%
{ ed.}\or{p\'ags.}\or{p\'ag.}\or{cap.}\or%
{Informe t'ecnico}\or{Proyecto Fin de Carrera}\or{Tesis Doctoral}\fi}

\def\abmonth##1{\ifcase##1\or ene.\or feb.\or mar.\or abr.\or mayo\or jun.\or
  jul.\or ago.\or sept.\or oct.\or nov.\or dic.\fi}

\def\abedition##1{\ifcase##1\or 1\raise1ex\hbox{\underbar{\scriptsize a}}\or
  2\raise1ex\hbox{\underbar{\scriptsize a}}\or
  3\raise1ex\hbox{\underbar{\scriptsize a}}\or
  4\raise1ex\hbox{\underbar{\scriptsize a}}\or
  5\raise1ex\hbox{\underbar{\scriptsize a}}\or
  6\raise1ex\hbox{\underbar{\scriptsize a}}\or
  7\raise1ex\hbox{\underbar{\scriptsize a}}\or
  8\raise1ex\hbox{\underbar{\scriptsize a}}\or
  9\raise1ex\hbox{\underbar{\scriptsize a}}\or
  10\raise1ex\hbox{\underbar{\scriptsize a}}\else?\fi}

\def\abchapter##1{\ifcase##1Apartado\or P\'ar.\or Ap\'endice\or Parte\fi}

}

\fi

\ifx\undefined\iflanguage
  \abtype@english \abetc@english
\else
  \abtype@english \abetc@english % This is the deafult option, in case
                                 % your language is not supported.
% \iflanguage{english}{\abtype@english \abetc@english}{}
  \iflanguage{german}{\abtype@german \abetc@german}{}
  \iflanguage{spanish}{\abtype@spanish \abetc@spanish}{}
\fi

\catcode`\@=\csname__APREAMBLE_TEX\endcsname

\endinput