楼主: oliyiyi
929 0

Tracking changes in LaTeX files [推广有奖]

版主

泰斗

0%

还不是VIP/贵宾

-

TA的文库  其他...

计量文库

威望
7
论坛币
271996 个
通用积分
31269.4471
学术水平
1435 点
热心指数
1554 点
信用等级
1345 点
经验
383775 点
帖子
9598
精华
66
在线时间
5470 小时
注册时间
2007-5-21
最后登录
2024-4-30

初级学术勋章 初级热心勋章 初级信用勋章 中级信用勋章 中级学术勋章 中级热心勋章 高级热心勋章 高级学术勋章 高级信用勋章 特级热心勋章 特级学术勋章 特级信用勋章

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币

When I write a paper, it usually goes through many versions before being submitted to a journal. I keep track of the different versions by renaming the file when I’m about to make major changes, or when I receive a new version from a coauthor. The files are named file1.tex,file2.tex, etc. where “file” is replaced by something more meaningful.

It is often useful to be able to compare versions to see what changes have been made, especially when working with coauthors. It is possible to use text comparison software such asCompare It!, but LaTeX files often have insignificant changes due to line wrapping which make no difference to the output, and there is no point in identifying these changes.

I recently discovered a great solution which finds real LaTeX changes and ignores changes due to line wrapping. It is LaTeXdiff.The good news is that MikTeX users already have it, although you probably don’t realise it.

To use it, you need both MikTeX and Perl installed on your computer. I’ll assume you already have MikTeX. If you create R packages for Windows, you will also have Perl. Otherwise, one simple way to get Perl is to install Rtools.

The simplest way to proceed once Perl is installed, is to use the following command (from a DOS prompt)

latexdiff-so file1.tex file2.tex > diff.tex


If you are using MikTeX, then the latexdiff-so command should work from any DOS prompt. Then just process the file diff.tex as you normally do (probably in WinEdt).



二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Tracking changes change Files LaTeX files

缺少币币的网友请访问有奖回帖集合
https://bbs.pinggu.org/thread-3990750-1-1.html
您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-5-6 09:34