本帖最后由 zyzx 于 2014-1-24 09:50 编辑
# Z5 o5 m& ^( u/ Z+ b( ?: P9 l! ?8 o* f* e; j& T0 V( e
在texworks里编译一些模版,总是出现“缺少.sty”文件的报错,比如:: \9 S) ]- N1 Q0 H
“$ x8 R1 c B- |7 G. o5 g' ]( \' y6 ^6 i
! 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: ”
2 F9 j- h5 M/ {
3 ~- X6 |7 y7 ~) Q1 {1 D/ Z然后我从ctan上下载了booktabs文件夹,里面有这么几个文件:
E; M% k- F9 _8 Q4 hbooktabs.dtx, booktabs.sty, booktabs.pdf, booktabs.ins, copying, readme" Q& g) J2 d; i; H3 ?
其中readme里面有文件列表和安装方法:! m, I* ?2 O# Z! b6 r( k
“
4 ~4 }# Z z4 G2 t, \! o$ B( X. jFILES IN DISTRIBUTION
/ n) U, _" t" c8 g) s9 A2 u; w5 S" M=====================
2 C' F; b* ~' |0 K& l" ?/ h BASE DISTRIBUTION:
4 ]$ i/ r+ j9 ]2 |! A README This file.& h" f2 q1 C3 v% m
booktabs.ins Package installation file.4 ~) m8 L. Q; @5 p
booktabs.dtx Package source file. i; K/ r3 f2 S! K
COPYING GPL license file.) d& ~0 u' p4 e7 y: P8 x
booktabs.sty Package style file. It was produced by executing "latex booktabs.ins".
: Z; L& i3 ~+ Y" u4 j) e DOCUMENTATION:1 a. r+ Z! e! v7 C$ T3 V. q
booktabs.pdf User manual for booktabs package. It was produced by executing:
2 O, _. v8 a1 ~ pdflatex booktabs.dtx- o2 P/ t6 {( ^6 R! C: [
pdflatex booktabs.dtx
2 F! N4 Y8 M+ x2 I5 w makeindex -s gglo.ist -o booktabs.gls booktabs.glo
f8 F( i9 [ I k- r! O makeindex -s gind.ist -o booktabs.ind booktabs.idx7 l: ?% n& e v& w: n3 L! A
pdflatex booktabs.dtx
5 B4 H! g2 Z2 Z pdflatex booktabs.dtx6 Y, T( N. n! T ?" e& X9 \/ y3 }
BASIC INSTALLATION
( X+ y0 [( Z) C' i& A1 A* q; a% a====================7 P" z$ L( L- o2 K" n+ w
The minimum requirement to use the package is the to have booktabs.sty in a directory where TeX can find it.
, }# n r+ R7 T+ x. X% Q' ~ For a basic installation on a TDS compliant system, move the following files to the following directories:
* o1 s: B+ T5 Z- f8 r, W8 S <texmf>/tex/latex/booktabs/
+ S2 x: n; ?8 V. g c booktabs.sty) e. ?% p8 C* n+ b; I! R
<texmf>/source/latex/booktabs/
( o" Y, U7 F4 t% U* u/ O booktabs.ins
0 K0 J* g4 ?& F booktabs.dtx
, ?9 T, x9 s# j9 e" ~) g" l# O8 j2 h COPY U3 j+ ~& {/ J, @
<texmf>/doc/latex/booktabs/6 O: ?8 k: _' @4 r r" T3 b& \; s
README
; r w+ z! G+ m booktabs.pdf
+ g3 t* `' l) U$ z4 ~1 P" T”
( T5 h9 q I: `4 K: P
1 r! `* Z' Z' V) X( ]+ g. f4 c2 D8 o2 h; f我按上面的要求把各个文件放在了相应的位置(红字部分没有操作,因为不知道怎么操作),但是运行模版后仍然报错说找不到,怎么办呢?请大家帮忙! |