本帖最后由 zyzx 于 2014-1-24 09:50 编辑
) O! x: V6 t" I) M( M+ w
8 C- M+ `! H4 A4 w9 {3 |& ]在texworks里编译一些模版,总是出现“缺少.sty”文件的报错,比如:- H5 p$ W# W* F: g
“$ a3 k0 {# W9 q1 |$ D% ?! S, Z+ 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: ”
. o1 _6 M5 R' [7 E4 h' s1 x& J X4 l; ^) \
然后我从ctan上下载了booktabs文件夹,里面有这么几个文件:
& x! e1 a) ~+ s. Z: h6 ]& M& xbooktabs.dtx, booktabs.sty, booktabs.pdf, booktabs.ins, copying, readme, ~: c# g5 t6 U4 p. H* x Q! k
其中readme里面有文件列表和安装方法:, j- R8 c }, [# n8 ~
“
4 l7 A! j; ~! ^FILES IN DISTRIBUTION
0 }& N4 \5 e N. R4 n. \=====================8 A1 ?1 C+ I, s$ Z4 ]0 W; x) h
BASE DISTRIBUTION:5 ]3 ^& [/ u, u0 e1 O% B. j
README This file.! @' j. @; {/ E0 H* N
booktabs.ins Package installation file.4 N5 H1 j8 y8 Q# }& p# e9 L) _1 ` L3 w
booktabs.dtx Package source file.
' n, k% V9 |7 F- C COPYING GPL license file.7 p7 m8 P; q' d; O) ?# f" t
booktabs.sty Package style file. It was produced by executing "latex booktabs.ins".* u0 f6 i/ ~8 O2 T) `5 g9 W) ]; ?
DOCUMENTATION:2 \* a$ Q( z) z
booktabs.pdf User manual for booktabs package. It was produced by executing:
( m S& H: @8 }/ ~7 }# c. f pdflatex booktabs.dtx/ H" y5 P# d3 U9 O
pdflatex booktabs.dtx
4 g* @6 k" _5 ?( k7 l: [ makeindex -s gglo.ist -o booktabs.gls booktabs.glo6 m0 w7 ^$ B2 j+ D, r8 ?
makeindex -s gind.ist -o booktabs.ind booktabs.idx
* `5 r7 `8 C2 b" |* A/ [: } t pdflatex booktabs.dtx/ N" }! V7 K( h$ M+ h5 A: X
pdflatex booktabs.dtx: m; x0 I' I4 O v8 E
BASIC INSTALLATION
3 X! }8 r2 _( I====================/ W! ^. _ `- r8 l5 v
The minimum requirement to use the package is the to have booktabs.sty in a directory where TeX can find it.
" u" h' v: R, v( \ For a basic installation on a TDS compliant system, move the following files to the following directories:: `/ @. ?0 y( o: Z8 {" G
<texmf>/tex/latex/booktabs/
( ]# x' _! {% j" t. v+ U$ P4 o booktabs.sty
- c1 a; l" s- l( y( {, \ <texmf>/source/latex/booktabs/
6 T2 N9 ~! @' W" ^/ Y, U1 Q booktabs.ins
! K; K2 a- `2 U4 b0 L3 X& E) z booktabs.dtx
4 Q$ b, G* L% ]! }& h2 Z% D COPY
, A0 o4 ?( i! ?8 p1 A* ` <texmf>/doc/latex/booktabs/
8 k7 t6 w- L9 o# d README0 {1 U: r$ s0 e: h) x u8 v
booktabs.pdf5 Z( _1 l# S3 x/ c2 s7 X
”8 E1 N7 K2 C% c9 C: G# R- T. |9 N
, W; R4 M# o% d5 v2 n
我按上面的要求把各个文件放在了相应的位置(红字部分没有操作,因为不知道怎么操作),但是运行模版后仍然报错说找不到,怎么办呢?请大家帮忙! |