-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path0093 - tex.vim.json
More file actions
59 lines (59 loc) · 5.53 KB
/
0093 - tex.vim.json
File metadata and controls
59 lines (59 loc) · 5.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"script_id": "93",
"display_name": "tex.vim",
"summary": "LaTeX macros in Vim (which emulate operator-pending mode operations)",
"name": "tex.vim",
"script_type": "ftplugin",
"description": "This file type plugin intended provides some insert mode macros for the\nLaTeX typesetting language. The nice thing about these mappings is that\nthey emulate the operator pending mode in the insert mode. i.e, the user\ndoes NOT have to type the LHS in a hurry or without making mistakes. This\nfacilitates using the macros greatly.\n\nSee below for the detailed list of macros provided or just browe the file after downloading it.\nIn brief, this file provides stubs for the most commonly used typsetting\ncommands such as figures, matrices etc. As an example, the commonly used\nmatrix element is provided. Typing\n\nmat<tab>\n\nin the insert mode will expand to the following familiar matrix element:\n\n\\left[\n\\begin{array}{_}\n\\end{array}\n\\right]\n\nwith the cursor placed where the underscore is shown (note the underscore is\nnot part of the macro, it just shows the cursor placement)\nNOTE: <tab> is part of the LHS of the mapping. however, the characters need\n NOT be typed in quick succession as in most insert mode commands.\n\nSee the section \"ADDING\" in the file in order to modify/add new mappings.\n\nA quick way to enter greek symbols is also provided. For example, typing\n'\\q<tab>' will expand to \\theta. (NOTE: quotes are not part of the LHS).\nSee the section \"SYMBOLS\" in the file for adding/modifying the way the\ngreek alphabet is mapped into the english alphabet. Again <tab> can be \nconviniently pressed after a long time or after moving around and coming back.\n\na few other shortcuts: \n== expands to &=& (useful while writing eqnarrays) \n$$ expands to $$ but the cursor is repositioned before the last $ (so you dont have to go back) \n_ expands to _{} \n^ expands to ^{} \n\n============================================================================\nLIST OF AVAILABLE MACROS\n============================================================================\n\n1. TABLE: tab<tab>\n\\begin{table}\n\\centering\n\\begin{tabular}{-}\n\n\\end{tabular}\n\\label{tab:}\n\\caption{}\n\\end{table}\n\n2. ARRAY: bar<tab>\n\\left\n\\begin{array}{-}\n\n\\end{array}\n\\right\n\n3. ENUMERATE: ben<tab>\n\\begin{enumerate}\n\\item -\n\\end{enumerate}\n\n4. ITEMIZE:\tbit<tab>\n\\begin{itemize}\n\\item -\n\\end{itemize}\n\n\n5. EQUATION: beq<tab> \n\\begin{equation}\n-\n\\end{equation}\n\n6. EQUATION ARRAY: bqn<tab> \n\\begin{eqnarray}\n-\n\\end{eqnarray}\n\n6. EPS FIGURE: bfg<tab> \n\\begin{figure}[h]\n\\centerline{\\psfig{figure=-.eps}}\n\\caption{}\n\\label{fig:}\n\\end{figure}\n\n7. EMPTY FIGURE: bfe<tab> \n\\begin{figure}\n\\vspace{-}\n\\caption{}\n\\end{figure}\n\n8. TABULAR: btb<tab> \n\\begin{tabular}{-}\n\n\\end{tabular}\n\n9. TABLE: bta<tab> \n\\begin{table}\n\\centering\n\\begin{tabular}{-}\n\n\\end{tabular}\n\\label{tab:}\n\\caption{}\n\\end{table}\n\n10. PICTURE: pic<tab> \n\\begin{picture}(4,4)\n\\put(0.5,0){\\framebox(4,4){-}}\n\\end{picture}\n\n11. MATRIX: mat<tab> \n\\left[\n\\begin{array}{-}\n\\end{array}\n\\right]\n\n12. FRAC: frac<tab> \n\\frac{-}{}\n\n13. DOT: dot<tab> \n\\dot{-}\n\n14. DOUBLE DOT: ddot<tab> \n\\ddot{-}\n",
"install_details": "For Vim-6.0, drop the file in the $VIMRUNTIME\\ftplugin directory, where it will be sourced automatically at startup.\nFor previous versions, source it using the .vimrc file.",
"versions": [
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=418",
"filename": "tex.vim",
"script_version": "1.2",
"date": "2001-12-10",
"vim_version": "6.0",
"author": {
"user_id": "247",
"user_name": "srinath.avadhanula",
"first_name": "Srinath",
"last_name": "Avadhanula",
"email": "srinath@fastmail.fm",
"homepage": "http://robotics.eecs.berkeley.edu/~srinath/index.html"
},
"release_notes": "removed a bug which was causing nested environments to be entered incorrectly. \nadded a few more commands. removed some debugging statements.\nadded a function RunLaTeX() which runs latex on the current file or a master file \nif one exists. see the file for additional details."
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=413",
"filename": "tex.vim",
"script_version": "1.1",
"date": "2001-12-07",
"vim_version": "6.0",
"author": {
"user_id": "247",
"user_name": "srinath.avadhanula",
"first_name": "Srinath",
"last_name": "Avadhanula",
"email": "srinath@fastmail.fm",
"homepage": "http://robotics.eecs.berkeley.edu/~srinath/index.html"
},
"release_notes": "added a wrapper function which makes the insert mode mappings emulate the operator pending mode. i.e, the user does not have to type the LHS fast. Even making mistakes and moving around in the file is allowed before coming back and typing the last character (in this case its chosen to be the tab) expands nicely to the RHS."
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=189",
"filename": "tex.vim",
"script_version": "",
"date": "2001-09-24",
"vim_version": "6.0",
"author": {
"user_id": "247",
"user_name": "srinath.avadhanula",
"first_name": "Srinath",
"last_name": "Avadhanula",
"email": "srinath@fastmail.fm",
"homepage": "http://robotics.eecs.berkeley.edu/~srinath/index.html"
},
"release_notes": "Initial upload"
}
]
}