本帖最后由 zyzx 于 2014-1-24 09:50 编辑 $ c1 Y8 S* }8 {
% q6 T& a% _0 k/ ]在texworks里编译一些模版,总是出现“缺少.sty”文件的报错,比如:( E) z- w" I* J/ I
“
5 }1 Z b% ]* p. 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: ”
/ l$ Y* c5 R5 ?6 j9 D3 q
% ], j* Y @* j; e然后我从ctan上下载了booktabs文件夹,里面有这么几个文件:7 r+ [6 Q: r) `& R; ^. g
booktabs.dtx, booktabs.sty, booktabs.pdf, booktabs.ins, copying, readme" u/ H# l) V" @% H! m
其中readme里面有文件列表和安装方法:+ f9 u" W/ O) X2 f$ z) v
“$ A& Y# _- u/ n6 ]( r- @
FILES IN DISTRIBUTION+ K" l8 @! y3 d) T T" H
=====================7 B9 H0 ~' ?; e; K6 Z: z
BASE DISTRIBUTION:
0 ]9 M" F( \5 W5 r) c! V( a" G README This file./ x# C! K* l! K2 H
booktabs.ins Package installation file.2 X, |4 q1 M& s' G) A, M0 {* Y8 n3 W
booktabs.dtx Package source file., ^( L' p2 K8 {2 D3 Q: | a& b
COPYING GPL license file.
' ^ k% W! D+ w# { V, [( J booktabs.sty Package style file. It was produced by executing "latex booktabs.ins".! f+ X9 H" y' B: K
DOCUMENTATION:
' v: D# e! G/ q6 l" ^+ `: A3 |3 m booktabs.pdf User manual for booktabs package. It was produced by executing:
+ [! o! ~6 g: r pdflatex booktabs.dtx
& m& V6 u8 A1 O0 b& I/ V pdflatex booktabs.dtx
& A4 d9 s( _' U7 B" Z8 [4 I makeindex -s gglo.ist -o booktabs.gls booktabs.glo
; L, g8 b6 D8 a# @9 i( O makeindex -s gind.ist -o booktabs.ind booktabs.idx
( y8 f( t" K! o. R: ^ pdflatex booktabs.dtx
8 J/ o$ f4 ]1 L# O' ]; A2 e) ^ pdflatex booktabs.dtx+ }& o, u' \ _5 q/ I# s; Q8 f
BASIC INSTALLATION
# Y) S0 B5 T/ F/ Z8 k====================4 }+ {# L& ]9 g: ~9 ^
The minimum requirement to use the package is the to have booktabs.sty in a directory where TeX can find it.+ X' p4 ~8 {# Z* m: w2 A: {: j
For a basic installation on a TDS compliant system, move the following files to the following directories:
" k0 S V3 ?. m4 j& q <texmf>/tex/latex/booktabs/( F. Q* i8 k4 l+ J2 S8 H' r+ Q
booktabs.sty
% u2 j, m8 Z, ~2 W2 L9 Q a <texmf>/source/latex/booktabs/, E+ s6 g% `4 |; @$ G4 h
booktabs.ins$ ^7 j7 c% g$ |( C2 k0 W, D
booktabs.dtx
3 f; E) `* r& t2 E4 m COPY
3 f& Y1 K% p# f <texmf>/doc/latex/booktabs/ y/ c, k9 e( e2 Y; N7 |3 g" q
README
S8 p5 ~8 O) Z! R booktabs.pdf
1 y q3 L0 ?: t4 r”/ m) d5 W, J* I# z( L
c- c+ ~9 j; H- r, S0 Y$ q( M我按上面的要求把各个文件放在了相应的位置(红字部分没有操作,因为不知道怎么操作),但是运行模版后仍然报错说找不到,怎么办呢?请大家帮忙! |