Hello,
I am commiting function, menus and compiler if/else/endif
for compiling and viewing only part of document. Full documentation
tomorrow. Short description.
Mark fragment of document (Visual, mark, range). Press <F10> (TODO:
proper shortcut handling). Preamble of document (if needed from
mainfile) with \begin{document}, marked fragment and \end{document} will
be written to temporary file defined with tempname() Vim function. This
file will be compiled using current settings. Output files will be in
temporary directory. View main output file (dvi, pdf) with menu or \lp
You have take care about what is marked. You can use matchit.vim to
handle environments but that's all. Don't include begin/end document.
Please test it on other platforms (Windows, Mac) and if it works with
mainfile. Proper documentation and comments for code follow tomorrow.
m.
|