summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/chbibref/chbibref.sty
blob: 99bcfc7417186c3155dc68887830a23a09077882 (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
% chbibref.sty   Change the Bibliography/References heading
%
% author: Peter Wilson (CUA)
%         (now at peter.r.wilson@boeing.com)
% Copyright Peter Wilson, 2001
% Released under the Latex Project Public License
%
% Usage instructions are at the end of this file.
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{chbibref}[2001/03/07 v1.0 change Bibliography/References heading]

\newcommand{\setbibref}[1]{%
  \@ifundefined{refname}{}{\renewcommand{\refname}{#1}}
  \@ifundefined{bibname}{}{\renewcommand{\bibname}{#1}}
}

\endinput
%
%    In the article class the title text printed by 
% \begin{thebibliography} is given by the value of \refname
% (default References), while in the report and chapter 
% classes the text is given by the value of \bibname 
% (default Bibliography).
%
%    The command \setbibref{name} will set the title text for the 
% Bibliography or the References to `name' for at least the article, 
% report and book standard LaTeX classes, without having to be
% concerned which class is being used.
%
%    If you are using the babel package, put \setbibref{...} after
% the \begin{document}.
%
% Peter W.
% 2001/03/07
%