本帖最后由 zyzx 于 2014-1-24 09:50 编辑
1 e0 X' k8 o3 B1 r% M
" U. p. v, I; I( S& [在texworks里编译一些模版,总是出现“缺少.sty”文件的报错,比如:
9 s% F+ n: X# F; K“; |0 s' E4 K" a- [
! 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: ”
% J( u1 M0 Z( A9 P
+ w4 x2 m/ t* n4 }, ~然后我从ctan上下载了booktabs文件夹,里面有这么几个文件:
: @3 w- ]% L1 d y6 @. hbooktabs.dtx, booktabs.sty, booktabs.pdf, booktabs.ins, copying, readme
# Y& m" o( \. H2 K其中readme里面有文件列表和安装方法:
5 R/ ^3 I4 b: E9 _0 Z# y“, f6 K7 e( c4 U6 }) H: p. S! h
FILES IN DISTRIBUTION: N: f3 E( W c; e7 n
=====================- L+ n/ o7 ]) ~! t [# r# F2 B$ W
BASE DISTRIBUTION:7 C2 |0 J1 x9 u% S4 m
README This file.4 h) N# G' k( ?( Y
booktabs.ins Package installation file.
" [) {. \0 k4 } booktabs.dtx Package source file.0 d4 C+ L/ Y* P* J; ?
COPYING GPL license file.% B$ l4 W9 c3 D: D
booktabs.sty Package style file. It was produced by executing "latex booktabs.ins".
* o/ g3 g4 f/ b4 |/ k DOCUMENTATION:
0 ^: k, {( K$ ], ~- D booktabs.pdf User manual for booktabs package. It was produced by executing:
! C0 m) l$ K: u; U8 m2 { pdflatex booktabs.dtx
/ [2 w( O M& A* z pdflatex booktabs.dtx$ f: M$ g6 t6 O- u
makeindex -s gglo.ist -o booktabs.gls booktabs.glo+ X1 l, O! p" p
makeindex -s gind.ist -o booktabs.ind booktabs.idx) C2 O, O4 c% |
pdflatex booktabs.dtx
. B4 a0 f- |6 @( P0 P# ` pdflatex booktabs.dtx9 r3 ]7 w7 [0 Z, p3 C
BASIC INSTALLATION
; G1 S9 Q( M) I====================
' ]5 B9 Z! B' w8 S8 W2 C- b The minimum requirement to use the package is the to have booktabs.sty in a directory where TeX can find it.; w t) z$ z" w7 _
For a basic installation on a TDS compliant system, move the following files to the following directories:( _8 k, K- ~2 T
<texmf>/tex/latex/booktabs/
: `5 J# \* J2 R4 G8 j- ?/ Z booktabs.sty
k: n4 Q s7 g y8 } <texmf>/source/latex/booktabs/
" f8 H1 G& ]6 I( C0 H booktabs.ins
6 c' o% V. @% k' ~, s) o booktabs.dtx
4 O# T; z0 \" w) R/ l; Z COPY
; Z2 D, k7 d1 n- Z. Q/ R4 {6 {- T <texmf>/doc/latex/booktabs/( \6 Y+ O/ p! T# C( E0 u
README0 H4 E0 U m; C3 {5 j% s0 l5 b, M
booktabs.pdf1 m. E! l+ R1 |) M x- `- f, f) {
”/ P, u( F# \3 r. \0 Z8 d
* a2 e: w& g- N# @我按上面的要求把各个文件放在了相应的位置(红字部分没有操作,因为不知道怎么操作),但是运行模版后仍然报错说找不到,怎么办呢?请大家帮忙! |