本帖最后由 zyzx 于 2014-1-24 09:50 编辑 / V. [! v& F& k4 Q8 H
0 f/ w2 x! a" w$ _
在texworks里编译一些模版,总是出现“缺少.sty”文件的报错,比如:
5 X) j0 O% x: Y# W d4 i% O( N“2 p1 O2 q5 H2 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: ”- |, _# `$ |7 M% u# J
2 r/ Z6 p( o" U6 |" H7 p
然后我从ctan上下载了booktabs文件夹,里面有这么几个文件:: Z$ R- t! F: V# }
booktabs.dtx, booktabs.sty, booktabs.pdf, booktabs.ins, copying, readme# x5 U# x' ~ U, l
其中readme里面有文件列表和安装方法:- J6 @0 ?9 t. Z0 C+ ?. o* O
“
0 R1 q$ K0 y) ]FILES IN DISTRIBUTION8 q8 L0 `# \# h" W% S
=====================* T3 t- W9 M0 g9 B- U- a
BASE DISTRIBUTION:
! i+ {3 t1 t- l- M# Y* K. ] README This file.
t# _7 x; ]" f+ j4 w( W1 L booktabs.ins Package installation file.3 {: _( D3 m$ s/ ^1 u* b& }
booktabs.dtx Package source file.: c/ i0 ^4 e; N z
COPYING GPL license file.
2 k" I" B; a) ~8 G9 f2 A booktabs.sty Package style file. It was produced by executing "latex booktabs.ins".
5 f4 h8 o( K! r4 i# u DOCUMENTATION:" I# P3 s1 }# x2 W9 [8 t
booktabs.pdf User manual for booktabs package. It was produced by executing:
W1 }( z' _8 i6 C1 }: |5 {! x+ T pdflatex booktabs.dtx
1 [! {& o% N7 t# Z2 c, _ pdflatex booktabs.dtx
. m2 |7 T1 P1 A- @, }5 n makeindex -s gglo.ist -o booktabs.gls booktabs.glo
4 L# z4 D9 U4 o, F O r: L makeindex -s gind.ist -o booktabs.ind booktabs.idx0 u* U c/ q% f/ p3 m: c
pdflatex booktabs.dtx
8 Q. a* \( P9 T# l+ X! b pdflatex booktabs.dtx9 |8 y% G# v# `9 s% y' y
BASIC INSTALLATION) C. f) ]2 G3 O: _) D
====================4 n/ n1 u; R! g& C3 G$ R
The minimum requirement to use the package is the to have booktabs.sty in a directory where TeX can find it.
8 [! [2 N! ]0 w- i" Q% Y For a basic installation on a TDS compliant system, move the following files to the following directories:
8 G% |: p" w/ q4 ~ <texmf>/tex/latex/booktabs/
9 V. X+ B6 p* l9 E/ c booktabs.sty9 h, Y, b* z! h2 ]; C& d. N% T! a
<texmf>/source/latex/booktabs/) g8 M" T* ]; @# b5 y
booktabs.ins. M, ^- ~2 B! g, G+ V* L9 V1 r6 F
booktabs.dtx: W9 ^0 j1 v% `# }7 t& s9 K
COPY/ I5 e9 s: J8 \
<texmf>/doc/latex/booktabs/0 m; f# m; W- G4 U3 C( p( s9 h
README
) w: l( Z1 v0 ]" g1 L# M. V! L' ^ booktabs.pdf! J3 O! ?% C% `4 P s) M
”
0 m' U. G) y7 l; v; s' Q) k! d
! O# \4 s. f# \0 E2 B我按上面的要求把各个文件放在了相应的位置(红字部分没有操作,因为不知道怎么操作),但是运行模版后仍然报错说找不到,怎么办呢?请大家帮忙! |