Math & ScienceError Missing $ inserted for my formula

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
jubairarifctg
Posts: 13
Joined: Wed Sep 09, 2009 6:55 am

Re: Error Missing $ inserted for my formula

Post by jubairarifctg »

Thanks I tried the three steps and it works fine as it works for other compilation. I am just getting error to this thesis writeup.

Now, about the coding. I am here attaching my first file manuscript.tex from where I start compiling and adding my test.tex file later of this post which contains the formula. If I compile with these two files still I get error. I don't have any other files. Thus, I guess I am not touching any code limit.

I am fine to provide more information. But I am bit confused what else to send you.


\chapter{testing}
\[
p(t|a, b) = \frac{1}{{b^a}\Gamma
(a)}{t^{a-1}}{\exp^{\frac{-t}{b}}}
\]

$\rho(t|d)$
Attachments
manuscript.tex
(2.92 KiB) Downloaded 221 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Error Missing $ inserted for my formula

Post by frabjous »

You must have some other files. The file you've uploaded has a lot of lines such as "\input{abstract}" and "\input{user-defined}" which call other files. Without those files, it is not possible for us to compile your code. However, if I use:

Code: Select all

\chapter{testing}
\[
p(t|a, b) = \frac{1}{{b^a}\Gamma
(a)}{t^{a-1}}{\exp^{\frac{-t}{b}}}
\]

$\rho(t|d)$
for test.tex, comment out the other \input lines, and some other things like \makedeclaration (which otherwise is undefined--presumably this command is defined in one of the files I don't have), I still don't get any errors.

It should be clear what we need: we need to be able to duplicate your error. You need to give us the minimal code that we can use to duplicate this error, and no more. But we still don't have it.
Last edited by frabjous on Thu Sep 10, 2009 4:14 am, edited 1 time in total.
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Error Missing $ inserted for my formula

Post by gmedina »

Then, as suspected, the problem is somewhere else; since you are using several subsidiary files, I am afraid that you will have to start commenting out portions of your code (as explained in the instructions on how to build a MWE found following the link that localghost provided before) until you can narrow down the real culprit of your problem and either detect the problem by yourself or provide a MWE.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
jubairarifctg
Posts: 13
Joined: Wed Sep 09, 2009 6:55 am

Re: Error Missing $ inserted for my formula

Post by jubairarifctg »

Thanks Guys...

I think, as you said, I must be having the problems in some other place. I am going to give it a try with trial-and-error basis. The error must be in those files that I am including at the beginning of my manuscript.tex file.

thanks again.
Post Reply