Hi,
I have been using Texnicenter and MikTex till date. Now I have started using TexMaker editor. All the files that I had created in Texnicenter are opened in TexMaker. But these .tex files are shown as some kind of unknown files. I can not open them with double click. Every time I have give "Open With" option of TexMaker. I assume this is the problem if linking between TexMaker and MikTex. If this is the case, may I know how to resolve this? Otherwise can someone take a look at it?
Thank you,
Omkar
Texmaker and TeXstudio ⇒ file indentification
NEW: TikZ book now 40% off at Amazon.com for a short time.

Re: file indentification
From what you describe it looks like there's missing file association for .tex extension on your system. When "Open with" dialog pops up, there should be a check box saying that the chosen program should always be used for this file type. Make sure that it is checked and that should do the trick.
Cheers,
Tomek
Cheers,
Tomek
Re: file indentification
Hi,
I tried that option also, and do that every time. But still issue is there. If there is missing association for .tex files, how do I create it and attach all files with .tex with Texmaker? Can you let me know some guidelines?
Thanks
Omkar
I tried that option also, and do that every time. But still issue is there. If there is missing association for .tex files, how do I create it and attach all files with .tex with Texmaker? Can you let me know some guidelines?
Thanks
Omkar
Re: file indentification
Normally, file associations should be defined automatically during installation, so you could try reinstalling TeXmaker and maybe that will fix the problem. Unfortunately, I only use the USB version, so I can't tell for sure if TeXmaker defines its own associations.
If that doesn't work, you can poke a little bit in Windows registry (you might need admin rights for that). Fire up DOS box, type regedit and hit enter. This will launch registry editor. Navigate to key HKCU\.tex (HKCU is HKEY_CLASSES_ROOT) and see what value it has. It should be something like "texfile" or similar description (on my system it's "tex_auto_file"). Now navigate to key HKCU\texfile\shell\open\command (replace texfile with what you have under HKCU\.tex) and you will see the command that it's used to open .tex file. On my system this is
"D:\Software\LocalApps\TeXnicCenter\TEXCNTR.EXE" "%1"
Edit this value and enter the right path to TeXmaker.exe.
If you don't have those keys in the registry, you can simply add them. Alternatively, at the command prompt in DOS box type:
assoc .tex=texfile
ftype texfile= "C:\path\to\where\you\have\TeXmaker.exe" "%1"
That should have an equivalent effect to registry editing. For more info on those commands type assoc /? (ftype /?) or just google.
Hope this helps.
Cheers,
Tomek
Edit 17.04.2008
Using assoc and ftype commands does not have the same effect as editing the registry values, so it won't work.
If that doesn't work, you can poke a little bit in Windows registry (you might need admin rights for that). Fire up DOS box, type regedit and hit enter. This will launch registry editor. Navigate to key HKCU\.tex (HKCU is HKEY_CLASSES_ROOT) and see what value it has. It should be something like "texfile" or similar description (on my system it's "tex_auto_file"). Now navigate to key HKCU\texfile\shell\open\command (replace texfile with what you have under HKCU\.tex) and you will see the command that it's used to open .tex file. On my system this is
"D:\Software\LocalApps\TeXnicCenter\TEXCNTR.EXE" "%1"
Edit this value and enter the right path to TeXmaker.exe.
If you don't have those keys in the registry, you can simply add them. Alternatively, at the command prompt in DOS box type:
assoc .tex=texfile
ftype texfile= "C:\path\to\where\you\have\TeXmaker.exe" "%1"
That should have an equivalent effect to registry editing. For more info on those commands type assoc /? (ftype /?) or just google.
Hope this helps.
Cheers,
Tomek
Edit 17.04.2008
Using assoc and ftype commands does not have the same effect as editing the registry values, so it won't work.
Last edited by T3. on Thu Apr 17, 2008 12:30 pm, edited 1 time in total.
Re: file indentification
You should be able to do the same thing by opening an explorer window (winkey+e), go to Folder Options, and click on the File Types tab. Go down the list of extensions until you see .tex, then in the "details" box there is a "change" button that takes you to the "open with" options.
Assuming you are using XP, of course--I still haven't figured out an easy way to do it in Vista.
Assuming you are using XP, of course--I still haven't figured out an easy way to do it in Vista.