# [XeTeX] Extraneous comma shows conflict between memoir and xecjk package?

Ross Moore ross.moore at mq.edu.au
Wed Jun 6 22:30:04 CEST 2012

Hello Jon,

On 07/06/2012, at 5:15 AM, jon wrote:

> The following does not produce expected results. There is an *extraneous comma* (or superscripted comma) inserted  into the body text directly before every footnote number.
>
> \documentclass[12pt]{memoir}
>
> \usepackage{fontspec}
> \setmainfont[Mapping=tex-text,Numbers=OldStyle]{Linux Libertine O}
>
>
> \usepackage{xeCJK}
>
> \setCJKmainfont[]{AR PL UKai TW}
>
> \begin{document}

{\tracingall
> But if I don't \emph{See through it and let it go},"\footnote{看得破，放得下。\emph{Kàn de pò, fàng de xià}.} the karma will carry forward....
>
>
>
}

> \end{document}

> The book is 99.5% typeset so it is not practical to switch away from memoir at this point. If there is a way to use Chinese fonts without using xeCJK, I could try that. Any ideas how to get rid of that extraneous comma?

First you need to find out where it is coming from.
Inserting \tracingall (within a group {...} to limit the scope)
will produce lots of output in the .log  or Console window.

You should be able to search this to find where the extra comma
is inserted, then follow backwards the various macro-expansions
that caused this.

Once the source is located, you should be able to make a single
macro re-definition in your document preamble, to prevent
the behaviour that you do not want.

This may seem a rather tedious way to tackle the problem,
but it is reliable and very instructive for solving such
delicate problems, if you are interested in programming.
— Not everyone's cup of tea, though.

>
> Thanks!
>
> Jon
> --
> Jon Babcock

Hope this helps,

Ross

------------------------------------------------------------------------
Ross Moore                                       ross.moore at mq.edu.au
Mathematics Department                           office: E7A-419
Macquarie University                             tel: +61 (0)2 9850 8955
Sydney, Australia  2109                          fax: +61 (0)2 9850 8114
------------------------------------------------------------------------