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

Focus/latexer: Adds LaTex autocompletion to Atom.io

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

开源软件名称(OpenSource Name):

Focus/latexer

开源软件地址(OpenSource Url):

https://github.com/Focus/latexer

开源编程语言(OpenSource Language):

CoffeeScript 93.6%

开源软件介绍(OpenSource Introduction):

latexer

Latexer is a package to help you with your every day LaTeX needs. It does reference, citation and environment autocompletion on the fly or at the touch of a keystroke.

Build Status

Features

Reference autocompletion

Autocompletion of references Triggers:

  • Typing in \ref{, \eqref{ or any control sequences that ends in ref{
  • Deleting anything so that the left of the cursor reads \ref{, \eqref{, and the like. E.g. deleting the word 'something' from \pageref{something}

Bibliography and citation autocompletion

Latexer finds your bibfiles

Latexer will automatically scan your document to find your bibfiles. For example, if your document contains the command \bibliography{mybib1.bib, mybib2}, latexer will find and then scan through the files named mybib1.bib and mymbib2.bib to get the citations. Additionally, Latexer will look for BibTeX files given in the current file of the form \addbibresource and \addglobalbib.

You can also specify bibfiles using a YAML metadata block at the top of your document. If you choose to write in Markdown on RMarkdown, Latexer will automatically look for the bibliography key in your YAML and scan any files specified for citations.

Latexer can autocomplete your LaTeX citations

Autocompletion of bibliography

LaTeX Triggers
  • Typing in \cite{, \textcite{, \citet{, \citet*{, \citep{ or \citep*{. You can also write something in square brackets before, e.g. \cite[Theorem 1]{.
  • Deleting anything so that the left of the cursor reads \cite{, \textcite{, \citet{, \citet*{, \citep{ or \citep*{, e.g. deleting the word 'something' from \cite{something}
Pandoc-style Citation Triggers
  • Typing [@ or [-@ to begin a pandoc-style citation
  • Typing @ or -@ after semicolon-delimited references in a pandoc-style citation, for example: [@ref1; @ and [@ref3; also see @ref4; @

You can edit from the preferences window which parameters you would like to search the bibliographies by. The default is title,author, but you can specify whichever search fields you like. For example, key,year will search for an entry entries by its key, i.e. @key{...} and the year it was published.

Environment autocompletion

Autocompletion of environments Triggers:

  • Having an unmatched \begin{env_name} or \[ in the line above.

Multifile support

For multifile support, from the child files use %!TEX root = mainfile.tex to point to the root file.

Options

You can switch off any of the autocompletions in the settings menu. If you prefer a manual approach you can bind keys as follows. First go to Atom>Open Your Keymap and then paste the following, choosing whatever key binding you find convenient:

'atom-text-editor':
  'cmd-alt-o': 'latexer:omnicomplete'
  'cmd-alt-r': 'latexer:insert-reference'
  'cmd-alt-c': 'latexer:insert-citation'

LaTeX on Atom

This package only provides autocompletion. If you want the full LaTeX experience then I would recommend getting the language-latex package for syntax highlighting, and the latex or the latex-plus package for compiling LaTeX documents. You can also view pdf documents from within Atom by installing the pdf-view package.




鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
matthieu-vergne/LaTeX: Custom resources for LaTeX and related.发布时间:2022-07-09
下一篇:
Kotlin/kotlin-spec: Kotlin Language Specification:发布时间:2022-07-07
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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