ying17zi/vim-live-latex-preview — pull request #1 by nichtleiter (2012-05-15 18:45:47+00:00)
Title: added pstricks support

for those who wants to use 'vim-live-latex-preview' with pstricks-code embedded in their tex-file i added the common

latex -> dvips -> ps2pdf

compile cycle to the update-script. This cycle is only set, if

sed -n -e '/\\documentclass/,/\\begin{[[:space:]]*document[[:space:]]*}/p' ${file} | grep '\usepackage\(\[.*\]\|\){.*\(pstricks\|pst-\).*}'

is true. Cause sed narrow down the search range to the range between '\documentclass' and '\begin{document}' the delay for live-preview should not be to long. Especially as 'live-preview' is only suitable for small documents, where this delay is of no noticeable consequence.

With best regards