吳聰敏老師的討論區 首頁 吳聰敏老師的討論區
經濟學與 cwTeX 討論區
 
 常見問題常見問題   搜尋搜尋   會員列表會員列表   會員群組會員群組   會員註冊會員註冊 
 個人資料個人資料   登入檢查您的私人訊息登入檢查您的私人訊息   登入登入 

下載Package後, compile還是會有錯誤

 
發表新主題   回覆主題    吳聰敏老師的討論區 首頁 -> cwTeX 討論區
上一篇主題 :: 下一篇主題  
發表人 內容
tmwu
Site Admin


註冊時間: 2003-03-03
文章: 1535

發表發表於: 星期一 七月 23, 2007 5:30 pm    文章主題: Re: 下載Package後, compile還是會有錯誤 引言回覆

我猜測你參考的檔案是一個非常老舊的範本,
其中仍使用 LaTeX 2.09。

我建議你找一到較新的範本。
另外, 請讀一下手冊的前幾章。

若還是不能解決, 請把你的例子 email 給我,
我可以幫忙修正一下。
回頂端
檢視會員個人資料 發送私人訊息 發送電子郵件
tmwu
Site Admin


註冊時間: 2003-03-03
文章: 1535

發表發表於: 星期二 七月 24, 2007 10:43 am    文章主題: Re: 下載Package後, compile還是會有錯誤 引言回覆

你的指令的前4行如下Confused

\documentclass[12pt]{thesis}
\usepackage{thesis}
\usepackage{cite}
\usepackage{graphicx}

第1行已使用 thesis class, 故第2行不應存在。
請刪掉第2行, 再重跑。

第46行為

\pagestyle{toppage}

這會出現錯誤, 但我不曉得這指令從何而來。
刪掉它似乎不會有問題。






Jimmy 寫到Confused
老師好Confused
最近網站不知為何都無法登入(帳號hellojimmy),
所以只好另開主題.
我先前的問題是compile之後被提示需要thesis.cls檔,
您的建議是去下載CTAN booktabs package.
但我下載並安裝之後,
compile還是出現錯誤,
主要的關卡在於"出現兩次\LoadClass"指令.
但我debug好久,
實在不曉得這個問題出在哪,
只好來求教老師.
Log檔如下Confused

This is pdfeTeX, Version 3.141592-1.30.6-2.2 (MiKTeX 2.5) (preloaded format=latex 2007.4.25) 23 JUL 2007 14:19
entering extended mode
**THESIS.tex
(THESIS.tex
LaTeX2e <2005/12/01>
Babel <v3.8g> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman, ngerman, french, loaded.
(cinput.tex) ("CConfused\Program Files\MiKTeX 2.5\tex\latex\thesis\thesis.cls"
Document Class: thesis 1996/25/01 1.0g LaTeX document class (wm).
\hours=\count79
\minutes=\count80
("CConfused\Program Files\MiKTeX 2.5\tex\latex\base\bk12.clo"
File: bk12.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
)
\c@part=\count81
\c@chapter=\count82
\c@section=\count83
\c@subsection=\count84
\c@subsubsection=\count85
\c@paragraph=\count86
\c@subparagraph=\count87
\beforechaptervspace=\skip41
\afterchaptervspace=\skip42
\exampleindent=\skip43
\c@figure=\count88
\c@table=\count89
\abovecaptionskip=\skip44
\belowcaptionskip=\skip45
\bibindent=\dimen102
)
("CConfused\Program Files\MiKTeX 2.5\tex\latex\thesis\thesis.sty"

LaTeX Warning: inputting `thesis.cls' instead of obsolete `thesis.sty'.


! LaTeX Error: Two \LoadClass commands.

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...

l.20 \LoadClass
{thesis}
? H
You may only use one \LoadClass in a class file
? return
OK, entering \nonstopmode...

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...

l.20 \LoadClass{t
hesis}
You're in trouble here. Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.

) ("CConfused\Program Files\MiKTeX 2.5\tex\latex\cite\cite.sty"
LaTeX Info: Redefining \cite on input line 149.
LaTeX Info: Redefining \nocite on input line 214.
Package: cite 2003/11/04 v 4.01
)
("CConfused\Program Files\MiKTeX 2.5\tex\latex\graphics\graphicx.sty"
Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)

("CConfused\Program Files\MiKTeX 2.5\tex\latex\graphics\keyval.sty"
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV@toks@=\toks14
)
("CConfused\Program Files\MiKTeX 2.5\tex\latex\graphics\graphics.sty"
Package: graphics 2006/02/20 v1.0o Standard LaTeX Graphics (DPC,SPQR)

("CConfused\Program Files\MiKTeX 2.5\tex\latex\graphics\trig.sty"
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
)
("CConfused\Program Files\MiKTeX 2.5\tex\latex\00miktex\graphics.cfg"
File: graphics.cfg 2005/12/29 v1.2 MiKTeX 'graphics' configuration
)
Package graphics Info: Driver file: dvips.def on input line 90.

("CConfused\Program Files\MiKTeX 2.5\tex\latex\graphics\dvips.def"
File: dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
))
\Gin@req@height=\dimen103
\Gin@req@width=\dimen104
)
("CConfused\Program Files\MiKTeX 2.5\tex\latex\amsmath\amsmath.sty"
Package: amsmath 2000/07/18 v2.13 AMS math features
\@mathmargin=\skip46

For additional information on amsmath, use the `?' option.
("CConfused\Program Files\MiKTeX 2.5\tex\latex\amsmath\amstext.sty"
Package: amstext 2000/06/29 v2.01

("CConfused\Program Files\MiKTeX 2.5\tex\latex\amsmath\amsgen.sty"
File: amsgen.sty 1999/11/30 v2.0
\@emptytoks=\toks15
\ex@=\dimen105
))
("CConfused\Program Files\MiKTeX 2.5\tex\latex\amsmath\amsbsy.sty"
Package: amsbsy 1999/11/29 v1.2d
\pmbraise@=\dimen106
)
("CConfused\Program Files\MiKTeX 2.5\tex\latex\amsmath\amsopn.sty"
Package: amsopn 1999/12/14 v2.01 operator names
)
\inf@bad=\count90
LaTeX Info: Redefining \frac on input line 211.
\uproot@=\count91
\leftroot@=\count92
LaTeX Info: Redefining \overline on input line 307.
\classnum@=\count93
\DOTSCASE@=\count94
LaTeX Info: Redefining \ldots on input line 379.
LaTeX Info: Redefining \dots on input line 382.
LaTeX Info: Redefining \cdots on input line 467.
\Mathstrutbox@=\box26
\strutbox@=\box27
\big@size=\dimen107
LaTeX Font Info: Redeclaring font encoding OML on input line 567.
LaTeX Font Info: Redeclaring font encoding OMS on input line 568.
\macc@depth=\count95
\c@MaxMatrixCols=\count96
\dotsspace@=\muskip10
\c@parentequation=\count97
\dspbrk@lvl=\count98
\tag@help=\toks16
\row@=\count99
\column@=\count100
\maxfields@=\count101
\andhelp@=\toks17
\eqnshift@=\dimen108
\alignsep@=\dimen109
\tagshift@=\dimen110
\tagwidth@=\dimen111
\totwidth@=\dimen112
\lineht@=\dimen113
\@envbody=\toks18
\multlinegap=\skip47
\multlinetaggap=\skip48
\mathdisplay@stack=\toks19
LaTeX Info: Redefining \[ on input line 2666.
LaTeX Info: Redefining \] on input line 2667.
)
("CConfused\Program Files\MiKTeX 2.5\tex\latex\tools\array.sty"
Package: array 2005/08/23 v2.4b Tabular extension package (FMi)
\col@sep=\dimen114
\extrarowheight=\dimen115
\NC@list=\toks20
\extratabsurround=\skip49
\backup@length=\skip50
)
("CConfused\Program Files\MiKTeX 2.5\tex\latex\multirow\multirow.sty"
\bigstrutjot=\dimen116
)
("CConfused\Program Files\MiKTeX 2.5\tex\latex\booktabs\booktabs.sty"
Package: booktabs 2005/04/14 v1.61803 publication quality tables
\heavyrulewidth=\dimen117
\lightrulewidth=\dimen118
\cmidrulewidth=\dimen119
\belowrulesep=\dimen120
\belowbottomsep=\dimen121
\aboverulesep=\dimen122
\abovetopsep=\dimen123
\cmidrulesep=\dimen124
\cmidrulekern=\dimen125
\defaultaddspace=\dimen126
\@cmidla=\count102
\@cmidlb=\count103
\@aboverulesep=\dimen127
\@belowrulesep=\dimen128
\@thisruleclass=\count104
\@lastruleclass=\count105
\@thisrulewidth=\dimen129
)
("CConfused\Program Files\MiKTeX 2.5\tex\latex\titlesec\titlesec.sty"
Package: titlesec 2005/01/22 v2.6 Sectioning titles
\ttl@box=\box28
\beforetitleunit=\skip51
\aftertitleunit=\skip52
\ttl@plus=\dimen130
\ttl@minus=\dimen131
\titlewidth=\dimen132
\titlewidthlast=\dimen133
\titlewidthfirst=\dimen134

("CConfused\Program Files\MiKTeX 2.5\tex\latex\titlesec\titlesec.new"))
! Undefined control sequence.
<argument> \undefinedpagestyle

l.45 \pagestyle{toppage}

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.

(THESIS.aux)
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 47.
LaTeX Font Info: ... okay on input line 47.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 47.
LaTeX Font Info: ... okay on input line 47.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 47.
LaTeX Font Info: ... okay on input line 47.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 47.
LaTeX Font Info: ... okay on input line 47.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 47.
LaTeX Font Info: ... okay on input line 47.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 47.
LaTeX Font Info: ... okay on input line 47.


! LaTeX Error: File `summary.tex' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: tex)

Enter file name:
! Emergency stop.
<read *>

l.64 \input{summary}


*** (cannot \read from terminal in nonstop modes)


Here is how much of TeX's memory you used:
1800 strings out of 95420
19656 string characters out of 1187324
72945 words of memory out of 1076645
4912 multiletter control sequences out of 60000
4544 words of font info for 17 fonts, out of 1000000 for 2000
14 hyphenation exceptions out of 8191
27i,1n,20p,220b,125s stack positions out of 5000i,500n,10000p,200000b,32768s
No pages of output.
回頂端
檢視會員個人資料 發送私人訊息 發送電子郵件
從之前的文章開始顯示:   
發表新主題   回覆主題    吳聰敏老師的討論區 首頁 -> cwTeX 討論區 所有的時間均為 台灣時間 (GMT + 8 小時)
1頁(共1頁)

 
前往:  
無法 在這個版面發表文章
無法 在這個版面回覆文章
無法 在這個版面編輯文章
無法 在這個版面刪除文章
無法 在這個版面進行投票


Powered by phpBB © 2001, 2005 phpBB Group
正體中文語系由 phpbb-tw 維護製作