3

Why are the character with accent not recognized ?

\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
\usepackage{comment}

\includecomment{withsolution}

\begin{document}
\begin{withsolution}
à
\end{withsolution}
\end{document}

returned error:

! Paragraph ended before \UTFviii@three@octets was complete.

If I put it outside the comment environment, it works. Thanks for the help.

Rafnuss
  • 73
  • 1
    ä,ö,etc. aren't recognized neither ;-) –  Oct 12 '15 at 10:22
  • 1
    Interesting. It happens only if the first character of the first line of the withsolution environment is an accented letter. Just putting a \relax (or even a simple space, which is ignored anyway) in front of it makes it work; no idea as why, though... – campa Oct 12 '15 at 10:31
  • 3
    comment.sty doesn't work correctly with utf8. For a solution see http://tex.stackexchange.com/a/159824/2388 – Ulrike Fischer Oct 12 '15 at 12:42
  • It's 2015 and we have two TeX engines that can handle Unicode natively. Why do you insist on using an 8-bit engine instead? – Martin Schröder Oct 12 '15 at 21:39
  • Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. – Martin Schröder Oct 12 '15 at 21:40

0 Answers0