Update generated nvim config
This commit is contained in:
@ -0,0 +1,15 @@
|
||||
.PHONY: test
|
||||
|
||||
MYVIM ?= nvim --clean --headless
|
||||
|
||||
INMAKE := 1
|
||||
export INMAKE
|
||||
|
||||
test: output1 output2 output3
|
||||
@diff output1.tex reference1.tex
|
||||
@diff output2.tex reference2.tex
|
||||
@diff output3.tex reference3.tex
|
||||
@rm -f output*.tex
|
||||
|
||||
output%:
|
||||
@$(MYVIM) -u test.vim
|
||||
@ -0,0 +1,5 @@
|
||||
\newenvironment{LRmath}{
|
||||
\def\E{}
|
||||
\renewcommand{\E}[2][]{\ensuremath\mathrm{E}_{##1}\!\left[##2\right]}
|
||||
\def\PP{\ensuremath\mathrm{P}}
|
||||
}{}
|
||||
@ -0,0 +1,13 @@
|
||||
\documentclass[14pt]{article}
|
||||
|
||||
\def\E{}
|
||||
\renewcommand{\E}[2][]{\ensuremath\mathrm{E}_{#1}\!\left[#2\right]}
|
||||
\def\PP{\ensuremath\mathrm{P}}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\begin{equation}
|
||||
\PP[x\le y] = \E[x]{\max(y-x,0)/(y-x)}
|
||||
\end{equation}
|
||||
|
||||
\end{document}
|
||||
@ -0,0 +1,13 @@
|
||||
\documentclass[12pt]{article}
|
||||
|
||||
\newenvironment{LRmath}{
|
||||
\def\E{}
|
||||
\renewcommand{\E}[2][]{\ensuremath\mathrm{E}_{##1}\!\left[##2\right]}
|
||||
\def\PP{\ensuremath\mathrm{P}}
|
||||
}{}
|
||||
|
||||
\begin{document}
|
||||
\begin{equation}
|
||||
\PP[x\le y] = \E[x]{\max(y-x,0)/(y-x)}
|
||||
\end{equation}
|
||||
\end{document}
|
||||
@ -0,0 +1,18 @@
|
||||
\documentclass[14pt]{article}
|
||||
|
||||
\def\E{}
|
||||
\renewcommand{\E}[2][]{\ensuremath\mathrm{E}_{#1}\!\left[#2\right]}
|
||||
\def\PP{\ensuremath\mathrm{P}}
|
||||
|
||||
\begin{document}
|
||||
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
|
||||
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
|
||||
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd
|
||||
gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
||||
|
||||
\begin{equation}
|
||||
\PP[x\le y] = \E[x]{\max(y-x,0)/(y-x)}
|
||||
\end{equation}
|
||||
|
||||
\end{document}
|
||||
@ -0,0 +1,16 @@
|
||||
\documentclass[14pt]{article}
|
||||
|
||||
\def\E{}
|
||||
\renewcommand{\E}[2][]{\ensuremath\mathrm{E}_{#1}\!\left[#2\right]}
|
||||
\def\PP{\ensuremath\mathrm{P}}
|
||||
|
||||
\begin{document}
|
||||
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
|
||||
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
|
||||
vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd
|
||||
gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
||||
|
||||
%%% VIMTEX PLACEHOLDER
|
||||
|
||||
\end{document}
|
||||
@ -0,0 +1,17 @@
|
||||
\documentclass[12pt]{article}
|
||||
|
||||
\input{inputfile}
|
||||
|
||||
\begin{document}
|
||||
\begin{LRmath}
|
||||
|
||||
Text, Text, Text
|
||||
|
||||
\begin{equation}
|
||||
\PP[x\le y] = \E[x]{\max(y-x,0)/(y-x)}
|
||||
\end{equation}
|
||||
|
||||
Text, Text, Text
|
||||
|
||||
\end{LRmath}
|
||||
\end{document}
|
||||
@ -0,0 +1,26 @@
|
||||
set nocompatible
|
||||
let &rtp = '../..,' . &rtp
|
||||
filetype plugin on
|
||||
|
||||
set nomore
|
||||
|
||||
silent edit test.tex
|
||||
|
||||
call vimtex#parser#selection_to_texfile({
|
||||
\ 'range': [10, 12],
|
||||
\ 'name': 'output1',
|
||||
\})
|
||||
|
||||
call vimtex#parser#selection_to_texfile({
|
||||
\ 'range': [10, 12],
|
||||
\ 'name': 'output2',
|
||||
\ 'template_name': 'NONE',
|
||||
\})
|
||||
|
||||
call vimtex#parser#selection_to_texfile({
|
||||
\ 'range': [10, 12],
|
||||
\ 'name': 'output3',
|
||||
\ 'template_name': 'template.tex',
|
||||
\})
|
||||
|
||||
quitall!
|
||||
@ -0,0 +1,11 @@
|
||||
\documentclass[14pt]{article}
|
||||
|
||||
\def\E{}
|
||||
\renewcommand{\E}[2][]{\ensuremath\mathrm{E}_{#1}\!\left[#2\right]}
|
||||
\def\PP{\ensuremath\mathrm{P}}
|
||||
|
||||
\begin{document}
|
||||
|
||||
%%% VIMTEX PLACEHOLDER
|
||||
|
||||
\end{document}
|
||||
Reference in New Issue
Block a user