BibTeX, biblatex and biberMissing Brackets in Bibliography

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
syrious
Posts: 2
Joined: Wed Nov 02, 2011 5:11 pm

Missing Brackets in Bibliography

Post by syrious »

Hi there,

I'm writing my thesis and of course use bibliography.
Everything works fine. Only the bibliography's indices stand there without the braces: [ and ]

Still tried different bibliography styles (geralpha, ieeetr, alphadin, acm).so indices changed from numbers to abbreviated authors as it should be. But in every case there are no brackets.

My doc

Code: Select all

\documentclass[
    11pt, % Schriftgröße
    DIV10,
    ngerman, % für Umlaute, Silbentrennung etc.
    a4paper, % Papierformat
    %oneside, % einseitiges Dokument
    twoside,
    titlepage, % es wird eine Titelseite verwendet
    pointlessnumbers,
    parskip=half, % Abstand zwischen Absätzen (halbe Zeile)
    headings=normal, % Größe der Überschriften verkleinern
    bibliography=totoc, % Literaturverzeichnis im Inhaltsverzeichnis aufführen
    index=totoc, % Index im Inhaltsverzeichnis aufführen
    captions=tableheading, % Beschriftung von Tabellen unterhalb ausgeben
    final, % Status des Dokuments (final/draft)
    openright
]{scrreprt}



% package imports -------------------------

\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{textcomp} % Euro-Zeichen etc.
\usepackage{lmodern} % bessere Fonts
\usepackage{relsize} % Schriftgröße relativ festlegen
\usepackage[dvips,final]{graphicx}
\usepackage{amsmath,amsfonts}
\usepackage{makeidx}
\usepackage{setspace}
\usepackage{geometry}
\usepackage[intoc]{nomencl}

\let\abbrev\nomenclature
\renewcommand{\nomname}{Abkürzungsverzeichnis}
\setlength{\nomlabelwidth}{.25\hsize}
\renewcommand{\nomlabel}[1]{#1 \dotfill}
\setlength{\nomitemsep}{-\parsep}
\usepackage{floatflt}

% wichtig für korrekte Zitierweise ---------------------------------------------
\usepackage[square]{natbib}
%\usepackage{natbib}

% PDF-Optionen -----------------------------------------------------------------
\usepackage[
    bookmarks,
    bookmarksopen=true,
    linkcolor=black, % einfache interne Verknüpfungen
    anchorcolor=black, % Ankertext
    citecolor=black, % Verweise auf Literaturverzeichniseinträge im Text
    filecolor=black, % Verknüpfungen, die lokale Dateien öffnen
    menucolor=black, % Acrobat-Menüpunkte
    urlcolor=black, 
    backref,
    plainpages=false, % zur korrekten Erstellung der Bookmarks
    pdfpagelabels, % zur korrekten Erstellung der Bookmarks
    hypertexnames=false, % zur korrekten Erstellung der Bookmarks
    linktocpage % Seitenzahlen anstatt Text im Inhaltsverzeichnis verlinken
]{hyperref}

\hypersetup{
    pdftitle={\titel \untertitel},
    pdfauthor={\autor},
    pdfcreator={\autor},
    pdfsubject={\titel \untertitel},
    pdfkeywords={\titel \untertitel},
}

\usepackage{chngcntr}

\usepackage{longtable}
\usepackage{array}
\usepackage{ragged2e}
\usepackage{lscape}

\newcolumntype{w}[1]{>{\raggedleft\hspace{0pt}}p{#1}}

\usepackage{paralist}
\usepackage{ifthen}
\usepackage{todonotes}
\usepackage{xspace}

\begin{document}



\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}

\ofoot{}
\include{Deckblatt}

\include{Inhalt/Abstract}
\ofoot{\pagemark}


\pagenumbering{Roman}
\tableofcontents % Inhaltsverzeichnis

\input{Inhalt/Glossar}

\clearpage\markboth{\nomname}{\nomname} 
\printnomenclature
\label{sec:Glossar}

\listoffigures % Abbildungsverzeichnis
\listoftables % Tabellenverzeichnis


\clearpage
\include{Inhalt/Abkz}

\clearpage
\pagenumbering{arabic}

% content -------------------------
\include....
I also compared the files to an project of mine where it works, but didn't find a thing. Because the project where the problem exists is a pretty complex template.

As i didn't find relevant sites googling around I would appreciate any hint.
Last edited by localghost on Wed Nov 02, 2011 6:34 pm, edited 1 time 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.

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Missing Brackets in Bibliography

Post by cgnieder »

You're example isn't really a minimal working example, is it? It is not even a working example, either (meaning I cannot just copy and compile it as it is). This makes it very hard (if not impossible) to help.

However, you seem to be using natbib. This looks like expected:

Code: Select all

\documentclass{article}

\begin{filecontents}{test.bib}
@Article{Booth1962,
  hyphenation  = {british},
  author       = {Booth, G. and Chatt, J.},
  title        = {The reactions of carbon monoxide and nitric 
    oxide with tertiary phosphine complexes of iron(II), 
    cobalt(II), and nickel(II)},
  journaltitle = {J.~Chem. Soc.},
  year         = {1962},
  pages        = {2099--2106},
  doi          = {10.1039/JR9620002099},
  annotation   = {An article which does not have a volume number}
}
\end{filecontents}
\usepackage[square,numbers]{natbib}
\begin{document}

\cite{Booth1962}

\bibliographystyle{plain}
\bibliography{test.bib}
\end{document}
site moderator & package author
syrious
Posts: 2
Joined: Wed Nov 02, 2011 5:11 pm

Re: Missing Brackets in Bibliography

Post by syrious »

Hi cgnieder,

thanks for the answer..
I just reduced my work to show the problem and provide a minimal compilable tex.
So I compiled ....and..it now works correctly. :shock:
I expect there is a problem in the content.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Missing Brackets in Bibliography

Post by cgnieder »

syrious wrote:I just reduced my work to show the problem and provide a minimal compilable tex.
So I compiled ....and..it now works correctly.
This happens in probably 4 out of 5 times when one tries to create a minimal example...

I suggest you reduce your code step by step and compile in between; this way you'll find the code causing the problem.
site moderator & package author
Post Reply