aboutsummaryrefslogtreecommitdiff
path: root/dot_vim/ftplugin/latex-suite/templates
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@rak.ac>2021-12-14 11:42:41 -0500
committerRyan Kavanagh <rak@rak.ac>2021-12-14 11:42:41 -0500
commitfd2001cd614dfa0d55ec820b7c358a1795d3ea27 (patch)
tree932b5f91ad3c70f9cfa4455a0ccfb27a7b259bf1 /dot_vim/ftplugin/latex-suite/templates
parentadded symlink to cclub afs (diff)
Simplify vim configuration
Diffstat (limited to '')
-rw-r--r--dot_vim/ftplugin/latex-suite/templates.vim149
-rw-r--r--dot_vim/ftplugin/latex-suite/templates/IEEEtran.tex142
-rw-r--r--dot_vim/ftplugin/latex-suite/templates/article.tex9
-rw-r--r--dot_vim/ftplugin/latex-suite/templates/report.tex9
-rw-r--r--dot_vim/ftplugin/latex-suite/templates/report_two_column.tex9
5 files changed, 0 insertions, 318 deletions
diff --git a/dot_vim/ftplugin/latex-suite/templates.vim b/dot_vim/ftplugin/latex-suite/templates.vim
deleted file mode 100644
index e28e429..0000000
--- a/dot_vim/ftplugin/latex-suite/templates.vim
+++ /dev/null
@@ -1,149 +0,0 @@
-"=============================================================================
-" File: templates.vim
-" Author: Gergely Kontra
-" (minor modifications by Srinath Avadhanula)
-" (plus other modifications by Mikolaj Machowski)
-" Version: 1.0
-" Created: Tue Apr 23 05:00 PM 2002 PST
-" CVS: $Id: templates.vim 1002 2006-03-23 04:02:21Z srinathava $
-"
-" Description: functions for handling templates in latex-suite/templates
-" directory.
-"=============================================================================
-
-let s:path = expand("<sfile>:p:h")
-
-" SetTemplateMenu: sets up the menu for templates {{{
-function! <SID>SetTemplateMenu()
- let flist = Tex_FindInRtp('', 'templates')
- let i = 1
- while 1
- let fname = Tex_Strntok(flist, ',', i)
- if fname == ''
- break
- endif
- exe "amenu ".g:Tex_TemplatesMenuLocation."&".i.":<Tab>".fname." ".
- \":call <SID>ReadTemplate('".fname."')<CR>"
- let i = i + 1
- endwhile
-endfunction
-
-if g:Tex_Menus
- call <SID>SetTemplateMenu()
-endif
-
-" }}}
-" ReadTemplate: reads in the template file from the template directory. {{{
-function! <SID>ReadTemplate(...)
- if a:0 > 0
- let filename = a:1
- else
- let filelist = Tex_FindInRtp('', 'templates')
- let filename =
- \ Tex_ChooseFromPrompt("Choose a template file:\n" .
- \ Tex_CreatePrompt(filelist, 2, ',') .
- \ "\nEnter number or name of file :",
- \ filelist, ',')
- endif
-
- let fname = Tex_FindInRtp(filename.'.tex', 'templates', ':p')
- call Tex_Debug("0read ".fname, 'templates')
-
- silent! exe "0read ".fname
-
- " The first line of the file contains the specifications of what the
- " placeholder characters and the other special characters are.
- let pattern = '\v(\S+)\t(\S+)\t(\S+)\t(\S+)'
-
- let s:phsTemp = substitute(getline(1), pattern, '\1', '')
- let s:pheTemp = substitute(getline(1), pattern, '\2', '')
- let s:exeTemp = substitute(getline(1), pattern, '\3', '')
- let s:comTemp = substitute(getline(1), pattern, '\4', '')
-
- 0 d_
-
- call s:ProcessTemplate()
- call Tex_pack_updateall(1)
-
- " Do not handle the placeholders here. Let IMAP_PutTextWithMovement do it
- " because it handles UTF-8 character substitutions etc. Therefore delete
- " the text into @a and paste it using IMAP_PutTextWithMovement().
- let _a = @a
- normal! ggVG"ax
-
- let _fo = &fo
- " Since IMAP_PutTextWithMovement simulates the key-presses, leading
- " indendatation can get duplicated in strange ways if ``fo`` is non-empty.
- " NOTE: the indentexpr thingie is still respected with an empty fo so that
- " environments etc are properly indented.
- set fo=
-
- call Tex_Debug("normal! i\<C-r>=IMAP_PutTextWithMovement(@a, '".s:phsTemp."', '".s:pheTemp."')\<CR>", 'templates')
- exec "normal! i\<C-r>=IMAP_PutTextWithMovement(@a, '".s:phsTemp."', '".s:pheTemp."')\<CR>"
-
- let &fo = _fo
- let @a = _a
-
- call Tex_Debug('phs = '.s:phsTemp.', phe = '.s:pheTemp.', exe = '.s:exeTemp.', com = '.s:comTemp, 'templates')
-
-endfunction
-
-" }}}
-" ProcessTemplate: processes the special characters in template file. {{{
-" This implementation follows from Gergely Kontra's
-" mu-template.vim
-" http://vim.sourceforge.net/scripts/script.php?script_id=222
-function! <SID>ProcessTemplate()
- if exists('s:phsTemp') && s:phsTemp != ''
-
- exec 'silent! %s/^'.s:comTemp.'\(\_.\{-}\)'.s:comTemp.'$/\=<SID>Compute(submatch(1))/ge'
- exec 'silent! %s/'.s:exeTemp.'\(.\{-}\)'.s:exeTemp.'/\=<SID>Exec(submatch(1))/ge'
- exec 'silent! g/'.s:comTemp.s:comTemp.'/d'
-
- " A function only puts one item into the search history...
- call Tex_CleanSearchHistory()
- endif
-endfunction
-
-function! <SID>Exec(what)
- exec 'return '.a:what
-endfunction
-
-" Back-Door to trojans !!!
-function! <SID>Compute(what)
- exe a:what
- if exists('s:comTemp')
- return s:comTemp.s:comTemp
- else
- return ''
- endif
-endfunction
-
-" }}}
-" Command definitions {{{
-if v:version >= 602
- com! -complete=custom,Tex_CompleteTemplateName -nargs=? TTemplate :call <SID>ReadTemplate(<f-args>)
- \| :startinsert
-
- " Tex_CompleteTemplateName: for completing names in TTemplate command {{{
- " Description: get list of template names with Tex_FindInRtp(), remove full path
- " and return list of names separated with newlines.
- "
- function! Tex_CompleteTemplateName(A,P,L)
- " Get name of macros from all runtimepath directories
- let tmplnames = Tex_FindInRtp('', 'templates')
- " Separate names with \n not ,
- let tmplnames = substitute(tmplnames,',','\n','g')
- return tmplnames
- endfunction
- " }}}
-
-else
- com! -nargs=? TTemplate :call <SID>ReadTemplate(<f-args>)
- \| :startinsert
-
-endif
-
-" }}}
-
-" vim:fdm=marker:ff=unix:noet:ts=4:sw=4
diff --git a/dot_vim/ftplugin/latex-suite/templates/IEEEtran.tex b/dot_vim/ftplugin/latex-suite/templates/IEEEtran.tex
deleted file mode 100644
index 104f9b2..0000000
--- a/dot_vim/ftplugin/latex-suite/templates/IEEEtran.tex
+++ /dev/null
@@ -1,142 +0,0 @@
-<+ +> !comp! !exe!
-%% Based on <bare_jrnl.tex> in the ieee package available from CTAN,
-%% I have changed the options so that most useful ones are clubbed together,
-%% Have a look at <bare_jrnl.tex> to understand the function of each package.
-
-%% This code is offered as-is - no warranty - user assumes all risk.
-%% Free to use, distribute and modify.
-
-% *** Authors should verify (and, if needed, correct) their LaTeX system ***
-% *** with the testflow diagnostic prior to trusting their LaTeX platform ***
-% *** with production work. IEEE's font choices can trigger bugs that do ***
-% *** not appear when using other class files. ***
-% Testflow can be obtained at:
-% http://www.ctan.org/tex-archive/macros/latex/contrib/supported/IEEEtran/testflow
-
-% File: !comp!expand("%:p:t")!comp!
-% Created: !comp!strftime("%a %b %d %I:00 %p %Y ").substitute(strftime('%Z'), '\<\(\w\)\(\w*\)\>\(\W\|$\)', '\1', 'g')!comp!
-% Last Change: !comp!strftime("%a %b %d %I:00 %p %Y ").substitute(strftime('%Z'), '\<\(\w\)\(\w*\)\>\(\W\|$\)', '\1', 'g')!comp!
-%
-\documentclass[journal]{IEEEtran}
-
-\usepackage{cite, graphicx, subfigure, amsmath}
-\interdisplaylinepenalty=2500
-
-% *** Do not adjust lengths that control margins, column widths, etc. ***
-% *** Do not use packages that alter fonts (such as pslatex). ***
-% There should be no need to do such things with IEEEtran.cls V1.6 and later.
-
-<++>
-% correct bad hyphenation here
-\hyphenation{<+op-tical net-works semi-conduc-tor+>}
-
-
-\begin{document}
-%
-% paper title
-\title{<+Skeleton of IEEEtran.cls for Journals in VIM-Latex+>}
-%
-%
-% author names and IEEE memberships
-% note positions of commas and nonbreaking spaces ( ~ ) LaTeX will not break
-% a structure at a ~ so this keeps an author's name from being broken across
-% two lines.
-% use \thanks{} to gain access to the first footnote area
-% a separate \thanks must be used for each paragraph as LaTeX2e's \thanks
-% was not built to handle multiple paragraphs
-\author{<+Sumit Bhardwaj+>~\IEEEmembership{<+Student~Member,~IEEE,+>}
-<+John~Doe+>,~\IEEEmembership{<+Fellow,~OSA,+>}
-<+and~Jane~Doe,+>~\IEEEmembership{<+Life~Fellow,~IEEE+>}}% <-this % stops a space
-\thanks{<+Manuscript received January 20, 2002; revised August 13, 2002.
-This work was supported by the IEEE.+>}% <-this % stops a space
-\thanks{<+S. Bhardwaj is with the Indian Institute of Technology, Delhi.+>}
-%
-% The paper headers
-\markboth{<+Journal of VIM-\LaTeX\ Class Files,~Vol.~1, No.~8,~August~2002+>}{
-<+Bhardwaj \MakeLowercase{\textit{et al.}+>}: <+Skeleton of IEEEtran.cls for Journals in VIM-Latex+>}
-% The only time the second header will appear is for the odd numbered pages
-% after the title page when using the twoside option.
-
-
-% If you want to put a publisher's ID mark on the page
-% (can leave text blank if you just want to see how the
-% text height on the first page will be reduced by IEEE)
-%\pubid{0000--0000/00\$00.00~\copyright~2002 IEEE}
-
-% use only for invited papers
-%\specialpapernotice{(Invited Paper)}
-
-% make the title area
-\maketitle
-
-
-\begin{abstract}
-<+The abstract goes here.+>
-\end{abstract}
-
-\begin{keywords}
-<+IEEEtran, journal, \LaTeX, paper, template, VIM, VIM-\LaTeX+>.
-\end{keywords}
-
-\section{Introduction}
-\PARstart{<+T+>}{<+his+>} <+demo file is intended to serve as a ``starter file"
-for IEEE journal papers produced under \LaTeX\ using IEEEtran.cls version
-1.6 and later.+>
-% You must have at least 2 lines in the paragraph with the drop letter
-% (should never be an issue)
-<+May all your publication endeavors be successful.+>
-
-% needed in second column of first page if using \pubid
-%\pubidadjcol
-
-% trigger a \newpage just before the given reference
-% number - used to balance the columns on the last page
-% adjust value as needed - may need to be readjusted if
-% the document is modified later
-%\IEEEtriggeratref{8}
-% The "triggered" command can be changed if desired:
-%\IEEEtriggercmd{\enlargethispage{-5in}}
-
-% references section
-
-%\bibliographystyle{IEEEtran.bst}
-%\bibliography{IEEEabrv,../bib/paper}
-\begin{thebibliography}{1}
-
-\bibitem{IEEEhowto:kopka}
-H.~Kopka and P.~W. Daly, \emph{A Guide to {\LaTeX}}, 3rd~ed.\hskip 1em plus
-0.5em minus 0.4em\relax Harlow, England: Addison-Wesley, 1999.
-
-\end{thebibliography}
-
-% biography section
-%
-\begin{biography}{Sumit Bhardwaj}
-Biography text here.
-\end{biography}
-
-% if you will not have a photo
-\begin{biographynophoto}{John Doe}
-Biography text here.
-\end{biographynophoto}
-
-% insert where needed to balance the two columns on the last page
-%\newpage
-
-\begin{biographynophoto}{Jane Doe}
-Biography text here.
-\end{biographynophoto}
-
-% You can push biographies down or up by placing
-% a \vfill before or after them. The appropriate
-% use of \vfill depends on what kind of text is
-% on the last page and whether or not the columns
-% are being equalized.
-
-%\vfill
-
-% Can be used to pull up biographies so that the bottom of the last one
-% is flush with the other column.
-%\enlargethispage{-5in}
-
-\end{document}
diff --git a/dot_vim/ftplugin/latex-suite/templates/article.tex b/dot_vim/ftplugin/latex-suite/templates/article.tex
deleted file mode 100644
index ea7e1d1..0000000
--- a/dot_vim/ftplugin/latex-suite/templates/article.tex
+++ /dev/null
@@ -1,9 +0,0 @@
-<+ +> !comp! !exe!
-% File: !comp!expand("%:p:t")!comp!
-% Created: !comp!strftime("%a %b %d %I:00 %p %Y ").substitute(strftime('%Z'), '\<\(\w\)\(\w*\)\>\(\W\|$\)', '\1', 'g')!comp!
-% Last Change: !comp!strftime("%a %b %d %I:00 %p %Y ").substitute(strftime('%Z'), '\<\(\w\)\(\w*\)\>\(\W\|$\)', '\1', 'g')!comp!
-%
-\documentclass[a4paper]{article}
-\begin{document}
-<++>
-\end{document}
diff --git a/dot_vim/ftplugin/latex-suite/templates/report.tex b/dot_vim/ftplugin/latex-suite/templates/report.tex
deleted file mode 100644
index 479c7b3..0000000
--- a/dot_vim/ftplugin/latex-suite/templates/report.tex
+++ /dev/null
@@ -1,9 +0,0 @@
-<+ +> !comp! !exe!
-% File: !comp!expand("%")!comp!
-% Created: !comp!strftime("%a %b %d %I:00 %p %Y ").substitute(strftime('%Z'), '\<\(\w\)\(\w*\)\>\(\W\|$\)', '\1', 'g')!comp!
-% Last Change: !comp!strftime("%a %b %d %I:00 %p %Y ").substitute(strftime('%Z'), '\<\(\w\)\(\w*\)\>\(\W\|$\)', '\1', 'g')!comp!
-%
-\documentclass[a4paper]{report}
-\begin{document}
-<++>
-\end{document}
diff --git a/dot_vim/ftplugin/latex-suite/templates/report_two_column.tex b/dot_vim/ftplugin/latex-suite/templates/report_two_column.tex
deleted file mode 100644
index 15bd95e..0000000
--- a/dot_vim/ftplugin/latex-suite/templates/report_two_column.tex
+++ /dev/null
@@ -1,9 +0,0 @@
-<+ +> !comp! !exe!
-% File: !comp!expand("%:p:t")!comp!
-% Created: !comp!strftime("%a %b %d %I:00 %p %Y ").substitute(strftime('%Z'), '\<\(\w\)\(\w*\)\>\(\W\|$\)', '\1', 'g')!comp!
-% Last Change: !comp!strftime("%a %b %d %I:00 %p %Y ").substitute(strftime('%Z'), '\<\(\w\)\(\w*\)\>\(\W\|$\)', '\1', 'g')!comp!
-%
-\documentclass[a4paper,twocolumn]{report}
-\begin{document}
-<++>
-\end{document}