【问题标题】:Error When Using Manually Installed .sty Package for TeX Live [Arch Linux]为 TeX Live [Arch Linux] 使用手动安装的 .sty 包时出错
【发布时间】:2017-11-12 02:14:02
【问题描述】:

我正在尝试在 Arch Linux 上安装 mathpartir。我从存储库安装了 Tex Live(pdflatex 版本 3.14159265-2.6-1.40.18)。我通过 LaTeX 运行 .ins 文件并生成了一个 .sty 文件。我已将 .sty 文件移动到 /usr/share/texmf-dist/tex/latex/mathpartir 并运行 texhash 和 mktexlsr,但是当我尝试在文件上运行 pdflatex 时

\documentclass{article}
  \begin{document}
    \begin{mathpar}
    \end{mathpar}
  \end{document}

我得到错误:

! LaTeX Error: Environment mathpar undefined.

我也尝试将 .sty 文件放在 /usr/share/texmf-dist/tex/latex/base 中,与我正在运行的 .tex 文件位于同一目录中,并且放在 ~/texmf 中,但没有任何效果.有谁知道如何解决这个问题?

【问题讨论】:

    标签: linux latex tex


    【解决方案1】:

    您需要在示例中包含该包:

    \documentclass{article}
    \usepackage{mathpartir}
      \begin{document}
        \begin{mathpar}
        \end{mathpar}
      \end{document}
    

    【讨论】:

    • 在最初的问题中,我说我同时运行了 texhash 和 mktexlsr。似乎没有任何效果。
    • 我忘了说我修改了你的例子。编辑了答案。
    猜你喜欢
    • 2020-04-03
    • 2018-04-05
    • 2020-05-06
    • 2019-08-27
    • 2016-12-19
    • 2020-03-28
    • 1970-01-01
    • 1970-01-01
    • 2016-12-12
    相关资源
    最近更新 更多