本帖最后由 zyzx 于 2014-1-24 09:50 编辑
6 b; Y) o( P9 w# k, ` a
7 u q1 J, d+ k' J( \1 J在texworks里编译一些模版,总是出现“缺少.sty”文件的报错,比如:2 f( [& k4 ~- B4 ^3 d% c/ G) Z8 p
“* D7 n3 H; t; p( }3 L# o d0 h
! 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: ”7 N2 l# K5 x* e1 ~& K/ k
+ [8 Y: P* P4 e# w- |7 Z; }" w
然后我从ctan上下载了booktabs文件夹,里面有这么几个文件:) Q8 P+ R. H$ r& A+ ]
booktabs.dtx, booktabs.sty, booktabs.pdf, booktabs.ins, copying, readme2 @7 K3 i6 r$ V) ]6 X
其中readme里面有文件列表和安装方法:
) x' j. S: I, A( B" \+ s+ k“
4 A. B6 P9 ^. O' RFILES IN DISTRIBUTION; \4 i4 K- a; F
=====================
, C. K( x& l' w f+ ]2 d BASE DISTRIBUTION:$ @( w' x. c j1 g
README This file.
x k& W4 Q3 {* P% C booktabs.ins Package installation file.
0 G k7 A- t1 N5 T6 P q. {9 a! B booktabs.dtx Package source file.6 k! D- T/ b6 Y- Q( J, B
COPYING GPL license file.0 Z1 ~ k5 h2 q
booktabs.sty Package style file. It was produced by executing "latex booktabs.ins". y( B7 `: Z# K$ m" o( V0 X2 k
DOCUMENTATION:2 D" y4 n" Y5 z% q A/ ~, }
booktabs.pdf User manual for booktabs package. It was produced by executing:
. I$ [7 h7 L8 ^/ y3 t pdflatex booktabs.dtx
' F! V* w; c" r1 ~0 n! }) E7 h pdflatex booktabs.dtx
8 v \6 Z7 {7 k9 ?1 p$ ~4 d$ B i makeindex -s gglo.ist -o booktabs.gls booktabs.glo
) X+ A; D' K# J M; }. F makeindex -s gind.ist -o booktabs.ind booktabs.idx
# ]; J' z. P- O# P pdflatex booktabs.dtx2 f [( \: S* u7 ~$ e
pdflatex booktabs.dtx
- Q9 `1 k0 E$ r1 A2 G ?( D. |BASIC INSTALLATION
7 s; r7 \+ {% C4 {& Q====================
: F) K9 a% e; ^; Y The minimum requirement to use the package is the to have booktabs.sty in a directory where TeX can find it. l$ k1 V( y9 E; e, n4 v6 C" K
For a basic installation on a TDS compliant system, move the following files to the following directories:$ C3 y; U# S' M Z
<texmf>/tex/latex/booktabs/- v9 r9 y0 B M0 ^$ F
booktabs.sty
$ Q& }% ]7 w- p9 e N <texmf>/source/latex/booktabs/4 \# D( z+ O& j9 o: Y! T* E( Z
booktabs.ins5 S! k) z8 E) Q
booktabs.dtx2 M/ }, ~7 k; g6 F2 G
COPY2 |3 ^. N# Z$ j! Z* S
<texmf>/doc/latex/booktabs/4 i$ M! G, I% ~- {. F& f% I, i
README
! t0 Y' q) d. [' V: F2 n booktabs.pdf" [7 t7 \5 E1 w* l
”
( r/ U3 C4 ?7 _3 X z( E2 L* K- ^- w4 k9 u, x& `8 f; S
我按上面的要求把各个文件放在了相应的位置(红字部分没有操作,因为不知道怎么操作),但是运行模版后仍然报错说找不到,怎么办呢?请大家帮忙! |