[OS X TeX] TexShop not syntax coloring some .tex files
Herbert Schulz
herbs at wideopenwest.com
Fri Mar 6 11:24:32 EST 2015
> On Mar 6, 2015, at 9:32 AM, Berend Hasselman <bhh at xs4all.nl> wrote:
>
>>
>> On 06-03-2015, at 16:06, Herbert Schulz <herbs at wideopenwest.com> wrote:
>>
>>>
>>> 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.
>>>>
>>>
>>> Sorry about that.
>>>
>>>> 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,
>>
>> Sorry, that is not what I read in your original description.
>>
>> 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?
>>
>
> No not quite.
>
> A lot of TeX files are not syntax coloured by TeXShop.
>
> But when I open a .tex file that is not syntax coloured, I can get that file to be syntax coloured by switching off line numbering.
> When I turn line numbering on again the file remains coloured (for the session).
>
> I can get the same effect when instead of fiddling with the line numbering, I turn syntax coloring off and on again in TeXShop Preferences. So after turning coloring on again and the file is coloured and the syntax colouring remains (for the session)..
>
> BUT after closing the file and reopening it once again it is not syntax coloured.
>
>
> Berend
>
> BTW: I’m using TeXShop 3.5
Howdy,
Ok... so some .tex files are syntax colored upon opening but most aren't when opening in TeXShop (3.50).
Is there any difference between those that are and those that aren't? Do all of the files have extension .tex?
Good Luck,
Herb Schulz
(herbs at wideopenwest dot com)
More information about the MacOSX-TeX
mailing list