[XeTeX] sporadic shifted underbrace error

Daniel Greenhoe dgreenhoe at gmail.com
Wed Feb 6 04:13:51 CET 2013


I did make a quick minimal example (but not exactly the same as in the
previous email) that uses the underbrace 1000 (?) times. But so far
apparently no success in getting the problem to show itself again.

If interested, please see attachments.

Dan


On Wed, Feb 6, 2013 at 10:32 AM, Daniel Greenhoe <dgreenhoe at gmail.com> wrote:
> For some time now I have been having *sporadic* problems with
> underbraces being shifted to the right by maybe 15mm or so.
>
> The problem is sporadic---it appears sometimes, but on the next
> compile may well have disappeared. The document I am currently working
> on contains several hundred pages. I can try to put together a minimal
> example...but that may be of limited use since it may be difficult to
> get the problem to show itself when I want it to show itself.
>
> So, before I do that, might anyone have an idea of what might be the problem?
>
> There is a screen capture of a shift. The right underbrace has been
> shifted far to the right. It should be like the underbrace on the
> left.
>
> Here is my current underbrace macro:
>
> \newcommand{\mcom}[3][c]{\ensuremath{%
>   \begin{array}[t]{#1}%
>     \underbrace{#2}\\%
>     \text{\addfontfeatures{Color=mcom}\scriptsize{#3}}%
>   \end{array}%
>   }}%
>
> The color mcom is simply defined liked this:
>   \definecolor{mcom}           {cmyk}{0,0,0,1}
>
> The \mcom macro can be used something like this:
>   \[  \mcom{\sin^2(x)+\cos^2(x)=1}{this is a trig. identity} \]
>
> I am compiling with XeLaTeX from a TeXlive distribution.
> Any ideas?
> Many thanks in advance,
> Dan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: underbrace.tex
Type: application/x-tex
Size: 50694 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20130206/77886902/attachment-0001.tex>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: underbrace_shifted.jpg
Type: image/jpeg
Size: 88493 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20130206/77886902/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: underbrace_ok.jpg
Type: image/jpeg
Size: 88804 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20130206/77886902/attachment-0003.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: underbrace.pdf
Type: application/pdf
Size: 73196 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20130206/77886902/attachment-0001.pdf>


More information about the XeTeX mailing list