# [OS X TeX] TexShop not syntax coloring some .tex files

Herbert Schulz herbs at wideopenwest.com
Fri Mar 6 10:06:17 EST 2015

> On Mar 6, 2015, at 8:24 AM, Berend Hasselman <bhh at xs4all.nl> wrote:
>
>>
>> On 06-03-2015, at 15:00, Herbert Schulz <herbs at wideopenwest.com> wrote:
>>
>>>
>>> On Mar 6, 2015, at 7:39 AM, Berend Hasselman <bhh at xs4all.nl> wrote:
>>>
>>>
>>> On 06-03-2015, at 13:55, Herbert Schulz <herbs at wideopenwest.com> wrote:
>>>
>>>>>
>>>>> On Mar 6, 2015, at 5:37 AM, Berend Hasselman <bhh at xs4all.nl> wrote:
>>>>>
>>>>>
>>>>> I have just let TexShop update itself to version 3.50 on OS X Mavericks.
>>>>> Some .tex files are not syntax coloured.
>>>>> The file is the root of a project.
>>>>>
>>>>> When I switch syntax coloring off and then back on in Preferences all is ok.
>>>>> When I turn off line numbering and then back on again via the menu the file also be syntax colored.
>>>>>
>>>>> I want the file to be syntax coloured.
>>>>>
>>>>> How can I fix this?
>>>>>
>>>>> Berend
>>>>
>>>> Howdy,
>>>>
>>>> Unfortunately I no longer have Mavericks on any of my systems so I can't test your exact situation. Could you let us have a small set of files set up like your document as well as a description of the order you are doing things to see the behavior. Does this happen if you open the root file directly? What are your `Project Root File' settings (TeXShop->Preferences->Misc)? Etc.
>>>>
>>>> For what it's worth I'm not seeing the problem in Yosemite.
>>>>
>>>> Good Luck,
>>>>
>>>> Herb Schulz
>>>
>>> Attached two files that exhibit the problem regardless of which one you open first.
>>> The root file is newt.tex.
>>> In folder is the other file: newtmain.tex.
>>>
>>> I don’t know if folders and the content  will be sent by Mail or accepted by the mail server.
>>>
>>> Berend
>>>
>>> <base><newt.tex>
>>
>> Howdy,
>>
>> After correcting the name of the included file (the one in base to agree with the name in the \include statement in root) I can open and typeset each file. I also get syntax coloring on both file independent of order of opening them.
>>
>
>
>> By the way, I don't see how TeXShop knows that there are multiple files if you open the root file---it doesn't look for \input or \include statements---so it looks like any other .tex file (i.e., no special `% !TEX' commands).
>
> I had no intention of implying that TeXShop should know about multiple files when I open the root file.
>
>> And you say it isn't syntax colored if you open it first?
>>
>
> No neither of the files is syntax coloured regardless which one I open first.
>
> However they are coloured on OS X Yosemite.
>
> Berend

Howdy,

So you are saying that any .tex file you open in TeXShop is not initially syntax colored in Mavericks. If that's correct it should be easy to duplicate by anyone running Mavericks. Sorry I can't help here.

Do I have that right?

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)