Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm writing my thesis and of course use bibliography. Everything works fine. Only the indices in the bibliography stand there without the braces: [ and ]. In cites the braces show up as they should e.g. "[SK08]".

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 around.

My doc

    \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.

share|improve this question
2  
Thanks for posting these lengthy excerpts from your thesis latex file. However, because it's not a working example capable of generating the problem(s) you describe, it's very hard to figure out what's going on. Do you want square brackets just around the citation references -- as indicated by the fact that you load natbib with the [square] option, or should this style be applied to other elements (index entries, say?)? Please advise. – Mico Nov 3 '11 at 14:36
Welcome to TeX.SE. It is always best to compose a MWE that illustrates the problem including the \documentclass so that those trying to help don't have to recreate it. This should be as complete as possible, but remove anything that is not essential to reproduce the problem. – Peter Grill Nov 3 '11 at 16:26
Just took out all the contents and build a minimal example...compiled it..and now bibliography is correct..what the ******* – Christian Nov 4 '11 at 13:14
Based on the comment, this is 'too localized': I'm closing. (@Christian: I converted your 'answer' to a comment.) – Joseph Wright Nov 4 '11 at 13:53

closed as too localized by egreg, Audrey, Joseph Wright Nov 4 '11 at 13:53

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.