Latex Nobibliography

  1. 06-05-2011, 14:19#1
    Registrierter Benutzer
    Registriert seit
    14.03.2002
    Ort
    Schweizland
    Beiträge
    4.549

    [gelöst] bibentry/nobibliography will nicht

    Guten Tag,

    ich habe da etwas Ärger mit bibentry/nobibliography.

    Wenn ich \bibentry{} zusammen mit einer normalen \bibliography verwende funktioniert alles wies soll:
    \documentclass{article} \usepackage{bibentry} \bibliographystyle{apalike} %\nobibliography{test} \nobibliography* \begin{document} \bibentry{referenz} \bibliography{test} \end{document}
    Aber ich möchte ein Dokument, ohne eine \bibliography{} Liste
    \documentclass{article} \usepackage{bibentry} \bibliographystyle{apalike} \nobibliography{test} %\nobibliography* \begin{document} \bibentry{referenz} %\bibliography{test} \end{document}
    Damit wird aber nur .aux ohne die nötigen \bibdata und \bibcite Einträge erstellt, ergo auch kein korrektes .bbl und so weiter

    test.bib:
    @BOOK{referenz, title = {Titel}, publisher = {Verlag}, year = {1900}, author = {asdfasdf}, }
    Kompiliert mittels Texlive2009 jeweils mit "pdflatex test.tex; bibtex test; pdflatex test.tex; pdflatex test.tex"

    Weiss jemand wo ich das Konstrukt treten muss, damit es funktioniert?

    MfG Peschmä
    Geändert von peschmae (06-05-2011 um 14:43 Uhr)
    The greatest trick the Devil ever pulled was convincing the world he didn't exist. -- The Usual Suspects (1995)
    Hey, I feel their pain. It's irritating as hell when people act like they have rights.The great old one (2006)

  2. 06-05-2011, 14:43#2
    Registrierter Benutzer
    Registriert seit
    14.03.2002
    Ort
    Schweizland
    Beiträge
    4.549
    The greatest trick the Devil ever pulled was convincing the world he didn't exist. -- The Usual Suspects (1995)
    Hey, I feel their pain. It's irritating as hell when people act like they have rights.The great old one (2006)
    Jaja, und wenn man das nobibliography innerhalb des \begin{documents}-Blocks plaziert funktioniert das ja auch alles ganz gut...

    \documentclass{article} \usepackage{bibentry} \bibliographystyle{apalike} \begin{document} \nobibliography{test} \bibentry{referenz} \end{document}
    MfG Peschmä

Gehe zu:LaTeX-ForumNach oben
  • Bereiche
  • Benutzerkontrollzentrum
  • Private Nachrichten
  • Abonnements
  • Wer ist online
  • Foren durchsuchen
  • Forum-Startseite
  • Foren
  • Neuigkeiten
  • Hier Suchen und Finden, Links, Tutorials und Tipps
  • Mitgliederbereich
  • Programmieren
    1. PHP-Forum
    2. Datenbanken
    3. Umgebungen, Entwicklungstools, Frameworks, IDEs
    4. Sprachen, Standard APIs
    5. Java-Forum
    6. HTML und Markupsprachen Forum
    7. Scriptsprachen
    8. Allgemein / Sonstiges
  • Applikationen
    1. LaTeX-Forum
  • Professionelle Systemadministration
    1. Betriebsysteme, Management, Storage, Netzwerk
  • Linux
  • www.linuxforen.de

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •  

Foren-Regeln


In the introduction chapter of my PhD dissertation, I had to make a listing of my publications. The obvious brain dead way to achieve this is just typing everything manually in a list. But this feels just so wrong when you're already using BibTeX for managing references and bibliographical stuff. However, the traditional usage of BibTeX in LaTeX is to generate a full list of all references and put this in a dedicated section or chapter.

With the bibentry package (which is part of the natlib package actually) it is possible to put bibliographic entries anywhere in the text. As far as I know and experienced, the bibentry package is included in a default LaTeX setup, so you don't have to install something, just enable it in your document.

Getting it work as desired can take some trial and error, so I thought it may be a good idea to feed "them search engines" with a working example.

Here is a simple proof of concept example LaTeX document :

\documentclass{article}\usepackage{bibentry}\nobibliography*\begin{document}\section{Introduction} Look ma, inline bibtex entries: \begin{itemize}\item\bibentry{michael}\item\bibentry{elvis}\end{itemize}\section{And now for something completely different} Lorem ipsum yada yada, also see \cite{britney}, yada yada, and \cite{marilyn} too. \bibliographystyle{alpha}\bibliography{test_bibentry.bib}\end{document}

The stuff that's important here: - : duh. - : tells bibentry to (re)use the bibliographic data from the standard BibTeX setup by . - : an inline bibliographic entry will be put here.

Here is the accompanying BibTeX file :

@Book{michael, author = "Michael Jackson", title = "My Kingdom For A Lollypop", publisher = "Neverland \& Everland Publishing", year = 2004 } @Book{elvis, author = "Elvis Presley", title = "Turn Me One More Time", publisher = "Jail House Books", year = 1963 } @Book{britney, author = "Britney Spears", title = "Let's Go Oversea To Canada", publisher = "Blonde, Blondt \& Blondey", year = 2007 } @Book{marilyn, author = "Marilyn Manson", title = "I Love My Little Pony", publisher = "Pinc \& Cuddley Press", year = 2005 }

And here is what it looks like in the end:

Note the inline entries in the introduction section, the standard references in the second section and how all references show up in the final bibliographic listing. Just how I wanted it in my PhD dissertation. With slightly different content of course.

Categories: 1

0 Replies to “Latex Nobibliography”

Leave a comment

L'indirizzo email non verrà pubblicato. I campi obbligatori sono contrassegnati *