本帖最后由 zyzx 于 2014-1-24 09:50 编辑 1 T% j, _8 b; h# z: q/ K1 V0 {* z
: Z. }* o0 T6 V在texworks里编译一些模版,总是出现“缺少.sty”文件的报错,比如:- d4 f) |3 Q( Q. Z: \
“8 u6 w- O, }! c& s- e
! 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: ”+ i7 M( C$ ~; C5 L5 Z" n3 c- k
' l, d$ H+ N. K5 |' [0 m0 u# f
然后我从ctan上下载了booktabs文件夹,里面有这么几个文件:
4 W, x& c# w- H! b7 Sbooktabs.dtx, booktabs.sty, booktabs.pdf, booktabs.ins, copying, readme
- h8 F% Y3 S/ [1 m0 A5 F) d其中readme里面有文件列表和安装方法:* O5 u" q+ s9 y4 ^5 K% c" O
“
# m( Z: ^8 Q+ i D* N1 J9 g4 ] C* GFILES IN DISTRIBUTION
7 g. M- [1 g; t- j" E6 p& T=====================9 d( F7 L: y/ q
BASE DISTRIBUTION:4 q; W- J9 {; ~/ Y+ m
README This file.
. h7 |, l s* \( d* y- j& w# f booktabs.ins Package installation file.
& L6 ^& \5 E0 K1 z$ \! u0 H, } booktabs.dtx Package source file.% F- B1 u1 t2 h4 G! o1 q1 a, j$ U
COPYING GPL license file.! V) v# l) C" ~: e4 F' |
booktabs.sty Package style file. It was produced by executing "latex booktabs.ins".! R' j7 N( V; Q
DOCUMENTATION:
# u+ D9 L9 |8 J4 ~+ N- m booktabs.pdf User manual for booktabs package. It was produced by executing:
9 Y' k* C# l; y9 J pdflatex booktabs.dtx5 G3 q8 S; c( I8 F
pdflatex booktabs.dtx# r( z' F4 c2 @5 }4 G
makeindex -s gglo.ist -o booktabs.gls booktabs.glo
2 i0 J6 c! K: ^ makeindex -s gind.ist -o booktabs.ind booktabs.idx
% u3 _# h- _( ~, r) N* ~+ G( u pdflatex booktabs.dtx
3 D: o! o; I! j" r, u: g pdflatex booktabs.dtx
# ^* S# M% k& O- _& BBASIC INSTALLATION4 [# C8 k$ Y5 e$ |
====================
0 i2 k* s' g2 f$ N/ h0 r The minimum requirement to use the package is the to have booktabs.sty in a directory where TeX can find it.; U5 Q+ A, F# ~
For a basic installation on a TDS compliant system, move the following files to the following directories:+ H" T. L/ W6 t$ Q4 C7 z
<texmf>/tex/latex/booktabs// o+ ^ v& d2 ]5 P5 [
booktabs.sty3 [3 P$ j6 f6 u0 z4 {4 o, S! R
<texmf>/source/latex/booktabs/5 w) n' X3 A. Q4 G4 l0 H
booktabs.ins' U2 }8 B5 ?$ a! H# O4 f
booktabs.dtx1 v: l% ?! K* }; y$ n
COPY
. y7 O9 z( A) `: c <texmf>/doc/latex/booktabs/
7 n! Z, [8 z% G! z README
: d ^0 b9 N, W9 m1 k \ booktabs.pdf
; W7 ~- n( U, }”
2 a, J: F. \4 C3 v5 J' R& @) S9 W6 c, |% r5 G
我按上面的要求把各个文件放在了相应的位置(红字部分没有操作,因为不知道怎么操作),但是运行模版后仍然报错说找不到,怎么办呢?请大家帮忙! |