• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 14:18
CEST 20:18
KST 03:18
  • 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
Code S RO12 Preview: Maru, Trigger, Rogue, NightMare12Code S RO12 Preview: Cure, sOs, Reynor, Solar15[ASL19] Ro8 Preview: Unyielding3Official Ladder Map Pool Update (April 28, 2025)17[ASL19] Ro8 Preview: Rejuvenation8
Community News
Code S Season 1 - RO12 Group A Results (2025)1$1,250 WardiTV May [May 6th-May 18th]4Clem wins PiG Sty Festival #66Weekly Cups (April 28-May 4): ByuN & Astrea break through1Nexon wins bid to develop StarCraft IP content, distribute Overwatch mobile game29
StarCraft 2
General
Code S RO12 Preview: Maru, Trigger, Rogue, NightMare How does the number of casters affect your enjoyment of esports? Code S Season 1 - RO12 Group A Results (2025) Nexon wins bid to develop StarCraft IP content, distribute Overwatch mobile game Code S RO12 Preview: Cure, sOs, Reynor, Solar
Tourneys
[GSL 2025] Code S:Season 1 - RO12 - Group B GSL 2025 details announced - 2 seasons pre-EWC 2025 GSL Season 2 (Qualifiers) [GSL 2025] Code S:Season 1 - RO12 - Group A $1,250 WardiTV May [May 6th-May 18th]
Strategy
[G] PvT Cheese: 13 Gate Proxy Robo Simple Questions Simple Answers
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 472 Dead Heat Mutation # 471 Delivery Guaranteed Mutation # 470 Certain Demise Mutation # 469 Frostbite
Brood War
General
[G] GenAI subtitles for Korean BW content BGH auto balance -> http://bghmmr.eu/ StarCraft & BroodWar Campaign Speedrun Quest ToSsGirL stream thread Battlenet Game Lobby Simulator
Tourneys
[Megathread] Daily Proleagues [ASL19] Ro8 Day 4 [ASL19] Ro8 Day 2 [ASL19] Ro8 Day 3
Strategy
[G] How to get started on ladder as a new Z player Creating a full chart of Zerg builds [G] Mineral Boosting
Other Games
General Games
What do you want from future RTS games? Stormgate/Frost Giant Megathread Grand Theft Auto VI Nintendo Switch Thread Battle Aces/David Kim RTS Megathread
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
LiquidLegends to reintegrate into TL.net
Heroes of the Storm
Simple Questions, Simple Answers
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
Vanilla Mini Mafia TL Mafia Community Thread TL Mafia Plays: Diplomacy TL Mafia: Generative Agents Showdown Survivor II: The Amazon
Community
General
US Politics Mega-thread Elon Musk's lies, propaganda, etc. Things Aren’t Peaceful in Palestine UK Politics Mega-thread Russo-Ukrainian War Thread
Fan Clubs
Serral Fan Club
Media & Entertainment
Movie Discussion! Anime Discussion Thread [Books] Wool by Hugh Howey Surprisingly good films/Hidden Gems
Sports
2024 - 2025 Football Thread NHL Playoffs 2024 NBA General Discussion Formula 1 Discussion
World Cup 2022
Tech Support
Cleaning My Mechanical Keyboard How to clean a TTe Thermaltake keyboard? Logitech mx518 cleaning.
TL Community
The Automated Ban List TL.net Ten Commandments
Blogs
SECOND COMMING
XenOsky
What High-Performing Teams (…
TrAiDoS
WombaT’s Old BW Terran Theme …
WombaT
Heero Yuy & the Tax…
KrillinFromwales
BW PvZ Balance hypothetic…
Vasoline73
Test Entry for subject
xumakis
Racial Distribution over MMR …
Navane
Customize Sidebar...

Website Feedback

Closed Threads



Active: 10182 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
Poland17236 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
Ireland1542 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
Replay Cast
17:00
GSL 2025 Group A
IndyStarCraft 220
EnkiAlexander 77
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
mouzHeroMarine 765
IndyStarCraft 220
ProTech87
StarCraft: Brood War
Sea 1214
Soulkey 556
BRAT_OK 141
HiyA 49
Mind 48
Sexy 37
KwarK 35
Dota 2
Gorgc12386
Dendi1025
febbydoto13
Counter-Strike
fl0m1142
pashabiceps596
NBK_217
flusha211
Heroes of the Storm
Khaldor256
Other Games
tarik_tv17242
gofns12051
ceh9558
ArmadaUGS180
Trikslyr52
QueenE35
NonY11
Organizations
Other Games
gamesdonequick1517
StarCraft 2
ESL.tv109
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• Reevou 9
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Nemesis4564
• TFBlade1432
Other Games
• Shiphtur275
Upcoming Events
Replay Cast
5h 42m
OSC
5h 42m
Replay Cast
5h 42m
The PondCast
15h 42m
Online Event
1d 9h
ShoWTimE vs MaxPax
SHIN vs herO
Clem vs Cure
SHIN vs Clem
ShoWTimE vs SHIN
SOOP
1d 14h
DongRaeGu vs sOs
CranKy Ducklings
1d 15h
WardiTV Invitational
1d 16h
SC Evo League
1d 17h
WardiTV Invitational
1d 19h
[ Show More ]
Chat StarLeague
1d 21h
PassionCraft
1d 22h
Circuito Brasileiro de…
1d 23h
Online Event
2 days
Matvey vs herO
SHIN vs Cure
Clem vs MaxPax
ShoWTimE vs herO
ShoWTimE vs Clem
Sparkling Tuna Cup
2 days
WardiTV Invitational
2 days
uThermal 2v2 Circuit
2 days
Chat StarLeague
2 days
Circuito Brasileiro de…
2 days
Afreeca Starleague
3 days
BeSt vs Light
Wardi Open
3 days
PiGosaur Monday
4 days
Afreeca Starleague
4 days
Snow vs Soulkey
WardiTV Invitational
4 days
Replay Cast
5 days
GSL Code S
5 days
ByuN vs Rogue
herO vs Cure
Replay Cast
6 days
GSL Code S
6 days
Classic vs Reynor
GuMiho vs Maru
The PondCast
6 days
Liquipedia Results

Completed

FGSL Season 1
PiG Sty Festival 6.0
Calamity Stars S2

Ongoing

BSL Nation Wars Season 2
StarCastTV Star League 4
JPL Season 2
ASL Season 19
YSL S1
BSL 2v2 Season 3
BSL Season 20
China & Korea Top Challenge
KCM Race Survival 2025 Season 2
2025 GSL S1
Heroes 10 EU
Asian Champions League '25
ECL Season 49: Europe
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025
YaLLa Compass Qatar 2025
PGL Bucharest 2025
BLAST Open Spring 2025
ESL Pro League S21
PGL Cluj-Napoca 2025

Upcoming

CSLPRO Spring 2025
CSLPRO Last Chance 2025
CSLAN 2025
Esports World Cup 2025
HSC XXVII
Championship of Russia 2025
Bellum Gens Elite Stara Zagora 2025
2025 GSL S2
DreamHack Dallas 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 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.