General ⇒ closing documents when using Foxit
closing documents when using Foxit
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Re: closing documents when using Foxit
you can try the autohotkey script :
loop ,%1%
{
IfWinExist, %A_LoopFileName%
WinClose ; use the window found above
}
Run,%1%
compile the script
copy the .exe in a folder (C:\Program Files\CloseFoxit)
and call it instead foxit
in Texnicenter Build>outputprofile>viewer
path of executable : C:\Program Files\CloseFoxit\CloseFoxit.exe
command line argument : %bm
I join the compiled script
Best regards
-
Flominator
- Posts: 3
- Joined: Wed Nov 07, 2007 8:30 pm
closing documents when using Foxit
closing documents when using Foxit
First of all, thanks for the hints. Things didn't go all that smoothly, of course, but who would expect that?
Here are the problems I remember, in approximate order...
1. "taskkill" is a windows XP command. If you use Windows 2000 (like me) then the appropriate command is simply "kill".
2. The command "kill" is not included with a typical install of Windows 2000...It's pretty easy to install from your Windows 2000 cd. See http://seer.entsupport.symantec.com/docs/253904.htm
3. The filename of the Foxit Reader executable is "Foxit Reader.exe"...I think the old batch system doesn't like filenames like that or something, because I had a devilish time trying to reference it. Luckily, Foxit is a self-contained program so I just changed the filename to the very friendly "foxit.exe".
4. Since I often have .pdf articles open as well as the .pdf for the .tex file I am working on, I want the kill command to search out the right .pdf file to close.
So anyways, here's my solution:
In TexnicCenter Output Profile:
path of executible: "C:\Foxit Reader\foxit_close.bat"
view project output command line argument: "%bm.pdf" %tm
(the quotes like that are important)
forward search command line argument: [empty]
close document before running (La)tex: Do Not Close
And my foxit_close.bat file:
Code: Select all
KILL %2*
START "C:\Foxit Reader\foxit.exe" %1Anyway, thanks again for the helpful suggestions...hopefully with our three solutions anybody else coming across this problem will have enough to work with 8)
closing documents when using Foxit
Cheers,
closing documents when using Foxit
However I needed to use a different foxit_close.bat for Windows XP:In TexnicCenter Output Profile:
path of executible: "C:\Foxit Reader\foxit_close.bat"
view project output command line argument: "%bm.pdf" %tm
(the quotes like that are important)
forward search command line argument: [empty]
close document before running (La)tex: Do Not Close
Code: Select all
taskkill /fi "Windowtitle eq %2*" /im Foxit*
sleep 0.5
START "C:\Foxit Reader\Foxit Reader.exe" %1If you do not care about the aforementioned feature, the following foxit_close.bat is sufficient:
Code: Select all
taskkill /f /fi "Windowtitle eq %2*" /im Foxit*
START "C:\Foxit Reader\Foxit Reader.exe" %1-
jennyshred
- Posts: 1
- Joined: Tue Mar 16, 2010 9:28 pm
Re: closing documents when using Foxit
closing documents when using Foxit
Yes, use if you want to waste lots of system resources unnecessarily.spiegboy wrote:use acrobat reader
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
closing documents when using Foxit
The Adobe Reader in its versions >=8 has turned out to be not the ideal partner for TeXnicCenter (TXC). It locks opened files and so prevents them from being updated after an additional LaTeX run. Although it can close files before the next run, it doesn't reload automatically. Furthermore it doesn't support SyncTeX for synchronization between source code and PDF output. A much better viewer for use with LaTeX and especially TXC is SumatraPDF. The current alpha version of TXC2 recognizes if it is already installed on the system and automatically generates an according output profile.spiegboy wrote:use acrobat reader
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10