MiKTeX and TeXnicCenter are two different things. The former is a distribution of TeX that includes a bunch of packages as well as the executables latex.exe
, pdflatex.exe
, tex.exe
, etc. The latter is an editor that provides a front end to the distribution. You should point TeXnicCenter to where you installed MiKTeX, not TeXnicCenter itself.
On my machine, running TeXnicCenter on Windows 7 with TeX Live 2011 (yet another distribution of TeX), my setup looks like this:
These building profiles (I have a bunch of them, as you can see from the list on the left) are set up when you first start TeXnicCenter. The "Path to the (La)TeX compiler" is the location of latex.exe
on your machine. Depending on where you installed MiKTeX, that's where latex.exe
resides. I'm guessing it would be somewhere in:
C:\Program Files\MiKTeX\2.9\bin\
or
C:\Program Files (x86)\MiKTeX\2.9\bin\
depending on whether you installed a 64-bit version of 2.9
.
Edit: I may be wrong in my path assumption above. @doncherry has pointed out that this may in fact be
C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\
Goes to show the installation structure of different installation may be noticeably different.
(This was tested with final version 2.02 of TeXnicCenter.)
On installation TeXnicCenter adds or changes some keys in the Windows registry, so it’s a bit difficult to change the behaviour depending on your skills …
Open the registry – Start “regedit.exe” or another registry editor and save the following key by doing an export (the resulting REG-file could later be re-imported):
HKEY_CLASSES_ROOT\.tex
(This former one has to be distinguished from a second key created by TXC: HKEY_CLASSES_ROOT\.tex;.sty;.cls;.dtx;.ins;.ltx
, but we will use the value of this latter one.)
In the registry editor change the value of this key from TeXnicCenter.tex
to LaTeX.Document
.
For the case you are self-conscious I provide a REG script here, that has to be copied into a new ordinary text file (there are text editors with syntax highlighting for REG-files, three of them I know are mentioned here: https://tex.stackexchange.com/a/47585/9237) and saved as file with the extension reg
(pay attention, that the extension txt
is not automatically added after this):
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.tex]
@="LaTeX.Document"
Do an import of this saved REG file, i. e. execute it (by default REG files are linked with the regedit.exe.)
A remark: The original keys, where TXC defines the way of execution, are HKEY_CLASSES_ROOT\TeXnicCenter.tex
and some other TeXnicCenter*.*
keys, which could be changed, too, but I think it’s better to use the also created LaTeX.Document
key. The reasons for this odd default behaviour of TeXnicCenter are unknown to me.
Best Answer
File > Save As... > Choose your encoding:
The file encoding will be displayed in the bottom status bar.