From c25674dfa746fc367bf09b8e54f690c6485b60d7 Mon Sep 17 00:00:00 2001 From: katherine Date: Mon, 12 Apr 2021 12:43:55 -0700 Subject: proper tex skeleton --- .vim/skel/tex | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++--- .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} diff --git a/.vimrc b/.vimrc index 5ff80c4..78ccaeb 100644 --- a/.vimrc +++ b/.vimrc @@ -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%\:s/%START%//\" + exec "silent! normal! ggJ/%START%\:s/%START%//\zz" endfun "run vader tests on the current file @@ -551,6 +551,7 @@ fun! s:settings_tex() nnoremap C :!latex -output-format=pdf "%" nnoremap x :!xelatex "%" nnoremap X :!xelatex "%" + nnoremap b :!biber "%:r" endfun fun! s:settings_text() -- cgit v1.2.3