BibTeX, biblatex and biberProblems with bibtex and natbib

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
mbahrs
Posts: 1
Joined: Wed Aug 28, 2013 8:17 pm

Problems with bibtex and natbib

Post by mbahrs »

Hallo everybody,

I want to use the bibliographystyle natbib. When I use \citep{]}, it just gives me a question mark at the place where it supposses to cite. Here is my latex preamble:

Code: Select all

\documentclass[
  paper=A4, 		% Stellt auf A4-Papier ein
  pagesize, 		% Diese Option reicht die Papiergröße an alle Ausgabeformate weiter
  DIV=calc, 		% Für einen guten Satzspiegel
  headings=small,	% Für etwas kleinere Überschriften
  ngerman,  		% Neue Rechtschreibung (Silbentrennung)
  12pt, 			% Schriftgröße
  listof=totoc, 
  bibliography=totoc, 
  index=totoc, 
  BCOR5mm, 			% Formatregeln für Bindung
]{scrbook}
% ---------------------------------------------------------------
% Unverzichtbare Pakte
\usepackage[T1]{fontenc}	% für Texte mit Umlauten und/oder Akzenten 
\usepackage[utf8]{inputenc}	% Silbentrennung und Eingabe von Umlauten
\usepackage{fixltx2e}  		% Verbessert einige Kernkompetenzen von LaTeX2e
\usepackage[ngerman]{babel} 	% Deutsch als Hauptsprache
\usepackage[ngerman]{translator}
\usepackage{natbib} 
\usepackage{graphicx} 		% Einfügen von Grafiken (.png)
\usepackage[acronym,toc,numberedsection,nonumberlist]{glossaries}
\usepackage[hyphens]{url} 	% URL's schöner formatieren
\usepackage[pdftex,a4paper,breaklinks,bookmarksnumbered]{hyperref}  % Hyperlinks im PDF-Dokument
%\usepackage{pdfpages} 		% Einfügen von PDF-Dateien
% ---------------------------------------------------------------
% Typografisch empfehlenswerte Pakete
\usepackage{
  ellipsis, % Korrigiert den Weißraum um Auslassungspunkte
  ragged2e, % Ermöglicht Flattersatz mit Silbentrennung
  marginnote,% Für bessere Randnotizen mit \marginnote statt % \marginline
}
\usepackage[tracking=true]{microtype}%
\DeclareMicrotypeSet*[tracking]{my}% 
  { font = */*/*/sc/* }% 
\SetTracking{ encoding = *, shape = sc }{ 45 }% alle Passagen in Kapitälchen automatisch leicht gesperrt.
% ---------------------------------------------------------------
% Verschiedene Schriften
\usepackage{%
  lmodern, % A) Latin Modern Fonts sind die Nachfolger von Computer
            % Modern, den LaTeX-Standardfonts
%  hfoldsty % B) Diese Schrift stellt alle Ziffern, außer
            % im Mathemodus, auf Minuskel- oder Mediäval-Ziffern um.
            % Wenn Ihre pdfs unscharf aussehen installieren Sie bitte
            % die cm-super-Fonts (Type1-Fonts).
% charter   % C) Diese Zeile lädt die Charter als Schriftart
}
% ---------------------------------------------------------------
% Glossar-Anpassungen
% Den Punkt am Ende jeder Beschreibung deaktivieren
\renewcommand*{\glspostdescription}{}

% Glossar-Befehle anschalten
\makeglossaries

% Akronyme
\include{./etc/acronym}

% Glossar
\include{./etc/glossary}
% ---------------------------------------------------------------
% Quellen
\bibliography{web,literature}
\usepackage{multibib}
\newcites{literature}{Literaturverzeichnis}
\newcites{web}{Web-Quellenverzeichnis}
% ---------------------------------------------------------------
% Einstellungen
\pdfminorversion=6
\input{./etc/hyphenation}
\graphicspath{{./gfx/}}
% ---------------------------------------------------------------
% Befehl für Überschriften mit Untertitel
\newcommand{\Chapter}[2]{\chapter[#1]{#1:\\#2}} 
\newcommand{\Section}[2]{\section[#1]{#1:\\#2}}
% ---------------------------------------------------------------
% Hier startet der Inhalt
\begin{document}
% Meta-Informationen für das PDF
\input{./etc/pdf-info}
% ---------------------------------------------------------------
% Titelblätter und Erklärung
\frontmatter
\pagenumbering{Roman}
\include{./intro/titel} 
\thispagestyle{empty}
\cleardoublepage
    
% Erklärung (Arbeit selbstständig verfasst)
\include{./intro/erklaerung}  
\thispagestyle{empty}
\cleardoublepage

% Zitate
\include{./intro/quote}

% Abstract
\include{./intro/abstract}

% Inhaltsverzeichnis
\tableofcontents 
% ---------------------------------------------------------------
% Hauptteil - Arabische Seitennummerierung
\mainmatter % die eigentliche Arbeit
\pagenumbering{arabic}

\input{./sections/1-Einleitung}
\input{./sections/2-Second}
\input{./sections/3-Third}
\input{./sections/4-Fourth}
\input{./sections/5-Fifth}
\input{./sections/6-Sixth}
\input{./sections/7-Seventh}
% ---------------------------------------------------------------
% Schlussteil - Römische Seitennummerierung
\backmatter
\pagenumbering{Roman}
\setcounter{page}{11}
% ---------------------------------------------------------------
% Quellenverzeichnisse
\bibliographystyleliterature{natdin}
\bibliographyliterature{literature}
\bibliographystyleweb{natdin}
\bibliographyweb{web}
% ---------------------------------------------------------------
%Glossar ausgeben
\printglossary[style=altlist,title=Glossar]

%Abkürzungen ausgeben
\deftranslation[to=German]{Acronyms}{Abkürzungsverzeichnis}
\printglossary[type=\acronymtype,style=long]
% ---------------------------------------------------------------
% Anhang
\appendix
%\includepdf[pages=-,fitpaper=true,addtotoc={1,section,0,Diagramm: Vergabe,fig:Vergabedia}]{Pfad-zu-einem-pdf-dokument.pdf}
% ---------------------------------------------------------------
\end{document}
This is an example of of bib.tex file:

Code: Select all

@ARTICLE{exmpl:buch,
  author       = {Quinque, Venio Piero},
  title        = {TU9 CIOs Campus Management Software Zusammenarbeit},
  publisher		 = {TU9 German Institutes of Technology},
  year         = {2008},
  journal      = {TU9 Jahresbericht 2007},
  pages        = {11},
  number       = {1},
}
@BOOK{exmpl:buch2,
  author       = {Zender, Raphael},
  title        = {Service-basierte Infrastruktur für pervasive Lehr- und Lernarrangements},
  publisher		 = {},
  year         = {2010},
Correct me if I'm wrong but the command

Code: Select all

\cite{exmpl:buch2}
should give me the correct reference.

Code: Select all

\chapter{Einleitung}
\label{chap:einleitung}
Lorem ipsum doloreirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero e \citep{exmpl:buch}
I'm very grateful to anyone who could give me advices to solve my problem.

Thanks a lot
Cheers
Marco

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Problems with bibtex and natbib

Post by Johannes_B »

Hi Marco, please provide a proper Minimal working example (here is a link in german Minimalbeispiel).

Did you run BibTeX? Are there any \cite-commands in your document?

However, i strongly advice you to use the modern biblatex with the bibliographyprocessor biber instead. Hilfe zu biblatex (A few introducing words to biblatex in german).


Best regards
Johannes
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply