• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

tom-tan/auctex-latexmk: This library adds LatexMk support to AUCTeX.

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

tom-tan/auctex-latexmk

开源软件地址(OpenSource Url):

https://github.com/tom-tan/auctex-latexmk

开源编程语言(OpenSource Language):

Emacs Lisp 100.0%

开源软件介绍(OpenSource Introduction):

auctex-latexmk.el

MELPA Stable MELPA

This library adds LatexMk support to AUCTeX.

Requirements:

  • AUCTeX
  • LatexMk
  • TeXLive (2011 or later if you write TeX source in Japanese)

You can install it by using package-install via MELPA.

To use this package, add the following line to your .emacs file:

    (require 'auctex-latexmk)
    (auctex-latexmk-setup)

After that, by using M-x TeX-command-master (or C-c C-c), you can use LatexMk command to compile TeX source.

LatexMk will inherit many AUCTeX settings, including:

  • Run with -interaction-nonestopmode if TeX-interactive-mode minor mode is active
  • Run with -synctex if TeX-source-correlate-mode is active

If you would like LatexMk to pass the -pdf flag when TeX-PDF-mode is active add

    (setq auctex-latexmk-inherit-TeX-PDF-mode t)

to your .emacs file.

Additional configuration of latexmk is possible by creating a ~/.latexmkrc file. For example, to always compile to pdf add the following line to your .latexmkrc file:

    # .latexmkrc starts
    $pdf_mode = 1;
    # .latexmkrc ends

Additional documention describing all the available options is available on CTAN.

For MikTex users

Due to the bug in MikTex, you will see the following message if TeX-file-line-error is not nil.

Latexmk: Could not find file [%(file-line-error)].
-- Use the -f option to force complete processing.

As a workaround, add (setq TeX-file-line-error nil) to your .emacs file.

For Japanese users

LatexMk command automatically stores the encoding of a source file and passes it to latexmk via an environment variable named LATEXENC. Here is the example of .latexmkrc to use LATEXENC:

    # .latexmkrc starts
    $kanji    = "-kanji=$ENV{\"LATEXENC\"}" if defined $ENV{"LATEXENC"};
    $latex    = "platex $kanji";
    $bibtex   = "pbibtex $kanji";
    $dvipdf   = 'dvipdfmx -o %D %S';
    $pdf_mode = 3;
    # .latexmkrc ends



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap