LyXUndefined control sequence

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
assafwe
Posts: 33
Joined: Sun Oct 04, 2009 2:27 pm

Undefined control sequence

Post by assafwe »

Hi,

I get an "Undefined control sequence" error in LyX, when trying to convert to pdf.. the full error message is attached..

Thanks!

Asaf
Attachments
LyX_error.jpg
LyX_error.jpg (32.23 KiB) Viewed 6472 times

Recommended reading 2024:

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

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

Undefined control sequence

Post by Stefan Kottwitz »

Hi Asaf,

the command \alphatests is not defined. In my whole TeX Live 2009 installation there's no macro called \alphatests or \alphatest. Did you call that command or a package?

Stefan
LaTeX.org admin
assafwe
Posts: 33
Joined: Sun Oct 04, 2009 2:27 pm

Re: Undefined control sequence

Post by assafwe »

Thanks, Stefan,

I didn't mean "\alphatests" as a Latex command.. I was trying to type a Greek "alpha", followed by the word "tests", as appers in the current attachment. As you see, in the LyX window this looks perfectly fine.. but I still get the error.

Thank you,

Asaf
Attachments
alphatests.jpg
alphatests.jpg (11.7 KiB) Viewed 6461 times
ChE
Posts: 7
Joined: Sat Oct 17, 2009 2:51 pm

Re: Undefined control sequence

Post by ChE »

LyX can be deceiving... ;) (Sorry, I couldn't help myself.)

Seriously, though, if you just put a space in front of "tests", it should be fine. What happens is that the inline math display of LyX tends to have padding around it, which makes it look like you have a space, when you really don't, and should. Although, looking at your image more carefully, the space between "\alpha" and "tests" does seem to be bigger than just the inline equation padding.

Try what I said, but if that's not the problem, would you mind sending us the source code of that part?

Regards,
ChE
User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

Re: Undefined control sequence

Post by Stefan Kottwitz »

Right, it looks like there are just spaces missing.

Stefan
LaTeX.org admin
assafwe
Posts: 33
Joined: Sun Oct 04, 2009 2:27 pm

Undefined control sequence

Post by assafwe »

Hi,

-Nope, i do have a space there...

Here is the source:

\noindent We will now suggest three different procedures for constructing
two-sided confidence intervals for $\theta=E(Y).$ All three utilize
the duality between a family of level $\alpha$ tests of the hypothesis
$EX=\theta$ and a level $(1-\alpha)$ confidence procedure (Lehman,
1986), by first constructing a family of acceptance regions, and then
inverting them to obtain confidence intervals.

2. I now get another error, as you can see in the attached...

Sorry guys, and thanks again!

Asaf
Attachments
Font error.JPG
Font error.JPG (123.49 KiB) Viewed 6449 times
ChE
Posts: 7
Joined: Sat Oct 17, 2009 2:51 pm

Re: Undefined control sequence

Post by ChE »

Hmmm... That code works when I use it as an ERT in LyX. Why does the second pic you posted show a different error from the first one?

Are you using any weird packages or such? What's in your preamble?
I'm running out of ideas here... :/

Regards,
ChE
assafwe
Posts: 33
Joined: Sun Oct 04, 2009 2:27 pm

Re: Undefined control sequence

Post by assafwe »

Hi ChE,

Well, forget about it, It seems OK now. .. Strangely, I canged a different part in the code that was suspicious to me, and exporting worked fine..

Tnx so much,

Assaf
Post Reply