From efe2f09b1765ff613339a16f6a44f058748d08fe Mon Sep 17 00:00:00 2001 From: EvilMuffinHa Date: Sun, 4 Dec 2022 16:32:16 -0500 Subject: [PATCH] spell --- nvim/lua/options.lua | 15 +++++++++++++++ tex/booknotes.cls | 8 +++++--- tex/handout.cls | 1 + tex/notes.cls | 3 +++ tex/simplebooknotes.cls | 8 +++++--- tex/simplenotes.cls | 2 ++ 6 files changed, 31 insertions(+), 6 deletions(-) diff --git a/nvim/lua/options.lua b/nvim/lua/options.lua index 3736e5e..1329500 100644 --- a/nvim/lua/options.lua +++ b/nvim/lua/options.lua @@ -16,6 +16,20 @@ o.viminfo = '' vim.g.base16colorspace = 256 o.termguicolors = true +vim.cmd [[ + augroup spellcheck + au! + au FileType markdown setlocal spell + au FileType plaintex setlocal spell + au FileType tex setlocal spell + au FileType latex setlocal spell + au BufRead,BufNewFile *.md setlocal spell + au BufRead,BufNewFile *.tex setlocal spell + augroup END +]] +o.spelllang = "en_us" +map('i', '', 'u[s1z=`]au', { noremap = true }) + vim.cmd('colorscheme theme') vim.g.airline_theme = 'theme' @@ -46,6 +60,7 @@ o.listchars = { extends = '›' } + vim.cmd [[ augroup options_guicursor au! diff --git a/tex/booknotes.cls b/tex/booknotes.cls index 51631a4..156e436 100644 --- a/tex/booknotes.cls +++ b/tex/booknotes.cls @@ -1,6 +1,6 @@ \ProvidesClass{booknotes} -\LoadClass{report} +\LoadClass[twoside]{report} \RequirePackage[T1]{fontenc} \RequirePackage{textcomp} @@ -161,11 +161,13 @@ } \pagestyle{fancy} -\fancyhead[RO,L]{\@section} -\fancyhead[R,LO]{\leftmark} +\fancyhead[RO,LE]{\@section} +\fancyhead[RE,LO]{\leftmark} \newcommand{\fullpagebreak}{\pagebreak} +\newcommand{\toc}{\tableofcontents\raggedbottom} + \newcommand{\incfig}[1]{% \def\svgwidth{\columnwidth} \import{./figures/}{#1.pdf_tex} diff --git a/tex/handout.cls b/tex/handout.cls index c1bf0d9..9707314 100644 --- a/tex/handout.cls +++ b/tex/handout.cls @@ -178,6 +178,7 @@ \definecolor{MintedBg}{RGB}{38, 38, 38} +\newcommand{\toc}{\tableofcontents\raggedbottom} \newenvironment{code}[1]{\color{white}\VerbatimEnvironment\begin{minted}[bgcolor=MintedBg]{#1}}{\end{minted}} diff --git a/tex/notes.cls b/tex/notes.cls index 9b2beaa..94abd5b 100644 --- a/tex/notes.cls +++ b/tex/notes.cls @@ -176,6 +176,9 @@ \import{./figures/}{#1.pdf_tex} } +\newcommand{\toc}{\tableofcontents\raggedbottom} + + \definecolor{MintedBg}{RGB}{38, 38, 38} diff --git a/tex/simplebooknotes.cls b/tex/simplebooknotes.cls index 6dd0591..7d82b89 100644 --- a/tex/simplebooknotes.cls +++ b/tex/simplebooknotes.cls @@ -1,5 +1,5 @@ \ProvidesClass{simplebooknotes} -\LoadClass{report} +\LoadClass[twoside]{report} \RequirePackage[T1]{fontenc} \RequirePackage{textcomp} @@ -129,9 +129,11 @@ \subsection*{\@lecture} } +\newcommand{\toc}{\tableofcontents\raggedbottom} + \pagestyle{fancy} -\fancyhead[RO,L]{\@section} -\fancyhead[R,LO]{\leftmark} +\fancyhead[RO,LE]{\@section} +\fancyhead[RE,LO]{\leftmark} \newcommand{\fullpagebreak}{\pagebreak} diff --git a/tex/simplenotes.cls b/tex/simplenotes.cls index bafff25..4565b11 100644 --- a/tex/simplenotes.cls +++ b/tex/simplenotes.cls @@ -141,6 +141,8 @@ \newcommand{\fullpagebreak}{} \renewcommand{\maketitle}{} +\newcommand{\toc}{\tableofcontents\raggedbottom} + \newcommand{\incfig}[1]{% \def\svgwidth{\columnwidth} \import{./figures/}{#1.pdf_tex}