zoukankan      html  css  js  c++  java
  • latex一个小问题:LaTex Error: File 'pythonhighlight.sty' not found.

    问题:

    ! LaTex Error: File 'pythonhighlight.sty' not found.
    Type x to quit or<RETURN> to proceed,
    or enter new name.( Default extension: sty)
    Enter file name :

    ! 错误:文件'pythonhighlight.sty“找不到。键入x退出或<RETURN>继续,或输入新名称。(默认扩展名:sty)输入文件名:

     解决方法:

    1、找出所缺少的宏包

    2、获取所缺少的宏包,宏包地址:https://ctan.org/pkg

    3、下载

     5、解压到:E:CTEXinstallCTEXMiKTeX exlatex(路径:软件安装文件夹+CTEXMiKTeX exlatex)

     

     6、pythonhighlight.sty文件

    (1)存在pythonhighlight.sty文件,直接第7步,若是没有pythonhighlight.sty文件,则执行(2)。

     

     (2)若是没有pythonhighlight.sty文件,但是有*****.ins文件,则需要编译。

     从WinEdt的界面下方Console的Windows Command Line进入解压下的文件夹进行编译(如果直接从系统的CMD进入进行编译会有权限问题):例如:latex booktabs.ins,则可以生成.sty文件,再复制到Latex目录。

     7、更新数据库

    复制.sty文件到指定目录后,此时还没有启用该package。

    还需要打开WinEdt,TeX->MiKTeX->MiKTeX Options->General->Refresh FNDB

     

    *****************************************************************************

    若是以上还无法解决问题,使用以下方法:(此方法不好之处就是,你每在一个新文件夹下新建一个***.tex文化,就要拷贝一份python-latex-highlighting-master文件)最终解决! LaTex Error: File 'pythonhighlight.sty' not found.问题。

    python-latex-highlighting-master下载中地址:

    链接:https://pan.baidu.com/s/1y4W8vbdH8I5ui5Uex2A0Lw
    提取码:n9i4

  • 相关阅读:
    luogu P1833 樱花 看成混合背包
    luogu P1077 摆花 基础记数dp
    luogu P1095 守望者的逃离 经典dp
    Even Subset Sum Problem CodeForces
    Maximum White Subtree CodeForces
    Sleeping Schedule CodeForces
    Bombs CodeForces
    病毒侵袭持续中 HDU
    病毒侵袭 HDU
    Educational Codeforces Round 35 (Rated for Div. 2)
  • 原文地址:https://www.cnblogs.com/wyqzh/p/14683344.html
Copyright © 2011-2022 走看看