BibTeX, biblatex and biberproblems with the reference list

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
greenfalcon
Posts: 10
Joined: Wed Apr 21, 2010 9:47 pm

problems with the reference list

Post by greenfalcon »

hello,

i have been dealing with latex for only a couple of days so i didnt get familiar with it yet. therefore, please excuse my rookie question: but how can i create a reference list in a "plain" style?

it is supposed to look like that
beispielreferences.png
beispielreferences.png (36.03 KiB) Viewed 4724 times
i tried to do it like that:

Code: Select all

\begin{thebibliography}{9}

\bibliographystyle{plainnat}

\bibitem{Burda04}
  Michael C. Burda and Charles Wyplosz.\newline
  \emph{Markoökonomie - Eine europäische Perspektive.}\newline
  Verlag Franz Vahlen GmbH,
  2003.

\bibitem{Krueger05}
  David Card and Alan B. Krueger.\newline
  Minimum Wages and Employment: A Case Study of the Fast-Food Industry in \newline
New Jersey and Pennsylvania: Reply.\newline
  \textit{The American Economic Review}, 90(5):1397–1420, 2000.

\end{thebibliography}
this gives me the following:
beispielreferences2.png
beispielreferences2.png (33.78 KiB) Viewed 4724 times
it certainly does look close... but i think that our teacher wants to see something else... does anyone have an idea what i am doing wrong? what is this "plain" style?

thank you

Recommended reading 2024:

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

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

problems with the reference list

Post by localghost »

Attachments shall be uploaded to the forum server. External links can get lost with time and make a problem incomprehensible.

A bibliography style is meant to work only with BibTeX, not with a handmade bibliography like yours. Moreover it is most helpful to post a full and minimal example (for reference use the search function of the forum).


Best regards and welcome to the board
Thorsten
olofos
Posts: 56
Joined: Tue Nov 24, 2009 10:37 pm

problems with the reference list

Post by olofos »

"plain style" probably refers to the bibtex style named plain. The following should give something very similar to your example:

Put the following in a file named "test.tex"

Code: Select all

\documentclass[openbib]{article}
\begin{document}
\nocite{*}
\bibliographystyle{plain}
\bibliography{test}
\end{document}
and in the same directory create a file "test.bib" with the content

Code: Select all

@Book{Burda:2003,
  author        = {Michael C. Burda and Charles Wyplosz},
  title         = {Marko{\"o}konomie - {E}ine europ{\"a}ische {P}erspektive},
  publisher     = {Verlag Franz Vahlen GmbH},
  year          = 2003
}

@Article{Card:2000,
  author        = {David Card and Alan B. Krueger},
  title         = {Minimum Wages and Employment: A Case Study of the
                  Fast-Food Industry in {N}ew {J}ersey and
                  {P}ennsylvania: Reply},
  journal       = {The American Economic Review},
  year          = 2000,
  volume        = 90,
  number        = 5,
  pages         = {1397-1420}
}
To generate a pdf file from the above two files you need to run

Code: Select all

pdflatex test
bibtex test
pdflatex test
pdflatex test
For more info on bibtex check, e.g., the FAQ
greenfalcon
Posts: 10
Joined: Wed Apr 21, 2010 9:47 pm

problems with the reference list

Post by greenfalcon »

dear all,

thank you very much and please excuse that i didnt pay attention to all the forum conventions. i will try hard to do so in the future

the only thing i don't understand is what you, olofos, wrote at the end

what i am supposed to do by:

Code: Select all

pdflatex test
bibtex test
pdflatex test
pdflatex test
i am a real latex rookie... :/

anyway, thank you very much!
olofos
Posts: 56
Joined: Tue Nov 24, 2009 10:37 pm

Re: problems with the reference list

Post by olofos »

I just meant that you need to run both latex and bibtex to produce the final pdf. The commands I gave is what you would run at the command line. If you use some latex aware editor it will presumably run the correct sequence automatically when you tell it to compile your document. This is totally dependent on what editor you're actually using though.
greenfalcon
Posts: 10
Joined: Wed Apr 21, 2010 9:47 pm

Re: problems with the reference list

Post by greenfalcon »

hello olofos,

it works now! great :)

the only thing is, that the lines still look a little different from what i am supposed to get... actually there should be a new line after every information

do you know how i can fix that?

thank you :)

ps: is this really the same "plain" style? it somehow looks different from each other... ?_?
Attachments
this is what it should look like in the end
this is what it should look like in the end
beispiel_references.PNG (36.03 KiB) Viewed 4709 times
this is what my reference list looks like now
this is what my reference list looks like now
reference_now.PNG (31.54 KiB) Viewed 4709 times
olofos
Posts: 56
Joined: Tue Nov 24, 2009 10:37 pm

Re: problems with the reference list

Post by olofos »

Hmm. The 'openbib' option in the document class should put each part of the reference on its own line. Did you try the example I posted? I get something very similar to what you want (apart from some difference in capitalization which can be fixed in the bibtex file).
greenfalcon
Posts: 10
Joined: Wed Apr 21, 2010 9:47 pm

Re: problems with the reference list

Post by greenfalcon »

dear olofos,

i found my mistake! there was a comma missing in the head... :)

now it looks just as it is supposed to!

i have just one last question: how can i move the whole thing a bit more i the middle?

because now, the break is "Jersey", but it's supposed to be at "New"
Attachments
it's almost done. it only needs to be a bit more in the center.
it's almost done. it only needs to be a bit more in the center.
references_almost_correct.png (33.64 KiB) Viewed 4696 times
Post Reply