LyXundefined control sequence \addto

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
sonjadaniela
Posts: 5
Joined: Sun Aug 17, 2008 3:12 pm

undefined control sequence \addto

Post by sonjadaniela »

does anybody know what this error message means?

undefined control sequence
...} {Dr. Johannes Söding} {15. Oktober 2008}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

my code is:
\maketitlepage{Diplomarbeit} {Lehrstuhl für\\ Genomorientierte Bioinformatik} {Improvement of Automated Structure Prediction} {Andrea Hildebrand} {Prof. Dr. Dmitrij Frishman} {Dr. Johannes Söding} {15. Oktober 2008}

but a sty-file is used (which i dont know how to open)
does anybody have an idea what i can do?
:roll:

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: 10320
Joined: Mon Mar 10, 2008 9:44 pm

Re: undefined control sequence -LyX

Post by Stefan Kottwitz »

Hi,

is this all you got of the error? Nothing missing?
Perhaps \maketitlepage is not defined or has to be written differently.

If it's defined in your cls or sty file we need to see it's code, you could post it as attachment here in the forum.

Stefan
LaTeX.org admin
pooz
Posts: 65
Joined: Sat Apr 11, 2009 10:47 am

undefined control sequence \addto

Post by pooz »

Hello, I´ve got the same problem, unfortunately.

Here is the code, after importing into Lyx:

Code: Select all

% Quellcode vorschauen

%% LyX 1.6.2 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{longtable}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}

\usepackage{babel}

\begin{document}
\chapter*{List of Abbreviations} \label{sec:abbreviations} \markboth{\MakeUppercase{List of Abbreviations}}{\MakeUppercase{List
of Abbreviations}} \begin{longtable}{ll}
\arrayrulecolor{hsugrau} \textbf{\textcolor{hsurot}{A}}  & \tabularnewline
\hline 
f  & sampling frequency\tabularnewline
 & \tabularnewline
\textbf{\textcolor{hsurot}{H}}  & \tabularnewline
\hline 
abc & abc-institute\tabularnewline
\end{longtable}
\end{document}
I want to import a latex template, which was created by a college institute designated for Latex.

The final template is also divided in several sub-files (like chapter1, chapter2 etc).
There is a folder, which includes several files, corresponing to the final template and the sub-files,
the content is:

Code: Select all

 caption.sty
 fancyheadings.sty
 index.ist
 layout.tex
 literatur.bib
 macros.tex
 makebst.tex
 newalpha.bst
 newalpha.dbj
 readfile.sty
template.aux
template.bbl
template.blg
template.dvi
template.idx
template.ilg
template.ind
template.lof
template.log
template.lol
template.lot
template.out
template.pdf
template.tcp
template.tex
template.toc
template.tps
I tried with the smaller sub-files as well, to reduce the error-sources, but the errors are still the same.

I wonder, when importing a .tex-file, there are some Latex-Codes in the Main-Lyx window still availible.

Would be very thankful, if someone could help me!
Thanks in advance
sincerely
pooz
User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

Re: undefined control sequence -LyX

Post by Stefan Kottwitz »

Hi Pooz,

welcome to the board!
Perhaps a package defining a certain macro is missing. What is the exact and complete error message? Perhaps take it from the file template.log and post it here, or post the complete template.log file.

Stefan
LaTeX.org admin
pooz
Posts: 65
Joined: Sat Apr 11, 2009 10:47 am

undefined control sequence \addto

Post by pooz »

Thanks, Stefan_K,

1) after importing the template.tex and trying to view it as .pdf, there are a lot of error messages. Is there a way to copy all of them, instead of selecting them individually? (The template.log in this folder was not created by me, it is delivered by the institue providing the template [They created them on Windows, I am using LyX on Mac OS X 10.4.11)

I will show 3 of them:

Code: Select all

Package keyval Error: directivestyle undefined.

 }
       
Try typing  <return>  to proceed.
If that doesn't work, type  X <return>  to quit.

Code: Select all

Package ifpdf Error: Name clash, \ifpdf is already defined.
     }
           %
Incompatible versions of \ifpdf can cause problems,
therefore package loading is aborted.

Code: Select all

Undefined control sequence.
 \addto
            \captionsenglish{%
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
2) During the import Process, an error popped up:

Code: Select all

Unbekanntes Token
Unbekanntes Token: \start_of_appendix (Translation: Unknown Token)
3) The template consists of several sub-files, like

Code: Select all

abkuerzung.tex
abstract.tex
anhang1.tex
anhang2.tex
bib.tex
bibeng.tex
bibger.tex
chap1.tex
chap2.tex
chap3.tex
colors.tex
erklaer.tex
foreword.tex
layout.tex
Trying to view one single of them as .pdf after importing them to LyX gives some error message, too.


Thanks for any help!!
Don´t want to learn Latex :-(
Greetings
pooz
pooz
Posts: 65
Joined: Sat Apr 11, 2009 10:47 am

Re: undefined control sequence -LyX

Post by pooz »

No idea anymore? :-)
pooz
Posts: 65
Joined: Sat Apr 11, 2009 10:47 am

Re: undefined control sequence -LyX

Post by pooz »

Hm.....I got to *push* this thread. Noone willing to post his idea :D ?
Greetinx
pooz
Posts: 65
Joined: Sat Apr 11, 2009 10:47 am

Re: undefined control sequence -LyX

Post by pooz »

Pleease, I would be very thankful for any help!
:cry:
pooz
Posts: 65
Joined: Sat Apr 11, 2009 10:47 am

Re: undefined control sequence -LyX

Post by pooz »

Hm...kriegt man hier keine Hilfe?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

Re: undefined control sequence -LyX

Post by Stefan Kottwitz »

Hi pooz,

because this topic is already a bit old, could you solve some of the problems? Which are still unsolved?

Stefan
LaTeX.org admin
Post Reply