如何突出显示“新内容”两个乳胶文档之间
对于我的硕士论文,我正在编写一份 Latex 文档,我必须在其中放置我所做的所有研究。我的论文导师每月定期审阅这份文件一到两次。由于这是一个很大的文档,我想像 Word 或 Openoffice 一样自动突出显示自上次修订以来文档中的新增内容。
所以我的问题是,鉴于我有一个由 Subversion 控制的 Latex 文档,创建突出显示 HEAD 和以前版本之间差异的 pdf 的最佳方法是什么?
假设我想要:
- 红色字体的新文本 带有
- 浅红色背景的新图像和表格
- 删除标记为脚注或类似内容的文本
如果不是全部可行,可以实施哪些?
谢谢。
For my Master Thesis I am writing a Latex document where I must put all the research I do. This document is reviewed periodically by my thesis advisors once or twice per month. Since this is a big document I'd like to automatically highlight what's new in the document since the last revision same way like Word or Openoffice do.
So my question is, given that I have a Latex document controlled by Subversion, what is the best way to create a pdf highlighting the differences between the HEAD and a previous version?
Say that I want:
- New text in a red coloured font
- New images and tables with a light red background
- Deleted text marked as a footnote or something similar
If not all are possible, which ones could be implemented?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
查看 latexdiff。它比简单的 diff 程序要好得多,因为它理解 LaTeX,并且不会标记 tex 文件中简单的额外空格或重新格式化行的更改。
Check out latexdiff. It is much better than simple diff programs because it understands LaTeX and won't mark changes that are simply extra spaces, or reformatted lines in the tex file.
有几个包可以管理修订。我想使用一些版本控制系统(例如 git)来管理和显示更改。
There are several packages which could manage revisions. I'd like to use some version control system like git to manage and show changes.
您可以使用 diff 程序。我推荐 Source Forge 的 DiffMerge。
You could use a diff program. I recommend DiffMerge from Source Forge.
我喜欢wdiff。可在 *nix 平台上使用。
你可以使用
i like wdiff. available on an *nix platform.
you can use
在将论文发送给审稿人之前,我创建了 revdiff 来构建论文的差异版本。他们多次告诉我,结果确实很有帮助。希望它对您有用。
在这里找到它:http://pedromateo.github.io/revdiff-LaTeX/
I created revdiff to build diff versions of my papers before sending them to reviewers. They have told me several times that the result was really helpfull. Hope it can be useful for you.
Find it here: http://pedromateo.github.io/revdiff-LaTeX/