本帖最后由 zyzx 于 2014-1-24 09:50 编辑
! L [" b H* R" M m. u; t: |! m. |/ v9 N
在texworks里编译一些模版,总是出现“缺少.sty”文件的报错,比如:$ Y! Y6 m5 u( X" D7 k
“
1 W& }) b8 X$ m8 V% C# ?! LaTeX Error: File `booktabs.sty' not found. Type X to quit or <RETURN> to proceed, or enter new name. (Default extension: sty) Enter file name: ”
! f- a0 G4 {" N! r d
+ ^. z! T5 B7 g" F. h5 p* A) z然后我从ctan上下载了booktabs文件夹,里面有这么几个文件:* ?+ U. b: L! `2 |+ _- U
booktabs.dtx, booktabs.sty, booktabs.pdf, booktabs.ins, copying, readme
8 u/ m, X" m' M# L3 x) F其中readme里面有文件列表和安装方法:
0 w* ]. [. b7 r1 B t* H) _& Z“+ r5 W# m) {1 p; o5 W5 V0 a" }
FILES IN DISTRIBUTION
0 J7 _) l0 F) Y# L; h=====================
~8 \0 `4 z) m- ?* w9 i$ Y! r BASE DISTRIBUTION:# {, V/ Z* m; i( T( k9 \( Y
README This file.
( e, \- W& h' F* J booktabs.ins Package installation file.$ C* S! `; W6 N7 q/ v) T5 I
booktabs.dtx Package source file.9 c/ g k3 u* e: [/ f
COPYING GPL license file.& O5 t" b( R3 ^% f! h, p
booktabs.sty Package style file. It was produced by executing "latex booktabs.ins".
8 C0 L' w8 u& |! o1 S DOCUMENTATION:
2 `/ h3 w" s% e# S. s K& f booktabs.pdf User manual for booktabs package. It was produced by executing:" c" C4 x ~; L3 s$ W
pdflatex booktabs.dtx. `3 y/ ?3 i" ^" o
pdflatex booktabs.dtx
) M' a% j$ R- f' C. J' T6 d" Y5 K makeindex -s gglo.ist -o booktabs.gls booktabs.glo! R/ s4 l; \0 B. s7 t
makeindex -s gind.ist -o booktabs.ind booktabs.idx* m D$ N# q8 b$ o9 V9 ^7 b
pdflatex booktabs.dtx/ ~ T. |1 ^+ j: ` T9 U
pdflatex booktabs.dtx
7 \/ t$ }2 }! E0 F+ VBASIC INSTALLATION* ~& O* }) g4 Q2 K% c# v. j4 g
====================
' y7 j7 g' q" n0 p! \ The minimum requirement to use the package is the to have booktabs.sty in a directory where TeX can find it.7 p- o- ~# @7 r
For a basic installation on a TDS compliant system, move the following files to the following directories:
6 S7 v( u$ C0 b; r8 G <texmf>/tex/latex/booktabs/. a# _6 r6 j# j$ G/ W
booktabs.sty
9 l* l0 @: {* J" i <texmf>/source/latex/booktabs/# L6 G. m1 @; r% M- F
booktabs.ins- Z; l9 D+ f" g# s/ X2 }3 J
booktabs.dtx, K5 p# P( D% g0 D/ v; n) p; [8 M
COPY
4 A% T/ A& @7 t <texmf>/doc/latex/booktabs/
; i7 y O4 P9 y" K README% Q; P( Q) a% G! s$ W3 \; I
booktabs.pdf
0 L$ K, m% S' n% O/ P”
( W* D1 h$ U, n: R9 B7 q0 R
2 s- W$ p8 I0 \. V; S7 I我按上面的要求把各个文件放在了相应的位置(红字部分没有操作,因为不知道怎么操作),但是运行模版后仍然报错说找不到,怎么办呢?请大家帮忙! |