Update generated nvim config
This commit is contained in:
@ -0,0 +1,35 @@
|
||||
\chapter{Appendix 1}
|
||||
This test document is created to test advanced TOC functionality.
|
||||
|
||||
\section{Appendix subsection}
|
||||
|
||||
\subsection{sub}
|
||||
|
||||
\subsubsection{subsub}
|
||||
|
||||
\paragraph{par}
|
||||
|
||||
\subsection{Test sub section 1}
|
||||
|
||||
\chapter{Appendix 2}
|
||||
\label{chap: appendix 2}
|
||||
|
||||
\section{Testing TOC levels}
|
||||
Testing more input and TOC levels.
|
||||
|
||||
\subsection{Testing TOC sub levels}
|
||||
|
||||
\subsubsection{Testing TOC sub sub levels}
|
||||
Hello world.
|
||||
|
||||
\subsubsection{Text $\Gamma^{r}(\ensuremath{{\mathbf{Z}}}_p^d,\mathbf{K})$}
|
||||
|
||||
\subsection{Another test subsection}
|
||||
|
||||
\subsubsection{Other text $\Gamma^{r}$}
|
||||
|
||||
\section{Testing more appendix levels}
|
||||
Testing more input and TOC levels.
|
||||
|
||||
\subsection{Testing TOC sub levels}
|
||||
|
||||
@ -0,0 +1,27 @@
|
||||
\chapter{No numbers in backmatter 1}
|
||||
|
||||
\section{Section 1}
|
||||
|
||||
\section{Section 2}
|
||||
|
||||
\chapter{No numbers in backmatter 2}
|
||||
|
||||
\section{Section 1}
|
||||
|
||||
\section{Section 2}
|
||||
%\label{sec:back_section2}
|
||||
|
||||
% vimtex-include: minivimrc
|
||||
|
||||
% \bibliography{test}
|
||||
% \printbibliography
|
||||
% \printbibliography{Testing}
|
||||
% \printbibliography[Some option]{Testing}
|
||||
% \printbibheading
|
||||
% \printbibheading{Testing}
|
||||
% \printbibheading[Some option]{Testing}
|
||||
% \begin{thebibliography}
|
||||
% \end{thebibliography}
|
||||
|
||||
% \printindex
|
||||
% \printindex[Some option]
|
||||
@ -0,0 +1,3 @@
|
||||
@Test{
|
||||
test = {test},
|
||||
}
|
||||
@ -0,0 +1,87 @@
|
||||
% TeX Root = main.tex
|
||||
|
||||
\chapter[Short title]{Long title}
|
||||
\begin{equation}
|
||||
\label{eq:test}
|
||||
f=1
|
||||
\end{equation}
|
||||
|
||||
\chapter{Parsing {toc entries works
|
||||
also for} multi-line \texorpdfstring{stuff}{entries}
|
||||
--- Hurray!}
|
||||
|
||||
\section{\texorpdfstring{\textcolor{red}{Very important title}} {Very important title}}
|
||||
\label{sec:test2}
|
||||
|
||||
\section{Test section 1}\label{sec:TesSec1}
|
||||
|
||||
% \includegraphics{test.jpg}
|
||||
\todo[inline]{
|
||||
En test til her, ja.}
|
||||
|
||||
\begin{figure}[htpb]
|
||||
\centering
|
||||
\input{test.tikz}
|
||||
\caption{Silly example}
|
||||
\label{fig:example1}
|
||||
\end{figure}
|
||||
|
||||
\subsection{sub}
|
||||
|
||||
\subsubsection{subsub}
|
||||
|
||||
\paragraph{par}
|
||||
|
||||
\subsection{Test sub section 1}
|
||||
|
||||
\section{$\alpha$}
|
||||
|
||||
\subsection{Test sub section 1}
|
||||
|
||||
\subsection{Test sub section 2}
|
||||
Some text.
|
||||
|
||||
\chapter[Parsing toc specific entries works
|
||||
also for multi-line --- A second Hurray!]{Parsing {toc entries works
|
||||
also for} multi-line \texorpdfstring{stuff}{entries}
|
||||
--- Hurray!}
|
||||
|
||||
\chapter*{Test chapter 1}
|
||||
Test of starred chapter.
|
||||
|
||||
\chapter{Test chapter 2}
|
||||
\label{chap:second test}
|
||||
|
||||
\section{Testing TOC levels}
|
||||
Testing more input and TOC levels.
|
||||
|
||||
\subsection{Testing TOC sub levels}
|
||||
|
||||
\subsubsection{Testing TOC sub sub levels}
|
||||
Hello world.
|
||||
|
||||
\paragraph{something}
|
||||
asdasd
|
||||
|
||||
\subsubsection{Text $\Gamma^{r}(\ensuremath{{\mathbf{Z}}}_p^d,\mathbf{K})$}
|
||||
|
||||
\begin{equation}
|
||||
\label{eq:test equation label}
|
||||
f(x) = 1
|
||||
\end{equation}
|
||||
|
||||
\subsection{Another test subsection}
|
||||
|
||||
\subsubsection{Other text $\Gamma^{r}$}
|
||||
|
||||
\paragraph{something}
|
||||
asdasd
|
||||
|
||||
\section{Testing more appendix levels}
|
||||
Testing more input and TOC levels.
|
||||
|
||||
\subsection{Testing TOC sub levels}
|
||||
|
||||
\section{Testing included section contents}
|
||||
|
||||
\input{content/sections}
|
||||
@ -0,0 +1 @@
|
||||
Hello world
|
||||
@ -0,0 +1,9 @@
|
||||
\chapter{Preface}
|
||||
Preface.
|
||||
|
||||
\section{Acknowledgements}
|
||||
|
||||
\chapter[Other]{Other frontmatter chapter}
|
||||
\label{chap:test}
|
||||
|
||||
\tableofcontents
|
||||
@ -0,0 +1,38 @@
|
||||
\documentclass{book}
|
||||
\usepackage{mathtools}
|
||||
\usepackage{graphicx}
|
||||
\usepackage{tikz}
|
||||
\usepackage{todonotes}
|
||||
|
||||
\input{preamble}
|
||||
% \addbibresource{book.bib}
|
||||
% \addglobalbib{book.bib}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\frontmatter
|
||||
\input{ frontmatter}
|
||||
|
||||
\mainmatter
|
||||
% Todo This should NOT match
|
||||
\include{content/chapters}
|
||||
\todo[inline]{Match more things}
|
||||
|
||||
\appendix
|
||||
\input{appendix}
|
||||
% TODO: This should be much better!
|
||||
|
||||
% IMPORTANT: Mucho importante
|
||||
|
||||
% IMPORTANTE: Very important
|
||||
|
||||
\backmatter
|
||||
% FIXME Be smarter
|
||||
\input{backmatter}
|
||||
\begin{equation}
|
||||
\label{eq:finito}
|
||||
f=2
|
||||
\end{equation}
|
||||
|
||||
\bibliography{book.bib,test}
|
||||
\end{document}
|
||||
@ -0,0 +1,46 @@
|
||||
set nocompatible
|
||||
set runtimepath^=../..
|
||||
set runtimepath+=../../after
|
||||
filetype plugin indent on
|
||||
syntax enable
|
||||
|
||||
nnoremap q :qall!<cr>
|
||||
|
||||
let g:vimtex_toc_config = {
|
||||
\ 'layer_status' : {'include' : 0},
|
||||
\ 'layer_keys' : {'content' : '<c-c>'},
|
||||
\}
|
||||
let g:vimtex_toc_todo_labels = {
|
||||
\ 'TODO': 'TODO: ',
|
||||
\ 'FIXME': 'FIXME: ',
|
||||
\ 'IMPORTANT': 'IMPORTANT: ',
|
||||
\ 'IMPORTANTE': 'IMPORTANT: ',
|
||||
\}
|
||||
|
||||
" let g:vimtex_compiler_latexmk = {'out_dir': 'out'}
|
||||
let g:vimtex_view_automatic = 0
|
||||
let g:vimtex_quickfix_mode = 0
|
||||
|
||||
augroup vimtex_customization
|
||||
autocmd!
|
||||
autocmd FileType tex call CreateTocs()
|
||||
augroup END
|
||||
|
||||
function CreateTocs()
|
||||
let g:custom_toc1 = vimtex#toc#new({
|
||||
\ 'layers' : ['label', 'todo'],
|
||||
\ 'todo_sorted' : 0,
|
||||
\ 'show_help' : 0,
|
||||
\ 'show_numbers' : 0,
|
||||
\ 'mode' : 4,
|
||||
\})
|
||||
nnoremap <silent> \ly :call g:custom_toc1.open()<cr>
|
||||
|
||||
let g:custom_toc2 = vimtex#toc#new({
|
||||
\ 'layers' : ['include'],
|
||||
\ 'show_help' : 0,
|
||||
\})
|
||||
nnoremap <silent> \lY :call g:custom_toc2.open()<cr>
|
||||
endfunction
|
||||
|
||||
silent edit main.tex
|
||||
@ -0,0 +1,5 @@
|
||||
% Commands
|
||||
\usepackage{color}
|
||||
\usepackage{hyperref}
|
||||
|
||||
% FIXME Add more packages and commands
|
||||
@ -0,0 +1,3 @@
|
||||
\begin{tikzpicture}
|
||||
blahr
|
||||
\end{tikzpicture}
|
||||
Reference in New Issue
Block a user