Graphics, Figures & Tablesphonetic sound in the table<<error

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
muhammad alzaidi
Posts: 9
Joined: Thu Aug 26, 2010 5:54 pm

phonetic sound in the table<<error

Post by muhammad alzaidi »

Hi guys,

I am really in need of know how to solve this problem
I created a table of transliterations and there is a sound that has breve and this is its TeX code:
\[\underaccent{\breve}{\textup{h}}\]

I am using: \usepackage{accents}
to give this sort of phonetic symbol

now I copied the Tex phonteic code and put it in the table as shown below (the red coloured code)

Code: Select all

\begin{center}
\begin{tabular}{||c|c|c|c|c|c||}\hline
\bf DIN 31635& \bf IPA& \bf DIN 31635& \bf IPA& \bf DIN 31635& \bf IPA\\ \cline{1-6}  mm& \textglotstop& z& z& f& f\\
\hline b& b& s& s& q& q\\ \cline{1-6} t& t& \v{s}& \textesh& k& k\\  \cline{1-6} \textsubbar{t}& \texttheta& \textsubdot{s}& s\super \textrevglotstop& l& l\\ \cline{1-6} \v{g}& \textyogh& \textsubdot{d}& d\super \textrevglotstop& m& m\\ \cline{1-6} \textsubdot{h}& \textcrh& \textsubdot{t}& t\super \textrevglotstop& n& n\\ \cline{1-6}  [color=#FF0000]\[\underaccent{\breve}{\textup{h}}\][/color]&\textchi& \d{z}& z\super \textrevglotstop& h& h\\\cline{1-6} d& d& \textsuperscript{c}& z\super \textrevglotstop& h& h\\\hline\hline
\end{tabular}
\end{center}

but I receive an error which is:

Code: Select all

! Missing $ inserted.
<inserted text> 
                $
l.39 ...e{1-6}  \[\underaccent{\breve}{\textup{h}}
                                                  \]&\textchi& \d{z}& z\supe...
any help appeciated

:)
Last edited by muhammad alzaidi on Fri Aug 27, 2010 9:21 am, edited 1 time in total.

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

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: phonetic sound in the table<<error

Post by frabjous »

I don't think you can use a display math environment inside a tabular environment. Can you use inline math instead?

I.e, try changing:

\[\underaccent{\breve}{\textup{h}}\]

to

\(\underaccent{\breve}{\textup{h}}\)

I cannot tell whether or not that's the problem, however, because you did not follow board rules by proving a compiliable minimal working example; without that, it's very hard to test. I can tell however that there are obsolete commands in there like \bf (use \bfseries or \textbf{...} instead).
muhammad alzaidi
Posts: 9
Joined: Thu Aug 26, 2010 5:54 pm

Re: phonetic sound in the table<<error

Post by muhammad alzaidi »

thank you so much frabjous

it is relly working well..

could you plz tell me is there a diffference between
[ ] and ( )?
because you changes the former ones with the final ones..?

thank you again
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

phonetic sound in the table<<error

Post by localghost »

muhammad alzaidi wrote:[…] could you plz tell me is there a diffference between [ ] and ( )? […]
Math expressions enclosed in \[ … \] are typeset as displayed equations, whereas \( … \) represents in-line math mode.

As soon as the problem is solved, please act according to Section 3 of the Board Rules (last two paragraphs).


Best regards and welcome to the board
Thorsten
muhammad alzaidi
Posts: 9
Joined: Thu Aug 26, 2010 5:54 pm

Re: phonetic sound in the table<<error

Post by muhammad alzaidi »

thank you Localhost,,

:D
Post Reply