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
> 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
> 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
> 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
>
> Ouch... Could you send a small example? Never seen this before...
>
Here you are, it compiles without the\usepackage{apalike}
--
Nazcafan
> > 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
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
> [... 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
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
my mistake, apalike-fr.bst works perfectly if I _do_not_ use :
\usepackage{frbib}
\usepackage{frapalike}
greetings
--
Nazcafan