Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

the package trackchanges doesn't seem to work with utf8 encoding. Did somebody encounter the same problem? Does anybody have a solution ?

Minimal example :

\documentclass[12pt]{article}
\usepackage[utf8]{inputenc} 
\usepackage{trackchanges}
\begin{document}
    text \remove{öäü}
\end{document}

The compilation error :

 ! Argument of \UTFviii@two@octets has an extra }.
<inserted text>
\par
l.6 text \remove{öäü}
I've run across a `}' that doesn't seem to match anything.

Wit oau instead of öäü, it works of course.

share|improve this question
    
Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. "Does not work" doesn't give much information. What error do you get exactly? –  Martin Scharrer Dec 22 '11 at 10:57
    
Also check out the similar package latexdiff. –  Martin Scharrer Dec 22 '11 at 22:12

2 Answers 2

up vote 7 down vote accepted

It seems that loading the package soulutf8 before trackchanges solves the problem

\documentclass[12pt]{article}
\usepackage[utf8]{inputenc} 
\usepackage{soulutf8}
\usepackage{trackchanges}
\begin{document}
    text \remove{öäü}
\end{document}
share|improve this answer
    
Even loading it afterwards seems to work. –  Martin Scharrer Dec 22 '11 at 22:36
    
yes, this is THE solution. Thanks a lot. –  nicolas roy Dec 23 '11 at 12:46

This seems to be an issue of the internally used soul package (Strike-Out, UnderLine) used for highlighting of the changes. It reads the content stepwise and splits the Unicode characters in two. You might find help in the soul manual.

As a workaround I would redefine the used highlighting macros, e.g. \stcolor for the given example. Here I use a simple \textcolor (from the already loaded xcolor package) instead of the soul code.

\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{trackchanges}
\renewcommand{\stcolor}[2]{\textcolor{#1}{#2}}
\begin{document}
    text \remove{öäü}
\end{document}

This works for me.

share|improve this answer
    
Fine ! it seems to be a good workaround. Thanks a lot. –  nicolas roy Dec 22 '11 at 22:10

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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