![添加章节并更改新章节第一句时出现 latexdiff 问题](https://linux22.com/image/441847/%E6%B7%BB%E5%8A%A0%E7%AB%A0%E8%8A%82%E5%B9%B6%E6%9B%B4%E6%94%B9%E6%96%B0%E7%AB%A0%E8%8A%82%E7%AC%AC%E4%B8%80%E5%8F%A5%E6%97%B6%E5%87%BA%E7%8E%B0%20latexdiff%20%E9%97%AE%E9%A2%98.png)
考虑这个例子,我称之为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
表现得像我预期的那样?