TeXnicCenter

From Wikipedia, the free encyclopedia

TeXnicCenter
TeXnicCenter screenshot
TeXnicCenter screenshot
Developer: The TeXnicCenter Team
Latest release: 1 Beta 7.01 / June 18, 2006
OS: Windows
Use: LaTeX
License: GPL
Website: www.texniccenter.org

TeXnicCenter is a free open source IDE for the LaTex typesetting language. It uses the MiKTeX or TeXLive distributions. It allows the user to type documents in LaTeX and to compile them in PDF, DVI or PS. A menu gives access easily to precoded elements and environments (formulas, symbols, sections). It also allows for the creation of projects to organise and access the sections and environments of documents, and to insert a bibliography (using BibTeX) and an index (using MakeIndex).

To use TeXLive 2005 distribution, you need to make a minor change to the output profiles by replacing each of the output argument options with their Unix format variants (even for running on Windows), e.g. the command line arguments "%pm" becomes "%Pm" and "%bm" becomes "%Bm".

Contents

[edit] Acrobat integration

TeXnicCenter has the ability to integrate with Adobe Acrobat, such that recently compiled PDF files are opened automatically, and existing open PDF files are closed automatically upon recompilation. This is done using DDE calls to Acrobat, documented in Acrobat Interapplication Communication Overview and Acrobat Interapplication Communication Reference

[edit] Integration setup

You can insert the following lines of command in TeXnicCenter to integrate it with Acrobat. This particularly enables you to compile your files in pdf without having to close the previous document first (necessary in the default option).

Integration is setup in the BuildDefine Output Profiles menu option. Select a profile "LaTeX=>PDF" or "LaTeX=>PS=>PDF", and click on the viewer window.

[edit] Without forward search

To simply (re)open the document in the Acrobat Reader, use :

view project's output:
[x] DDE command
command: [DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]
server: acroview
topic: control
forward search:
[x] DDE command
command: [DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]
server: acroview
topic: control
Close document before running (La)TeX:
[x] DDE command
command: [DocClose("%bm.pdf")]
server: acroview
topic: control

[edit] Manual forward search

Alternatively, the following command can be used for "view project's output" and "forward search". It opens the pdf-document on page <pageno>+1:

command: [DocOpen("%bm.pdf")][DocGoTo("%bm.pdf",<pageno>)]

[edit] Semi-automatic forward search

An much more useful solution would be to use the hyperref package:

1. Make sure the hyperref package is loaded: \usepackage{hyperref}

2. Define the following command: \def\acrobat{\hyperdef{jump}{here}{}}

3. Change the "view project's output" and "forward search" DDE command (as described earlier on) to:

command: [DocOpen("%bm.pdf")][FileOpen("%bm.pdf")][DocGoToNameDest("%bm.pdf","jump.here")]

4. Use somewhere in the text (usually, where you are currently working…) the new command \acrobat and, after (re)opening, the reader should jump to that location.

Note that steps 1. and 2. have to be done in the header of your document. If you use pdfTeX, you should load the hyperref package via \usepackage[pdftex]{hyperref}; if you use dvips, load it using \usepackage[dvips]{hyperref}. If several \acrobat commands are issued, the reader always jumps to the "latest" one.

[edit] Open and jump back to previous position

If you want Acrobat to reopen the file after a recompilation at the exact same location as it was just before, and if you have the full version of Acrobat (the following is not supported by the free Acrobat Reader!) set the "view project's output" and "forward search" DDE command to:

command: [AppHide()][MenuitemExecute("GoBack")][AppShow()][DocOpen("%bm.pdf")][AppShow()]

Note that Adobe Reader supports only the following DDE messages: AppExit, CloseAllDocs, DocClose, DocGoTo, DocGoToNameDest, DocOpen, FileOpen, FilePrint, FilePrintEx, FilePrintSilent, and FilePrintTo. In order to support the MenuitemExecute functionality, a full version of Adobe Acrobat is required.

[edit] External links