diff options
author | katherine <ageha@airen-no-jikken.icu> | 2021-04-12 12:43:55 -0700 |
---|---|---|
committer | katherine <ageha@airen-no-jikken.icu> | 2021-04-12 12:43:55 -0700 |
commit | c25674dfa746fc367bf09b8e54f690c6485b60d7 (patch) | |
tree | 108ec67661673589058dbb1b9ab5ff6853ed4c37 | |
parent | bca7c90ff24678054d89f3f86dfecd1787c1787d (diff) | |
download | dotfiles-c25674dfa746fc367bf09b8e54f690c6485b60d7.tar.gz |
proper tex skeleton
-rw-r--r-- | .vim/skel/tex | 65 | ||||
-rw-r--r-- | .vimrc | 3 |
2 files changed, 64 insertions, 4 deletions
diff --git a/.vim/skel/tex b/.vim/skel/tex index 4b79470..ab68c32 100644 --- a/.vim/skel/tex +++ b/.vim/skel/tex @@ -1,18 +1,77 @@ -\documentclass[letter,12pt]{article} -\usepackage[margin=1in]{geometry} +\begin{filecontents}[overwrite]{\jobname.bib} +\end{filecontents} + + + +\documentclass[letter,11pt]{article} +\usepackage[margin=.7in]{geometry} + +\usepackage[ + short, + notes, + backend=biber, + sorting=nty, + sortcites=true +]{biblatex-chicago} + +\addbibresource{\jobname.bib} + + + +\usepackage{fontspec} \usepackage{xeCJK} -\setCJKmainfont[Scale=.8]{IPAMincho} +\usepackage{amsmath,amsthm,amssymb} +\usepackage{unicode-math} + +\setmainfont{Domitian} + +\setmathfont[Scale = MatchLowercase]{Asana-Math.otf} + +\setCJKmainfont{Noto Serif CJK JP} + +\usepackage{etoolbox} +\AtBeginEnvironment{equation}{\large} +\AtBeginEnvironment{equation*}{\large} + +\usepackage{relsize} + +\usepackage{setspace} +\setstretch{1.02} + + + +\usepackage{multicol} + +\renewenvironment{quote}{% + \list{}{% + \setlength{\rightmargin}{0pt}% + \setlength{\leftmargin}{0pt}% + \smaller% + }% + \item\relax% +}{\endlist} + +\renewcommand{\abstractname}{abstract} \title{} \author{} \date{%DATE%} + + \begin{document} \frenchspacing \maketitle +\begin{multicols}{2} + %START% +\end{multicols} + +\setlength{\bibhang}{0pt} +\printbibliography[title={references}] + \end{document} @@ -334,7 +334,7 @@ fun! s:settings_skel_read() "read the date into %DATE% exec '%s/%DATE%/' . system("date '+%a, %B %d, %Y'|tr -d '\n'") . '/ge' "move cursor to %START% - exec "silent! normal! ggJ/%START%\<CR>:s/%START%//\<CR>" + exec "silent! normal! ggJ/%START%\<CR>:s/%START%//\<CR>zz" endfun "run vader tests on the current file @@ -551,6 +551,7 @@ fun! s:settings_tex() nnoremap <buffer> <Leader>C :!latex -output-format=pdf "%"<CR> nnoremap <buffer> <Leader>x :!xelatex "%"<CR><CR> nnoremap <buffer> <Leader>X :!xelatex "%"<CR> + nnoremap <buffer> <Leader>b :!biber "%:r"<CR><CR> endfun fun! s:settings_text() |