xuhdev / vim-latex-live-preview

A Vim Plugin for Lively Previewing LaTeX PDF Output
https://www.topbug.net/blog/2013/06/13/live-preview-of-latex-in-vim/
GNU General Public License v3.0
834 stars 74 forks source link

display tex rendering/preview without a document body #96

Open smilesun opened 4 years ago

smilesun commented 4 years ago

New features or Expected behavior

When I type a complex formula in a align environment for example in a seperate tex file, I only want to check if the commands I have typed will render into a right formula I expect. In this case, I do not want to compile with the huge project together. I could think of a hack, which is to have a empty document with \begin{document} body and then embed the document I am typing my formula into, but actually the formula could lie in any file which does not have a definite name, so I have not figured out how to do this.

Is it possible to incorporate this into the plugin?

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 30 days if no further activity occurs, but feel free to re-open a closed issue if needed. Thanks for contributing to vim-llp!

badouralix commented 4 years ago

Hi @smilesun !

Thanks for the feedback. I think latex plugin for vscode support such a feature and it is quite useful indeed.

The usecase lands a bit outside the scope of the plugin and might require some design work around it. Typically it would be interesting to create a dedicated command to render the visual selection buffer.

I'll keep the issue around to track this, although I cannot give any timeline for this.