From 392ba488b4b94841d3f94590e21b3fd29f54a8c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Tue, 11 Oct 2016 23:10:00 +0200 Subject: [PATCH] Cf. #564: Added FAQ entry to docs --- doc/vimtex.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/doc/vimtex.txt b/doc/vimtex.txt index 4ca5ca4..ffb24c7 100644 --- a/doc/vimtex.txt +++ b/doc/vimtex.txt @@ -2070,6 +2070,22 @@ A: This is not a feature provided by |vimtex| itself, but vim has very good [1]: https://github.com/lervag/vimtex/issues/348 [2]: https://github.com/ludovicchabant/vim-gutentags + *vimtex-faq-tags-bibtex* +Q: How can I jump from a `\cite{key}` to the corresponding bibtex entry? +A: This is not a feature provided by |vimtex| itself. Similar to + |vimtex-faq-tags|, the feature is available through |tags-and-searches|. + The following `~/.ctags` configuration will be useful: > + + --langdef=bibtex + --langmap=bibtex:.bib + --regex-bibtex=/@string\{([^ "#%')(,=}{]+)/\1/s,BibTeX-Strings/i + --regex-bibtex=/@(article|book|booklet|inbook|incollection|inproceedings|manual|masterthesis|misc|phdthesis|proceedings|techreport|unpublished)\{([^,]+),/\2/e,BibTeX-Entries/i + --regex-bibtex=/[[:space:]]*author[[:space:]]*=[[:space:]]*("([^"]+)"|\{([^\}]+)\})[[:space:]]*,?[[:space:]]*$/\2\3/a,BibTeX-Authors/i + +< See [0] for references. + + [0]: https://github.com/lervag/vimtex/issues/564 + ============================================================================== Troubleshooting *vimtex-troubleshooting*