Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I need to execute an external application prior to executing latex.exe to prepare a new file to be imported from within the (La)TeX input file.

From another topic, I got an rough info that we can use \write18 command. But I don't have an idea to execute it.

Here is my file structure:

MyProjectDir
---Main.tex
---SourcesDir
-----ExternalApp.exe

EDIT 1: In TeXnicCenter (latex editor for windows), there is no PreProcessor. Only PostProcessor is available. Therefore, I cannot execute it in one go. Executing it manually will be a tedious job.

share|improve this question
    
have latex.exe be a link to a command that does what you want ans then calls the "real" latex.exe file? is this possible in windows? –  Yossi Farjoun Dec 5 '10 at 23:55
1  
I'd usually use a Makefile for that, but I don't know how easy it is to get make on Windows. –  Caramdir Dec 6 '10 at 0:06
    
@Caramdir, Makefile in Linux works like a batch file in Windows? –  xport Dec 6 '10 at 3:28
1  
I essence yes, but they provide a lot of additional convenience (once you have figured out how to write them...). See en.wikipedia.org/wiki/Makefile –  Caramdir Dec 6 '10 at 3:56
    
My dream has come true, see :-) –  xport Aug 8 '11 at 11:57
add comment

2 Answers

up vote 1 down vote accepted

In Windows, a batch file will do (*.bat). You can then call the batch file. I use WinEdt because of the convenience it provides. In there, you could modify the sequence being called.

share|improve this answer
    
Could you give me an example of your batch file? Thanks in advance. –  xport Dec 12 '10 at 19:41
add comment

You could install Kile for Windows. Kile allows you to define your own build options and build chains. You can specify each program you need, the order and the parameters.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.