{"id":429,"date":"2017-12-11T15:20:16","date_gmt":"2017-12-11T06:20:16","guid":{"rendered":"https:\/\/www8281uo.sakura.ne.jp\/blog\/?p=429"},"modified":"2017-12-11T15:20:16","modified_gmt":"2017-12-11T06:20:16","slug":"vimtex-%e3%81%ae%e8%a3%9c%e5%ae%8c%e3%82%92%e4%bd%bf%e3%81%86","status":"publish","type":"post","link":"https:\/\/www8281uo.sakura.ne.jp\/blog\/?p=429","title":{"rendered":"vimtex \u306e\u88dc\u5b8c\u3092\u4f7f\u3046"},"content":{"rendered":"<p>Vim \u3067 TeX \u6587\u66f8\u66f8\u3044\u3066\u307e\u3059\u304b\u3002\u4eca\u6642 Vim \u3067 TeX \u6587\u66f8\u3092\u66f8\u3044\u3066\u3044\u308b\u4eba\u306f\u3001<a href=\"https:\/\/github.com\/lervag\/vimtex\">vimtex<\/a>\u00a0\u3092\u4f7f\u3063\u3066\u3044\u308b\u4eba\u306f\u591a\u3044\u3067\u3057\u3087\u3046\u3002\u30b3\u30f3\u30d1\u30a4\u30eb\u306a\u3069\u3060\u3051\u3067\u306f\u306a\u304f\u3001\u88dc\u5b8c\u3082\u4f7f\u3044\u3053\u306a\u3057\u3066\u307e\u3059\u304b\u3002vimtex \u306e\u5f37\u529b\u306a TeX \u88dc\u5b8c\u6a5f\u80fd\u3092\u4fbf\u5229\u306b\u4f7f\u3046\u65b9\u6cd5\u3092\u7d39\u4ecb\u3002<!--more--><\/p>\n<pre>Complete citations\n                                                        vimtex-complete-cites\n\nCitation completion is triggered by '\\cite{' commands.  The completion parses\nincluded bibliography files (*.bib) and thebibliography environments to\ngather the completion candidates.\n\nAs an example, assume that a bibliography file is included with the following\nentry:\n\n        @book { knuth1981,\n                author = \"Donald E. Knuth\",\n                title = \"Seminumerical Algorithms\",\n                publisher = \"Addison-Wesley\",\n                year = \"1981\" }\n\nThen the bibliography key knuth1981 will be completed with e.g.:\n\n        \\cite{Knuth 1981\n        \\cite{algo\n        \\cite{Don.*Knuth\n\nIn particular, note that regular expressions (or vim patterns) can be used\nafter '\\cite{' to search for candidates.<\/pre>\n<p>vimtex \u306e\u88dc\u5b8c\u306f\u3001i_CTRL-X_CTRL-O \u3067\u3059\u3002\u3064\u307e\u308a\u3001\u633f\u5165\u30e2\u30fc\u30c9\u3067 C-x, C-o \u3063\u3066\u3053\u3068\u3067\u3059\u306d\u3002\u3053\u308c\u306f\u3001Vim7 \u304b\u3089\u306e omni-completion \u3063\u3066\u6a5f\u80fd\u3092\u4f7f\u3063\u3066\u5b9f\u88c5\u3055\u308c\u3066\u3044\u3066\u3001cite \u3084\u3001ref \u3092\u5165\u529b\u3059\u308b\u3068\u304d\u306b\u4fbf\u5229\u306a\u3084\u3064\u3002<\/p>\n<p>\u3093\u3067\u3001\u88dc\u5b8c\u3092\u81ea\u52d5\u5316\u3057\u305f\u3044\uff08\u3064\u307e\u308a\u52dd\u624b\u306b\u88dc\u5b8c\u5019\u88dc\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u3059\u308b\uff09\u5834\u5408\u306f\u3001neocomplete, deoplete,\u00a0nvim-completion-manager, youcompleteme \u3084 VimCompletesMe \u3068\u306e\u9023\u643a\u65b9\u6cd5\u304c\u30d8\u30eb\u30d7\u306b\u66f8\u3044\u3066\u3042\u308b\u3002<\/p>\n<pre>Autocomplete\n                                                         vimtex-complete-auto\n\nVim does not provide automatic completion by itself, but there exist at least\nfour good plugins that provide this: neocomplete, deoplete,\nnvim-completion-manager and youcompleteme.  Moreover, there is\nVimCompletesMe that overrides to trigger different built-in\ncompletions, such as the omni-completion by vimtex, depending on the context.\nSee below for descriptions on how to setup these with vimtex.<\/pre>\n<p>\u81ea\u5206\u306e\u5834\u5408\u306f\u3001<a href=\"https:\/\/github.com\/Shougo\/neocomplete.vim\">neocomplete<\/a> \u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u3001<\/p>\n<pre>neocomplete\n                                                  vimtex-complete-neocomplete\nneocomplete is my preferred choice for an automatic completion engine in vim.\nThe plugin is available here: https:\/\/github.com\/Shougo\/neocomplete.vim.\n\nThe following options may be used to enable automatic completion for LaTeX\ndocuments with neocomplete and vimtexs omni completion function:\n\n  if !exists('g:neocomplete#sources#omni#input_patterns')\n    let g:neocomplete#sources#omni#input_patterns = {}\n  endif\n  let g:neocomplete#sources#omni#input_patterns.tex =\n        \\ g:vimtex#re#neocomplete<\/pre>\n<p>\u5f8c\u534a\u306e if \u304b\u3089\u306e\u90e8\u5206\u3092\u3001.vimrc \u306b\u66f8\u3044\u3066\u304a\u3051\u3070\u3001\u88dc\u5b8c\u304c\u81ea\u52d5\u5316\u3055\u308c\u307e\u3059\u3002\u88dc\u5b8c\u306e\u4ed5\u65b9\u3092\u77e5\u3063\u3066\u308b\u306e\u3068\u77e5\u3089\u306a\u3044\u306e\u3068\u3067\u306f\u751f\u7523\u6027\u7d50\u69cb\u5909\u308f\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001vimtex \u306e\u5834\u5408\u306f\u3001\u88dc\u5b8c\u304c\u767a\u52d5\u3059\u308b\u6587\u5b57\u5217\u306f\u30d7\u30e9\u30b0\u30a4\u30f3\u5185\u306b\u30cf\u30fc\u30c9\u30b3\u30fc\u30c9\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\\Cite \u3060\u3063\u305f\u308a\u3001\\reffig \u307f\u305f\u3044\u306a\u3001\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u305f\u30b3\u30de\u30f3\u30c9\u3092\u88dc\u5b8c\u306e\u30ad\u30fc\u30ef\u30fc\u30c9\u306b\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u6307\u5b9a\u3068\u304b\u306f\u3067\u304d\u306a\u304f\u3066\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u63db\u3048\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002\u306a\u306e\u3067\u3001\u73fe\u72b6\u306f\u300c\\ref \u3067\u88dc\u5b8c\u3057\u3066\u5165\u529b\u2192\u30b3\u30de\u30f3\u30c9\u3092 \\reffig \u306b\u66f8\u304d\u76f4\u3059\u300d\u307f\u305f\u3044\u306b\u3057\u3066\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Vim \u3067 TeX \u6587\u66f8\u66f8\u3044\u3066\u307e\u3059\u304b\u3002\u4eca\u6642 Vim \u3067 TeX \u6587\u66f8\u3092\u66f8\u3044\u3066\u3044\u308b\u4eba\u306f\u3001vimtex\u00a0\u3092\u4f7f\u3063\u3066\u3044\u308b\u4eba\u306f\u591a\u3044\u3067\u3057\u3087\u3046\u3002\u30b3\u30f3\u30d1\u30a4\u30eb\u306a\u3069\u3060\u3051\u3067\u306f\u306a\u304f\u3001\u88dc\u5b8c\u3082\u4f7f\u3044\u3053\u306a\u3057\u3066\u307e\u3059\u304b\u3002vimtex \u306e\u5f37\u529b\u306a TeX \u88dc\u5b8c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[7],"tags":[],"class_list":["post-429","post","type-post","status-publish","format-standard","hentry","category-vim"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www8281uo.sakura.ne.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/429","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www8281uo.sakura.ne.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www8281uo.sakura.ne.jp\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www8281uo.sakura.ne.jp\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www8281uo.sakura.ne.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=429"}],"version-history":[{"count":0,"href":"https:\/\/www8281uo.sakura.ne.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/429\/revisions"}],"wp:attachment":[{"href":"https:\/\/www8281uo.sakura.ne.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www8281uo.sakura.ne.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=429"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www8281uo.sakura.ne.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}