LyXtipa | Fonts for phonetic Symbols

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Kotoschow
Posts: 28
Joined: Mon Apr 09, 2012 3:13 pm

tipa | Fonts for phonetic Symbols

Post by Kotoschow »

That's the error I get when typing your example. When I remove the \documentclass{article}, it works, but still with the tipa default font, which is exactly what I don't need.
Attachments
newfile3.log
(7.83 KiB) Downloaded 422 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

tipa | Fonts for phonetic Symbols

Post by cgnieder »

That's quite impossible! The error reads

Code: Select all

! LaTeX Error: Two \documentclass or \documentstyle commands.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.15 \documentclass{
                    article}
The document may only declare one class.
My example has only one \documentclass and consists of only 8 lines. This error refers to line 15.

Code: Select all

LaTeX Warning: Unused global option(s):
    [english].
I haven't used english as global option (or at all) in my example.

Code: Select all

Package geometry Warning: The marginal notes overrun the paper.
     Add 19.0945pt and more to the right margin.
I haven't loaded geometry in my example.

This log file is from another file you compiled but not from my example code. For reference: it looked like this (8 lines, no english, no geometry):

Code: Select all

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{tipa}
\begin{document}

\textipa{f@"nEtIks}

\end{document}
Please try this exact code and/or post a Infominimal working example of what you're actually trying to compile.

Regards
site moderator & package author
Kotoschow
Posts: 28
Joined: Mon Apr 09, 2012 3:13 pm

tipa | Fonts for phonetic Symbols

Post by Kotoschow »

I copy-pasted your code into the preamble, and I definitely didn't call the geometry package. This is the file I compiled, and its errorlog.
I think the \documentclass[english]{article} is sort of default in my LyX, and for some reason declaring \documentclass doesn't override it.
Attachments
newfile1.log
(8.81 KiB) Downloaded 407 times
newfile1.lyx
(1.51 KiB) Downloaded 462 times
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

tipa | Fonts for phonetic Symbols

Post by cgnieder »

Ah, you didn't mention you were using LyX! In this case only add

Code: Select all

\usepackage{tipa}
to the preamble and insert

Code: Select all

\textipa{f@"nEtIks}
as ERT. Then the result should be the same as in the picture I posted earlier.

Regards
site moderator & package author
Kotoschow
Posts: 28
Joined: Mon Apr 09, 2012 3:13 pm

tipa | Fonts for phonetic Symbols

Post by Kotoschow »

OK. It works excellent now. Thanks soooo much!
And say I want to change font? Should I simply insert

Code: Select all

\usepackage[<some font>]{fontenc}
to the preamble? And where do I find a list of all font?
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

tipa | Fonts for phonetic Symbols

Post by cgnieder »

No, fontenc is for font encoding and not for font selection. I believe LyX already includes that package so you don't need to worry about that.

You can choose fonts via

Code: Select all

Document > Settings > Fonts
.

Regards
site moderator & package author
Kotoschow
Posts: 28
Joined: Mon Apr 09, 2012 3:13 pm

tipa | Fonts for phonetic Symbols

Post by Kotoschow »

No, I know how to choose fonts. What I don't know is how to change the output font of tipa. Do you really do it through

Code: Select all

Document > Settings > Fonts
?
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

tipa | Fonts for phonetic Symbols

Post by cgnieder »

It's not clear to me what you want to achieve. \textipa will choose characters matching to the surrounding font. Do you want to display the IPA text in a different font than the rest of the document?
site moderator & package author
Kotoschow
Posts: 28
Joined: Mon Apr 09, 2012 3:13 pm

tipa | Fonts for phonetic Symbols

Post by Kotoschow »

Well, it doesn't for me. I use the

Code: Select all

\usepackage[T1]{fontenc}
\usepackage[scaled]{berasans}

options and my tipa output is in some other font.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Re: tipa | Fonts for phonetic Symbols

Post by cgnieder »

You're right... that's probably because the Bera Sans font doesn't have the glyphs. You should choose a font that has them. Are you bound to Bera Sans as document font?
site moderator & package author
Post Reply