Coder Social home page Coder Social logo

vim-ycm-latex-semantic-completer's Introduction

vim-ycm-latex-semantic-completer

What is this?

This is a Latex Completer for YouCompleteMe. It completes citations (\cite{}) and references to labels (\ref{}). It is based on an old version of vim-ycm-tex that was using Linux commands to extract labels and bibliography IDs.

How do I use it?

  • YCM completers need to be made available in your YCM directory. There's a subdirectory $HOME/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/completers/tex.
    This completer should be added in the tex directory (create it if it does not exist)

  • The completer will look for a .bib file to determine the main directory of your project. When this is done, it is able to walk through every subdirectory to index labels and bib ids.

BibTeXParser

To enhance the popup completion with part of the title and authors, we use the bibtexparser module from this repository.

This allows YCM to display a popup like this :

turing:1935     On Computable Numbers... (Turing Alan)
knuth:1984      Literate Programming (Knuth Donald E.)

You can install the bibtexparser via easy_install or pip

sudo pip install bibtexparser

If the bibtexparser is not present on the system, the completer will fallback into the bibid only mode displaying only bibids in the completion popup.

Are there limitations?

Of course:

  • Your .tex and .bib files should be in UTF-8.
  • You absolutely need to have a .bib file, because that is how the completer is able to determine the main directory of your .tex project.

vim-ycm-latex-semantic-completer's People

Contributors

cocophotos avatar teto avatar

Watchers

 avatar  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.