Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

After considerable thought and experimentation, I came to the conclusion that I wanted to use memoir's \changemarks facility to indicate, as a courtesy to a client, where my proposal had changed as a result of our discussions.

However, \changemarks and friends are suppressed unless the draft class option is used. But using draft gives me some horrible side-effects, like missing graphics and blobs at the edge of my occasional(!) overfull box, as well as being semantically untrue.

I thought, initially, about latexdiff (barfs on my files), changebars (appears not to support xelatex), and changes (conflicts with memoir), and discarded them for the reasons mentioned. Now I'm heavily invested in the native memoir solution, I'm not sure which way to jump.

Can anyone suggest a reasonable quick fix?

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

A quick fix is redefining the internal macro \v@rid:

\documentclass[changemarks]{memoir}
\makeatletter
\renewcommand{\v@rid}[2]{%
  \@bsphack
  \ifchangemarks
     \marginpar[#1]{#2}%
  \fi
  \@esphack}
\makeatother
\changemarks
\begin{document}
\added{text}
XXXXXXXXXXXXXXXX YYYYYYYYYYYYY
ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
\end{document}​

Here, the change marks are shown without draft. Also, the black overfull hbox marker is not, shown, it would be if you activate the draft option.

Originally, that macro contained

\ifchangemarks
   \ifdraftdoc
     \marginpar[#1]{#2}%
\fi\fi

and I removed the \ifdraftdoc check by the redefinition above. This macro is used by \added, \deleted and \changed.

share|improve this answer
    
Thanks, Stefan, that's done the trick. I might try to put together a patch for @daleif to allow an optional parm to changemarks to override the draft/final document option. –  Brent.Longborough Nov 3 '11 at 17:38
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.