本帖最后由 zyzx 于 2014-1-24 09:50 编辑 . N9 ~5 {$ v Y& m% K2 ?/ m% T, t
3 K; E6 O4 n8 s m1 \5 O
在texworks里编译一些模版,总是出现“缺少.sty”文件的报错,比如:/ q3 q+ c6 e( R* ]& G
“( r6 Z* g9 Y6 o: |
! 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: ”" W" l: d- R0 C0 L6 u( o5 E1 _
& d7 u) e- @2 l- Q1 Z. Q6 g然后我从ctan上下载了booktabs文件夹,里面有这么几个文件:) @1 T/ }, Q3 O$ d6 [5 R
booktabs.dtx, booktabs.sty, booktabs.pdf, booktabs.ins, copying, readme
8 Z9 T0 m; N. D. e4 M. }- H其中readme里面有文件列表和安装方法:9 n. y4 t8 Y- w( H9 \: B
“
" z3 `4 X+ V- F% F3 K5 ^, WFILES IN DISTRIBUTION B+ @8 D8 h# z6 t3 ^
=====================
3 j/ K$ u9 ]0 u3 @: H& i9 B BASE DISTRIBUTION:
, h5 L% w* W8 g4 q4 u3 C README This file.& V, J8 m, m6 t; h. r
booktabs.ins Package installation file.) P5 Y ]" c( B2 u1 K+ L
booktabs.dtx Package source file.) @; t2 |* k& @( d0 h+ g9 i" d
COPYING GPL license file.) ?. s* k4 H9 `* K
booktabs.sty Package style file. It was produced by executing "latex booktabs.ins".
9 A" N; {: ^& l! ^: E6 d6 O0 C( J DOCUMENTATION:( ]2 b/ M# B' x
booktabs.pdf User manual for booktabs package. It was produced by executing:2 p, S: C; L* z, y: @/ H' X
pdflatex booktabs.dtx$ D. s( U* c- n( _5 W9 Y& l
pdflatex booktabs.dtx+ ^0 q* ~1 z2 I+ z; t
makeindex -s gglo.ist -o booktabs.gls booktabs.glo
2 w. i9 v z2 ~4 @ makeindex -s gind.ist -o booktabs.ind booktabs.idx
( z, B/ P: ^* N' {9 W5 b pdflatex booktabs.dtx; q* A5 t2 g9 Y, v( F5 K
pdflatex booktabs.dtx
/ N& {/ f/ C* Y. C! N( D. TBASIC INSTALLATION
, s* ~: x1 C+ F; m( x' c# q====================
1 `; ]1 z, M9 q+ i) ~. l& B% k" [ The minimum requirement to use the package is the to have booktabs.sty in a directory where TeX can find it.
" W" t9 s/ z5 |7 V3 T For a basic installation on a TDS compliant system, move the following files to the following directories:5 e- X) A. p8 t' k, \7 a
<texmf>/tex/latex/booktabs/% z' C0 ]* }7 E
booktabs.sty* _& f/ @0 o! a' v
<texmf>/source/latex/booktabs/$ c# n$ ]( ]2 W; h4 T6 S3 T
booktabs.ins
: c% T' d5 u: G( z booktabs.dtx, r1 E: z1 ^' {$ y
COPY
- G# ^ |3 i4 |5 O <texmf>/doc/latex/booktabs/
* |6 R: E& j4 \/ H. b5 ~; T# m README" b/ h) M8 F5 ]( c, _! _* l
booktabs.pdf3 X# i! q2 k& B/ u" h0 a
”& k% B5 b+ A9 S- M6 ?6 k
( C# _; a2 P4 Y6 ?* ]. A. B% e! W我按上面的要求把各个文件放在了相应的位置(红字部分没有操作,因为不知道怎么操作),但是运行模版后仍然报错说找不到,怎么办呢?请大家帮忙! |