本帖最后由 zyzx 于 2014-1-24 09:50 编辑 5 \9 j; ^) s* |
& t( L3 i: e w" M+ q1 d) g9 q
在texworks里编译一些模版,总是出现“缺少.sty”文件的报错,比如:
: s2 H, q! P' m7 Q3 ^* ^“
# ?6 h( B$ g) x- W! 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: ”
$ v9 \8 Z) f; b$ S+ f" o% S, i4 o! A* U
然后我从ctan上下载了booktabs文件夹,里面有这么几个文件:
6 p i4 C+ V! \+ Z3 Wbooktabs.dtx, booktabs.sty, booktabs.pdf, booktabs.ins, copying, readme
, Z" K n8 {' r" Z- N6 m其中readme里面有文件列表和安装方法:( g& P2 C2 m* Z, a" O& c. T3 n0 Z
“
5 P. z( }. V; X8 U' b7 [FILES IN DISTRIBUTION
# W# j/ i; l9 l7 r$ t C=====================
1 W5 e( [1 Q6 p" e$ ]' R BASE DISTRIBUTION:2 l) k# i; l+ N: I$ E% w- _. K7 i
README This file.: E/ x% l, {: P" b6 K8 ]; s
booktabs.ins Package installation file.6 b A! z# w2 p9 S
booktabs.dtx Package source file.0 F0 r/ J: g1 s' W' S2 {
COPYING GPL license file.! W! U1 Z8 D$ D1 _
booktabs.sty Package style file. It was produced by executing "latex booktabs.ins".
; U8 s, }: i0 p' ]& {/ v7 }: G4 O DOCUMENTATION:, S4 v' N% [3 ]$ {/ F, j- Y: x' W4 G, C
booktabs.pdf User manual for booktabs package. It was produced by executing:
; Z2 U: [; | a; O$ {/ E pdflatex booktabs.dtx
( P, g$ q9 \7 d t8 u! \" y pdflatex booktabs.dtx* Y' i( M5 t' s( ~
makeindex -s gglo.ist -o booktabs.gls booktabs.glo% p* A" j* p3 c3 t1 a0 M6 k
makeindex -s gind.ist -o booktabs.ind booktabs.idx
; P7 A" p& L; q) U4 q z pdflatex booktabs.dtx
# y; V; d1 j* e5 F3 o5 F' Y pdflatex booktabs.dtx
7 Y* U1 N; y+ L5 o7 yBASIC INSTALLATION; C, G4 H# ]; m3 H! C; [2 Q& i0 i+ z
====================
/ `) m7 r. W3 A# r The minimum requirement to use the package is the to have booktabs.sty in a directory where TeX can find it.' ]1 k8 B( {% i" U; y
For a basic installation on a TDS compliant system, move the following files to the following directories:. p" y w8 S' t$ `' I
<texmf>/tex/latex/booktabs/
' Q k6 |5 D" B5 n4 W booktabs.sty
& l: |8 L! Z2 _ <texmf>/source/latex/booktabs/. T. J) j" L; ?1 F
booktabs.ins
, p- }/ g0 B S1 ~, L6 b) _/ l! b booktabs.dtx
: l5 ~" s. e6 H7 [2 W, A% B COPY8 i# k* A/ a5 M2 h K. W" k, s# ?
<texmf>/doc/latex/booktabs/) V2 @- i1 r( V$ L1 t' n9 Q/ j- E+ J
README
( c/ ^) t% ]' D% N6 W" z5 a booktabs.pdf: x" q H2 @+ G1 f4 T& {, I
”
; F# P& |7 T+ N) e) R0 b. ^6 H2 Y" W2 f' v
我按上面的要求把各个文件放在了相应的位置(红字部分没有操作,因为不知道怎么操作),但是运行模版后仍然报错说找不到,怎么办呢?请大家帮忙! |