本帖最后由 zyzx 于 2014-1-24 09:50 编辑 : \. c9 c1 {/ H) E4 x' D' B7 K' P( H
* y. P- u2 F* y+ g `9 r
在texworks里编译一些模版,总是出现“缺少.sty”文件的报错,比如:
3 T/ c( S! X$ h/ p7 ~4 l* W9 d& U+ u“" s! g( W$ h, {& G4 z3 k
! 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: ”8 P; P( A2 S. o0 I c+ q( G" k
$ s8 \9 U, C4 j7 `7 y然后我从ctan上下载了booktabs文件夹,里面有这么几个文件:: P0 a7 Y" S( u; Z& _
booktabs.dtx, booktabs.sty, booktabs.pdf, booktabs.ins, copying, readme/ c+ s6 @/ b- Z. C
其中readme里面有文件列表和安装方法:7 F2 }% o' I5 W b0 g5 C
“$ [/ u3 u8 K8 n
FILES IN DISTRIBUTION$ Y: B3 V3 h1 X
=====================
7 |2 @) W8 q, X BASE DISTRIBUTION:
8 K$ J3 M5 P1 C( u7 a; ~2 k README This file.- t0 J0 G, B' r4 h
booktabs.ins Package installation file.
; W3 }/ ]1 n* z9 B5 B+ e& r booktabs.dtx Package source file.9 X. f; g9 [6 e2 s) r
COPYING GPL license file.
T5 N$ Z. L: i booktabs.sty Package style file. It was produced by executing "latex booktabs.ins"." H& G, ~/ l0 I% e0 @* r
DOCUMENTATION:
, x- n# i( s6 [ booktabs.pdf User manual for booktabs package. It was produced by executing:8 S# E$ O* w9 V
pdflatex booktabs.dtx
3 o( w2 o# i5 }! D2 g7 {; e( i pdflatex booktabs.dtx
0 u0 g3 D; W9 G: L2 { makeindex -s gglo.ist -o booktabs.gls booktabs.glo, [+ s6 ]* b) x- ~ t5 u
makeindex -s gind.ist -o booktabs.ind booktabs.idx
9 F- S& b( ]/ ~: r# x pdflatex booktabs.dtx
. y' L! H( N, X4 e: T0 O% \ pdflatex booktabs.dtx
. n2 R) [8 w% d" N% |! ABASIC INSTALLATION
" b1 _0 O0 }0 s) p ^====================9 v! w9 K% G$ p; |+ A
The minimum requirement to use the package is the to have booktabs.sty in a directory where TeX can find it.
; U6 {" E& n" g% y5 W For a basic installation on a TDS compliant system, move the following files to the following directories:
& n4 p/ Q0 `9 x/ i8 r2 _ <texmf>/tex/latex/booktabs/; i4 J Q& C: d( @4 J
booktabs.sty2 V' ]( J3 A" ^; C) z6 [- c- A
<texmf>/source/latex/booktabs/
5 o7 f# y4 h- [+ n( `! n) @+ u5 @ booktabs.ins! a& G2 Q5 x5 k+ E% O' |* S7 {
booktabs.dtx2 ~* @* r/ x4 `. b& s; i, }
COPY! o9 ]% L9 ?4 `( a! a; G
<texmf>/doc/latex/booktabs/
3 R9 k; Q: g) c3 A3 L README
# x" G/ e( } `, G: ~ booktabs.pdf
% `6 z5 R8 V1 H% s" L7 H1 x”
" V! C; Y# \, n! ^. D4 ^% V
* l& s- Q: B9 L5 `5 ?* W* M我按上面的要求把各个文件放在了相应的位置(红字部分没有操作,因为不知道怎么操作),但是运行模版后仍然报错说找不到,怎么办呢?请大家帮忙! |