nope i am afraid that is not how it works. Pdf is loaded into memory and is not auto reloaded when its modified/recreated. So the pdf you open will not update automagically to its latest version. So it makes perfect sense to have that as option in compile.sh because if you do frequent recompiles you waste a lot of time opening the pdf , again and again. At least I have. Not that is such a big problem I can create a bash that does that anyway. On Sun, Jun 8, 2014 at 7:47 PM, Damien Cassou <damien.cassou@gmail.com> wrote:
I propose we don't change anything with respect to that :-). I think users can open the pdf viewer once manually and this viewer will see updated to the pdf file so you don't have to open the pdf again and again.
On Sat, Jun 7, 2014 at 7:52 PM, Nicolas Petton <petton.nicolas@gmail.com> wrote:
Ben Coman <btc@openinworld.com> writes:
Hi all,
./compile.sh can be passed a parameter to compile only a specific file rather than the whole book. Now I consider this probably only occurs during development with a human executing the script (rather than some CI process which will be processing the whole book) and I'm finding it useful to automatically fire off a PDF Viewer on the generated file, as per the line below tagged "ADDED".
if [[ $# -eq 1 ]]; then dir=$(dirname "$1") # e.g., Zinc pier_file=$(basename "$1") # e.g., Zinc.pier pillar_one "$1" produce_pdf "${dir}" "${pier_file}" open "${dir}"/"${pier_file}".pdf # <----ADDED
The `open' tool is OSX-specific, isn't it?
Cheers, Nico
else pillar_all compile_chapters compile_latex_book fi
Is this something others would find useful? or can you see issues with it? Having this mod makes my working area dirty, and 'git clean' blows it away - so I'd like to integrate something like it. Now the above works for me on OSX, but for flexibility to deal with other platforms, the "open" command could be replaced with an environment variable, and do nothing if environment variable does not exist.
What do you think?
cheers -ben _______________________________________________ Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki
-- Nicolas Petton http://nicolas-petton.fr
-- Damien Cassou http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without losing enthusiasm." Winston Churchill