QQ登录

只需要一步,快速开始

 注册地址  找回密码
查看: 16186|回复: 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 编辑
    8 t. x2 @( F% \* ?6 F+ M2 K' {) i  z2 O5 b; D
    在texworks里编译一些模版,总是出现“缺少.sty”文件的报错,比如:+ }& Z2 X* y. w# f2 Q% X7 t

    7 _3 n5 a6 Q8 `
    ! 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:

    + N0 U9 [& N  c( J0 b# a3 u& o+ g. E, K, H( s) r
    然后我从ctan上下载了booktabs文件夹,里面有这么几个文件:5 [3 Q$ o- W) k9 i5 F! K
    booktabs.dtx, booktabs.sty, booktabs.pdf, booktabs.ins, copying, readme
    # v  K" o1 ?" P" [2 }$ {( `9 k其中readme里面有文件列表和安装方法:/ `; z( r, P5 _

    * z1 M3 I6 o- i0 a! K6 i- H
    FILES IN DISTRIBUTION
    $ |' Y5 z$ ~# m) z& O$ `* F4 n=====================: t& _2 O  ?0 w% a  p) o* `
       BASE DISTRIBUTION:
    / g6 G, L/ i5 U1 W      README        This file.
    * C0 A$ u" d/ U& c2 u      booktabs.ins  Package installation file.
    7 F. }. \" c" k- h! l; X* x& a7 X      booktabs.dtx  Package source file.
    6 ?5 J# ]' ~2 ]) v: o" @      COPYING       GPL license file.
    # l+ b; ^7 _) L4 n5 u      booktabs.sty  Package style file. It was produced by executing "latex booktabs.ins".
    ( u$ A1 h. Q& a! [1 o   DOCUMENTATION:
    6 G2 q' E: ~2 J. [7 v      booktabs.pdf  User manual for booktabs package. It was produced by executing:4 G" c1 E6 J) r6 C
                           pdflatex booktabs.dtx
    " W$ Z( N' ]9 e' C                       pdflatex booktabs.dtx$ r- V8 b! L2 d/ x5 o' ]0 E2 `* ]
                           makeindex -s gglo.ist -o booktabs.gls booktabs.glo
    , v3 n1 Q6 i* C                       makeindex -s gind.ist -o booktabs.ind booktabs.idx
    " c6 f! ]: |) _( g                       pdflatex booktabs.dtx/ k1 W3 \5 b% A& w6 x
                           pdflatex booktabs.dtx) [- e9 `$ m7 t* M6 ?: b
    BASIC INSTALLATION1 |$ ]! R  w6 U6 U5 U
    ====================
    / t* S& x. y& {, Q: G, G; n5 e+ T# d   The minimum requirement to use the package is the to have booktabs.sty in a directory where TeX can find it.
    + R1 I) g9 p% `6 ]7 y5 S& h$ j   For a basic installation on a TDS compliant system, move the following files to the following directories:
    $ [& g3 Y/ p) |. z) k     <texmf>/tex/latex/booktabs/0 ], a6 Z0 w, J" I
            booktabs.sty
      |0 n3 z) V- L' e     <texmf>/source/latex/booktabs/
    ; g: ]; E5 C; w5 W+ ?* Q8 F         booktabs.ins' D2 A2 T1 J9 o" s, X: G2 c
             booktabs.dtx
    % [% `. q' W' i- [2 B# ]3 ?8 ^% N         COPY5 F- N+ H; c( m8 B1 u
         <texmf>/doc/latex/booktabs/  P% l6 [2 P' Z/ t( l
             README8 V: B- t! U1 }) R4 E
             booktabs.pdf; D3 y: M; q0 Z
    6 R! {" Z& f) \1 \8 f

    ( r/ U6 l! V: `6 [- B我按上面的要求把各个文件放在了相应的位置(红字部分没有操作,因为不知道怎么操作),但是运行模版后仍然报错说找不到,怎么办呢?请大家帮忙!
    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-8-5 13:58 , Processed in 2.052671 second(s), 54 queries .

    回顶部