QQ登录

只需要一步,快速开始

 注册地址  找回密码
查看: 16090|回复: 0
打印 上一主题 下一主题

请问缺少的.sty文件如何安装?

[复制链接]
字体大小: 正常 放大
zyzx        

1

主题

5

听众

18

积分

升级  13.68%

  • TA的每日心情

    2014-2-5 13:49
  • 签到天数: 6 天

    [LV.2]偶尔看看I

    自我介绍
    跳转到指定楼层
    1#
    发表于 2014-1-24 09:37 |只看该作者 |倒序浏览
    |招呼Ta 关注Ta
    本帖最后由 zyzx 于 2014-1-24 09:50 编辑 : \. c9 c1 {/ H) E4 x' D' B7 K' P( H
    * y. P- u2 F* y+ g  `9 r
    在texworks里编译一些模版,总是出现“缺少.sty”文件的报错,比如:
    3 T/ c( S! X$ h/ p7 ~4 l* W9 d& U+ u" s! g( W$ h, {& G4 z3 k
    ! 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 P; P( A2 S. o0 I  c+ q( G" k

    $ s8 \9 U, C4 j7 `7 y然后我从ctan上下载了booktabs文件夹,里面有这么几个文件:: P0 a7 Y" S( u; Z& _
    booktabs.dtx, booktabs.sty, booktabs.pdf, booktabs.ins, copying, readme/ c+ s6 @/ b- Z. C
    其中readme里面有文件列表和安装方法:7 F2 }% o' I5 W  b0 g5 C
    $ [/ u3 u8 K8 n
    FILES IN DISTRIBUTION$ Y: B3 V3 h1 X
    =====================
    7 |2 @) W8 q, X   BASE DISTRIBUTION:
    8 K$ J3 M5 P1 C( u7 a; ~2 k      README        This file.- t0 J0 G, B' r4 h
          booktabs.ins  Package installation file.
    ; W3 }/ ]1 n* z9 B5 B+ e& r      booktabs.dtx  Package source file.9 X. f; g9 [6 e2 s) r
          COPYING       GPL license file.
      T5 N$ Z. L: i      booktabs.sty  Package style file. It was produced by executing "latex booktabs.ins"." H& G, ~/ l0 I% e0 @* r
       DOCUMENTATION:
    , x- n# i( s6 [      booktabs.pdf  User manual for booktabs package. It was produced by executing:8 S# E$ O* w9 V
                           pdflatex booktabs.dtx
    3 o( w2 o# i5 }! D2 g7 {; e( i                       pdflatex booktabs.dtx
    0 u0 g3 D; W9 G: L2 {                       makeindex -s gglo.ist -o booktabs.gls booktabs.glo, [+ s6 ]* b) x- ~  t5 u
                           makeindex -s gind.ist -o booktabs.ind booktabs.idx
    9 F- S& b( ]/ ~: r# x                       pdflatex booktabs.dtx
    . y' L! H( N, X4 e: T0 O% \                       pdflatex booktabs.dtx
    . n2 R) [8 w% d" N% |! ABASIC INSTALLATION
    " b1 _0 O0 }0 s) p  ^====================9 v! w9 K% G$ p; |+ A
       The minimum requirement to use the package is the to have booktabs.sty in a directory where TeX can find it.
    ; U6 {" E& n" g% y5 W   For a basic installation on a TDS compliant system, move the following files to the following directories:
    & n4 p/ Q0 `9 x/ i8 r2 _     <texmf>/tex/latex/booktabs/; i4 J  Q& C: d( @4 J
            booktabs.sty2 V' ]( J3 A" ^; C) z6 [- c- A
         <texmf>/source/latex/booktabs/
    5 o7 f# y4 h- [+ n( `! n) @+ u5 @         booktabs.ins! a& G2 Q5 x5 k+ E% O' |* S7 {
             booktabs.dtx2 ~* @* r/ x4 `. b& s; i, }
             COPY! o9 ]% L9 ?4 `( a! a; G
         <texmf>/doc/latex/booktabs/
    3 R9 k; Q: g) c3 A3 L         README
    # x" G/ e( }  `, G: ~         booktabs.pdf
    % `6 z5 R8 V1 H% s" L7 H1 x
    " V! C; Y# \, n! ^. D4 ^% V
    * l& s- Q: B9 L5 `5 ?* W* M我按上面的要求把各个文件放在了相应的位置(红字部分没有操作,因为不知道怎么操作),但是运行模版后仍然报错说找不到,怎么办呢?请大家帮忙!
    zan
    转播转播0 分享淘帖0 分享分享0 收藏收藏0 支持支持0 反对反对0 微信微信
    您需要登录后才可以回帖 登录 | 注册地址

    qq
    收缩
    • 电话咨询

    • 04714969085
    fastpost

    关于我们| 联系我们| 诚征英才| 对外合作| 产品服务| QQ

    手机版|Archiver| |繁體中文 手机客户端  

    蒙公网安备 15010502000194号

    Powered by Discuz! X2.5   © 2001-2013 数学建模网-数学中国 ( 蒙ICP备14002410号-3 蒙BBS备-0002号 )     论坛法律顾问:王兆丰

    GMT+8, 2026-4-14 20:22 , Processed in 0.432530 second(s), 54 queries .

    回顶部