GeneralHarvard style -> TeX Capacity exceeded.

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
barbanegra
Posts: 4
Joined: Mon May 16, 2011 6:24 pm

Harvard style -> TeX Capacity exceeded.

Post by barbanegra »

Hi everybody.
I've been long having problems when trying to use Harvard dcu style in my dissertation. I've never took the time to analyze it, as plain style works fine, so I've been leaving this for the last steps.

Today I paid some attention to the issue, and haven't been able to resolve it.
Haven't found anything directly related searching the forum or the web, and tweaking the stack values in the conf file didn't improve the outcome.
Therefore, I decided to post here to see if people more savvy than me could help me out with my problem.

Take the following test tex file as input, for instance:

Code: Select all

\documentclass[10pt,a4paper,pdftex]{book}
\usepackage[english]{babel}

\usepackage[T1]{fontenc}

\usepackage[dcucite]{harvard}

\begin{document}

\section{TEST}
Just a bunch of references:
\cite{Mellor2004}
\cite{Mellor2004}
\cite{Hessellund2009,Kelly2008,Mellor2004} 

Let me put some text around here.
\cite{Brown2005} 
\cite{Mellor2004}
\cite{Kelly2008}
\cite{Mellor2004}. 

Some more text.

\cite{Kleppe2003}
\cite{Mellor2004}
\cite{Miller2003}
\cite{Kleppe2003}
\cite{Mellor2004}

\cite{Kleppe2003} 
\cite{Ameller2009}
%------------------------   Back matter   ------------------------
\backmatter

\bibliographystyle{dcu}
%\bibliographystyle{plain} 

\bibliography{Test_Biblio} 
%\bibliography{Biblio_Capitulo_MD} 
\end{document}



If I count correctly, that's 7 different references, some of them repeated multiple times.
Running PDFLaTeX on this file causes a:

Code: Select all

! TeX capacity exceeded, sorry [input stack size=30000].
Using plain style works perfectly. BibTeX also runs smoothly (reason why I dind't post this in the BibTeX forum), so I guess the bib file is fine.
The plain style works fine even on the whole dissertation (350+ refs), the Harvard style is not working with this few.

Here's what I did already, to no avail:
-Multiplied by ten the value of the stacks (stack_size, ocp_stack_size) in /usr/share/texmf/web2c/texmf.cnf, couldn't find any variable with the stated limit (30000).
-Reinstalled texlive-bibtex-extra.
-Remade the bib file.

Any ideas on what can be the cause of the problem?.
I'm running Kile 2.0.85 in Kubuntu 11.04.

I attach the bib file:

Code: Select all

@book{Mellor2004,
author = {Mellor, Stephen J. and Scott, Kendall and Weise, Dirk},
isbn = {0201788918},
pages = {150},
publisher = {Addison-Wesley},
title = {{MDA distilled: principles of model-driven architecture}},
year = {2004}
}
@phdthesis{Hessellund2009,
author = {Hessellund, Anders},
school = {IT University of Copenhagen},
title = {{Domain-Specific Multimodeling}},
year = {2009}
}
@book{Kelly2008,
address = {Hoboken, New Jersey, USA},
author = {Kelly, Steven and Tolvanen, Juha-Pekka},
isbn = {0470036664},
pages = {427},
publisher = {Wiley-IEEE},
title = {{Domain-specific modeling: enabling full code generation}},
year = {2008}
}
@inbook{Brown2005,
address = {Berlin/Heidelberg},
author = {Brown, Alan W. and Conallen, Jim and Tropeano, Dave},
booktitle = {Model-Driven Software Development},
chapter = {1},
doi = {10.1007/3-540-28554-7},
isbn = {3-540-25613-X},
pages = {1--16},
publisher = {Springer-Verlag},
title = {{Introduction: Models, Modeling, and Model-Driven Architecture (MDA)}},
year = {2005}
}
@book{Kleppe2003,
address = {Boston, Massachusetts, USA},
author = {Kleppe, Anneke G. and Warmer, Jos B. and Bast, Wim},
isbn = {032119442X},
pages = {170},
publisher = {Addison-Wesley},
title = {{MDA explained: the model driven architecture : practice and promise}},
year = {2003}
}
@misc{Miller2003,
author = {Miller, J and Mukerji, J},
booktitle = {Object Management Group},
institution = {Object Management Group},
number = {June},
publisher = {OMG},
title = {{MDA Guide Version 1.0.1}},
url = {http://www.omg.org/cgi-bin/doc?omg/03-06-01},
volume = {2004},
year = {2003}
}
@phdthesis{Ameller2009,
author = {Ameller, David},
school = {Universitat Polit\`{e}cnica de Catalunya},
title = {{Considering Non-Functional Requirements in Model-Driven Engineering}},
type = {Master},
year = {2009}
}
and the build log:

Code: Select all

*****
*****     BibTeX output: 
*****     cd "/home/Datos/Trabajo/Thesis/Proyecto_Tex/USB/INTEGRADOR"
*****     bibtex 'INTEGRADOR_Prueba'
*****
This is BibTeX, Version 0.99c (TeX Live 2009/Debian)
The top-level auxiliary file: INTEGRADOR_Prueba.aux
The style file: dcu.bst
Database file #1: Test_Biblio.bib
*****
*****     PDFLaTeX output: 
*****     cd "/home/Datos/Trabajo/Thesis/Proyecto_Tex/USB/INTEGRADOR"
*****     pdflatex -interaction=nonstopmode 'INTEGRADOR_Prueba.tex'
*****
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
entering extended mode
(./INTEGRADOR_Prueba.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, loaded.
(/usr/share/texmf-texlive/tex/latex/base/book.cls
Document Class: book 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/bk10.clo))
(/usr/share/texmf-texlive/tex/generic/babel/babel.sty
(/usr/share/texmf-texlive/tex/generic/babel/english.ldf
(/usr/share/texmf-texlive/tex/generic/babel/babel.def)))
(/usr/share/texmf-texlive/tex/latex/base/fontenc.sty
(/usr/share/texmf-texlive/tex/latex/base/t1enc.def)) (./harvard.sty
(/usr/share/texmf-texlive/tex/latex/base/ifthen.sty)
(/usr/share/texmf/tex/latex/html/html.sty
(/usr/share/texmf-texlive/tex/latex/hyperref/hyperref.sty
(/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty)
(/usr/share/texmf-texlive/tex/generic/oberdiek/ifpdf.sty)
(/usr/share/texmf-texlive/tex/generic/oberdiek/ifvtex.sty)
(/usr/share/texmf-texlive/tex/generic/ifxetex/ifxetex.sty)
(/usr/share/texmf-texlive/tex/latex/oberdiek/hycolor.sty
(/usr/share/texmf-texlive/tex/latex/oberdiek/xcolor-patch.sty))
(/usr/share/texmf-texlive/tex/latex/hyperref/pd1enc.def)
(/usr/share/texmf-texlive/tex/generic/oberdiek/etexcmds.sty
(/usr/share/texmf-texlive/tex/generic/oberdiek/infwarerr.sty))
(/etc/texmf/tex/latex/config/hyperref.cfg)
(/usr/share/texmf-texlive/tex/latex/oberdiek/kvoptions.sty
(/usr/share/texmf-texlive/tex/generic/oberdiek/kvsetkeys.sty))
Implicit mode ON; LaTeX internals redefined
(/usr/share/texmf-texlive/tex/latex/ltxmisc/url.sty)
(/usr/share/texmf-texlive/tex/generic/oberdiek/bitset.sty
(/usr/share/texmf-texlive/tex/generic/oberdiek/intcalc.sty)
(/usr/share/texmf-texlive/tex/generic/oberdiek/bigintcalc.sty
(/usr/share/texmf-texlive/tex/generic/oberdiek/pdftexcmds.sty
(/usr/share/texmf-texlive/tex/generic/oberdiek/ifluatex.sty)
(/usr/share/texmf-texlive/tex/generic/oberdiek/ltxcmds.sty))))
(/usr/share/texmf-texlive/tex/generic/oberdiek/atbegshi.sty))
*hyperref using driver hpdftex*
(/usr/share/texmf-texlive/tex/latex/hyperref/hpdftex.def)))
(./INTEGRADOR_Prueba.aux)
(/usr/share/texmf-texlive/tex/latex/hyperref/nameref.sty
(/usr/share/texmf-texlive/tex/latex/oberdiek/refcount.sty))
(./INTEGRADOR_Prueba.out) (./INTEGRADOR_Prueba.out) [1{/home/jp/.texmf-var/font
s/map/pdftex/updmap/pdftex.map}] [2] (./INTEGRADOR_Prueba.bbl
! TeX capacity exceeded, sorry [input stack size=30000].
\hmode@bgroup ->\leavevmode 
                            \bgroup 
l.42 
     
!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on INTEGRADOR_Prueba.log.
Any help will be greatly appreciated!.
Thanks in advance.
Regards,
Barba
Last edited by barbanegra on Tue May 17, 2011 4:36 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.

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

Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Re: Harvard style -> TeX Capacity exceeded. Plain style work

Post by Stefan Kottwitz »

Hi Barba,

I tested the tex file with the bib file and it compiled without errors. I used harvard.sty version 2.0.5. Perhaps check your version and update if necessary.

Stefan
LaTeX.org admin
barbanegra
Posts: 4
Joined: Mon May 16, 2011 6:24 pm

Harvard style -> TeX Capacity exceeded.

Post by barbanegra »

Hi Stefan, thanks a lot for you answer.

I've been doing some more tests, and found that (at least in the example I posted) the problem is caused by the

Code: Select all

url = {http://www.omg.org/cgi-bin/doc?omg/03-06-01},
in Miller2003. If I shorten it to

Code: Select all

url = {h},
I still have the same issue, so is not a character, but the presence of the non-empty url field. If I either delete it or leave it empty, I get no errors.

The funny thing is I got the 2.0.5 harvard package too.
I'll try this tomorrow on a windows machine and see if I have the same problem.
Thanks for your help.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Re: Harvard style -> TeX Capacity exceeded. Plain style work

Post by Stefan Kottwitz »

I tested it indeed on a Windows machine, where it worked. Btw. I'm not sure if I can come here the next days, because I'll be travelling for some days.

Stefan
LaTeX.org admin
barbanegra
Posts: 4
Joined: Mon May 16, 2011 6:24 pm

Harvard style -> TeX Capacity exceeded.

Post by barbanegra »

Found the "cure" here: http://huang-nao.blogspot.com/2009/05/h ... iktex.html

I add it here, so that people coming after me can use it.

...The problem is the old \harvardurl command is not compatilbe with new versions of other relative packages, I guess.
The solution is, redefine \harvardurl command after include harvard package:

Code: Select all

\usepackage{hyperref}
\usepackage{harvard}
\renewcommand{\harvardurl}{URL:\url}
[/i]

It makes my dissertation compile with harvard style references in windows and linux.
Thanks for your help, Stefan!.
Regards,
Barba
Post Reply