本帖最后由 zyzx 于 2014-1-24 09:50 编辑
( Q' v) {+ q# U8 h; V0 R: s
; y2 h' ]6 y; ]' }9 b9 z5 D/ w6 s在texworks里编译一些模版,总是出现“缺少.sty”文件的报错,比如:1 m5 s1 b" Q) a6 |5 I8 J$ j! ~
“
$ g: m+ Q/ e6 { s, Z$ J6 I6 i% b! 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: ”# K0 X* g) w# t0 @* ~8 c
6 S9 I; C' y- x- B5 U4 N然后我从ctan上下载了booktabs文件夹,里面有这么几个文件:
. V) e$ `8 [8 L7 |# Obooktabs.dtx, booktabs.sty, booktabs.pdf, booktabs.ins, copying, readme X1 k! a+ j6 U2 u/ k2 e& N
其中readme里面有文件列表和安装方法:
" m& s6 I) J2 P; ]“
8 _1 f. O- |& F$ p& d3 E* sFILES IN DISTRIBUTION
) K+ i& T; M0 G. S0 r+ N' @. p=====================2 F( Z/ H5 h$ \ w# M9 W9 j
BASE DISTRIBUTION:
8 w0 `! e; \. A README This file.: w* H& M+ z' \0 Q) m0 P8 }' @
booktabs.ins Package installation file.
8 G. z" C% v9 X) U! h }# F booktabs.dtx Package source file.8 K. Z& Z; r7 N2 l9 x4 m, M
COPYING GPL license file.
, W; k0 p/ x: s( Y booktabs.sty Package style file. It was produced by executing "latex booktabs.ins".
# h* V/ T: ?) |/ K. w) K' r% u( w DOCUMENTATION:
' D6 d/ W! i# j* Q2 h booktabs.pdf User manual for booktabs package. It was produced by executing:1 S. ]7 b; P N! k
pdflatex booktabs.dtx. |1 ~$ ]/ R& N ~
pdflatex booktabs.dtx
0 g7 Q: D# }- ^0 a9 N: s; ]6 g makeindex -s gglo.ist -o booktabs.gls booktabs.glo
8 V+ j) {+ {, G, r7 y4 i; F makeindex -s gind.ist -o booktabs.ind booktabs.idx
$ @: l. M. w1 m1 n6 L( [" J pdflatex booktabs.dtx
/ J+ W4 W% K L2 O: v pdflatex booktabs.dtx9 c( q# \5 u) P, N7 r
BASIC INSTALLATION
: w: F x/ @' i7 e9 c====================
4 G2 f6 d& }0 _* ?4 `- @. {# i/ @ The minimum requirement to use the package is the to have booktabs.sty in a directory where TeX can find it.
0 y: t. ^0 r- D* F0 k% Y% W For a basic installation on a TDS compliant system, move the following files to the following directories:
" J% k" {) [5 c* q( N <texmf>/tex/latex/booktabs/
1 f! |& ~( w. T$ F& E8 M C booktabs.sty( c& m2 U* J+ A
<texmf>/source/latex/booktabs/
' Z, D5 e: K$ M/ T' \ booktabs.ins9 ]/ ?- \8 ^; ?# M) X( Q" Y
booktabs.dtx
o0 t7 k# R. a T0 ~ COPY
9 W( A- O3 `+ G& n% I <texmf>/doc/latex/booktabs/6 U2 q, v' }8 Z3 S9 @
README3 J4 y( `. d5 u* @7 Q
booktabs.pdf
% R* ?- q) ? _1 \”
! I3 R5 U1 S) p }4 E1 [3 Y" {: X6 ]6 c$ c
我按上面的要求把各个文件放在了相应的位置(红字部分没有操作,因为不知道怎么操作),但是运行模版后仍然报错说找不到,怎么办呢?请大家帮忙! |