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.
TeXShop ⇒ Undefined control sequence,TexShop
Undefined control sequence,TexShop
- 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
- localghost
- Site Moderator
- Posts: 9201
- Joined: Fri Feb 02, 2007 12:06 pm
Re: Undefined control sequence,TexShop
Unfortunately you forgot to attach the source code that produces this log file.
Best regards and welcome to the board
Thorsten¹
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
Board Rules
Avoidable Mistakes[/size]
¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Re: Undefined control sequence,TexShop
Sorry. I am new here.
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

%==========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: 9201
- Joined: Fri Feb 02, 2007 12:06 pm
Undefined control sequence,TexShop
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
Board Rules
Avoidable Mistakes[/size]
¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Undefined control sequence,TexShop
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 =======
%=======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: 9201
- 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.
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
Board Rules
Avoidable Mistakes[/size]
¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Undefined control sequence,TexShop
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
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 }