atom-latex

Compile LaTeX or knitr documents from within Atom
授权协议 MIT License
开发语言
所属分类 企业应用、 LaTeX排版系统
软件类型 开源软件
地区 不详
投 递 者 经福
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

LaTeX package

Compile LaTeX, knitr, literate Agda, literate Haskell, or Pweavedocuments from within Atom.

Installing

Use the Atom package manager and search for "latex", or run apm install latexfrom the command line.

Prerequisites

TeX distribution

A reasonably up-to-date and working TeX distribution is required. The onlyofficially supported distributions are TeX Live, and MiKTeX. Although,the latter is not as well tested and supported as TeX Live, hence using TeX Liveis highly recommended.

You need to ensure that the package can find your TeX distribution's binaries;by default the package uses your PATH environment variable, as well as thefollowing search paths on Linux and macOS

  1. /usr/texbin
  2. /Library/TeX/texbin

and on Windows it uses

  1. %SystemDrive%\texlive\2017\bin\win32
  2. %SystemDrive%\texlive\2016\bin\win32
  3. %SystemDrive%\texlive\2015\bin\win32
  4. %ProgramFiles%\MiKTeX 2.9\miktex\bin\x64
  5. %ProgramFiles(x86)%\MiKTeX 2.9\miktex\bin

If your TeX distribution's binaries are not installed in one of those locationsor discoverable via the PATH environment variable, you will need to help thepackage find the binaries. This can be done by setting the TeX Pathconfiguration option to point to the folder containing the binaries, either inthe settings view, or directly in your config.cson file. See Configurationfor further details regarding the settings of this package.

Syntax Highlighting

In order for this package to behave as expected, your Atom environment mustcontain a package that provides a LaTeX grammar. We suggest language-latex,but other valid options might exist. Additional syntax packages may be requiredto build document types other than LaTeX. For more details seeBuilder Capabilities below.

Builder Selection

The latex package provides access to two automatic builders for LaTeX andknitr documents. By default the package will use latexmk for LaTeX documentsand an included builder to prepare knitr documents for latexmk. In this casean up to date installation of latexmk is required. If you're using TeX Livethen you need only insure that latexmk is installed and up to date using theappropriate package manager. If you're using MikTeX then see how to uselatexmk with MiKTeX.

The JavaScript based DiCy builder may also be used for all documents byselecting the Use DiCy option in the settings page. DiCy will be installedautomatically and so no further action is required for either TeX Live orMiKTeX.

Builder Capabilities

Document types other than LaTeX documents may be processed by this package. Theavailability and behavior of this feature depends upon the specific builderselected. The following table details the different types of documents that maybe processed by each builder and any additional syntax package requirements.

Document Type latexmk based Builder DiCy Builder Required Language Packages
LaTeX Yes Yes language-latex
knitr Yes Yes language-r and language-knitr
literate Agda No preprocessing Yes language-agda
literate Haskell No preprocessing Yes language-haskell
Pweave No Yes language-weave

Usage

The latex:build command can be invoked from the LaTex menu or by pressing thedefault keybind ctrl-alt-b while in a LaTex orknitr file. Log messages and any other messages from the build may be seen inthe LaTeX log panel accessible from the status bar.

The latex package supports other commands as detailed in the table below.

Command Keybinding Use
latex:build ctrl-alt-b Build LaTeX/knitr file and open result.
latex:rebuild None Force a rebuild of LaTeX/knitr file.
latex:clean ctrl-alt-c Cleanup files after a build.
latex:kill None Terminate currently running build. Also available from status indicator.
latex:sync ctrl-alt-s Use SyncTeX forward if possible from the current cursor position.
latex:sync-log None Display and highlight log messages from the current cursor position.
latex:check-runtime None Check for the existence of latexmk, Rscript and PDF/PS/DVI viewers.

Overriding Build Settings

Many of the build settings in the settings page of the latex package can beoverridden on a per file basis. One way to override specific build settings isto use "magic" TeX comments in the form of % !TEX <name> = <value>. Anotherway is to use a YAML formatted file with the same name as your root LaTeXfile, but with an extension of .yaml. The settings and values that canoverridden via either method are listed in the table below. If multiple settingnames are listed then the first is preferred and following names are availablefor compatibility. More details can found at Overridding Build Settings.

Name Value Use
cleanPatterns comma separated patterns, e.g. **/*.blg, foo Specify patterns to use for latex:clean
enableSynctex yes, no, true or false Override SyncTeX setting
enableExtendedBuildMode yes, no, true or false Override extended build mode setting
enableShellEscape yes, no, true or false Override shell escape setting
engine or program pdflatex, lualatex, etc. Override the LaTeX engine to use for build.
moveResultToSourceDirectory yes, no, true or false Override move result to source directory setting
outputFormat or format dvi, ps or pdf Override the output format
jobNames, jobnames or jobname comma separated names, e.g. foo, bar Control the number and names of build jobs. Only a single name can be used for jobname.
outputDirectory or output_directory directory path, e.g. build Specify the output directory that should be used.
producer dvipdf, dvipdfmx, xdvipdfmx or ps2pdf Override the PDF producer
openResultAfterBuild yes, no, true or false Override open result after build (not available for DiCy)
root file path, e.g. ../file.tex Specify the root file that should be built. Only available via "magic" TeX comments.

There are additional settings that may be configured for the DiCy builder thatmay not be accessible from this package's setting page, but can be set via aYAML options file or TeX magic comments. For more details please seeOptions and Configuration in the DiCydocumentation.

PDF/DVI/PS Viewers

The latex package currently supports Atril, Evince, Okular,pdf-view, Preview, Skim, Sumatra PDF, Windows shell open,xdg-open, Xreader and Zathura as PDF/DVI/PS viewers. This includessupport for cursor synchronization via SyncTeX if possible. Specific features ofeach of the viewers is detailed at Supported Viewers.

Development status

Please note that this package is in a beta state. It is stable, but lackssome important features.

Any and all help is greatly appreciated!

NOTE: latexmk does not support file paths containing special characters such as ~. To partially circumvent this, add useRelativePaths: true to your config file like so

# config.cson
"*":
  latex:
    useRelativePaths: true

When set, this package will use a relative path in place of an absolute one. This will allow latexmk to compile projects stored in directories that contain special characters. Note that the project itself must not contain special characters in its directory or file names.

This feature has not been fully tested yet, and there are no guarantees it will work in all cases. Please raise an issue if you find a case where it fails.

  • 首先需要从texlive官网(http://tug.org/texlive/acquire-netinstall.html)下载install-tl-windows.exe并安装。这个是在线安装,国内网速可能较慢,可以从其他镜像源下载ISO版本的(例如清华的镜像https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/Images/) 将t

 相关资料
  • Atom 编辑器开源,跨平台,在我的课程里用的就是这款编辑器。 https://atom.io/ 安装 在 Atom 的官方网站,你可以下载跟自己用的操作系统对应的 Atom 。也可以使用系统包管理工具去安装 Atom 。 Windows 用 chocolatery 安装 Atom: choco install atom macOS 用 Homebrew 安装 Atom: brew instal

  • 使用Twitter的 Snowflake算法,有兴趣可以了解一下这个算法: https://github.com/twitter/snowflake   php.ini的配置项: [ukey]ukey.datacenter = integerukey.worker = integerukey.twepoch = uint64 datacenter配置项是一个整数, 用于设置数据中心; worker

  • This module provides a class called werkzeug.contrib.atom.AtomFeed" title="werkzeug.contrib.atom.AtomFeed which can be used to generate feeds in the Atom syndication format (see RFC 4287). Example: de

  • 基于VueJS的移动端组件库 环境支持 iOS 8+ Android 4.4.3+ 特性 CSS绘制内置图标 插槽形式得组件设计 简单、灵活、高效的组件 支持babel-plugin-import按需引入 安装 npm install atom-design --saveyarn add atom-design 使用 import Vue from 'vue'import atomD from '

  • Atom Shell 现已改名为 Electron atom-shell 是 GitHub 随 Atom 一起开源的跨操作系统(Windows,Linux,MacOS X)的利用 Web 技术(Node.js、JavaScript、HTML 5)开发桌面应用的框架。Atom即构建在 atom-shell 之上。 与 Node-Webkit 的区别 atom-shell 和Node-Webkit很像

  • Atom 是 GitHub 专门为程序员推出的一个跨平台文本编辑器。具有简洁和直观的图形用户界面,并有很多有趣的特点:支持 CSS,HTML,JavaScript 等网页编程语言。它支持宏,自动完成分屏功能,集成了文件管理器。

  • narrow narrow something. Code navigation tool inspired by unite.vim, emacs-helm. More information on wiki What's this? Provide narrowing UI like emacs-helm and unite/denite.vim. Not aiming to become "