{"id":5132,"date":"2017-12-15T11:31:00","date_gmt":"2017-12-15T03:31:00","guid":{"rendered":"https:\/\/lttt.vanabel.cn\/?p=5132"},"modified":"2019-01-20T22:10:36","modified_gmt":"2019-01-20T14:10:36","slug":"latexbanbenbijiaolatexdiffdeshiyong","status":"publish","type":"post","link":"https:\/\/lttt.vanabel.cn\/?p=5132","title":{"rendered":"LaTeX\u7248\u672c\u6bd4\u8f83:latexdiff\u7684\u4f7f\u7528"},"content":{"rendered":"<p>LaTeXDiff\u53ef\u4ee5\u6bd4\u8f83TeX\u4ee3\u7801, \u7136\u540e\u751f\u6210\u6bd4\u8f83\u540e\u7684PDF, \u6548\u679c\u89c1\u56fe\uff1a<\/p>\n<figure id=\"attachment_5133\" aria-describedby=\"caption-attachment-5133\" style=\"width: 640px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/lttt.vanabel.cn\/wp-content\/uploads\/2017\/12\/default-format-latexdiff.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-5133 size-large\" src=\"https:\/\/lttt.vanabel.cn\/wp-content\/uploads\/2017\/12\/default-format-latexdiff-1024x526.png\" alt=\"LaTeXDiff \u6548\u679c\u56fe\" width=\"640\" height=\"329\" srcset=\"https:\/\/lttt.vanabel.cn\/wp-content\/uploads\/2017\/12\/default-format-latexdiff-1024x526.png 1024w, https:\/\/lttt.vanabel.cn\/wp-content\/uploads\/2017\/12\/default-format-latexdiff-300x154.png 300w, https:\/\/lttt.vanabel.cn\/wp-content\/uploads\/2017\/12\/default-format-latexdiff-768x394.png 768w, https:\/\/lttt.vanabel.cn\/wp-content\/uploads\/2017\/12\/default-format-latexdiff.png 1097w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><figcaption id=\"caption-attachment-5133\" class=\"wp-caption-text\">LaTeXDiff \u6548\u679c\u56fe<\/figcaption><\/figure>\n<p><!--more--><\/p>\n<p>\u4e0b\u9762\u6765\u8bf4\u4e0b\u57fa\u672c\u7684\u5b89\u88c5\u4e0e\u4f7f\u7528\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>\u5b89\u88c5latexdiff<\/h4>\n<ul>\n<li>\u5b89\u88c5<a href=\"https:\/\/www.perl.org\/get.html\" target=\"_blank\" rel=\"noopener\">perl<\/a><\/li>\n<li>\u5b89\u88c5<a href=\"https:\/\/ctan.org\/tex-archive\/support\/latexdiff\" target=\"_blank\" rel=\"noopener\">Latexdiff<\/a>\uff1a\u5176\u5b9e\u5c31\u662f\u4e00\u4e2atex\u5b8f\u5305,\u4f60\u53ef\u4ee5\u7528tex\u5305\u7ba1\u7406\u5668\u5b89\u88c5, \u4e5f\u53ef\u4ee5\u624b\u52a8\u5b89\u88c5(\u4eceCTAN\u4e0b\u8f7d\u538b\u7f29\u5305,\u89e3\u538b\u5230perl\u7684bin\u76ee\u5f55\u4e0b\u5373\u53ef)<\/li>\n<\/ul>\n<h4>\u4f7f\u7528latexdiff<\/h4>\n<p>\u57fa\u672c\u7528\u6cd5\u5373\u53ef\uff1a<\/p>\n<pre>latexdiff draft.tex revision.tex &gt; diff.tex\n<\/pre>\n<p>\u7136\u540e\u6b63\u5e38\u7f16\u8bd1<code>diff.tex<\/code>\u8fd9\u4e2atex\u6587\u4ef6\u5373\u53ef\u5f97\u5230pdf\u3002<\/p>\n<h4>\u4f7f\u7528latexdiff\u6ce8\u610f\u4e8b\u9879<\/h4>\n<ul>\n<li>\u5728align\u73af\u5883\u4e2d, \u5982\u679c\u6709<code>\\intertext<\/code>\u7684\u8bdd\u53ef\u80fd\u4f1a\u6bd4\u8f83\u51fa\u9519\u3002\u4f8b\u5982\n<pre class=\"lang:default decode:true \">\\begin{align*}\na&amp;=b\\\\\n\\intertext{and}\nc&amp;=d\n\\end{align*}<\/pre>\n<p>\u5220\u9664\u540e, \u5f97\u5230\u6bd4\u8f83\u540e\u7684tex\u4e3a<\/p>\n<pre class=\"lang:default decode:true \"> \\DIFdelbegin \\begin{align*}\n\\DIFdel{a}&amp;\\DIFdel{=b}\\\\\n\\DIFdel{\\intertext{and}\nc}&amp;\\DIFdel{=d\n}\\end{align*}\n %DIFAUXCMD\n<\/pre>\n<p>\u8fd9\u662f, \u8fd0\u884c\u4f1a\u62a5\u9519\u3002<br \/>\n\u53ea\u9700\u5c06\u4ee3\u7801\u6539\u6210\u5982\u4e0b\u5373\u53ef\uff1a<\/p>\n<pre class=\"lang:default decode:true \"> \\DIFdelbegin \\begin{align*}\n\\DIFdel{a}&amp;\\DIFdel{=b}\\\\\n\\intertext{\\DIFdel{and}}\n\\DIFdel{c}&amp;\\DIFdel{=d\n}\\end{align*}\n %DIFAUXCMD\n<\/pre>\n<\/li>\n<li>\n<pre><code>\n! Limit controls must follow a math operator.\n\\UL@onmath ...hrest \\mathop {\\kern \\z@ #1}\\limits \n                                                  \\sb {\\UL@leadtype \\LA@hski...\n<\/code>\n<\/pre>\n<p>\u8fd9\u53ef\u80fd\u662f\u56e0\u4e3a\u6211\u4eec\u4f7f\u7528\u4e86\u975e\u6807\u51c6\u7684<code>dcases<\/code>\u73af\u5883, \u4f8b\u5982\u4f60\u65b0\u589e\u4e00\u6bb5\u4ee3\u7801:<\/p>\n<pre><code>\n\\begin{equation}\\label{eq:diff}\n\\begin{dcases}\n...\n\\end{dcases}\n\\end{equation}\n<\/code><\/pre>\n<p>\u5219diff\u540e\u662f\u5f62\u5982<\/p>\n<pre><code>\n\\DIFaddbegin\n\\begin{equation} \\DIFadd{\\label{\\label{eq:diff}}\n\\begin{dcases}\n...\n\\end{dcases}\n}\n\\end{equation}\n<\/code><\/pre>\n<p>\u6211\u4eec\u53ea\u9700\u5c06\u5176\u6539\u4e3a<\/p>\n<pre><code>\n\\DIFaddbegin\n\\begin{equation}\n\\begin{dcases} \\DIFadd{\\label{\\label{eq:diff}}\n...\n}\n\\end{dcases}\n\\end{equation}\n<\/code><\/pre>\n<\/li>\n<li><code>\\DIFadd{...}<\/code>\u4e2d\u7684&#8230;\u90e8\u5206\u4e0d\u80fd\u542b\u6709<code>\\left,\\right,\\big,\\bigg,\\Big<\/code>\u7b49\u5b9a\u4e49\u7684\u5404\u79cd\u62ec\u53f7, \u5982\u679c\u6709\u5e94\u8be5\u5c06\u5176\u6539\u4e3a\\left\\{\\DIFadd{&#8230;}\\right\\}<\/li>\n<li>\u6bd4\u8f83\u7684tex\u6e90\u7801\u5fc5\u987b\u4f4d\u4e8e\u540c\u4e00\u4e2a\u76ee\u5f55, \u652f\u6301\u4e0d\u540c\u76ee\u5f55\u91cc\u6e90\u7801\u7684\u6bd4\u8f83, \u4f46\u662f<code>input<\/code>\u6587\u4ef6\u4e0d\u4f1a\u81ea\u52a8\u4fee\u6539\u8def\u5f84\u3002<\/li>\n<li>\u62a5\u9519\uff1a<br \/>\n<blockquote><p>! Argument of \\UL@word has an extra }.<br \/>\n<inserted text=\"\"><br \/>\n\\par <\/inserted><\/p><\/blockquote>\n<p>\u89e3\u51b3\u529e\u6cd5\u662f\u6dfb\u52a0\u53c2\u6570<code>--exclude-textcmd=\"section,subsection,subsubsection\"<\/code><\/li>\n<p><code><\/code><code><\/code><code><\/code><\/ul>\n<p><code>\u6700\u540e, \u66f4\u591a\u8bbe\u7f6e\u53ef\u4ee5\u53c2\u8003<a href=\"http:\/\/mirror.lzu.edu.cn\/CTAN\/support\/latexdiff\/doc\/latexdiff-man.pdf\" rel=\"noopener\" target=\"_blank\">latexdiff\u624b\u518c<\/a>.<\/code><\/p>\n<p><code><br \/>\n<\/code><code><\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>LaTeXDiff\u53ef\u4ee5\u6bd4\u8f83TeX\u4ee3\u7801, \u7136\u540e\u751f\u6210\u6bd4\u8f83\u540e\u7684PDF, \u6548\u679c\u89c1\u56fe\uff1a<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[532,832,833],"class_list":["post-5132","post","type-post","status-publish","format-standard","hentry","category-latex","tag-latex-2","tag-latexdiff","tag-xiuding"],"_links":{"self":[{"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=\/wp\/v2\/posts\/5132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5132"}],"version-history":[{"count":7,"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=\/wp\/v2\/posts\/5132\/revisions"}],"predecessor-version":[{"id":5248,"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=\/wp\/v2\/posts\/5132\/revisions\/5248"}],"wp:attachment":[{"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}