Error with chinese characters and final option
vie email
The following mwe works fine if there is no "final" option.
\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage[final]{changes}
\providecommand{\MaQ}{\fontfamily{cwM}\fontseries{0}\selectfont}
\providecommand{\cH}{\char}
\begin{document}
\replaced{A test of changes with {\MaQ\cH50} Chinese character.}%
{A test of changes with no Chinese character.}
\end{document}
However, if "final" option is added, the following will appear:
Package todonotes Warning: The length marginparwidth is less than 2cm and will
most likely cause issues with the appearance of inserted todonotes. The issue c
an be solved by adding a line like \setlength {\marginparwidth }{2cm} prior to
loading the todonotes package. on input line 8.
)
! Incomplete \iffalse; all text was ignored after line 10.
<inserted text>
\fi
The mwe comes from cwTeX system: http://homepage.ntu.edu.tw/~ntut019/cwtex/cwtex.html
All the Chinese characters are preprocessed, and then fed to pdflatex. In the mwe, I include only one Chinese character, the \MaQ command is a definition of a Chinese font.