本帖最后由 zyzx 于 2014-1-24 09:50 编辑 & ^+ G2 X5 @: I* B4 D
' \/ p$ u3 Y. h3 {* Q在texworks里编译一些模版,总是出现“缺少.sty”文件的报错,比如:
2 d$ N" m. U6 v“5 k1 w5 g4 [ t/ T& B, M1 r
! 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: ”* _! j3 f" ?- ~9 d1 b
5 O! u6 T) m% h4 t' H) V) O! O& n
然后我从ctan上下载了booktabs文件夹,里面有这么几个文件:
% ]/ a H/ y7 j tbooktabs.dtx, booktabs.sty, booktabs.pdf, booktabs.ins, copying, readme
. v) ~) ^5 _: d% S6 |其中readme里面有文件列表和安装方法:
3 Y# B, ?6 x- o) c& K“
$ C5 P- T5 v" Q% s) h, S$ dFILES IN DISTRIBUTION
1 j& S# I4 X/ W" T=====================
' p3 p+ X8 ~# V g$ `; r8 O! } BASE DISTRIBUTION:- X0 o3 x, J* T) r3 C5 E/ ^' n
README This file.
& I' Z# ~. E- `- y booktabs.ins Package installation file.9 A9 [8 |9 L7 Q/ W7 s# z, [* } h) x
booktabs.dtx Package source file.
5 T8 W& w/ `% \; q- |6 p% O COPYING GPL license file.
5 b2 G) t4 h! _' c3 t+ M5 n' z; o booktabs.sty Package style file. It was produced by executing "latex booktabs.ins".
* ^7 x( q* q9 o: }7 o DOCUMENTATION:5 @$ ?: u/ w/ X N3 }# n/ H
booktabs.pdf User manual for booktabs package. It was produced by executing:& n! ?! K8 p" R
pdflatex booktabs.dtx6 P+ G2 c* N1 t% {0 M
pdflatex booktabs.dtx) n" e: P' @8 c3 V5 ]. h
makeindex -s gglo.ist -o booktabs.gls booktabs.glo7 ?; {5 r$ V* b: b8 ~* T
makeindex -s gind.ist -o booktabs.ind booktabs.idx/ {5 ?' n5 i6 s) k2 C2 J! ~0 z
pdflatex booktabs.dtx
+ f3 @, Y+ a( O! I# k! J0 v pdflatex booktabs.dtx/ W& ]$ S, k( K" u' p1 m1 [$ T
BASIC INSTALLATION' c S- G$ _3 v+ c
====================
2 v" y' t, V/ t The minimum requirement to use the package is the to have booktabs.sty in a directory where TeX can find it.
0 R& t. M- o* ` a: X$ X* n For a basic installation on a TDS compliant system, move the following files to the following directories:
$ \ [ Y. N% _3 A3 X& _ @ <texmf>/tex/latex/booktabs/
; N$ m7 V; C4 F [# Y8 c+ o. L booktabs.sty" s/ `. v5 T2 Q" i8 R
<texmf>/source/latex/booktabs/
1 f0 g* B8 L+ a; I5 R1 B0 ` booktabs.ins
- {! f G) F& I9 o, J1 A2 z) o: \$ ` booktabs.dtx5 w$ e0 X# X% b- \( M
COPY
- I& O& s5 e% a, g <texmf>/doc/latex/booktabs/
0 ^% J$ J/ c3 }( K README
/ m$ E% v, h8 H) Y9 a2 Z$ P booktabs.pdf* ^5 X0 |' `& B8 B) L
”: p0 H" W# p/ e+ j4 y2 h& T
- R+ a, z8 p" ~
我按上面的要求把各个文件放在了相应的位置(红字部分没有操作,因为不知道怎么操作),但是运行模版后仍然报错说找不到,怎么办呢?请大家帮忙! |