Fixes in latex_cite_completion and viewPDF