LyXHow to remove Undefined control sequence error in LYX 2.0

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
pusparaga
Posts: 11
Joined: Sat Dec 14, 2013 12:37 pm

How to remove Undefined control sequence error in LYX 2.0

Post by pusparaga »

I am using LYX 2.0 to my work. When I opened the existing template IEEE Transction and typed as I desire and run view. I found the following error

Undefined Control sequence error.

How to remove the above error.
pusparagaLyXUndefError.jpg
pusparagaLyXUndefError.jpg (61.65 KiB) Viewed 7877 times
Last edited by Johannes_B on Sun Mar 08, 2015 9:11 pm, 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.

User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

How to remove Undefined control sequence error in LYX 2.0

Post by Johannes_B »

It would be very helpful to tell us where the template is coming from.

Every command you are using with LaTeX has to be defined first. Some commands are available loading packages. One package i know, that defines something like that is hologo (\hologo{BibTeX}).

There are more undefined control sequences in your document. It might be easier using the simpler LaTeX-level to debug first.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
pusparaga
Posts: 11
Joined: Sat Dec 14, 2013 12:37 pm

How to remove Undefined control sequence error in LYX 2.0

Post by pusparaga »

Dear Sir,
I have installed the LYX 2.0, MIKTEX, JABREF, GHOST,2gsv to my system.
I have taken the template from LYX 2.0 > FILE > New from Template > IEEE Tran.

I have shown the screen shot, how I have taken template from LYX 2.0.
pusparagaSelectTemplate.jpg
pusparagaSelectTemplate.jpg (121.37 KiB) Viewed 7829 times
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

How to remove Undefined control sequence error in LYX 2.0

Post by Johannes_B »

Oh, the direct LyX template. I am not a LyX user, so i cannot be of real help here. It is strange though, that the unmodified template gives errors like that.

We are a bit short on LyX users right now, so we have to wait.
ANother possibility would be to ask on the LyX users mailing list.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

How to remove Undefined control sequence error in LYX 2.0

Post by Stefan Kottwitz »

You could define the missing command in your document preamble (LyX menu, Document settings, preamble), for example:

Code: Select all

\newcommand*{\BibTeX}{\textsc{Bib}\TeX}
Auch schon gesehen in bibtex.web:

Code: Select all

\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
    T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
Stefan
LaTeX.org admin
pusparaga
Posts: 11
Joined: Sat Dec 14, 2013 12:37 pm

Re: How to remove Undefined control sequence error in LYX 2.

Post by pusparaga »

Dear Sir,
As you told change the code also, I am getting the error. O.K. I will re install it once again LYX. I have following LYX 2.0 installing files.

(a) 1 MikTex 2.9 setup
(b) 2 gsv
(c) 3 LyX-2.0.0.3- Installer
(d) JabRef-2.6-seyup

While installing, which sequence I have to use. Which one I have to install first, next second, next third, next fourth. First one, which one I have to install first MikTex 2.9 setup or gsv or lyx or JabRef.
Can you advice me, which one I have to install first, second, third, fourth above mentioned (a), (b), (c) and (d).
I am getting following error after entering the as you said code

https://drive.google.com/file/d/0BwF-am ... sp=sharing
StarValkyrie
Posts: 89
Joined: Fri Jan 24, 2014 12:42 am

Re: How to remove Undefined control sequence error in LYX 2.

Post by StarValkyrie »

I'm using LyX 2.1.3 and I just opened up the Ieee-TransMag template and clicked ViewPDFLatex and it compiled without errors. Try updating your LyX software and using the new template.
Post Reply