Generalunnumbering bibliography

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
sabiha
Posts: 7
Joined: Wed Sep 03, 2008 9:40 am

unnumbering bibliography

Post by sabiha »

Hello,

I am writing my thesis using WinEdt. All the entries in my bibliography are numbered. I don't want to have numbers. Could anyone please tell me how to remove numbers form bibliography?

My second problem is that I want to have chapter names in full in table of contents but it is showing the short titles that appear in the header of respective chapters. What Should I do?

Regards,

Sabiha

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

spiegboy
Posts: 120
Joined: Thu Dec 06, 2007 9:58 am

unnumbering bibliography

Post by spiegboy »

Hi, mate
I am writing my thesis using WinEdt. All the entries in my bibliography are numbered. I don't want to have numbers. Could anyone please tell me how to remove numbers form bibliography?
change your bibliographystyle, you got plenty of options.

plain Standard BIBT EX style. Entries sorted alphabetically with numeric labels.
unsrt Standard BIBT EX style. Similar to plain, but entries are printed in order of
citation, rather than sorted. Numeric labels are used.
alpha Standard BIBT EX style. Similar to plain, but the labels of the entries are formed
from the author’s name and the year of publication.
abbrv Standard BIBT EX style. Similar to plain, but entries are more compact, since
first names, month, and journal names are abbreviated.
acm Alternative BIBTEX style, used for the journals of the Association for Comput-
ing Machinery. It has the author name (surname and first name) in small caps,
My second problem is that I want to have chapter names in full in table of contents but it is showing the short titles that appear in the header of respective chapters. What Should I do?
dont use short title

i assume your original text code is sth like

Code: Select all

\chapter[short title]{full title}
just delete the short title.

Regards
sabiha
Posts: 7
Joined: Wed Sep 03, 2008 9:40 am

Re: unnumbering bibliography

Post by sabiha »

Thanks for your reply.

I want to show short title in the header. What else can be done to keep this while showing full titles in table of contents?

Regards.
spiegboy
Posts: 120
Joined: Thu Dec 06, 2007 9:58 am

Re: unnumbering bibliography

Post by spiegboy »

that's tricky, let me think
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

unnumbering bibliography

Post by Juanjo »

sabiha wrote: I want to show short title in the header. What else can be done to keep this while showing full titles in table of contents?
I assume that you are using the book class. In such a case, you can redefine \@chapter, an internal command invoked by \chapter. Try the following example:

Code: Select all

\documentclass{book}

\makeatletter
\def\@chapter[#1]#2{%
   \ifnum \c@secnumdepth >\m@ne
      \if@mainmatter
         \refstepcounter{chapter}%
         \typeout{\@chapapp\space\thechapter.}%
         \addcontentsline{toc}{chapter}%
             {\protect\numberline{\thechapter}#2}%
      \else
         \addcontentsline{toc}{chapter}{#2}%
      \fi
   \else
      \addcontentsline{toc}{chapter}{#2}%
   \fi
   \chaptermark{#1}%
   \addtocontents{lof}{\protect\addvspace{10\p@}}%
   \addtocontents{lot}{\protect\addvspace{10\p@}}%
   \if@twocolumn
      \@topnewpage[\@makechapterhead{#2}]%
   \else
      \@makechapterhead{#2}%
      \@afterheading
   \fi}
\makeatother

\usepackage{lipsum}

\begin{document}

\frontmatter
\tableofcontents

\mainmatter

\chapter[Short title of first chapter]{Full title of first chapter}
\lipsum[1-10]

\chapter[Short title of second chapter]{Full title of second chapter}
\lipsum[1-10]

\end{document}
In this code, the \lipsum command, defined in the lipsum package, only serves to generate blind text. If you compare the above definition of \@chapter with the original one (given in book.cls), you will notice that the only difference is the replacement of #1 by #2 in the \addcontentsline commands. In this way, the text which goes to the TOC is that in the mandatory argument of \chapter, as you require.

Concerning the bibliography, you will find useful the natbib package, mainly oriented to unnumbered bibliographies and author-year citations.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
sabiha
Posts: 7
Joined: Wed Sep 03, 2008 9:40 am

Re: unnumbering bibliography

Post by sabiha »

That worked straight away!
Thank a lot!

Best regards,
Post Reply