本帖最后由 zyzx 于 2014-1-24 09:50 编辑
: M$ Z* U w$ l1 m
; S. b/ f4 l, E; J# H/ b在texworks里编译一些模版,总是出现“缺少.sty”文件的报错,比如: S) Z% i% Y7 l3 p
“
* M8 g" G, p8 A4 E, p6 L0 N! }) n! 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: ”& \8 _1 ?) J0 L) X/ T; P
% O4 G6 F$ y- X
然后我从ctan上下载了booktabs文件夹,里面有这么几个文件:0 E4 D& }1 s) {5 |4 w( @- c- V
booktabs.dtx, booktabs.sty, booktabs.pdf, booktabs.ins, copying, readme. r7 {3 _/ L9 E$ Z: ?
其中readme里面有文件列表和安装方法:
; X# ]- Y# P7 r4 O( p, }“
) u& z( M) O! D9 x7 ^; gFILES IN DISTRIBUTION
3 L/ x) h) H1 x* E/ {2 s! V' Z=====================2 H7 q$ t& H8 D A$ Z
BASE DISTRIBUTION:
6 P( k* d: j/ D" f d3 ] README This file.3 b3 u6 x9 Q2 J5 c/ z
booktabs.ins Package installation file.6 b9 C& G/ w) }. ]0 D7 E6 C
booktabs.dtx Package source file.
! P) W* c7 X% R9 P# ]' W% [8 c1 m COPYING GPL license file.8 g& p* N4 b: }
booktabs.sty Package style file. It was produced by executing "latex booktabs.ins".
! p+ p) O9 a% e2 z9 J DOCUMENTATION:3 j" ]$ E5 V* u+ O2 W
booktabs.pdf User manual for booktabs package. It was produced by executing:
( D: N: z5 D: s% n pdflatex booktabs.dtx
. d- u8 t, X) n7 w$ G' H$ x! [" ] pdflatex booktabs.dtx
( m" i/ w2 m" M! J makeindex -s gglo.ist -o booktabs.gls booktabs.glo
# r: Z- w+ V7 E makeindex -s gind.ist -o booktabs.ind booktabs.idx) `% ?7 \, d8 V' B$ R( U# r4 L
pdflatex booktabs.dtx7 I$ ~7 L. r) D" p, H
pdflatex booktabs.dtx
: T- ]# @& H" K4 y0 N8 BBASIC INSTALLATION, x$ y# [: l6 a% d h' z1 L
====================9 [' i# X/ g/ `
The minimum requirement to use the package is the to have booktabs.sty in a directory where TeX can find it./ Z( S1 j0 s) `' j: m9 y( {
For a basic installation on a TDS compliant system, move the following files to the following directories:
1 M# t- w& i8 {5 _, ~0 n2 t <texmf>/tex/latex/booktabs/8 k! m: t3 M1 o0 }
booktabs.sty
# O$ S9 s! S" ~4 H1 L! p: _ <texmf>/source/latex/booktabs/
% E% J. I: C# I) Z booktabs.ins
7 W* t( X0 j6 } d' \5 h booktabs.dtx
8 Q) U& [, T2 ` m& H+ t COPY! h- ~- Q$ y& A+ @' m
<texmf>/doc/latex/booktabs/$ W) I- B) H* ^1 f# I: \) F
README& A6 F/ w1 G/ D+ Z- g
booktabs.pdf* o% e* w, ?% {
”& `( R5 L% Z$ J) X6 ?
8 Y( m# |7 E8 L" u' N我按上面的要求把各个文件放在了相应的位置(红字部分没有操作,因为不知道怎么操作),但是运行模版后仍然报错说找不到,怎么办呢?请大家帮忙! |