Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

bibliography references => overfull hbox ...

2,071 views
Skip to first unread message

Nazcafan

unread,
Aug 19, 2005, 8:42:11 AM8/19/05
to
Hi,

I am using the /apalike/ bibliography style, which seems nice and
explicit. However, sometimes LaTeX will output an overfull Hbox because
it seems reluctant to cut the references over two lines :

So the output is like :

bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla [Geman et Geman, 1984]
bla bla bla bla bla bla bla bla bla bla bla

instead of :

bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla [Geman
et Geman, 1984] bla bla bla bla bla bla bla

Is there a way to workaround this ? either allow latex to divide the
reference or force the carriage return ?

thanks for your help

P.D. I usually google before asking but I don't know which terms I
should use appart from "bibliography, latex"

--
Nazcafan

Nicolas Markey

unread,
Aug 19, 2005, 8:58:14 AM8/19/05
to
Today, Nazcafan wrote:

> Hi,

Hi,

> I am using the /apalike/ bibliography style, which seems nice and explicit.

There is also a package named "apalike", to be used together with that bib
style, so that citations can be broken.


Cheers,

--
Nico

Nazcafan

unread,
Aug 23, 2005, 6:01:53 AM8/23/05
to
Nicolas Markey a écrit :

> There is also a package named "apalike", to be used together with that bib
> style, so that citations can be broken.
>
>
> Cheers,
>

Thank you very much, unfortunately, I've been fighting with this package
for two hours, It didn't want to include bib entries with the ":" character

e.g.

\cite{ECCVsteger:96}

so I changed it into a dash

However, now it seems reluctant to generate the bibliograhy at the end
of the file, here is the output :


LaTeX Error: \begin{thebibliography} on input line 1 ended by
\end{thebibitem
list}.

when I compile commenting \usepackage{apalike}, everything goes fine ...

Does anyone have a clue ?

Thank you

--
Nazcafan

Nicolas Markey

unread,
Aug 23, 2005, 7:48:56 AM8/23/05
to
Today, Nazcafan wrote:

> LaTeX Error: \begin{thebibliography} on input line 1 ended by \end{thebibitem
> list}.
>
> when I compile commenting \usepackage{apalike}, everything goes fine ...
> Does anyone have a clue ?

Ouch... Could you send a small example? Never seen this before...

--
Nico

Nazcafan

unread,
Aug 23, 2005, 8:22:52 AM8/23/05
to
Nicolas Markey a écrit :

>
> Ouch... Could you send a small example? Never seen this before...
>

Here you are, it compiles without the\usepackage{apalike}

http://cjoint.com/?ixplfyvyI0


--
Nazcafan

Nicolas Markey

unread,
Aug 23, 2005, 8:50:44 AM8/23/05
to
Today, Nazcafan wrote:

> > Ouch... Could you send a small example? Never seen this before...
> Here you are, it compiles without the\usepackage{apalike}
>
> http://cjoint.com/?ixplfyvyI0

Ok... In fact, this is a conflict between tocbibind and apalike.

One way to overcome the problem is to load tocbibind after apalike. Your
original problem (overfull hboxes) will be solved. But the bibliography
items will not be indented as they should be (compare the results with and
without tocbibind). To solve this :

...
\usepackage{fancybox}%des trucs kékés qui servent jamais...

\usepackage{apalike}
\let\oldthebib\thebibliography
\let\endoldthebib\endthebibliography
\usepackage{tocbibind}
\let\thebibitemlist\oldthebib
\let\endthebibitemlist\endoldthebib

\usepackage{eqnarray}%definit equationarray
...

A+

--
Nico

Nazcafan

unread,
Aug 23, 2005, 10:23:15 AM8/23/05
to
Nicolas Markey a écrit :

> Today, Nazcafan wrote:
>
>
>>>Ouch... Could you send a small example? Never seen this before...
>>
>>Here you are, it compiles without the\usepackage{apalike}
>>
>>http://cjoint.com/?ixplfyvyI0
>
>
> Ok... In fact, this is a conflict between tocbibind and apalike.
>
> One way to overcome the problem is to load tocbibind after apalike. Your
> original problem (overfull hboxes) will be solved. But the bibliography
> items will not be indented as they should be (compare the results with and
> without tocbibind). To solve this :

ok the results are not the same, if I don't use tocbibibind, there is a
negative indent for the first line of each entry in the chapter
bibliography. Plus the title "Bibliography" won't be displayed in my
language.

So I'd rather use tocbibind, wouldn't I ?

>
> ...
> \usepackage{fancybox}%des trucs kékés qui servent jamais...
>
> \usepackage{apalike}
> \let\oldthebib\thebibliography
> \let\endoldthebib\endthebibliography
> \usepackage{tocbibind}
> \let\thebibitemlist\oldthebib
> \let\endthebibitemlist\endoldthebib
>
> \usepackage{eqnarray}%definit equationarray

well, here I get an even stranger output :
-first I have an empty Bibliography page (only with the title) in my
language
-then, 2 pages later, the real (with the entries) Bibliography pages
(the title is in english)
-Plus the toc reference points to the empty page

The only thing that still bothers me with the apalike package is that I
dont have the brackets surrounding the bibliographic references but
parenthesis instead. Is there a workaround or something ? I'll keep
googling for that anyway...

--
Nazcafan

Nicolas Markey

unread,
Aug 24, 2005, 3:14:09 AM8/24/05
to
On Aug 23, 2005, Nazcafan wrote:

> [... it does not work ...]

Ah, ok, sorry.

> The only thing that still bothers me with the apalike package is that I dont
> have the brackets surrounding the bibliographic references but parenthesis
> instead.

Ok. Another try:

...
\usepackage{fancybox}%des trucs kékés qui servent jamais...

\usepackage{tocbibind}
%% \usepackage{apalike}
\makeatletter
\def\@biblabel#1{}
\newlength{\bibhang}
\setlength{\bibhang}{2em}
\renewenvironment{thebibitemlist}[1]{\list
{\relax}{\setlength{\labelsep}{0em}
\setlength{\itemindent}{-\bibhang}
\setlength{\leftmargin}{\bibhang}}
\def\newblock{\hskip .11em plus .33em minus .07em}
\sloppy\clubpenalty4000\widowpenalty4000
\sfcode`\.=1000\relax}{\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist}
\def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi
\def\@citea{}\@cite{\@for\@citeb:=#2\do
{\@citea\def\@citea{; }\@ifundefined
{b@\@citeb}{{\bf ?}\@warning
{Citation `\@citeb' on page \thepage \space undefined}}%
{\csname b@\@citeb\endcsname}}}{#1}}
\makeatother

\usepackage{eqnarray}%definit equationarray
...


This should do precisely what you asked for (+ indented bibliography,
which, imho, is much more readable. Set \bibhang to 0em if you don't want
that indentation).


A+

--
Nico

Nazcafan

unread,
Aug 24, 2005, 12:50:39 PM8/24/05
to
Nicolas Markey a écrit :

It does !! I am buying a "I love nico" T-shirt, first thing in the morning.

Thanks a lot !

Next report, I will try to make the bibliography in french (I've had
trouble using frapalike), but for now it fits my needs.

thank you again !

--
Nazcafan

Nazcafan

unread,
Aug 24, 2005, 12:57:33 PM8/24/05
to
Nazcafan a écrit :


my mistake, apalike-fr.bst works perfectly if I _do_not_ use :


\usepackage{frbib}
\usepackage{frapalike}


greetings

--
Nazcafan

0 new messages