考虑这个例子,我称之为temp1.tex
\documentclass{article}
\begin{document}
\section{Some section}
This is an arbitrary sentence.
And this is another arbitrary sentence.
\end{document}
以及这个修订版,我称之为temp2.tex
\documentclass{article}
\begin{document}
\section{Some section}
Hello there.
\section{Some new section}
And this is another arbitrary sentence.
\end{document}
我唯一做的就是添加了一个新部分。以下是
latexdiff -t CFONT temp1.tex temp2.tex > diff.tex
pdflatex diff
给出:
到目前为止一切顺利。现在考虑一下temp2.tex
(here
而不是this
作为新部分的第二个词)的这种变化:
\documentclass{article}
\begin{document}
\section{Some section}
This is an arbitrary sentence.
\section{Some new section}
And here is another arbitrary sentence.
\end{document}
现在我明白了
似乎会latexdiff
因为将句子移到新部分和更改该句子而产生混淆。我原本以为单词更改会导致:
我怎样才能latexdiff
表现得像我预期的那样?