`convert` option and `babel` package incompatible

Create issue
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. Julian Schepperle

    Same issue for polyglossia.

    Interestingly, using the "preview" option of standalone no error occurs.

  2. 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.

  3. Martin Scharrer repo owner

    As the underlying cause is described in ticket #22 I close this as a duplicate. It will be fixed once #22 is fixed.

  4. Log in to comment