Update generated nvim config
This commit is contained in:
1
config/neovim/store/lazy-plugins/vimtex/test/perf-syntax/.gitignore
vendored
Normal file
1
config/neovim/store/lazy-plugins/vimtex/test/perf-syntax/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
*.log
|
||||
@ -0,0 +1,7 @@
|
||||
MYVIM ?= nvim --clean
|
||||
|
||||
.PHONY: default
|
||||
|
||||
default:
|
||||
$(MYVIM) -u test.vim
|
||||
head -n 30 out.log
|
||||
@ -0,0 +1,46 @@
|
||||
\documentclass{article}
|
||||
\begin{document}
|
||||
|
||||
\noindent Standard \LaTeX{} practice is to write inline math by enclosing it between \verb|\(...\)|:
|
||||
|
||||
\begin{quote}
|
||||
In physics, the mass-energy equivalence is stated
|
||||
by the equation \(E=mc^2\), discovered in 1905 by Albert Einstein.
|
||||
\end{quote}
|
||||
|
||||
\noindent Instead if writing (enclosing) inline math between \verb|\(...\)| you can use \texttt{\$...\$} to achieve the same result:
|
||||
|
||||
\begin{quote}
|
||||
In physics, the mass-energy equivalence is stated
|
||||
by the equation $E=mc^2$, discovered in 1905 by Albert Einstein.
|
||||
\end{quote}
|
||||
|
||||
\noindent Or, you can use \verb|\begin{math}...\end{math}|:
|
||||
|
||||
\begin{quote}
|
||||
In physics, the mass-energy equivalence is stated
|
||||
by the equation \begin{math}E=mc^2\end{math}, discovered in 1905 by Albert Einstein.
|
||||
\end{quote}
|
||||
|
||||
This is a simple math expression \(\sqrt{x^2+1}\) inside text.
|
||||
And this is also the same:
|
||||
\begin{math}
|
||||
\sqrt{x^2+1}
|
||||
\end{math}
|
||||
but by using another command.
|
||||
|
||||
This is a simple math expression without numbering
|
||||
\[\sqrt{x^2+1}\]
|
||||
separated from text.
|
||||
|
||||
This is also the same:
|
||||
\begin{displaymath}
|
||||
\sqrt{x^2+1}
|
||||
\end{displaymath}
|
||||
|
||||
\ldots and this:
|
||||
\begin{equation*}
|
||||
\sqrt{x^2+1}
|
||||
\end{equation*}
|
||||
|
||||
\end{document}
|
||||
@ -0,0 +1,20 @@
|
||||
set nocompatible
|
||||
set runtimepath^=../..
|
||||
set runtimepath+=../../after
|
||||
filetype plugin indent on
|
||||
syntax enable
|
||||
|
||||
nnoremap q :qall!<cr>
|
||||
|
||||
let g:vimtex_syntax_conceal_disable = 1
|
||||
let g:vimtex_syntax_match_unicode = 0
|
||||
silent edit main.tex
|
||||
|
||||
syntime on
|
||||
for s:x in range(400)
|
||||
redraw!
|
||||
endfor
|
||||
let s:lines = split(execute('syntime report'), "\n")
|
||||
call writefile(s:lines, "out.log")
|
||||
|
||||
quitall
|
||||
Reference in New Issue
Block a user