在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):brennier/quicktex开源软件地址(OpenSource Url):https://github.com/brennier/quicktex开源编程语言(OpenSource Language):Vim Script 100.0%开源软件介绍(OpenSource Introduction):QuickTex is a template expander for quickly writing LaTeXBefore anything else, here's a real-time demonstration of what QuickTex can do: Basically, QuickTex allows you to set keywords which activate arbitrary Vim code whenever they are typed in insert mode. The expansions are filetype specific and are triggered by pressing space. In most respects, you can think of it like a much-improved version of Vim abbreviations. How is QuickTex different from UltiSnips or Vim abbreviations?The main points are simply
Here's a little table that displays some of the main differences:
* Requires adding the entry InstallationI personally use vim-plug, but here's the various install commands for a variety of plugin managers: " vim-plug
Plug 'brennier/quicktex'
" NeoBundle
NeoBundle 'brennier/quicktex'
" Vundle
Plugin 'brennier/quicktex' ConfigurationThe keywords and their expansions are recorded in various dictionaries. Each filetype has its own dictionary, which should be named in the form of let g:quicktex_tex = {
\' ' : "\<ESC>:call search('<+.*+>')\<CR>\"_c/+>/e\<CR>",
\'m' : '\( <+++> \) <++>',
\'prf' : "\\begin{proof}\<CR><+++>\<CR>\\end{proof}",
\}
let g:quicktex_math = {
\' ' : "\<ESC>:call search('<+.*+>')\<CR>\"_c/+>/e\<CR>",
\'fr' : '\mathcal{R} ',
\'eq' : '= ',
\'set' : '\{ <+++> \} <++>',
\'frac' : '\frac{<+++>}{<++>} <++>',
\'one' : '1 ',
\'st' : ': ',
\'in' : '\in ',
\'bn' : '\mathbb{N} ',
\} A few things to note here. If there is a Keywords can be any string without whitespace. Expansions can either be a literal string (using single quotes) or a string with keypress expansions (using double quotes). Keypress expansions are things like For more ideas about what to include your dictionary, please take a look at the default dictionaries in For more information, read the full documentation using |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论