From b838aa3afd858d301fce5bfbcdf5472c90ae7fcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Thu, 12 Jun 2014 20:05:16 +0200 Subject: [PATCH] Accept tocsection for TOC secnum parsing --- autoload/latex/toc.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/latex/toc.vim b/autoload/latex/toc.vim index 76ed3d2..9773135 100644 --- a/autoload/latex/toc.vim +++ b/autoload/latex/toc.vim @@ -133,7 +133,7 @@ function! s:read_toc(auxfile, texfile, ...) call remove(tree, 1) endif if len(tree) > 1 - if tree[0] =~ '^\\numberline' + if tree[0] =~ '^\\\(numberline\|tocsection\)' let secnum = latex#util#tree2tex(tree[1]) let secnum = substitute(secnum, '\\\S\+\s', '', 'g') let secnum = substitute(secnum, '\\\S\+{\(.\{-}\)}', '\1', 'g')