[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX] Track changes function?

From: spinner
Subject: Re: [AUCTeX] Track changes function?
Date: Wed, 3 Aug 2011 05:42:56 -0700 (PDT)

I've managed to get -latexdiff- working for me. My problem, I think,
was caused by trying to diff 2 files where each one had a parent-child
relationship. The preamble was in one file and the content
(dissertation chapter) was in the other.

To diff using latexdiff, I put the preamble and content in the same
tex file. I did this by combining the (1) parent file holding the
preamble and \include{childfile} commands and (2) related child file
holding the text. Combined parent and child into oldfile.tex and into
revisedfile.tex. I did this to get latexdiff to automatically add its
markup commands into my tex file preamble so Tex could compile the
diff file properly. Automatic insertion into the preamble is done with
the -t option in latexdiff.

Combining parent and child files is a pain taking a lot of time if I'm
going to diff my documents often. But it functions. Does anyone know a
better way to use latexdiff with parent-child files where the parent
holds the preamble and \include{childfile} commands and the child file
holds the text content?

spinner wrote:
> Hi, Joel:
> Thanks for your message. I don't believe that ed.sty will work for
> me. I'm not collaborating with the other person via a common Tex file.
> I am writing my dissertation in LaTeX. My adviser uses MS Word and
> won't use LaTeX. I send him a draft in PDF format generated from
> LaTeX. He writes his comments in the PDF file using Acrobat and sends
> his PDF file to me. I receive his comments and manually make changes
> to my draft. I now have two files: draft_v1.tex and I make these
> changes in draft_v2.tex. When I'm done editing, I want to create a
> compiled 'redline' version of my new draft that tracks my changes from
> version 1 to version 2.
> I tried the Perl script -latexdiff- for this function. It worked well
> except, for some reason, the coding that it added for sections in my
> paper caused errors when compiling (in LaTeX) and I couldn't finish
> compiling.  Here's an example of latexdiff code that caused a compile
> error: \subsubsection{The \DIFaddbegin \DIFadd{anomalies }\DIFaddend
> \DIFdelbegin \DIFdel{anomaly }\DIFdelend literature}
> I'm using MikTex 2.8.
> If I have only a few of these compile errors, I would manually get rid
> of the problem coding and move on. But when I have a lot of these errors,
> making manual changes because impractical.
> I'm relatively new to using emacs/Auctex as my text editor. I'm
> hoping Auctex has a function for what I want to do. But I haven't come
> across anything yet.
> Joel J. Adamson-2 wrote:
>> spinner <address@hidden> writes:
>>> Is there an Auctex function that compares two Tex files for changes and
>>> then
>>> Tex compiles to produce a printed document (PDF) showing redlining,
>>> strikeouts, etc. An alternative to the perl script -latexdiff-?
>>> I'm not looking to diff two raw Tex files for viewing on a monitor.
>>> Rather,
>>> I want to produce a compiled Tex document showing differences between
>>> two
>>> Tex files with redlining, strikeouts, etc..
>> Check out ed.sty[1].  Not an onscreen tool, but pretty darn close to
>> what you're looking for.  What is the purpose of comparing the two
>> documents?
>> Joel
>> Footnotes: 
>> [1]
>> -- 
>> Joel J. Adamson
>> Servedio Lab -- University of North Carolina at Chapel Hill
>> FSF Member #8164 --
>> Please use my new gmail address: <address@hidden>
>> _______________________________________________
>> auctex mailing list
>> address@hidden

View this message in context:
Sent from the Gnu - AUCTeX - General mailing list archive at

reply via email to

[Prev in Thread] Current Thread [Next in Thread]