`convert` option and `babel` package incompatible

Issue #16 duplicate
denisbitouze
created an issue

The convert option of standalone class and babel package are incompatible as shown by the compilation of the following M(N)WE:

\documentclass[convert]{standalone}
\usepackage[english]{babel}
\begin{document}
Foo.
\end{document}

which fails with the following error:

! Package babel Error: Unknown language `english'. Either you have
(babel)                misspelled its name, it has not been installed,
(babel)                or you requested it in a previous run. Fix its name,
(babel)                install it or just rerun the file, respectively.

See the babel package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.2 \select@language{english}

?

Comments (7)

  1. Martin Scharrer repo owner

    I debugged it now to line 1470 where I reread the AUX file internally to transport a number from the subprocess to the main process. This causes this problem because the AUX file is read to early, i.e. before the babel package is loaded.

    I need to rewrite this part.

  2. Log in to comment