forked from lervag/vimtex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refer: lervag#2016
- Loading branch information
Showing
7 changed files
with
109 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
MYVIM ?= nvim --headless | ||
|
||
INMAKE := 1 | ||
export INMAKE | ||
|
||
TESTS := $(wildcard test*.vim) | ||
TESTS := $(TESTS:.vim=) | ||
|
||
.PHONY: test $(TESTS) | ||
|
||
test: $(TESTS) | ||
|
||
$(TESTS): | ||
@$(MYVIM) -u $@.vim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@book{Hemingway1940, | ||
author = {Earnest Hemingway}, | ||
title = {For Whom the Bell Tolls}, | ||
date = {1940}, | ||
publisher = {Simon \& Schuster}, | ||
} | ||
|
||
@book{JiM2020, | ||
author = {{Justice in Mexico}}, | ||
title = {Organized Crime and Violence in Mexico: 2020 Special Report}, | ||
date = {2019-07}, | ||
publisher = {Justice in Mexico}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
\documentclass{article} | ||
\usepackage{biblatex} | ||
\addbibresource{test-cites.bib} | ||
|
||
\begin{document} | ||
\begin{enumerate} | ||
\item \autocite[10]{Hemingway1940} | ||
\item \autocites{Hemingway1940}{JiM2020} | ||
\item \autocites[10]{JiM2020}[20]{Hemingway1940} | ||
\item \autocites[10]{Hemingway1940}{JiM2020} | ||
\item \autocites{Hemingway1940}[20]{JiM2020} | ||
\end{enumerate} | ||
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
set nocompatible | ||
let &rtp = '../..,' . &rtp | ||
filetype plugin indent on | ||
syntax enable | ||
|
||
set nomore | ||
|
||
nnoremap q :qall!<cr> | ||
silent edit test-cites.tex | ||
|
||
if empty($INMAKE) | finish | endif | ||
|
||
call vimtex#test#assert_equal('Hemingway1940', | ||
\ vimtex#context#get(9, 49).handler.selected) | ||
call vimtex#test#assert_equal('JiM2020', | ||
\ vimtex#context#get(11, 39).handler.selected) | ||
|
||
quit! |