Bỏ qua để đến nội dung

Cheatsheet

Nội dung này hiện chưa có sẵn bằng ngôn ngữ của bạn.

Everything on one page, meant to be printed or kept open beside the document you are reviewing.

\usepackage[review]{texchanges}

Replace review with final to accept pending changes, or original to read the unchanged document. One source, three outputs.

Command Meaning
\txreplace{old}{new} Replace text. Old first, then new.
\txadd{text} Insert text.
\txremove{text} Delete text.
\txhighlight{text} Draw attention without changing anything.
\txcomment{note} Attach a reviewer note.

Short aliases \add, \remove, \replace, \highlight, and \comment exist only when no other package has claimed them.

Every command takes the same optional argument.

Key Value
author A registered author ID.
id A document-unique change ID.
comment A note attached to this change.
status pending, accepted, or rejected.
\txreplace[author=phuc,id=R12,comment={Clarify this claim.},status=pending]{old}{new}

The legacy form \txreplace[Reviewer]{old}{new} still works as a plain visual label.

Mode Pending Accepted Rejected
review old and new, marked up new text old text
final new text, with a warning new text old text
original old text old text old text
\txdefineauthor[name={Phuc Nguyen},color=orange]{phuc}
\txsetanonymousname{Reviewer}

Additions, removals, and highlights take the author’s color. Replacements use the fixed removed and added colors so old and new stay distinguishable; the author label still carries the author color.

\txlistofchanges
\txlistofchanges[style=summary]
\txlistofchanges[style=list,title={Open changes},show={added,replaced},status={pending},author={phuc}]
Key Values
style list, summary, compactsummary
title Any heading text
show added, removed, replaced, highlighted, commented
status pending, accepted, rejected
author Registered author IDs

Detailed reports need two LaTeX runs. Reports appear only in review mode. Titles, change types, and statuses are localized for English, German, French, Italian, and Vietnamese through babel.

\usepackage[review,markup=texchanges,addedmarkup=uline,deletedmarkup=sout]{texchanges}
Option Values
markup texchanges, default, underlined, bfit, nocolor
addedmarkup colored, uline, uuline, uwave, dashuline, dotuline, bf, it, sl, em
deletedmarkup the same, plus sout and xout
highlightmarkup background, uuline, uwave
commentmarkup inline, todo, margin, footnote, uwave
authormarkup superscript, subscript, brackets, footnote, none
authormarkuptext id, name

Use markup=nocolor when the output must not rely on color.

Terminal window
texchanges-merge paper.tex reviewed.tex --accept
texchanges-merge paper.tex final.tex --accept --merge
texchanges-merge paper.tex --reject --id R12 --in-place
texchanges-merge paper.tex --accept --author phuc --dry-run

--merge removes the markup permanently; without it, only status is updated. --in-place writes a .bak first. --dry-run prints a diff and writes nothing.

\usepackage[review,compat=changes]{texchanges}

Use commandnameprefix=none|ifneeded|always to control how compatibility commands are named.