GithubHelp home page GithubHelp logo

pafalium / latexer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from focus/latexer

0.0 1.0 0.0 16.96 MB

Adds LaTex autocompletion to Atom.io

Home Page: https://atom.io/packages/latexer

License: MIT License

CoffeeScript 93.55% JavaScript 6.45%

latexer's 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}
  • 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.

latexer's People

Contributors

briandk avatar focus avatar yudai-nkt avatar diracdeltafunk avatar cuiao avatar quantumentangledandy avatar tthmok avatar yoshum avatar pafalium avatar andrewning avatar basnijholt avatar jpgoldberg avatar harmsk avatar mp4096 avatar 314eter avatar balu- avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.