On Fri, Oct 23, 2015 at 4:56 AM, Charles de Miramon
<charlesdemira...@gmail.com> wrote:
> Maria Gouskova wrote:
>
>> Hi all,
>>
>> Elsevier wants me to create a .tex file for them that uses
> Arial--a
>> non-TeX font. When I go to make the PDF using XeTeX, I get
> the LaTeX
>> error "Command \sups already defined".
>>
>> A bit of digging suggests this is because of an
> incompatibility
>> between the TIPA package (which I need to use in order to
> use IPA with
>> the qtree package). Is there a workaround for this?
>>
>> Thank you,
>>
>> Maria
>
> Have you tried solution 6 of
> http://tex.stackexchange.com/questions/273483/revisiting-tipa-and-fontspec
>
> Basically you should not use the tipa package but use the
> texipa macro of the fontspec package.
>
> I have never used the IPA module in LyX but you may have to
> tweak it to suppress the loading of the ipa package
>
> You redefine the IPA environment for compatibility reasons
> with qtree.
>
> If Arial has the ipa glyphs you can keep the font for typing
> the ipa text. If not, you have to instruct fontspec to use a
> font with the available glyphs as explained above.
>
> Cheers,
> Charles
>

Thanks, Charles--it was simpler than that even. I thought for some
reason that one had to load TIPA in the preamble in order to use it in
Qtree, but everything works without it, so simply removing
\usepackage(tipa) from the preamble in the XeTeX version fixed my
problem.

So the problem here is that TIPA needs to be called expressly even if
the Linguistics module is loaded, if you want to use IPA in syntactic
trees. I have a few shorthand commands for IPA symbols in my preamble,
which also would not work without calling TIPA. But TIPA does not need
to be loaded for XeTeX/non-system fonts even if IPA symbols are called
in qtree, unless there is a conflict between custom-defined function
names and whatever XeTeX introduces (apparently \dz{} is taken, for
example).

For the two or three people in the world using LyX with IPA and
syntactic trees, I am including two example files, one that uses Arial
and another one that uses plain TeX with the linguistics module.

Maria

Attachment: example_xetex_tree.lyx
Description: Binary data

Attachment: example_tipa_qtree.lyx
Description: Binary data

Reply via email to