File: test_parse_documentclass_options.vim

package info (click to toggle)
vim-vimtex 2.17-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,844 kB
  • sloc: makefile: 360; python: 103
file content (39 lines) | stat: -rw-r--r-- 980 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
set nocompatible
set runtimepath^=../..
filetype plugin on

nnoremap q :qall!<cr>

call vimtex#log#set_silent()

silent edit test_parse_documentclass_options.tex

if empty($INMAKE) | finish | endif

call assert_equal('scrbook', b:vimtex.documentclass)

let s:options = {
      \  'fontsize': '12pt',
      \  'headings': 'big',
      \  'english': v:true,
      \  'paper': 'a4',
      \  'twoside': v:true,
      \  'open': 'right',
      \  'DIV': '14',
      \  'BCOR': '20mm',
      \  'headinclude': v:false,
      \  'footinclude': v:false,
      \  'mpinclude': v:false,
      \  'titlepage': v:true,
      \  'parskip': 'half',
      \  'headsepline': v:true,
      \  'chapterprefix': v:false,
      \  'appendixprefix': 'Appendix',
      \  'appendixwithprefixline': v:true,
      \  'bibliography': 'totoc',
      \  'toc': 'graduated',
      \  'numbers': 'noenddot',
      \ }
call assert_equal(s:options, b:vimtex.documentclass_options)

call vimtex#test#finished()