TeXShopUndefined control sequence,TexShop

Information and discussion about TeXShop, an integrated LaTeX environment for Mac OS X
Post Reply
annie
Posts: 5
Joined: Wed Feb 03, 2010 5:32 am

Undefined control sequence,TexShop

Post by annie »

Hi, I am using TeXShop to compile a .tex file. It generates following error message. What's wrong? Thanks.

===========error message ========

This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009)
\write18 enabled.
entering extended mode
(./bear_cds_2009_01_29_p1.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, german-x-2009-06-19, ngerman-x-2009-06-19, ancientgreek, ibycus, ar
abic, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danish, dutc
h, esperanto, estonian, farsi, finnish, french, galician, german, ngerman, mono
greek, greek, hungarian, icelandic, indonesian, interlingua, irish, italian, ku
rmanji, latin, latvian, lithuanian, mongolian, mongolian2a, bokmal, nynorsk, po
lish, portuguese, romanian, russian, sanskrit, serbian, slovak, slovenian, span
ish, swedish, turkish, ukenglish, ukrainian, uppersorbian, welsh, loaded.
(./sebase.cls
sebase.cls 20 Dec 1995
Base style for Style Editor v 2.5
NOTICE: This macro file is NOT proprietary and may be freely copied and distrib
uted.
(/usr/local/texlive/2009/texmf-dist/tex/latex/tools/theorem.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/tools/thp.sty))
(/usr/local/texlive/2009/texmf-dist/tex/latex/tools/multicol.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/crop/crop.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/graphics/color.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/latexconfig/color.cfg)
(/usr/local/texlive/2009/texmf-dist/tex/latex/pdftex-def/pdftex.def))
(/usr/local/texlive/2009/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/latexconfig/graphics.cfg))
(/usr/local/texlive/2009/texmf-dist/tex/xelatex/xetexconfig/crop.cfg))
(/usr/local/texlive/2009/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(./afterpage.sty))
(/usr/local/texlive/2009/texmf-dist/tex/latex/eurosym/eurosym.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2009/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2009/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/amsmath/amsopn.sty))
(./tcilatex.tex
TCILATEX Macros for Scientific Word 2.5 <04 SEP 96>.
NOTICE: This macro file is NOT proprietary and may be freely copied and distrib
uted.
(/usr/local/texlive/2009/texmf-dist/tex/latex/base/latexsym.sty)
amsgen already loaded)
(/usr/local/texlive/2009/texmf-dist/tex/latex/misc209/portland.sty)
(./BM_ARTICLE.sty (./CMM.tex (./CMRM.tex) (./CMSSM.tex) (./CMTTM.tex))
! Undefined control sequence.
<argument> ...age {DefaultPageSetup} \RevertTitle
{false} \OverrideRest {fal...
l.1548 }

?
Process aborted
=====above are the error message ========

codes are attached.
Attachments
sebase.cls
The new class
(84.59 KiB) Downloaded 544 times
BM_ARTICLE.STY
The new style package
(90.85 KiB) Downloaded 498 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Re: Undefined control sequence,TexShop

Post by localghost »

Unfortunately you forgot to attach the source code that produces this log file.


Best regards and welcome to the board
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
annie
Posts: 5
Joined: Wed Feb 03, 2010 5:32 am

Re: Undefined control sequence,TexShop

Post by annie »

Sorry. I am new here. :oops: Here is the source code.

%==========Source Code========
\documentclass{sebase}
%TCIDATA{TCIstyle=article/art4.lat,BM_ARTICLE,BM_ARTICLE}

%TCIDATA{OutputFilter=LATEX.DLL}
%TCIDATA{Version=5.00.0.2570}
%TCIDATA{<META NAME="SaveForMode" CONTENT="1">}
%TCIDATA{Created=Mon Mar 25 01:00:01 1996}
%TCIDATA{LastRevised=Thursday, February 04, 2010 17:14:36}
%TCIDATA{<META NAME="GraphicsSave" CONTENT="32">}
%TCIDATA{Language=American English}
%TCIDATA{CSTFile=BM_ARTICLE.cst}

\usepackage{eurosym}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{BM_ARTICLE}
\usepackage{portland}
\setcounter{MaxMatrixCols}{10}
\input{tcilatex}
\begin{document}

\end{document}
%==============end of source code==
Best,
Annie
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Undefined control sequence,TexShop

Post by localghost »

There are some unknown files (the sebase class file, the BM_ARTICLE package and tcilatex.tex). Please attach them to your next post or give a link where to find them (see Board Rules).
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
annie
Posts: 5
Joined: Wed Feb 03, 2010 5:32 am

Undefined control sequence,TexShop

Post by annie »

oh, i attached them in my first post. ok, i will attach them again.


%=======my main program===
\documentclass{sebase}
\usepackage{eurosym}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{BM_ARTICLE}
\usepackage{portland}

\setcounter{MaxMatrixCols}{10}
%TCIDATA{TCIstyle=article/art4.lat,BM_ARTICLE,BM_ARTICLE}

%TCIDATA{OutputFilter=LATEX.DLL}
%TCIDATA{Version=5.00.0.2570}
%TCIDATA{<META NAME="SaveForMode" CONTENT="1">}
%TCIDATA{Created=Mon Mar 25 01:00:01 1996}
%TCIDATA{LastRevised=Wednesday, February 03, 2010 16:11:01}
%TCIDATA{<META NAME="GraphicsSave" CONTENT="32">}
%TCIDATA{Language=American English}
%TCIDATA{CSTFile=BM_ARTICLE.cst}

\input{tcilatex}

\begin{document}

\end{document}
%========end of main program ==============




%===Follows are the error message. ===

This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009)
\write18 enabled.
entering extended mode
(./bear_cds_2009_02_03d.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, german-x-2009-06-19, ngerman-x-2009-06-19, ancientgreek, ibycus, ar
abic, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danish, dutc
h, esperanto, estonian, farsi, finnish, french, galician, german, ngerman, mono
greek, greek, hungarian, icelandic, indonesian, interlingua, irish, italian, ku
rmanji, latin, latvian, lithuanian, mongolian, mongolian2a, bokmal, nynorsk, po
lish, portuguese, romanian, russian, sanskrit, serbian, slovak, slovenian, span
ish, swedish, turkish, ukenglish, ukrainian, uppersorbian, welsh, loaded.
(/Users/liulingli/Library/texmf/tex/latex/lyx/sebase.cls
sebase.cls 20 Dec 1995
Base style for Style Editor v 2.5
NOTICE: This macro file is NOT proprietary and may be freely copied and distrib
uted.
(/usr/local/texlive/2009/texmf-dist/tex/latex/tools/theorem.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/tools/thp.sty))
(/usr/local/texlive/2009/texmf-dist/tex/latex/tools/multicol.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/crop/crop.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/graphics/color.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/latexconfig/color.cfg)
(/usr/local/texlive/2009/texmf-dist/tex/latex/pdftex-def/pdftex.def))
(/usr/local/texlive/2009/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/latexconfig/graphics.cfg))
(/usr/local/texlive/2009/texmf-dist/tex/xelatex/xetexconfig/crop.cfg))
(/usr/local/texlive/2009/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/usr/local/texlive/2009/texmf-dist/tex/latex/tools/afterpage.sty))
(/usr/local/texlive/2009/texmf-dist/tex/latex/eurosym/eurosym.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2009/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2009/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/Users/liulingli/Library/texmf/tex/latex/lyx/BM_ARTICLE.sty
(/Users/liulingli/Library/texmf/tex/latex/lyx/CMM.tex
(/Users/liulingli/Library/texmf/tex/latex/lyx/CMRM.tex)
(/Users/liulingli/Library/texmf/tex/latex/lyx/CMSSM.tex)
(/Users/liulingli/Library/texmf/tex/latex/lyx/CMTTM.tex))
! Undefined control sequence.
<argument> ...age {DefaultPageSetup} \RevertTitle
{false} \OverrideRest {fal...
l.1548 }

?

%==end of error message =========


%=====Follows are the codes I used =======
BM_ARTICLE.STY
(90.85 KiB) Downloaded 471 times
tcilatex.tex
(35.63 KiB) Downloaded 507 times
sebase.cls
(84.59 KiB) Downloaded 486 times
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Undefined control sequence,TexShop

Post by localghost »

annie wrote:oh, i attached them in my first post. ok, i will attach them again.
I'm fairly sure that they were not attached when I answered.

The first source of error is that the class file tries to load a package called »afterpag«. This package does not exist. I guess it is a typo and the class requires the afterpage package. The second issue is that the »BM_ARTICLE« package needs a file called »CMM.tex«. This file is missing.

Finally some remarks. The »Code« environment is made for better recognition of code in a post thus keeps it clear and legible. The same is true for error messages. Kindly take a look at the Board Rules. All buttons to format a post can be found right above the input window while posting.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
annie
Posts: 5
Joined: Wed Feb 03, 2010 5:32 am

Undefined control sequence,TexShop

Post by annie »

Thanks. Sorry for the mess. It is my first time to post questions online.

I changed the typo for afterpage.sty in BM_ARTICLE.sty and added CMM.tex, CMRM.tex, CMSSM.tex , CMTTM.tex. (I will upload the last two file in next post. )

They all compiled well. But the error message is follows. It stops after compiling CMTTM.tex. Any hints?Thanks

Code: Select all

This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009)
 \write18 enabled.
entering extended mode
(./bear_cds_2009_02_03d.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, german-x-2009-06-19, ngerman-x-2009-06-19, ancientgreek, ibycus, ar
abic, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danish, dutc
h, esperanto, estonian, farsi, finnish, french, galician, german, ngerman, mono
greek, greek, hungarian, icelandic, indonesian, interlingua, irish, italian, ku
rmanji, latin, latvian, lithuanian, mongolian, mongolian2a, bokmal, nynorsk, po
lish, portuguese, romanian, russian, sanskrit, serbian, slovak, slovenian, span
ish, swedish, turkish, ukenglish, ukrainian, uppersorbian, welsh, loaded.
(/Users/liulingli/Library/texmf/tex/latex/lyx/sebase.cls
sebase.cls 20 Dec 1995
Base style for Style Editor v 2.5
NOTICE: This macro file is NOT proprietary and may be freely copied and distrib
uted.
(/usr/local/texlive/2009/texmf-dist/tex/latex/tools/theorem.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/tools/thp.sty))
(/usr/local/texlive/2009/texmf-dist/tex/latex/tools/multicol.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/crop/crop.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/graphics/color.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/latexconfig/color.cfg)
(/usr/local/texlive/2009/texmf-dist/tex/latex/pdftex-def/pdftex.def))
(/usr/local/texlive/2009/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/latexconfig/graphics.cfg))
(/usr/local/texlive/2009/texmf-dist/tex/xelatex/xetexconfig/crop.cfg))
(/usr/local/texlive/2009/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/usr/local/texlive/2009/texmf-dist/tex/latex/tools/afterpage.sty))
(/usr/local/texlive/2009/texmf-dist/tex/latex/eurosym/eurosym.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2009/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2009/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/Users/liulingli/Library/texmf/tex/latex/lyx/BM_ARTICLE.sty
(/Users/liulingli/Library/texmf/tex/latex/lyx/CMM.tex
(/Users/liulingli/Library/texmf/tex/latex/lyx/CMRM.tex)
(/Users/liulingli/Library/texmf/tex/latex/lyx/CMSSM.tex)
(/Users/liulingli/Library/texmf/tex/latex/lyx/CMTTM.tex))

! Undefined control sequence.
<argument> ...age {DefaultPageSetup} \RevertTitle 
                                                  {false} \OverrideRest {fal...
l.1548 }
Attachments
CMRM.tex
(2.43 KiB) Downloaded 472 times
CMM.tex
(38 Bytes) Downloaded 499 times
annie
Posts: 5
Joined: Wed Feb 03, 2010 5:32 am

Re: Undefined control sequence,TexShop

Post by annie »

Hi, I am uploading the last two files mentioned in my previous post.
Attachments
CMTTM.tex
(1.36 KiB) Downloaded 488 times
CMSSM.tex
(1.94 KiB) Downloaded 504 times
Post Reply