• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 16:06
CET 22:06
KST 06:06
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10
Community News
RSL Season 3: RO16 results & RO8 bracket12Weekly Cups (Nov 10-16): Reynor, Solar lead Zerg surge1[TLMC] Fall/Winter 2025 Ladder Map Rotation14Weekly Cups (Nov 3-9): Clem Conquers in Canada4SC: Evo Complete - Ranked Ladder OPEN ALPHA12
StarCraft 2
General
RSL Season 3: RO16 results & RO8 bracket SC: Evo Complete - Ranked Ladder OPEN ALPHA RSL Season 3 - Playoffs Preview Mech is the composition that needs teleportation t GM / Master map hacker and general hacking and cheating thread
Tourneys
RSL Revival: Season 3 $5,000+ WardiTV 2025 Championship StarCraft Evolution League (SC Evo Biweekly) Constellation Cup - Main Event - Stellar Fest 2025 RSL Offline Finals Dates + Ticket Sales!
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 500 Fright night Mutation # 499 Chilling Adaptation Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened
Brood War
General
Data analysis on 70 million replays A cwal.gg Extension - Easily keep track of anyone soO on: FanTaSy's Potential Return to StarCraft [ASL20] Ask the mapmakers — Drop your questions FlaSh on: Biggest Problem With SnOw's Playstyle
Tourneys
[Megathread] Daily Proleagues Small VOD Thread 2.0 [BSL21] GosuLeague T1 Ro16 - Tue & Thu 22:00 CET [BSL21] RO16 Tie Breaker - Group B - Sun 21:00 CET
Strategy
Current Meta Game Theory for Starcraft How to stay on top of macro? PvZ map balance
Other Games
General Games
Stormgate/Frost Giant Megathread EVE Corporation Path of Exile [Game] Osu! Should offensive tower rushing be viable in RTS games?
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas
Community
General
Russo-Ukrainian War Thread The Games Industry And ATVI US Politics Mega-thread Things Aren’t Peaceful in Palestine About SC2SEA.COM
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
[Manga] One Piece Movie Discussion! Anime Discussion Thread Korean Music Discussion
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
TL Community
The Automated Ban List
Blogs
The Health Impact of Joining…
TrAiDoS
Dyadica Evangelium — Chapt…
Hildegard
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1471 users

LaTeX /w TeXnicCenter & Foxit Reader Help

Forum Index > General Forum
Post a Reply
Nexzico
Profile Joined November 2006
Sweden93 Posts
Last Edited: 2010-11-20 22:37:03
November 20 2010 22:34 GMT
#1
For those of you who don't know what LaTeX (the x i pronounced similar to the "ch" in chicken) here is a (very) short intro. LaTeX is similar to a programming language (like C++) since you have a source file, in which you write your commands, and compiler which puts everything together. The difference is that LaTeX is (mostly) used for producing math/scientific papers and documents. If you haven't tried it, and have use for a fast end easy way (once you have figured everything out) to write math papers, definitely check it out!

Anyway, on to my problem...

I use TeXnicCenter as my editor, MiKTeX as my compiler and Foxit as my pdf reader.

I write my stuff, compile and watch it come out as a .pdf, so far so good. But after I add something to my text and then 'compile and view' a new Foxit window appears but the old one is still there. So after a while I have like 10+ Foxit windows with basically the same stuff on them, but only one containing my latest updates.

I know I can just close the 'old' pdf files, but seems like a waste of time, and I know that there is a solution. Here is my TeXnic config:

In the Build->Define Output profiles/Viewer

Path: .../Foxit Reader.exe
View Project's Output: Command line argument, command: "%bm.pdf"
Forward search: (same as above)
"Do not close"

I've tried fixing this by, instead of giving the path to the FR.exe, giving it to a .bat file which closes FR, and then opens it up again. I've tried several different codes but none of them seems to work the way I want them to. I read about this some (inferior) forum and the solution they posted was create a "foxit_restart.bat" to replace the regular .exe file. Here is the code:

TASKKILL /FI "WINDOWTITLE eq %2.pdf*"
START "C:\Programme\Foxit Software\Foxit Reader\Foxit Reader.exe" %1

They also said to change the settings to:

Path: .../foxit_restart.bat
View Project's Output: Command line argument, command: "%bm.pdf" %tm
Forward search: (nothing)
"Do not close"
(BTW if anyone knows what "%bm.pdf" %tm means, please tell me)

I've changed the path to the correct one (including making the path swedish, not german). And since I have Win XP home, the commands are a little different in the .bat file (took me a while to figure that out... im not use to the cmd promt/code). My version looks like this:

TSKILL /FI "WINDOWTITLE eq %2.pdf*"
START ".......\Foxit Reader.exe" %1

Thats all I know I have to change, don't really know what the '%' , '1' and '2' means...
I've also tried a simpler version, just to see if it gets the job done, it does, but with some side effects. But none of them work when i replace the Viewer path to the .bat files. Everything it does is when I press 'view' in TeXnic a window is shown for a split second and then nothing. (I think It's a cmd window). The simple version:

TSKILL FOXITR~1
CD "...\FOXIT READER"
"FOXIT READER.EXE"

I'm hoping sure someone out there knows this.


TY in advance

/Marcus
(Elliot to Dr. Cox) I started an I hate cox chat room. It doesnt really work out the way I planned.. It is me, two inturns and 14.000 lesbians
Sufficiency
Profile Blog Joined October 2010
Canada23833 Posts
November 20 2010 22:40 GMT
#2
I used to use the same setup as you until I switched to Linux.

My suggestion would be to close the reader everytime you want to compile again. Come on, it's not that bad! If this is REALLY too much trouble for you as you claimed, I believe (not 100% sure) Acrobat Reader does not have this problem. Or you can just compile to *.dvi if you are not embedding anything tricky.
https://twitter.com/SufficientStats
fabiano
Profile Blog Joined August 2009
Brazil4644 Posts
November 20 2010 22:40 GMT
#3
I use MikTex + TexWorks and the PDF generated always replace the old one. I didnt have to modify anything so that he behavied like that.

TexnicCenter looks very confusing, never used it so I cant really help :/
"When the geyser died, a probe came out" - SirJolt
MisterD
Profile Blog Joined June 2010
Germany1338 Posts
November 20 2010 22:41 GMT
#4
%1 and %2 etc are the first and second (etc) parameter of the batch file call.

for instance ->
bla.bat:
echo $1

then the call
> bla asdf
will execute "echo asdf", hence print asdf on your console.
Gold isn't everything in life... you need wood, too!
Sufficiency
Profile Blog Joined October 2010
Canada23833 Posts
November 20 2010 22:43 GMT
#5
On November 21 2010 07:40 fabiano wrote:
I use MikTex + TexWorks and the PDF generated always replace the old one. I didnt have to modify anything so that he behavied like that.

TexnicCenter looks very confusing, never used it so I cant really help :/


Or this. Use TeXWorks instead. Or WinEdit, or use Linux . I always find TeXnicCenter lacking in features anyways. Have you even tried other IDEs before? Give other ones a shot, you may actually find something you like. I used to be exclusively on TeXnicCenter too before I decided to explore other options.
https://twitter.com/SufficientStats
Nexzico
Profile Joined November 2006
Sweden93 Posts
November 20 2010 22:54 GMT
#6
First reply after 3 min, TL never lets you down.

I've thought about switching editor since i haven't used it very long, I'm not that attached to it. The reason why I chose TC is because one of my friends have used it for a while, so I figured I could ask him. But apparently not. Maybe I should switch, I've heard that WinEdt is good, I'll check that out. Or if you guys have other suggestions.

TY for the replies
(Elliot to Dr. Cox) I started an I hate cox chat room. It doesnt really work out the way I planned.. It is me, two inturns and 14.000 lesbians
toosoon
Profile Joined July 2010
United States18 Posts
November 20 2010 23:20 GMT
#7
As was mentioned, %1 and %2 correspond to the first and second arguments passed on the command line when running the batch file (lol windows shell scripting).

More importantly, LaTeX is pronounced "lah-tek" (I've also heard "lay-tek", but I'm pretty sure that only happens when people realize they're mis-pronouncing the word halfway through saying it). The X is pronounced like a hard "k".

If you don't feel like dual booting linux, using a virtual machine (like vmware or virtualbox) to run linux from windows is a good next solution. I do this on my laptop, and it works fine for anything not memory or graphics intensive.
FiBsTeR
Profile Blog Joined February 2008
United States415 Posts
November 20 2010 23:26 GMT
#8
I use TeXnicCenter and MiKTeX also but use Adobe Acrobat as the PDF reader. It closes the old PDF everytime you recompile just like you want, so perhaps you could just switch to this.
Manit0u
Profile Blog Joined August 2004
Poland17448 Posts
Last Edited: 2010-11-20 23:30:51
November 20 2010 23:29 GMT
#9
When working on Windows I found LEd (Latex Editor) to be the simplest and best front end to use. And for your problem, I can't see how hard Alt+F4 -> PDFLatex compilation shortcut can be...

@Fibster: AR might do the trick, but it's so slow and bloated compared to Foxit that I'm not sure I'd recommend it to anyone.
Time is precious. Waste it wisely.
hozz
Profile Joined November 2008
Germany12 Posts
November 21 2010 00:11 GMT
#10
(sorry for caps lock)

THERE ARE OPTIONS IN FOXIT, LIKE "USE EXISTING WINDOW" AND "DO NOT USE TABBING", YOU JUST NEED TO FIND THEM!

It has nothing to do with Latex and Texniccenter, you just need to make Foxit use existing open windows, so only one .pdf can be open at a time.

In Foxit: Tools -> Preferences -> Documents
Uncheck "tabbed documents" and "allow multiple instances" (right there at the top).


Works for me (same setup).
Aquafresh
Profile Joined May 2007
United States824 Posts
November 21 2010 00:57 GMT
#11
I would strongly recommend using linux for LateX stuff, either a dual boot or through a virtual machine like vmware. You can use the plugin for gedit if you want an editor (or even better emacs) and handle all your compiling and file management with simple shell scripts. I used LateX editor when working in windows, which isn't bad, but I much prefer the simplicity of doing all of this in linux.

As for your .bat %# is a command line argument, whereas something in between % is a variable. You can figure out what is being passed to the script by just echoing out the $1 and $2 variables to a text file or something.
shabinka
Profile Joined October 2008
United States469 Posts
November 21 2010 01:03 GMT
#12
I use LaTeX occasionally, I can't really help you with your TeXnicCenter program but I use Texmaker if you wanted to try something different. It works pretty well, and it seems more userfriendly.
moktira *
Profile Blog Joined October 2010
Ireland1545 Posts
November 21 2010 13:38 GMT
#13
WinEdt requires a license though so it can be a bit of a pain, also when I used it it wouldn't let you compile if you left the .pdf file open but it would for .ps (granted it was a few years ago so maybe the current build isn't like that).

I use TeXnicCenter at the moment and prefer it to LEd, never tried TeXWorks, I must try it.
If in doubt, differentiate and set equal to zero
Please log in or register to reply.
Live Events Refresh
Next event in 10h 24m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
White-Ra 255
IndyStarCraft 193
UpATreeSC 154
JuggernautJason68
StarCraft: Brood War
Britney 26503
Calm 2977
Dewaltoss 91
Leta 42
HiyA 12
Dota 2
Gorgc6589
Counter-Strike
pashabiceps1528
fl0m1516
Heroes of the Storm
Liquid`Hasu449
Other Games
Grubby3414
FrodaN1924
B2W.Neo758
DeMusliM381
mouzStarbuck170
Sick168
RotterdaM151
C9.Mang0105
KnowMe59
Trikslyr55
SteadfastSC43
ZombieGrub27
OptimusSC22
Organizations
Dota 2
PGL Dota 2 - Main Stream26064
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 19 non-featured ]
StarCraft 2
• intothetv
• sooper7s
• Migwel
• AfreecaTV YouTube
• LaughNgamezSOOP
• IndyKCrew
• Kozan
StarCraft: Brood War
• FirePhoenix22
• 80smullet 15
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• C_a_k_e 4453
• masondota2583
• WagamamaTV452
• Ler92
League of Legends
• TFBlade1229
Other Games
• imaqtpie1048
• Shiphtur284
Upcoming Events
RSL Revival
10h 24m
Classic vs MaxPax
SHIN vs Reynor
herO vs Maru
WardiTV Korean Royale
14h 54m
SC Evo League
15h 24m
IPSL
19h 54m
Julia vs Artosis
JDConan vs DragOn
OSC
19h 54m
BSL 21
22h 54m
TerrOr vs Aeternum
HBO vs Kyrie
RSL Revival
1d 10h
Wardi Open
1d 16h
IPSL
1d 22h
StRyKeR vs OldBoy
Sziky vs Tarson
BSL 21
1d 22h
StRyKeR vs Artosis
OyAji vs KameZerg
[ Show More ]
OSC
2 days
OSC
2 days
Monday Night Weeklies
2 days
OSC
3 days
Wardi Open
3 days
Replay Cast
4 days
Wardi Open
4 days
Tenacious Turtle Tussle
5 days
The PondCast
5 days
Replay Cast
6 days
LAN Event
6 days
Liquipedia Results

Completed

Proleague 2025-11-16
Stellar Fest: Constellation Cup
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
BSL Season 21
CSCL: Masked Kings S3
SLON Tour Season 2
RSL Revival: Season 3
META Madness #9
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.