9

The microtype documentation clearly states:

With LuaTeX, load fontspec before microtype

However, this breaks hyphenation in some cases in the bibliography, created with biblatex/biber.

The same works with xelatex or if microtype is loaded before fontspec.

Minimal example:

\documentclass{scrbook}

\usepackage{fontspec}
\usepackage{polyglossia}
\setmainlanguage{english}
\usepackage{microtype}


\usepackage[backend=biber]{biblatex}
\addbibresource{test.bib}


\begin{filecontents}{test.bib}
@ARTICLE{test,
  author   = {Doe, John and Doe, Jane and Smith, James},
  title    = {Really Nice English Title},
  journal  = {The Astrophysical Journal},
  langid   = {english},
  year     = {2011},
}
\end{filecontents}

\begin{document}
\nocite{*}
\printbibliography
\end{document}

This produces missing hyphenation with lualatex (Astrophysical is in the margin) but correct hyphenation with xelatex.

If you load microtype before fontspec/polylossia the hyphenation is correct with lualatex as well.

TeXLive 2014, up to date. Tested on Arch and (X)Ubuntu.

  • Where does this behaviour come from?
  • Should I just ignore the microtype manual and load microtype before fontspec?
  • Why does it just happen with lualatex and just in the bibliography?
  • bug report to whom? BibLaTeX, Microtype or LuaLaTeX?
  • It's quite curious that no Overfull \hbox message is shown. – egreg Apr 14 '15 at 21:08
  • That left me wondering too. – MaxNoe Apr 14 '15 at 21:09
  • Seems very much like a LuaTeX bug. – egreg Apr 14 '15 at 21:10
  • Possibly related to References spilling out of margin in bibliography – Fato39 Apr 14 '15 at 21:40
  • 1
    What are the downsides or side effects of loading microtype before fontspec? – MaxNoe Apr 15 '15 at 7:49
8

It looks like it was a bug in luatex.

This seems to have been fixed in the latest version of luatex, version 0.80.0, as provided in texlive 2015-pretest. Using these versions, the output is as expected:

enter image description here

  • Would you happen to know when this will be included in MiKTeX? I could only find a vague reference to Summer 2015. – Fato39 Apr 15 '15 at 6:49
  • How can I obtain luatex 0.8? The latest released version is 0.79 – MaxNoe Apr 15 '15 at 7:55
  • 2
    @MaxNoe: You can obtain luatex 0.8 from in the TexLive 2015 pretest: tug.org/texlive/pretest.html. But be aware that this is a pretest. It started two days ago. So use it only if you understand the implications. Such a pretest is not for critical documents with time pressure. – Ulrike Fischer Apr 15 '15 at 10:23
  • @MaxNoe you need to get the texlive 2015-pretest for that: tug.org/texlive/pretest.html . it is however, as the name implies, a prerelease so things may not fully fully working as they should. use at your own risk (i.e., if you are on a tight deadline for something important... don't:-)) – ArTourter Apr 15 '15 at 10:25
  • Just installed it and it indeed solves the Problem. – MaxNoe Apr 15 '15 at 10:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.