# Instant Preview of Latex to PDF in silent mode with fast compiling

Please i am working on a project should provide fast compiling of Latex files in silent mode so the user should not see any process and just preview the final pdf file produced and i need it faster than usual i tried to use pdflatex by hidden command line but it was slow which takes 4-5 seconds to preview pdf then i tried to use TeXWorks it was really fast but i can not hide it so any suggestion guys.

• Welcome to TeX.SX! – OSjerick Dec 3 '13 at 12:16
• How come TeXWorks is faster than pdflatex? I assume TeXWorks is just a front-end that calls pdflatex... – lhf Dec 3 '13 at 12:16
• TeXworks has an "integrated pdf viewer", so to compare you should use `pdflatex` coupled to a viewer that automatically updates, e.g. via synctex. – Andrew Swann Dec 3 '13 at 12:27
• Welcome @OSjerick if you have any idea about that i will be grateful – MohamedSayed Dec 3 '13 at 12:40
• Have you considered using `\includeonly`? – user10274 Dec 3 '13 at 15:51

This problem was tackled successfully on NeXTstep where the TeX process would allow access to a .dvi file after a complete page was written to it via IPC (InterProcess Communication).

This feature seems to now be part of pytex and the TeX Daemon --- one can improve TeX performance by:

• selectively processing only a portion of a document using `\includeonly` if it is large enough to be broken up into included files