本帖最后由 zyzx 于 2014-1-24 09:50 编辑
9 f% C) Z+ q3 ^3 Z
6 A5 `3 f# y4 T6 u* d' G' k在texworks里编译一些模版,总是出现“缺少.sty”文件的报错,比如:5 n' N' k% T% E/ Y! |! Z
“3 @, Y; p( a9 e2 u9 ^! t
! 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: ”; p( d" C' L T
2 s f( |& S+ U# y8 c/ f
然后我从ctan上下载了booktabs文件夹,里面有这么几个文件:
: t) V. i/ W* S' y* T- p5 t% Wbooktabs.dtx, booktabs.sty, booktabs.pdf, booktabs.ins, copying, readme
; ^+ f/ k# M5 f/ ?' V其中readme里面有文件列表和安装方法:
6 m' ?& q( ]9 i, E0 W% ?“
/ K2 n, C1 s9 J0 q* vFILES IN DISTRIBUTION1 a5 j1 y9 f3 F
=====================- @. m/ f# @6 g
BASE DISTRIBUTION:: P( q9 u$ |1 M& ~0 |
README This file.2 A/ o! m% \3 g) F8 \8 k
booktabs.ins Package installation file.' C3 E) F5 }* v; n- L4 B
booktabs.dtx Package source file.& `( j7 q8 P$ i9 `( K
COPYING GPL license file.* @; e0 H7 i4 ?6 v% X; a" Q" T3 c( n2 [
booktabs.sty Package style file. It was produced by executing "latex booktabs.ins".5 m& M. x! R. v6 ]6 O4 j& w, X3 Y
DOCUMENTATION:
! `7 N( w/ S7 p3 u" \ booktabs.pdf User manual for booktabs package. It was produced by executing:
* D% V6 a: w# i& ? pdflatex booktabs.dtx
$ i3 a. q5 r5 x4 v8 Q pdflatex booktabs.dtx& W1 r( Q/ k* P( }5 S' y% ^% X
makeindex -s gglo.ist -o booktabs.gls booktabs.glo
9 W, G+ B9 j t3 A# z* H+ w makeindex -s gind.ist -o booktabs.ind booktabs.idx9 P- J5 ?, q1 Y1 }
pdflatex booktabs.dtx
8 w# a8 ]% {$ D6 ^" S- E pdflatex booktabs.dtx. _; J8 y/ Y/ i" e1 `' t
BASIC INSTALLATION
2 I* O1 M6 z5 `$ t/ m% F* s! m====================5 x5 g. p4 ^1 O, \
The minimum requirement to use the package is the to have booktabs.sty in a directory where TeX can find it.
, H# A C: s' I1 U' h For a basic installation on a TDS compliant system, move the following files to the following directories:( c4 L5 W# L5 w* o9 e6 A) Z: K
<texmf>/tex/latex/booktabs/) s3 F4 u0 v/ A& v4 w9 G
booktabs.sty8 S f! p+ L2 w7 A: s
<texmf>/source/latex/booktabs/
% _: [3 L8 b7 d- ` booktabs.ins: o" D( H; C4 k; k% [6 n
booktabs.dtx
3 z6 X8 z5 F$ U1 p4 s COPY
3 S- ^8 P9 k. g2 o <texmf>/doc/latex/booktabs/
! V# g" z/ N/ ~ r' o) M README
$ x* k4 P( v, @, \ booktabs.pdf
- q0 n" c+ v7 n& z% N* [2 v( }”0 O6 i) G7 ~9 j, m1 N
1 P, F3 D' i, o) B/ a/ K我按上面的要求把各个文件放在了相应的位置(红字部分没有操作,因为不知道怎么操作),但是运行模版后仍然报错说找不到,怎么办呢?请大家帮忙! |