No account? Create an account
 Editing LaTeX Files - Body by Henson, brain by Seuss. [entries|archive|friends|userinfo]
Kelly J. Cooper

 [ website | KJC Edits - let me edit you! ] [ userinfo | livejournal userinfo ] [ archive | journal archive ]

Editing LaTeX Files [Nov. 10th, 2013|12:27 am]
Kelly J. Cooper
 [ Tags | editing, latex, texmacs ]

My nerds, does anyone here edit .tex files? If so, what editor do you use? Will it allow you to mark certain words in different colors?

I ask because I need to edit .tex files for professorial types writing journal papers and I'd like a way to make and mark changes.

I installed TeXmacs and it's nice enough, but when I formatted the color of a given word to red, that formatting vanished after saving, closing, and reopening the file (although the words I changed remained changed; only the red went away).

(For them what do not know of which I speak, http://en.wikipedia.org/wiki/LaTeX is a good primer.)

 From: 2013-11-10 01:57 am (UTC) (Link)
Sorry - I think I've only used emacs. Let me poke around and see if I have something else. I remember writing some latex stuff a few years ago so maybe I had something else and forgot it.
 From: 2013-11-10 02:07 am (UTC) (Link)
Thanks! I don't know how Emacs deals with .tex files, but I don't want to play with the raw mark-up text. I don't think I really need to add that much data to my already overloaded brain. I just need to be able to make corrections and mark them somehow.
 From: 2013-11-10 10:18 am (UTC) (Link)
I don't think you want to edit the actual .tex file with colored text like that. Instead you want the final .dvi/.ps/.pdf document to have the highlighted or colored text you've edited. Try http://tex.stackexchange.com/questions/17104/how-to-change-color-for-a-block-of-texts

Alternatively make the edit in the tex file but surround it with '%%EDITED' comments so the journal can do a search in the tex document to find your edits but it will compile just fine otherwise.
 From: 2013-11-10 06:09 pm (UTC) (Link)
It appears that Bare Bones Software's TextWrangler can do TeX file syntax coloring. Not quite sure that will work for you, but you might want to look at it. It is free.
 From: 2013-11-10 10:28 pm (UTC) (Link)
I use TeXShop on my Mac when I want to see misspelled words highlighted.

However, I do the majority of my editing in vim because I edit best with it. I just found a plugin that makes LaTeX more awesome in vim but I haven't tried it: http://vim-latex.sourceforge.net

Tom
 From: 2013-11-10 10:32 pm (UTC) (Link)
Oh wait! You want your changes to be in a different color? That's entirely different. There is a package called "trackchanges":

Setup:

\usepackage[inline]{trackchanges}

Use:

\note[tal]{This will appear inline as a note from tal.}
\change[kjc]{This was the text the original author wrote.}{And this is my much improved text.}

It will display the text with colors similar to MS-Word's text revisions. There are flags that let you determine if the final .PDF is made up of the old text, the new text, or both with colors marking adds/change/deletes.

http://trackchanges.sourceforge.net/help_stylefile.html