BibTeX, biblatex and biberMultibib extra } error killing meee

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
ValeYard
Posts: 8
Joined: Thu Mar 01, 2018 1:22 pm

Multibib extra } error killing meee

Post by ValeYard »

I'm having trouble with multibib using natbib all of a sudden.

I have two bibliographies, and after I've done the second bibtex run for the second one, I get an error when running LaTeX for the second time:

Argument of \@citex has an extra }.

It's totally weird, as I'm using the same natbib/multibib set that I've used for years. Can anyone help?

Here's some code:

Code: Select all

\documentclass[12pt,normalheadings,bibtotoc,liststotoc,numbers=noenddot,twoside=off]{scrbook}
\usepackage[british]{babel}

...


\usepackage{multibib}
\newcites{vids}{Videography}
\usepackage{natbib}
\setcitestyle{aysep={},notesep={: }}

\begin{document}

\citepvids{wiemer:2006} 

\newpage
\small{ % um eine kleinere Schriftgroesse beim Litverzeichnis zu haben
\setlength{\bibsep}{0.0pt} % fuer den Abstand der Eintraege
\bibliographystyle{soc_eng2}
\bibliography{lit}
\newpage
\setlength{\bibsep}{0.0pt} 
\renewcommand{\refname}{Videography} % zweites Litverzeichnis
\bibliographystylevids{soc_eng2}
\bibliographyvids{vids}
}
\end{document}
And the bibtex file vids contains

Code: Select all

@ARTICLE{wiemer:1991,
KEY = "wiemer:1991",
AUTHOR = "Wiemer, Robert (dir.)",
TITLE = "Data's Day",
JOURNAL = "Star Trek: The Next Generation",
VOLUME = "Episode 85",
PUBLISHER = {Paramount Pictures},
YEAR = "1991",
}
Any help would greatly be appreciated. I don't seem able to fix it.

Recommended reading 2024:

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

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

Multibib extra } error killing meee

Post by Stefan Kottwitz »

Hi,

I don't get this error with the code above.

Can you please try exactly the code you posted? And if the error can be repeated with that code, can you post the .log file as attachment? The "Attachments" link is below the text edit field, when editing. And also please post the .blg and .bbl files.

Stefan
LaTeX.org admin
ValeYard
Posts: 8
Joined: Thu Mar 01, 2018 1:22 pm

Multibib extra } error killing meee

Post by ValeYard »

Hi, thank you for your help.

I didn't get EXACTLY the same error when repeating just this code, but a really cool new one:

\@cite ...*\else \NAT@cmt #3\fi \NAT@@close \else
#1\fi \endgroup
l.13 \citepvids{wiemer:1991}

I'll enclose the files. Getting desperate and wish I knew my way around latex better :(
Attachments
vids.blg
(923 Bytes) Downloaded 335 times
vids.bbl
(355 Bytes) Downloaded 373 times
Test.blg
(1000 Bytes) Downloaded 353 times
Test.bbl
(189 Bytes) Downloaded 358 times
ValeYard
Posts: 8
Joined: Thu Mar 01, 2018 1:22 pm

Multibib extra } error killing meee

Post by ValeYard »

So one solution would be to convert to BibLateX and use keywords.

After finding incompatibilities -- I had ucs in there and such -- it seems to work, although my natbib customisation is gone.

Would still be curious what is going on here though.
ValeYard
Posts: 8
Joined: Thu Mar 01, 2018 1:22 pm

Multibib extra } error killing meee

Post by ValeYard »

Weirdly, I still haven't found a solution. While working with biblatex works for now, one day I'll have to use natbib and multibib again and don't know how to get the document to compile. I feel like this is something similar to this problem described here: https://tug.org/pipermail/texhax/2007-O ... 09158.html

I've found one sure way to not get the error and then produce it. If I cite \citep{wiemer:1991} and compile everything, then change it to \citepvids{wiemer:1991} and do bibtex vids everything works, although Wiemer:1991 is then in both bibliographies. However, when I do bibtex for the main bibliography, the error comes up again.

Does anyone have any ideas?
ValeYard
Posts: 8
Joined: Thu Mar 01, 2018 1:22 pm

Multibib extra } error killing meee

Post by ValeYard »

OK, sorry to post again, but I've decided I want to figure this out. Here's a minimal example of my document. After doing latex, bibtex, bibtex vids, latex, latex, I get the error
./MakingMoves2.tex:189: Undefined control sequence.
\hyper@@link ->\let \Hy@reserved@a
\relax \@ifnextchar [{\hyper@link@ }{\hyp...
l.189 ...ultibib like me? \citepvids{wiemer:1991}
I'll add the minimal example, my style file and the litvids file with the reference. If anyone can see the problem, I'd be eternally grateful.

Code: Select all

\documentclass[12pt,normalheadings,bibliography=totoc,listof=totoc,numbers=noenddot,twoside=off]{scrbook}
\usepackage[british]{babel}



\usepackage{ebgaramond}
%\usepackage[garamond]{mathdesign}
%\usepackage[urw-garamond]{mathdesign}
\usepackage[T1]{fontenc}

% Variant A: Default plus roman (i.e., still bold)
\addtokomafont{disposition}{\rmfamily}

% Variant B: Exactly as in the text body (i.e., not bold)
% \setkomafont{disposition}{\normalfont}
% doesnt make a difference with Garamond I think


% this is for renumbering chapters%%%%%%
\usepackage[hidelinks]{hyperref}

\usepackage{microtype}

\setkomafont{subsection}{\itshape\large}

% for italic font in subsection headings
%\usepackage{titlesec}
%\titleformat{\subsection}
   %{\itshape\large}{\thesubsubsection}{1em}{}

\usepackage{ucs}
\usepackage[utf8x]{inputenc}

\usepackage{paralist}
\usepackage{dcolumn}
\usepackage{threeparttable}

\usepackage{lineno} % fuer line numbers [modulo] = 5 cache
\usepackage{courier} % typeset fuer transkription
\usepackage[htt]{hyphenat} %silbentrennung bei maschinenschrift	
%\typearea{12} % muss irgendwie zur Schrift kommen nicht noetig bei scrartcl 


\usepackage{wrapfig}	

% for writing degrees A \SI{45}{\degree} angle.x
%It is $\SI{17}{\degreeCelsius}$ outside.
\usepackage{amsmath}
\usepackage{siunitx}

\usepackage[random]{blindtext}


\usepackage[centerlast,font=small,labelfont=it,format=plain]{caption} 


\makeatletter
\@addtoreset{chapter}{part}
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%

%\setcounter{secnumdepth}{4}%fuer nummerierung der Paragraphso

%\setcounter{tocdepth}{4}% fuer das Inhaltsverzeichnis

\usepackage[intoc]{nomencl}

\usepackage{setspace}
\usepackage{multirow}
\usepackage{multicol}
\usepackage[paper=a4paper,left=2.5cm,right=2.5cm,top=2cm,bottom=2cm,footskip=20pt,dvips]{geometry}

%Fuer die durchgehende Nummerieung der Fussnoten
%\usepackage{chngcntr}

%\counterwithout*{footnote}{chapter}

\usepackage{nomencl}
\let\abbrev\nomenclature
\renewcommand{\nomname}{List of Abbreviations}
\setlength{\nomlabelwidth}{.25\hsize}
\renewcommand{\nomlabel}[1]{#1 \dotfill}
\setlength{\nomitemsep}{-\parsep}
\makenomenclature
\newcommand{\Listofabbrev}{
\printnomenclature
\newpage
}

\usepackage{graphicx}


\usepackage{multibib}
\newcites{vids}{Videography}
\usepackage{natbib}
\setcitestyle{aysep={},notesep={: }}



%\usepackage{verbatim}
%\usepackage{verbsubfile}

%\usepackage{url}

%\usepackage{fancyhdr} %Paket fuer Kopf- und Fusszeile

%\pagestyle{fancy}
%\fancyhf{} %alle Kopf- und Fusszeilenfelder bereinigen
%\lhead{}
%\chead{}
%\rhead{}
%\lfoot{}
%\cfoot{\thepage}
%\rfoot{}
%\renewcommand{\headrulewidth}{0pt}
%\renewcommand{\footrulewidth}{0pt}

%\fancypagestyle{firstpage}{%
%\fancyhf{} %alle Kopf- und Fusszeilenfelder bereinigen
%\lhead{}
%\chead{}
%\rhead{}
%\lfoot{}
%\cfoot{\thepage}
%\rfoot{}
%\renewcommand{\headrulewidth}{0pt}
%\renewcommand{\footrulewidth}{0pt}
%}

%\fancypagestyle{fancytitlepage}{%

%\fancyhf{} %alle Kopf- und Fusszeilenfelder bereinigen
%\lhead{}
%\chead{}
%\rhead{}
%\lfoot{}
%\cfoot{}
%\rfoot{}
%\renewcommand{\headrulewidth}{0pt}
%\renewcommand{\footrulewidth}{0pt}
%}

\newenvironment{changemargin}[2]{%
  \begin{list}{}{%
    \setlength{\topsep}{0pt}%
    \setlength{\leftmargin}{#1}%
    \setlength{\rightmargin}{#2}%
    \setlength{\listparindent}{\parindent}%
    \setlength{\itemindent}{\parindent}%
    \setlength{\parsep}{\parskip}%
  }%
  \item[]}{\end{list}}
  
  % For chapters without numbering but in contents taken from http://tex.stackexchange.com/questions/110840/how-to-remove-chapter-numbering-without-removing-it-from-tableofcontents
%\newcommand{\mychapter}[2]{
   % \setcounter{chapter}{#1}
    %\setcounter{section}{0}
    %\chapter*{#2}
    %\addcontentsline{toc}{chapter}{#2}
%}
% or just use addchap?

%print out just ToC with bib
%\includeonly{tableofcontents}

%remove page numbers in ToC
%\usepackage{hyperref}
%\let\Contentsline\contentsline
%\renewcommand\contentsline[3]{\Contentsline{#1}{#2}{}}

\begin{document}

\setcounter{page}{1}
%\pagenumbering{roman}
\pagenumbering{gobble}

%\setcounter{tocdepth}{4}
%\tableofcontents
%\newpage
%\listoffigures
%\newpage

%\onehalfspacing
\spacing{1.3}
\pagenumbering{roman}
\include{preface}
\pagenumbering{arabic}
 \setcounter{page}{1}
 Why doesn't multibib like me?  \citepvids{wiemer:1991}
%\include{intro} 
%\include{Study}
%\include{HowMovesMade}
%\include{ComingtoLesson}
%\include{MakingMoves}
%\include{MovingSelf}
%\include{MovingTogether}
%\include{Finishing}


%\include{finishingmoves}
%how about putting this in main moves? trinity is nice, but I think I will run out of time

\newpage
%\small % um eine kleinere Schriftgroesse beim Litverzeichnis zu haben
\setlength{\bibsep}{0.0pt} % fuer den Abstand der Eintraege
\bibliographystyle{soc_eng2}
\bibliography{lit}
\newpage
\setlength{\bibsep}{0.0pt} 
\renewcommand{\refname}{Videography} % zweites Litverzeichnis
\bibliographystylevids{soc_eng2}
\bibliographyvids{litvids}
\end{document}
Attachments
litvids.bib
(216 Bytes) Downloaded 358 times
soc_eng2.bst
(32.86 KiB) Downloaded 346 times
lalatex
Posts: 1
Joined: Fri Apr 05, 2019 7:18 pm

Multibib extra } error killing meee

Post by lalatex »

I got the same error. I solved the problem by flipping the order that I import multibib and natbib.

This should work:
\usepackage{natbib}
\usepackage{multibib}
Post Reply