5

I am developping a package which uses some lualatex features. In order to show examples in the documentation, I have to use lualatex for the compilation as well. I decided to use the documentation library from the tcolorbox package, however this fails, if I want to use lualatex. The compilation stops with this error message right at the start (i.e. in the preamble phase)

 ! String contains an invalid utf-8 sequence.
l.52     moredelim={[is][\itshape\rmfamily]{
                                          �}{�}},

The additional tcolorbox libraries listings or listingsutf8 did not help. Since documentation is based on those libraries (as far as I understand it) I suspect however that this unhealthy feature has it's origin in the listings package (the moredelim error is some indicator)

I tried the solution to a similar problem (LuaLaTeX and listings do not work while XeLaTex works fine), but it does not improve the situation.

I don't claim this is a bug of tcolorbox or listings.sty really.

\documentclass{article}

\usepackage{blindtext}

\usepackage[documentation]{tcolorbox}


\begin{document}
\blindtext

\end{document}
11
  • 1
    The error message seems to be generated by two non-UTF8-encoded characters present in line 52 of the file tcbdocumentation.code.tex. Not sure if this helps, though.
    – Mico
    Jan 5, 2015 at 1:16
  • @Mico: So we should notify the package author, T.F. Sturm? Thanks for looking ;-)
    – user31729
    Jan 5, 2015 at 1:19
  • 2
    Replacing the two § with ^^a7 in tcbdocumentation.code.tex should work. Jan 5, 2015 at 9:20
  • 1
    @UlrikeFischer You should convert your comment into an answer :-) Jan 5, 2015 at 16:12
  • 1
    @ChristianHupfer This bug is fixed with tcolorbox version 3.35 (2015/01/07) Jan 8, 2015 at 13:40

1 Answer 1

5

Replacing the two § with ^^a7 in tcbdocumentation.code.tex should work.

1
  • 1
    This bug is fixed with tcolorbox version 3.35 (2015/01/07) following your suggestion. Thanks again! Jan 8, 2015 at 13:39

You must log in to answer this question.