Generalthebibliography

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
latexwriter
Posts: 3
Joined: Thu Dec 02, 2010 6:13 pm

thebibliography

Post by latexwriter »

Hi,

for my thesis I use "thebibliography" and I have created a large list of literature citations. I have to cite with author and year
[Assmann et al. 2008]
but I have to enumerate the bibliography at the end of the whole paper.
So this should look sth like this:
1. [Assmann et al. 2008] Assmann G, Schmitz Z, Muller W: "Most interesting paper you´ve ever read". NEJM 4(10) 2008, pp. 476-98.
2. [Becken et al. 2007] Becken Z, Graham W, Smith M: "Most popular paper you´ve ever read". Lancet 7(4) 2007, pp. 46-53.
3. ...
4.
5.
...
100. [Zideropolus et al. 2010] Zideropolus X, Tantrakis: "Just another article". Lancet 9(3) 2010, pp. 143-146.
How can I do this? I wasn't able to enumerate the citations at the bibliography at the end of the report.
I am not allowed to cite with [1] respectively.

Thank you very much

latexwriter
Last edited by latexwriter on Sat Dec 04, 2010 12:20 pm, edited 3 times in total.

Recommended reading 2024:

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

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

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

thebibliography

Post by frabjous »

Could you post a minimal working example showing the problem you're having? I'm having a very difficult time understanding what the problem is. Is it just that the numbers look like "[1]" and "[2]" rather than "1." and "2."?
latexwriter
Posts: 3
Joined: Thu Dec 02, 2010 6:13 pm

thebibliography

Post by latexwriter »

Yes, of course you can have a minimum example, here it is.

The problem is: I have to cite like this in the text.
Assmann wrote this and this [Assmann et al. 2002]. <-- no numbers, only author and year :-)
This works fine. But in the bibliography at the end of my report the editors want me to enumerate every \bibitem.
Latex does not do this automatically. In stead every bibitem is listed like in the text one after each other and nothing else :-(

The output looks like:
Bibliography

[Assmann et al. 2002] Assmann G (2002): "Simple scoring scheme", NEJM 2002. <-- *not* enumerated :-(
[Assmann et al. 2003] Assmann G (2003): "Newer scoring scheme", Lancet 2003.
...
but must be:
Bibliography

1. [Assmann et al. 2002] Assmann G (2002): "Simple scoring scheme", NEJM 2002. <----------- enumerated and correctly cited :-)
2. [Assmann et al. 2003] Assmann G (2003): "Newer scoring scheme", Lancet 2003.
...
Unfortunately it is not possible to combine \bibitem and the enumerate-environment.

I hope it makes it more clear. Thanks for the help ;-)

Code: Select all

\documentclass[a4paper,12pt,twoside,pointlessnumbers,bibtotocnumbered]{scrreprt}

\usepackage{german,textcomp,latexsym}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{ae}

\usepackage{graphicx,color,array,colortbl,longtable,url,ragged2e,lscape}
\usepackage[format=hang,margin=1cm]{caption}
\usepackage{multirow}

\usepackage{breakcites}




\begin{document}


\chapter{Coronary Heart Disease}

\section{Risk Scores}

Assmann and colleagues developed a simple scoring scheme for calculation the risk of acute coronary events for the next 10 years in 2001 \cite{Assmann2002} \dots


\begin{thebibliography}{100}

\markboth{7\hspace{1.2ex}Literaturverzeichnis}{}
 
  \bibitem[Assmann et al.\ 2002]{Assmann2002} Assmann G, Cullen P, Schulte H (2002): \emph{Simple scoring scheme for calculating the risk of acute coronary events based on the 10-year follow-up of the prospective cardiovascular Münster (PROCAM) study.} Circulation.\ \underline{105 (3)}, 310--5.

\end{thebibliography}

\end{document}

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

thebibliography

Post by frabjous »

OK. Thanks for the example. That helps a lot.

With some trial and error, putting something like this in the preamble seems to work:

Code: Select all

\newcounter{mybibitem}
\setcounter{mybibitem}{-1}
\makeatletter
\def\@biblabel#1{\stepcounter{mybibitem}\themybibitem.\ [#1]}
\makeatother
It's rather opaque to me why I had to start the counter at -1 rather than 0 in order to get the numbers to start 1 in the bibliography, and perhaps someone else will know (my hunch is that it has to do with how it works out the width using the "{100}" after you begin the thebibliography environment...), but this does seem to do the trick.

Incidentally, is that poor person's name really "Assmann"? I hope (s)he doesn't live in an English-speaking location!
latexwriter
Posts: 3
Joined: Thu Dec 02, 2010 6:13 pm

thebibliography

Post by latexwriter »

Great!! It works!!!! Thank you very much!!!
Incidentally, is that poor person's name really "Assmann"? I hope (s)he doesn't live in an English-speaking location!
:-D

As far as I know poor Mr "Assmann" must live in Germany, so his name should not be so hard for him ;-)
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

thebibliography

Post by localghost »

Now that the problem is solved, please be so kind and mark the topic (not the last post) accordingly as clearly written in the Board Rules (to be read before posting). Please keep that in mind for the future so that further reminder will not be necessary.


Best regards and welcome to the board
Thorsten
Post Reply