Texmaker and TeXstudiofile indentification

Information and discussion about Texmaker, an integrated LaTeX environment for several platforms, and the related TeXstudio
Post Reply
omkardpd
Posts: 86
Joined: Sun Feb 24, 2008 7:23 am

file indentification

Post by omkardpd »

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

T3.
Posts: 208
Joined: Fri Mar 14, 2008 12:58 pm

Re: file indentification

Post by T3. »

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
omkardpd
Posts: 86
Joined: Sun Feb 24, 2008 7:23 am

Re: file indentification

Post by omkardpd »

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
User avatar
T3.
Posts: 208
Joined: Fri Mar 14, 2008 12:58 pm

Re: file indentification

Post by T3. »

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.
Last edited by T3. on Thu Apr 17, 2008 12:30 pm, edited 1 time in total.
Mander
Posts: 2
Joined: Tue Apr 15, 2008 4:40 pm

Re: file indentification

Post by Mander »

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.
Post Reply