[XeTeX] lacking precomposed character

jadolov k jadolov.chat at gmail.com
Tue May 19 02:04:01 CEST 2009


On Tue, May 19, 2009 at 1:51 AM, Ross Moore <ross at ics.mq.edu.au> wrote:

> Hi Artemij,
>
> On 19/05/2009, at 9:15 AM, jadolov k wrote:
>
>  Oh, thank you this is almost what I needed.
>> I say almost because it works quite well in the middle of a word, but if
>> the line contains only that glyph (this is what I've done as a first try),
>> the macron ends up to go below the letter, instead of going above it...
>>
>
> Aaah; because you are in vertical mode, not horizontal.
>
> You can just do:   \leavevmode\overstrike{..}{..}
> or maybe           \null\overstrike{..}{..}   works.
>
>
> Alternatively, modify the  \overstrike  macro as follows:
>
>  \def\overstrike#1#2{\ifvmode\leavevmode\fi
>     \setbox0=\hbox{#1}\setbox1=\hbox{#2}\copy0
>     \kern -0.5\wd0 \kern -0.5\wd1 \copy1 \kern -0.5\wd1 \kern 0.5\wd0}
>

> Hope this helps,
>
>        Ross
>

Yes, this works! But it's really strange, because I never entered the
vertical mode, since I simply created a new document from scratch, using the
XeTeX template provided within the last version of TexShop (on Mac,
obviously).

Thank you, anyway.
A.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/xetex/attachments/20090519/99a8c3ca/attachment.html 


More information about the XeTeX mailing list