[texhax] reference to complete bibtex-listing

Edsko de Vries edsko at edsko.net
Fri Jun 6 15:36:09 CEST 2008


On Fri, Jun 06, 2008 at 07:56:20AM +0200, Peter Dziedzic wrote:
> Hello,
> 
> i have some problem in latex and i hope that you can help me.
> I want to make reference with \ref{} to my complete bibtex-bibliogrpahy-chapter.
> because the chapter is created automatically from bibtex i cant use \label{} and then reference to the label.
> please dont udnerstand me worng: i dont want to reference to one element of the bibliography-chater. i know that this works with \cite.
> i want to reference to the whole chapter and i dont know how can i do it.
> thanks for you help forward.
> 
> greetings,
> 
> peter

In my thesis, I use

%% modified from book.cls (based on the TeXnik FAQ)
\makeatletter
\newcommand{\thebibpreamble}{}
\renewenvironment{thebibliography}[1]
     {\chapter*{\bibname}%
      \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
    % START MOD 
    \thebibpreamble%
    \flushleft%
    % END MOD
      \list{\@biblabel{\@arabic\c at enumiv}}%
           {\settowidth\labelwidth{\@biblabel{#1}}%
            \leftmargin\labelwidth
            \advance\leftmargin\labelsep
            \@openbib at code
            \usecounter{enumiv}%
            \let\p at enumiv\@empty
            \renewcommand\theenumiv{\@arabic\c at enumiv}}%
      \sloppy
      \clubpenalty4000
      \@clubpenalty \clubpenalty
      \widowpenalty4000%
      \sfcode`\.\@m}
     {\def\@noitemerr
       {\@latex at warning{Empty `thebibliography' environment}}%
      \endlist}
\makeatother

After that, you can use 

\renewcommand{\thebibpreamble}
{
  blah
}

to insert "blah" in between the \chapter command of the bibliography and the
bibliography proper. You can probably stick in a label there, too. Note however
that you will want to change the chapter* to a chapter in the code above if you
want to refer to the chapter *number* (if you just want to refer to the page
number, you don't need to make that change). 

Edsko


More information about the texhax mailing list