I have a search for this problem but all I could find was the case of reference citations in document spilling over, not the bibliography. Quite simple problem I hope. In my bibliography some of the journal names are spilling over the right margin: The italic journal names are spilling over, I am using package cite and \bibliographystyle . I am using \usepackage . Any idea whats causing this? A MWE of just one article that causes this is,
\documentclass[11pt,a4paper] \usepackage \usepackage[utf8] \usepackage \begin In papers \cite \bibliographystyle \bibliography \endwith the bibtex file testbib.bib as:
@article, doi = , file = <>, issn = , journal = , month = oct, number = , pages = , title = >, url = , volume = , year = >
Steve Hatcher
asked Aug 13, 2014 at 7:19
Steve Hatcher Steve Hatcher
951 1 1 gold badge 12 12 silver badges 21 21 bronze badges
Can you include a minimal working example (MWE) to give us a basic idea of your environment?
Commented Aug 13, 2014 at 7:31
You don't need to use luainputenc . LuaTeX expects utf8 encoding.
Commented Aug 13, 2014 at 7:52
It works with biblatex . Should be a reason to switch ;-)
Commented Aug 13, 2014 at 7:56
This is a very much cut down version of my thesis for which this problem occurs. I cant remember why I have that in there but I removed it and get no compile errors. Thanks. it still gives me the spilling bibliography though.
Commented Aug 13, 2014 at 7:57 @Johannes_B It is often needed for printing umlauts. Commented Aug 13, 2014 at 8:45I had this same problem with my dissertation. The fix for me was loading the fontspec package before the microtype package. For example:
\usepackage \usepackage
The microtype documentation says:
answered Sep 10, 2015 at 0:47 203 1 1 silver badge 6 6 bronze badgesWith LuaTeX, load fontspec before microtype .
(Too long for a comment, hence posted as an answer.)
An observation up front: Given that your bibliographic entries have doi and url fields, you should consider using the unsrtnat bibliography style along with the natbib citation management package; the venerable unsrt style simply ignores those fields. If you load natbib with the option numbers , you needn't load the cite package.
I am able to reproduce the overfull lines if (a) the microtype package is loaded and (b) the unsrt style is used. I must confess I don't understand what's going with microtype here. At any rate, if you want to keep using microtype you may want to switch to the unsrtnat style (and also load natbib instead of cite ).
Finally, as has already been remarked by @Johannes_B, don't load the luainputenc package. When using LuaLaTeX, do make sure that all input files are utf8-encoded.