LaTeX forum ⇒ BibTeX, biblatex and biberMultibib extra } error killing meee

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

Multibib extra } error killing meee

Postby ValeYard » Thu Mar 01, 2018 1:30 pm

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:

  1. \documentclass[12pt,normalheadings,bibtotoc,liststotoc,numbers=noenddot,twoside=off]{scrbook}
  2. \usepackage[british]{babel}
  3.  
  4. ...
  5.  
  6.  
  7. \usepackage{multibib}
  8. \newcites{vids}{Videography}
  9. \usepackage{natbib}
  10. \setcitestyle{aysep={},notesep={: }}
  11.  
  12. \begin{document}
  13.  
  14. \citepvids{wiemer:2006}
  15.  
  16. \newpage
  17. \small{ % um eine kleinere Schriftgroesse beim Litverzeichnis zu haben
  18. \setlength{\bibsep}{0.0pt} % fuer den Abstand der Eintraege
  19. \bibliographystyle{soc_eng2}
  20. \bibliography{lit}
  21. \newpage
  22. \setlength{\bibsep}{0.0pt}
  23. \renewcommand{\refname}{Videography} % zweites Litverzeichnis
  24. \bibliographystylevids{soc_eng2}
  25. \bibliographyvids{vids}
  26. }
  27. \end{document}


And the bibtex file vids contains

  1. @ARTICLE{wiemer:1991,
  2. KEY = "wiemer:1991",
  3. AUTHOR = "Wiemer, Robert (dir.)",
  4. TITLE = "Data's Day",
  5. JOURNAL = "Star Trek: The Next Generation",
  6. VOLUME = "Episode 85",
  7. PUBLISHER = {Paramount Pictures},
  8. YEAR = "1991",
  9. }


Any help would greatly be appreciated. I don't seem able to fix it.

Tags:

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

Postby Stefan Kottwitz » Thu Mar 01, 2018 1:42 pm

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
Site admin

ValeYard
Posts: 5
Joined: Thu Mar 01, 2018 1:22 pm

Postby ValeYard » Thu Mar 01, 2018 2:13 pm

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 16 times
vids.bbl
(355 Bytes) Downloaded 20 times
Test.blg
(1000 Bytes) Downloaded 17 times
Test.bbl
(189 Bytes) Downloaded 15 times

ValeYard
Posts: 5
Joined: Thu Mar 01, 2018 1:22 pm

Postby ValeYard » Thu Mar 01, 2018 9:21 pm

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: 5
Joined: Thu Mar 01, 2018 1:22 pm

Postby ValeYard » Thu Apr 19, 2018 1:22 pm

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-October/009158.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: 5
Joined: Thu Mar 01, 2018 1:22 pm

Postby ValeYard » Thu Apr 19, 2018 3:28 pm

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.

  1. \documentclass[12pt,normalheadings,bibliography=totoc,listof=totoc,numbers=noenddot,twoside=off]{scrbook}
  2. \usepackage[british]{babel}
  3.  
  4.  
  5.  
  6. \usepackage{ebgaramond}
  7. %\usepackage[garamond]{mathdesign}
  8. %\usepackage[urw-garamond]{mathdesign}
  9. \usepackage[T1]{fontenc}
  10.  
  11. % Variant A: Default plus roman (i.e., still bold)
  12. \addtokomafont{disposition}{\rmfamily}
  13.  
  14. % Variant B: Exactly as in the text body (i.e., not bold)
  15. % \setkomafont{disposition}{\normalfont}
  16. % doesnt make a difference with Garamond I think
  17.  
  18.  
  19. % this is for renumbering chapters%%%%%%
  20. \usepackage[hidelinks]{hyperref}
  21.  
  22. \usepackage{microtype}
  23.  
  24. \setkomafont{subsection}{\itshape\large}
  25.  
  26. % for italic font in subsection headings
  27. %\usepackage{titlesec}
  28. %\titleformat{\subsection}
  29. %{\itshape\large}{\thesubsubsection}{1em}{}
  30.  
  31. \usepackage{ucs}
  32. \usepackage[utf8x]{inputenc}
  33.  
  34. \usepackage{paralist}
  35. \usepackage{dcolumn}
  36. \usepackage{threeparttable}
  37.  
  38. \usepackage{lineno} % fuer line numbers [modulo] = 5 cache
  39. \usepackage{courier} % typeset fuer transkription
  40. \usepackage[htt]{hyphenat} %silbentrennung bei maschinenschrift
  41. %\typearea{12} % muss irgendwie zur Schrift kommen nicht noetig bei scrartcl
  42.  
  43.  
  44. \usepackage{wrapfig}
  45.  
  46. % for writing degrees A \SI{45}{\degree} angle.x
  47. %It is $\SI{17}{\degreeCelsius}$ outside.
  48. \usepackage{amsmath}
  49. \usepackage{siunitx}
  50.  
  51. \usepackage[random]{blindtext}
  52.  
  53.  
  54. \usepackage[centerlast,font=small,labelfont=it,format=plain]{caption}
  55.  
  56.  
  57. \makeatletter
  58. \@addtoreset{chapter}{part}
  59. \makeatother
  60. %%%%%%%%%%%%%%%%%%%%%%%
  61.  
  62. %\setcounter{secnumdepth}{4}%fuer nummerierung der Paragraphso
  63.  
  64. %\setcounter{tocdepth}{4}% fuer das Inhaltsverzeichnis
  65.  
  66. \usepackage[intoc]{nomencl}
  67.  
  68. \usepackage{setspace}
  69. \usepackage{multirow}
  70. \usepackage{multicol}
  71. \usepackage[paper=a4paper,left=2.5cm,right=2.5cm,top=2cm,bottom=2cm,footskip=20pt,dvips]{geometry}
  72.  
  73. %Fuer die durchgehende Nummerieung der Fussnoten
  74. %\usepackage{chngcntr}
  75.  
  76. %\counterwithout*{footnote}{chapter}
  77.  
  78. \usepackage{nomencl}
  79. \let\abbrev\nomenclature
  80. \renewcommand{\nomname}{List of Abbreviations}
  81. \setlength{\nomlabelwidth}{.25\hsize}
  82. \renewcommand{\nomlabel}[1]{#1 \dotfill}
  83. \setlength{\nomitemsep}{-\parsep}
  84. \makenomenclature
  85. \newcommand{\Listofabbrev}{
  86. \printnomenclature
  87. \newpage
  88. }
  89.  
  90. \usepackage{graphicx}
  91.  
  92.  
  93. \usepackage{multibib}
  94. \newcites{vids}{Videography}
  95. \usepackage{natbib}
  96. \setcitestyle{aysep={},notesep={: }}
  97.  
  98.  
  99.  
  100. %\usepackage{verbatim}
  101. %\usepackage{verbsubfile}
  102.  
  103. %\usepackage{url}
  104.  
  105. %\usepackage{fancyhdr} %Paket fuer Kopf- und Fusszeile
  106.  
  107. %\pagestyle{fancy}
  108. %\fancyhf{} %alle Kopf- und Fusszeilenfelder bereinigen
  109. %\lhead{}
  110. %\chead{}
  111. %\rhead{}
  112. %\lfoot{}
  113. %\cfoot{\thepage}
  114. %\rfoot{}
  115. %\renewcommand{\headrulewidth}{0pt}
  116. %\renewcommand{\footrulewidth}{0pt}
  117.  
  118. %\fancypagestyle{firstpage}{%
  119. %\fancyhf{} %alle Kopf- und Fusszeilenfelder bereinigen
  120. %\lhead{}
  121. %\chead{}
  122. %\rhead{}
  123. %\lfoot{}
  124. %\cfoot{\thepage}
  125. %\rfoot{}
  126. %\renewcommand{\headrulewidth}{0pt}
  127. %\renewcommand{\footrulewidth}{0pt}
  128. %}
  129.  
  130. %\fancypagestyle{fancytitlepage}{%
  131.  
  132. %\fancyhf{} %alle Kopf- und Fusszeilenfelder bereinigen
  133. %\lhead{}
  134. %\chead{}
  135. %\rhead{}
  136. %\lfoot{}
  137. %\cfoot{}
  138. %\rfoot{}
  139. %\renewcommand{\headrulewidth}{0pt}
  140. %\renewcommand{\footrulewidth}{0pt}
  141. %}
  142.  
  143. \newenvironment{changemargin}[2]{%
  144. \begin{list}{}{%
  145. \setlength{\topsep}{0pt}%
  146. \setlength{\leftmargin}{#1}%
  147. \setlength{\rightmargin}{#2}%
  148. \setlength{\listparindent}{\parindent}%
  149. \setlength{\itemindent}{\parindent}%
  150. \setlength{\parsep}{\parskip}%
  151. }%
  152. \item[]}{\end{list}}
  153.  
  154. % For chapters without numbering but in contents taken from <!-- m --><a class="postlink" href="http://tex.stackexchange.com/questions/110840/how-to-remove-chapter-numbering-without-removing-it-from-tableofcontents">http://tex.stackexchange.com/questions/ ... ofcontents</a><!-- m -->
  155. %\newcommand{\mychapter}[2]{
  156. % \setcounter{chapter}{#1}
  157. %\setcounter{section}{0}
  158. %\chapter*{#2}
  159. %\addcontentsline{toc}{chapter}{#2}
  160. %}
  161. % or just use addchap?
  162.  
  163. %print out just ToC with bib
  164. %\includeonly{tableofcontents}
  165.  
  166. %remove page numbers in ToC
  167. %\usepackage{hyperref}
  168. %\let\Contentsline\contentsline
  169. %\renewcommand\contentsline[3]{\Contentsline{#1}{#2}{}}
  170.  
  171. \begin{document}
  172.  
  173. \setcounter{page}{1}
  174. %\pagenumbering{roman}
  175. \pagenumbering{gobble}
  176.  
  177. %\setcounter{tocdepth}{4}
  178. %\tableofcontents
  179. %\newpage
  180. %\listoffigures
  181. %\newpage
  182.  
  183. %\onehalfspacing
  184. \spacing{1.3}
  185. \pagenumbering{roman}
  186. \include{preface}
  187. \pagenumbering{arabic}
  188. \setcounter{page}{1}
  189. Why doesn't multibib like me? \citepvids{wiemer:1991}
  190. %\include{intro}
  191. %\include{Study}
  192. %\include{HowMovesMade}
  193. %\include{ComingtoLesson}
  194. %\include{MakingMoves}
  195. %\include{MovingSelf}
  196. %\include{MovingTogether}
  197. %\include{Finishing}
  198.  
  199.  
  200. %\include{finishingmoves}
  201. %how about putting this in main moves? trinity is nice, but I think I will run out of time
  202.  
  203. \newpage
  204. %\small % um eine kleinere Schriftgroesse beim Litverzeichnis zu haben
  205. \setlength{\bibsep}{0.0pt} % fuer den Abstand der Eintraege
  206. \bibliographystyle{soc_eng2}
  207. \bibliography{lit}
  208. \newpage
  209. \setlength{\bibsep}{0.0pt}
  210. \renewcommand{\refname}{Videography} % zweites Litverzeichnis
  211. \bibliographystylevids{soc_eng2}
  212. \bibliographyvids{litvids}
  213. \end{document}
Attachments
litvids.bib
(216 Bytes) Downloaded 17 times
soc_eng2.bst
(32.86 KiB) Downloaded 18 times


Return to “BibTeX, biblatex and biber”

Who is online

Users browsing this forum: No registered users and 2 guests