TeXShop ⇒ Undefined control sequence,TexShop
Undefined control sequence,TexShop
===========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 557 times
-
- BM_ARTICLE.STY
- The new style package
- (90.85 KiB) Downloaded 512 times
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: Undefined control sequence,TexShop
Best regards and welcome to the board
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Undefined control sequence,TexShop

%==========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
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Undefined control sequence,TexShop
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Undefined control sequence,TexShop
%=======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 =======
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Undefined control sequence,TexShop
I'm fairly sure that they were not attached when I answered.annie wrote:oh, i attached them in my first post. ok, i will attach them again.
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.
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Undefined control sequence,TexShop
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.texLaTeX2e <2009/09/24>Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, nohyphenation, german-x-2009-06-19, ngerman-x-2009-06-19, ancientgreek, ibycus, arabic, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, galician, german, ngerman, monogreek, greek, hungarian, icelandic, indonesian, interlingua, irish, italian, kurmanji, latin, latvian, lithuanian, mongolian, mongolian2a, bokmal, nynorsk, polish, portuguese, romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, turkish, ukenglish, ukrainian, uppersorbian, welsh, loaded.(/Users/liulingli/Library/texmf/tex/latex/lyx/sebase.clssebase.cls 20 Dec 1995Base style for Style Editor v 2.5NOTICE: This macro file is NOT proprietary and may be freely copied and distributed.(/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.styFor 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