GitHub - TheBB/company-reftex: RefTeX backends for company-mode
source link: https://github.com/TheBB/company-reftex
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
company-reftex
This package provides two backends for Company for completing label references and citations in LaTeX. It is based on RefTeX, which is included with Emacs.
To use, add the backends to company-backends
in the buffers where you want them activated. Make
sure that reftex-mode
is enabled also.
These backends should work well together with other LaTeX company backends, for example:
- company-auctex (note that
company-reftex
should be considerably more powerful thancompany-auctex
's backends for labels and citations, howevercompany-auctex
has other backends that may be of interest). - company-math
company-reftex-labels
This backend completes labels, and activates in \ref{}
, \eqref{}
and \autoref{}
. By default,
the completions are annotated with their contents, to help find the right one. This can be disabled
by customizing company-reftex-annotate-labels
. The maximal annotation length can be modified with
company-reftex-max-annotation-length
.
company-reftex-citations
This backend completes citations, and activates in cite{}
. RefTeX, and by extension this package,
will find citations in a \begin{thebibliography}
environment, as well as citations in external
BibTeX files. By default, the completions are annotated with the title of the cited publication, to
help you find the right one. This can be disabled by customizing
company-reftex-annotate-citations
. The maximal annotation length can be modified with
company-reftex-max-annotation-length
.
Note that RefTeX searches for bibliography entries in names, titles, journals and all sorts of places. This backend leverages this feature. In effect, the matching becomes very, very fuzzy indeed.
When working with multi-file documents, ensure that the variable TeX-master
is appropriately set
in all files, so that RefTeX can find citations across documents.
Recommend
-
135
framework - ⚡️ Framework to develop & deploy serverless GraphQL backends
-
98
-
27
README.md
-
30
README.md loginsrv loginsrv is a standalone minimalistic login server providing a JWT login for multiple login backends.
-
18
It's not common for a rewrite to be something that...
-
32
(This article was first published on R – rud.is , and kindly contribut...
-
30
Towards Distributed Artificial Intelligence...
-
32
加入极市 专业CV交流群,与 6000+来自腾讯,华为,百度,北大,清华,中科院 等名企名校视觉开发者互动交流!更有机会与 李开复老师 等大牛群内...
-
39
README.md Node.js API Starter Kit
-
8
Go DB Ledger GoDBLedger is an open source accounting system that aims to make the recording of double entry bookkeeping transactions programmable. It provide users with normal features that most finance systems tend to lack such as a...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK