I am Charmie

メモとログ

tcp file generator for TeXnicCenter

TeXnicCenter requires a .tcp file to manage tex project. Since the contents of .tcp file is not very different, I was wondering someone would make tcp file generator. Then, I did.

The following sequence of command is for windows batch file, e.g., mktcp.bat. For mytex.tex file, just type
  mktcp mytex
The batch file automatically generates mytex.tcp file. This batch file works under Windows 7 64bit with TeXnicCenter 1.0 Stable Release Candidate 1.

~~mktcp.bat~~
set tcpfile=%1%.tcp

set texfile=%1%.tex
copy nul %tcpfile%
echo ^[FormatInfo^]>> %tcpfile%
echo Type=TeXnicCenterProjectInformation>> %tcpfile%
echo Version^=4 >> %tcpfile%
echo: >>%tcpfile%
echo ^[ProjectInfo^]>> %tcpfile%
echo MainFile=%texfile% >> %tcpfile%
echo UseBibTeX=1 >> %tcpfile%
echo UseMakeIndex=0 >> %tcpfile%
echo ActiveProfile=LaTeX =^> PDF >> %tcpfile%
echo ProjectLanguage=en >> %tcpfile%
echo ProjectDialect=US >> %tcpfile%
echo: >>%tcpfile%

One potential improvement of this file is to allow some option handling for bibtex, makeindex, etc.