本帖最后由 zyzx 于 2014-1-24 09:50 编辑
" S7 A2 v% A- v4 D, s( b0 g
( V0 |# i9 a) e0 a9 i: g5 S; F& o在texworks里编译一些模版,总是出现“缺少.sty”文件的报错,比如:7 J2 s# [+ o6 G$ F: G
“
9 G- J A4 J1 b0 V0 j9 G1 e! 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: ”! w# {* R. N5 [# ]" c) T. |" S
* ?' W: q) O( N' X* r( ^+ F4 W然后我从ctan上下载了booktabs文件夹,里面有这么几个文件:
% `2 C! f0 O/ Z- ?# o$ L$ nbooktabs.dtx, booktabs.sty, booktabs.pdf, booktabs.ins, copying, readme
. G6 u" ^2 S. {: F5 o其中readme里面有文件列表和安装方法:
% p% `' X2 @5 y* S' _! ]“
) ^; t4 Y3 B& ~3 ], Y, J! ?FILES IN DISTRIBUTION
) _+ z) v2 R M' v" E=====================8 M F v! K4 j' `" T+ F' _' `7 d/ r6 k
BASE DISTRIBUTION:# x8 L7 U" u% R: A3 M% k% {8 \0 [
README This file.
* f j# h' p; u# f k) X booktabs.ins Package installation file.$ B8 S8 Y1 X$ y; q" r7 }
booktabs.dtx Package source file. M# s3 R6 X: |" B
COPYING GPL license file.+ O: ^9 e9 l/ t2 r% w; D
booktabs.sty Package style file. It was produced by executing "latex booktabs.ins".% `6 b4 l e* _2 w* @! _* U
DOCUMENTATION:2 p9 _$ e* m- K
booktabs.pdf User manual for booktabs package. It was produced by executing:
, f: H! O/ s' P# h9 m) F" M pdflatex booktabs.dtx; z; h9 h9 o( g* C: ] B: [$ |
pdflatex booktabs.dtx
" Y8 B8 B" z& J. h makeindex -s gglo.ist -o booktabs.gls booktabs.glo
0 p% X( u, u$ h# ^ makeindex -s gind.ist -o booktabs.ind booktabs.idx+ a5 a7 W. V! _/ f% y# x
pdflatex booktabs.dtx. w0 W( h0 T' c( x5 O
pdflatex booktabs.dtx
+ c! g0 d0 G+ U) nBASIC INSTALLATION5 h( r& j6 n5 b
====================; H+ t' `) E/ C3 A
The minimum requirement to use the package is the to have booktabs.sty in a directory where TeX can find it.
- v7 s5 {7 P# q& ^% m( M. Q) y For a basic installation on a TDS compliant system, move the following files to the following directories:- O4 A9 S w6 P' f# `
<texmf>/tex/latex/booktabs/
' a0 \, Q* L. N: U& _( n booktabs.sty$ e3 H3 R5 q; C" t
<texmf>/source/latex/booktabs/2 a" p+ F) \8 `" Z v7 X
booktabs.ins1 N3 x I' n) O/ e3 i: i" ]! S
booktabs.dtx8 t6 P" Z0 w5 N$ d
COPY# n) d4 g1 k' J' Q5 i
<texmf>/doc/latex/booktabs/
3 G' i3 ~. v5 ^5 P4 v README
2 K4 x; D* p2 G- | booktabs.pdf
. \8 d# F* E! j2 Q" h/ ]”' x* Y3 C3 r* r# g
" U5 T' y( V- G, L我按上面的要求把各个文件放在了相应的位置(红字部分没有操作,因为不知道怎么操作),但是运行模版后仍然报错说找不到,怎么办呢?请大家帮忙! |