[***SPAM***] Continuous preview
For LaTex there exists a tool, named "latexmk", which allows a "preview continuous mode", that is to update the compiled pdf automatically. It is really very helpful! Because it is open-source: It is possible to addapt this tool for context, too? Maybe one of the programmers have time for this ... :)
On 2013–08–27 "H. Özoguz" wrote:
For LaTex there exists a tool, named "latexmk", which allows a "preview continuous mode", that is to update the compiled pdf automatically. It is really very helpful!
I don't know latexmk, but updating the pdf is a feature of the pdf reader, not of context. If you want to re-run the compilation when the file has changed, you can use the mechanisms your operating system provides. Every OS has a mechanism to watch files. Here is a Linux example while true do inotifywait --event modify somefile.tex; context --batchmode somefile.tex done Marco
On 2013–08–27 Marco Patzer wrote:
while true do inotifywait --event modify somefile.tex; context --batchmode somefile.tex done
Better: file='somefile.tex' while inotifywait --event modify "$file"; do context --batchmode "$file" done For BSDs/MacOS: http://en.wikipedia.org/wiki/Kqueue For Windows: http://schneider.ncifcrf.gov/atchange.html Marco
When using the "evince" PDF reader on Linux, reloading the PDF is as simple as: context filename.tex -- Generate for the first time evince filename.pdf & -- Open the reader in the background context filename.tex -- The evince process automatically refreshes with new content
Le mardi 27 août 2013 12:12:32 Thangalin a écrit :
When using the "evince" PDF reader on Linux, reloading the PDF is as simple as:
context filename.tex -- Generate for the first time evince filename.pdf & -- Open the reader in the background
context filename.tex -- The evince process automatically refreshes with Same here with 'okular' (it can be configured: so one can decide to not refresh on file change).
--
Romain Diss
Hello, In Windows (XP) one can use TeXstudio, the viewer's outputscreen is automatically refreshed with each compilation. (B.t.w. TeXnicCentre is nowadays not anymore preferred.) In TeXstudio one can even make ConTeXt available by assigning a less used shortcut (f.i. F10) to: C:\context\tex\setuptex.bat & "C:\context\tex\texmf-mswin\bin\context" -interface=nl % Of course assumed that in the folder C:\context\.. the installation of ConTeXt is available. (setuptex.bat is provided by the installation.) Greetings, from Ernst van der Storm (ConTeXt starter) Van: ntg-context-bounces@ntg.nl [mailto:ntg-context-bounces@ntg.nl] Namens Thangalin Verzonden: dinsdag 27 augustus 2013 21:13 Aan: mailing list for ConTeXt users Onderwerp: Re: [NTG-context] [***SPAM***] Continuous preview When using the "evince" PDF reader on Linux, reloading the PDF is as simple as: context filename.tex -- Generate for the first time evince filename.pdf & -- Open the reader in the background context filename.tex -- The evince process automatically refreshes with new content
On Tue, 27 Aug 2013, "H. Özoguz" wrote:
For LaTex there exists a tool, named "latexmk", which allows a "preview continuous mode", that is to update the compiled pdf automatically. It is really very helpful!
Because it is open-source: It is possible to addapt this tool for context, too? Maybe one of the programmers have time for this ... :)
I use the perl program `atchange`[1] for continous preview. For simple documents, you can just run atchange filename.tex "context --batch filename" For more complicated documents (depending on multiple files and figures), you can create a automate file (see [1] for description) and run atchange automate [1]: http://schneider.ncifcrf.gov/atchange.html Aditya
On Tue, 27 Aug 2013 15:21:38 -0400 (EDT)
Aditya Mahajan
On Tue, 27 Aug 2013, "H. Özoguz" wrote:
For LaTex there exists a tool, named "latexmk", which allows a "preview continuous mode", that is to update the compiled pdf automatically. It is really very helpful!
Because it is open-source: It is possible to addapt this tool for context, too? Maybe one of the programmers have time for this ... :)
I use the perl program `atchange`[1] for continous preview. For simple documents, you can just run
atchange filename.tex "context --batch filename"
For more complicated documents (depending on multiple files and figures), you can create a automate file (see [1] for description) and run
atchange automate
[1]: http://schneider.ncifcrf.gov/atchange.html
Aditya
If you use the editor texworks you can maintain two side by side windows, one for editing and one for viewing. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: "Create Book Covers with Scribus" available at http://www.booklocker.com/books/4055.html
participants (7)
-
"H. Özoguz"
-
Aditya Mahajan
-
Ernst van der Storm
-
john Culleton
-
Marco Patzer
-
Romain Diss
-
Thangalin