File: chapterbib.hva

package info (click to toggle)
hevea 2.38-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,824 kB
  • sloc: ml: 19,525; sh: 505; makefile: 311; ansic: 132
file content (24 lines) | stat: -rw-r--r-- 1,039 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
\let\chapterbib@include\include
\newcounter{chap@included}
\newcommand{\maketocbibitem}{}
\newcommand{\@sectionbib@maketocbibitem}{\@auxdowrite{\@print{\@addcontentsline{htoc}}\{0\}\{\@print{\ahrefloc}\{bib:chap\thechap@included\}\{\refname{}\}\}\@print{
}}}
\renewcommand{\include}[1]
{\stepcounter{chap@included}%
\def\chapterbib@include@name{#1}%
\chapterbib@include{#1}}
\renewcommand{\bibliography}[1]{\maketocbibitem\input{\chapterbib@include@name.bbl}}
\let\chapterbib@thebibliography\thebibliography
\renewcommand{\thebibliography}[1]
{\setcounter{heveabib}{0}\chapterbib@thebibliography{#1}}
\renewcommand{\bibtaghook}[1]
{\@ifundefined{chapterbib@include@name}{#1}{#1@\thechap@included}}
\newcommand{\sectionbib}[2]
{\renewcommand{\@bibliosection}[1]{#1{\aname{bib:chap\thechap@included}{##1}}}%
\let\maketocbibitem\@sectionbib@maketocbibitem}
\DeclareOption{sectionbib}{\sectionbib{\section*}{section}}%
\DeclareOption{draft}{}%
\DeclareOption{rootbib}{}%
\DeclareOption{duplicate}{}%
\DeclareOption{gather}{}%
\ProcessOptions*