- 在线时间
- 9 小时
- 最后登录
- 2014-2-8
- 注册时间
- 2012-9-9
- 听众数
- 5
- 收听数
- 0
- 能力
- 0 分
- 体力
- 36 点
- 威望
- 0 点
- 阅读权限
- 20
- 积分
- 18
- 相册
- 0
- 日志
- 0
- 记录
- 0
- 帖子
- 15
- 主题
- 1
- 精华
- 0
- 分享
- 0
- 好友
- 3
升级   13.68% TA的每日心情 | 衰 2014-2-5 13:49 |
|---|
签到天数: 6 天 [LV.2]偶尔看看I
- 自我介绍
- 无
 |
本帖最后由 zyzx 于 2014-1-24 09:50 编辑 ! q6 `6 l7 f, C) f; n
) D/ ?( `( M X' C# U" W
在texworks里编译一些模版,总是出现“缺少.sty”文件的报错,比如:2 i: ~5 t' D8 e6 }
“: h" K8 L, h' c7 o# K, a8 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: ”
0 \6 P, g$ e4 u. Y: u
* J# @4 ?' i! `2 b3 E. V! v然后我从ctan上下载了booktabs文件夹,里面有这么几个文件:
7 C3 j9 Z7 H g$ j" ^booktabs.dtx, booktabs.sty, booktabs.pdf, booktabs.ins, copying, readme0 v) {: q, X9 s
其中readme里面有文件列表和安装方法:
* Z: t6 M, f" v( V; D `- W“
: w b8 u" C, N0 z8 L n& Q* {. }- h! dFILES IN DISTRIBUTION* Y' ~0 g/ ^' B7 a
=====================' x9 |; M2 S1 a; S2 t
BASE DISTRIBUTION:
9 t1 w" m1 S8 T README This file., U+ b, H" ?- B P" @# Q
booktabs.ins Package installation file./ d8 g3 q% j) r5 q& e9 Y
booktabs.dtx Package source file.4 w+ s- Q. o% ]1 w* V% V- h$ t
COPYING GPL license file.
5 Z# G* Q- O/ e6 |2 i& Z/ r- N booktabs.sty Package style file. It was produced by executing "latex booktabs.ins".1 t# {1 F! N( D) X
DOCUMENTATION:5 w$ m5 P" r# n, \" A% A
booktabs.pdf User manual for booktabs package. It was produced by executing:( X u* l! [2 y( B. i! u* r+ _
pdflatex booktabs.dtx
# ?- ?4 @6 a9 z: c& u, B% D- Y pdflatex booktabs.dtx
0 x' N# V* |$ V% i makeindex -s gglo.ist -o booktabs.gls booktabs.glo
: v% S' o& a# f+ o3 W7 h) G: R makeindex -s gind.ist -o booktabs.ind booktabs.idx
* [7 v# y4 j8 v& R: ?. }! n pdflatex booktabs.dtx8 c5 `) B, ?) O
pdflatex booktabs.dtx! I6 w1 l' w8 w% _8 i
BASIC INSTALLATION
& e! q, H9 L7 u7 ?$ o====================- n. X! ]; e9 S2 F: @
The minimum requirement to use the package is the to have booktabs.sty in a directory where TeX can find it.
( l: K' v9 r% `0 @ For a basic installation on a TDS compliant system, move the following files to the following directories:
9 y7 |2 E1 s. | x( Y: a <texmf>/tex/latex/booktabs/
3 X3 g0 \; v9 i# ^9 a1 c7 m& O, y5 h& Y booktabs.sty p- f, W' s( ~1 D- I& K
<texmf>/source/latex/booktabs/
* P) j; H) \7 f4 f R$ |3 v booktabs.ins( U6 H) S+ P- K5 t% `
booktabs.dtx( u* }, o$ w' `) Z" B2 ?
COPY
2 ^! t; g. h' i# i6 _' W9 } <texmf>/doc/latex/booktabs/
5 J, g( |- j, b9 q& @* t$ U README) x. N7 j L/ X' L
booktabs.pdf, X5 Q+ }3 q, i1 R+ F, {
”; T# l- y* O! x% I5 h
( v' Z1 H& a1 q l+ F( j
我按上面的要求把各个文件放在了相应的位置(红字部分没有操作,因为不知道怎么操作),但是运行模版后仍然报错说找不到,怎么办呢?请大家帮忙! |
zan
|