?

Log in

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|, , ]

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.)
linkReply

Comments:
[User Picture]From: rmd
2013-11-10 05:57 am (UTC)
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.
(Reply) (Thread)
[User Picture]From: kjc
2013-11-10 06:07 am (UTC)
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.
(Reply) (Parent) (Thread)
[User Picture]From: catbird
2013-11-10 02:18 pm (UTC)
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.
(Reply) (Thread)
[User Picture]From: whitebird
2013-11-10 10:09 pm (UTC)
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.
(Reply) (Thread)
[User Picture]From: yesthattom
2013-11-11 02:28 am (UTC)
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
(Reply) (Thread)
[User Picture]From: yesthattom
2013-11-11 02:32 am (UTC)
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}
\addeditor{kjc}
\addeditor{tal}


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


(Reply) (Parent) (Thread)
[User Picture]From: yesthattom
2013-11-11 02:33 am (UTC)
But to be blunt, most publishers want the PDF and send back a PDF with annotations via Adobe Acrobat. They expect the author to then do all the data-entry. It is a totally wasteful situation.
(Reply) (Parent) (Thread)