Accept tocsection for TOC secnum parsing
This commit is contained in:
parent
d41043d53a
commit
b838aa3afd
@ -133,7 +133,7 @@ function! s:read_toc(auxfile, texfile, ...)
|
|||||||
call remove(tree, 1)
|
call remove(tree, 1)
|
||||||
endif
|
endif
|
||||||
if len(tree) > 1
|
if len(tree) > 1
|
||||||
if tree[0] =~ '^\\numberline'
|
if tree[0] =~ '^\\\(numberline\|tocsection\)'
|
||||||
let secnum = latex#util#tree2tex(tree[1])
|
let secnum = latex#util#tree2tex(tree[1])
|
||||||
let secnum = substitute(secnum, '\\\S\+\s', '', 'g')
|
let secnum = substitute(secnum, '\\\S\+\s', '', 'g')
|
||||||
let secnum = substitute(secnum, '\\\S\+{\(.\{-}\)}', '\1', 'g')
|
let secnum = substitute(secnum, '\\\S\+{\(.\{-}\)}', '\1', 'g')
|
||||||
|
Loading…
Reference in New Issue
Block a user