本帖最后由 zyzx 于 2014-1-24 09:50 编辑
8 t. x2 @( F% \* ?6 F+ M2 K' {) i z2 O5 b; D
在texworks里编译一些模版,总是出现“缺少.sty”文件的报错,比如:+ }& Z2 X* y. w# f2 Q% X7 t
“
7 _3 n5 a6 Q8 `! 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: ”
+ N0 U9 [& N c( J0 b# a3 u& o+ g. E, K, H( s) r
然后我从ctan上下载了booktabs文件夹,里面有这么几个文件:5 [3 Q$ o- W) k9 i5 F! K
booktabs.dtx, booktabs.sty, booktabs.pdf, booktabs.ins, copying, readme
# v K" o1 ?" P" [2 }$ {( `9 k其中readme里面有文件列表和安装方法:/ `; z( r, P5 _
“
* z1 M3 I6 o- i0 a! K6 i- HFILES IN DISTRIBUTION
$ |' Y5 z$ ~# m) z& O$ `* F4 n=====================: t& _2 O ?0 w% a p) o* `
BASE DISTRIBUTION:
/ g6 G, L/ i5 U1 W README This file.
* C0 A$ u" d/ U& c2 u booktabs.ins Package installation file.
7 F. }. \" c" k- h! l; X* x& a7 X booktabs.dtx Package source file.
6 ?5 J# ]' ~2 ]) v: o" @ COPYING GPL license file.
# l+ b; ^7 _) L4 n5 u booktabs.sty Package style file. It was produced by executing "latex booktabs.ins".
( u$ A1 h. Q& a! [1 o DOCUMENTATION:
6 G2 q' E: ~2 J. [7 v booktabs.pdf User manual for booktabs package. It was produced by executing:4 G" c1 E6 J) r6 C
pdflatex booktabs.dtx
" W$ Z( N' ]9 e' C pdflatex booktabs.dtx$ r- V8 b! L2 d/ x5 o' ]0 E2 `* ]
makeindex -s gglo.ist -o booktabs.gls booktabs.glo
, v3 n1 Q6 i* C makeindex -s gind.ist -o booktabs.ind booktabs.idx
" c6 f! ]: |) _( g pdflatex booktabs.dtx/ k1 W3 \5 b% A& w6 x
pdflatex booktabs.dtx) [- e9 `$ m7 t* M6 ?: b
BASIC INSTALLATION1 |$ ]! R w6 U6 U5 U
====================
/ t* S& x. y& {, Q: G, G; n5 e+ T# d The minimum requirement to use the package is the to have booktabs.sty in a directory where TeX can find it.
+ R1 I) g9 p% `6 ]7 y5 S& h$ j For a basic installation on a TDS compliant system, move the following files to the following directories:
$ [& g3 Y/ p) |. z) k <texmf>/tex/latex/booktabs/0 ], a6 Z0 w, J" I
booktabs.sty
|0 n3 z) V- L' e <texmf>/source/latex/booktabs/
; g: ]; E5 C; w5 W+ ?* Q8 F booktabs.ins' D2 A2 T1 J9 o" s, X: G2 c
booktabs.dtx
% [% `. q' W' i- [2 B# ]3 ?8 ^% N COPY5 F- N+ H; c( m8 B1 u
<texmf>/doc/latex/booktabs/ P% l6 [2 P' Z/ t( l
README8 V: B- t! U1 }) R4 E
booktabs.pdf; D3 y: M; q0 Z
”6 R! {" Z& f) \1 \8 f
( r/ U6 l! V: `6 [- B我按上面的要求把各个文件放在了相应的位置(红字部分没有操作,因为不知道怎么操作),但是运行模版后仍然报错说找不到,怎么办呢?请大家帮忙! |